configure 783 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for file 5.04.
  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.04'
  632. PACKAGE_STRING='file 5.04'
  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. pkgdatadir
  729. fsect
  730. FSECT5_TRUE
  731. FSECT5_FALSE
  732. WARNINGS
  733. CC
  734. CFLAGS
  735. LDFLAGS
  736. CPPFLAGS
  737. ac_ct_CC
  738. EXEEXT
  739. OBJEXT
  740. DEPDIR
  741. am__include
  742. am__quote
  743. AMDEP_TRUE
  744. AMDEP_FALSE
  745. AMDEPBACKSLASH
  746. CCDEPMODE
  747. am__fastdepCC_TRUE
  748. am__fastdepCC_FALSE
  749. LN_S
  750. build
  751. build_cpu
  752. build_vendor
  753. build_os
  754. host
  755. host_cpu
  756. host_vendor
  757. host_os
  758. SED
  759. GREP
  760. EGREP
  761. ECHO
  762. AR
  763. RANLIB
  764. DSYMUTIL
  765. NMEDIT
  766. CPP
  767. CXX
  768. CXXFLAGS
  769. ac_ct_CXX
  770. CXXDEPMODE
  771. am__fastdepCXX_TRUE
  772. am__fastdepCXX_FALSE
  773. CXXCPP
  774. F77
  775. FFLAGS
  776. ac_ct_F77
  777. LIBTOOL
  778. LIBOBJS
  779. IS_CROSS_COMPILE_TRUE
  780. IS_CROSS_COMPILE_FALSE
  781. LTLIBOBJS'
  782. ac_subst_files=''
  783. ac_precious_vars='build_alias
  784. host_alias
  785. target_alias
  786. CC
  787. CFLAGS
  788. LDFLAGS
  789. LIBS
  790. CPPFLAGS
  791. CPP
  792. CXX
  793. CXXFLAGS
  794. CCC
  795. CXXCPP
  796. F77
  797. FFLAGS'
  798. # Initialize some variables set by options.
  799. ac_init_help=
  800. ac_init_version=false
  801. # The variables have the same names as the options, with
  802. # dashes changed to underlines.
  803. cache_file=/dev/null
  804. exec_prefix=NONE
  805. no_create=
  806. no_recursion=
  807. prefix=NONE
  808. program_prefix=NONE
  809. program_suffix=NONE
  810. program_transform_name=s,x,x,
  811. silent=
  812. site=
  813. srcdir=
  814. verbose=
  815. x_includes=NONE
  816. x_libraries=NONE
  817. # Installation directory options.
  818. # These are left unexpanded so users can "make install exec_prefix=/foo"
  819. # and all the variables that are supposed to be based on exec_prefix
  820. # by default will actually change.
  821. # Use braces instead of parens because sh, perl, etc. also accept them.
  822. # (The list follows the same order as the GNU Coding Standards.)
  823. bindir='${exec_prefix}/bin'
  824. sbindir='${exec_prefix}/sbin'
  825. libexecdir='${exec_prefix}/libexec'
  826. datarootdir='${prefix}/share'
  827. datadir='${datarootdir}'
  828. sysconfdir='${prefix}/etc'
  829. sharedstatedir='${prefix}/com'
  830. localstatedir='${prefix}/var'
  831. includedir='${prefix}/include'
  832. oldincludedir='/usr/include'
  833. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  834. infodir='${datarootdir}/info'
  835. htmldir='${docdir}'
  836. dvidir='${docdir}'
  837. pdfdir='${docdir}'
  838. psdir='${docdir}'
  839. libdir='${exec_prefix}/lib'
  840. localedir='${datarootdir}/locale'
  841. mandir='${datarootdir}/man'
  842. ac_prev=
  843. ac_dashdash=
  844. for ac_option
  845. do
  846. # If the previous option needs an argument, assign it.
  847. if test -n "$ac_prev"; then
  848. eval $ac_prev=\$ac_option
  849. ac_prev=
  850. continue
  851. fi
  852. case $ac_option in
  853. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  854. *) ac_optarg=yes ;;
  855. esac
  856. # Accept the important Cygnus configure options, so we can diagnose typos.
  857. case $ac_dashdash$ac_option in
  858. --)
  859. ac_dashdash=yes ;;
  860. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  861. ac_prev=bindir ;;
  862. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  863. bindir=$ac_optarg ;;
  864. -build | --build | --buil | --bui | --bu)
  865. ac_prev=build_alias ;;
  866. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  867. build_alias=$ac_optarg ;;
  868. -cache-file | --cache-file | --cache-fil | --cache-fi \
  869. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  870. ac_prev=cache_file ;;
  871. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  872. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  873. cache_file=$ac_optarg ;;
  874. --config-cache | -C)
  875. cache_file=config.cache ;;
  876. -datadir | --datadir | --datadi | --datad)
  877. ac_prev=datadir ;;
  878. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  879. datadir=$ac_optarg ;;
  880. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  881. | --dataroo | --dataro | --datar)
  882. ac_prev=datarootdir ;;
  883. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  884. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  885. datarootdir=$ac_optarg ;;
  886. -disable-* | --disable-*)
  887. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  888. # Reject names that are not valid shell variable names.
  889. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  890. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  891. { (exit 1); exit 1; }; }
  892. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  893. eval enable_$ac_feature=no ;;
  894. -docdir | --docdir | --docdi | --doc | --do)
  895. ac_prev=docdir ;;
  896. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  897. docdir=$ac_optarg ;;
  898. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  899. ac_prev=dvidir ;;
  900. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  901. dvidir=$ac_optarg ;;
  902. -enable-* | --enable-*)
  903. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  904. # Reject names that are not valid shell variable names.
  905. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  906. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  907. { (exit 1); exit 1; }; }
  908. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  909. eval enable_$ac_feature=\$ac_optarg ;;
  910. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  911. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  912. | --exec | --exe | --ex)
  913. ac_prev=exec_prefix ;;
  914. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  915. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  916. | --exec=* | --exe=* | --ex=*)
  917. exec_prefix=$ac_optarg ;;
  918. -gas | --gas | --ga | --g)
  919. # Obsolete; use --with-gas.
  920. with_gas=yes ;;
  921. -help | --help | --hel | --he | -h)
  922. ac_init_help=long ;;
  923. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  924. ac_init_help=recursive ;;
  925. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  926. ac_init_help=short ;;
  927. -host | --host | --hos | --ho)
  928. ac_prev=host_alias ;;
  929. -host=* | --host=* | --hos=* | --ho=*)
  930. host_alias=$ac_optarg ;;
  931. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  932. ac_prev=htmldir ;;
  933. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  934. | --ht=*)
  935. htmldir=$ac_optarg ;;
  936. -includedir | --includedir | --includedi | --included | --include \
  937. | --includ | --inclu | --incl | --inc)
  938. ac_prev=includedir ;;
  939. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  940. | --includ=* | --inclu=* | --incl=* | --inc=*)
  941. includedir=$ac_optarg ;;
  942. -infodir | --infodir | --infodi | --infod | --info | --inf)
  943. ac_prev=infodir ;;
  944. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  945. infodir=$ac_optarg ;;
  946. -libdir | --libdir | --libdi | --libd)
  947. ac_prev=libdir ;;
  948. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  949. libdir=$ac_optarg ;;
  950. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  951. | --libexe | --libex | --libe)
  952. ac_prev=libexecdir ;;
  953. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  954. | --libexe=* | --libex=* | --libe=*)
  955. libexecdir=$ac_optarg ;;
  956. -localedir | --localedir | --localedi | --localed | --locale)
  957. ac_prev=localedir ;;
  958. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  959. localedir=$ac_optarg ;;
  960. -localstatedir | --localstatedir | --localstatedi | --localstated \
  961. | --localstate | --localstat | --localsta | --localst | --locals)
  962. ac_prev=localstatedir ;;
  963. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  964. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  965. localstatedir=$ac_optarg ;;
  966. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  967. ac_prev=mandir ;;
  968. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  969. mandir=$ac_optarg ;;
  970. -nfp | --nfp | --nf)
  971. # Obsolete; use --without-fp.
  972. with_fp=no ;;
  973. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  974. | --no-cr | --no-c | -n)
  975. no_create=yes ;;
  976. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  977. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  978. no_recursion=yes ;;
  979. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  980. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  981. | --oldin | --oldi | --old | --ol | --o)
  982. ac_prev=oldincludedir ;;
  983. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  984. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  985. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  986. oldincludedir=$ac_optarg ;;
  987. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  988. ac_prev=prefix ;;
  989. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  990. prefix=$ac_optarg ;;
  991. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  992. | --program-pre | --program-pr | --program-p)
  993. ac_prev=program_prefix ;;
  994. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  995. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  996. program_prefix=$ac_optarg ;;
  997. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  998. | --program-suf | --program-su | --program-s)
  999. ac_prev=program_suffix ;;
  1000. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1001. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1002. program_suffix=$ac_optarg ;;
  1003. -program-transform-name | --program-transform-name \
  1004. | --program-transform-nam | --program-transform-na \
  1005. | --program-transform-n | --program-transform- \
  1006. | --program-transform | --program-transfor \
  1007. | --program-transfo | --program-transf \
  1008. | --program-trans | --program-tran \
  1009. | --progr-tra | --program-tr | --program-t)
  1010. ac_prev=program_transform_name ;;
  1011. -program-transform-name=* | --program-transform-name=* \
  1012. | --program-transform-nam=* | --program-transform-na=* \
  1013. | --program-transform-n=* | --program-transform-=* \
  1014. | --program-transform=* | --program-transfor=* \
  1015. | --program-transfo=* | --program-transf=* \
  1016. | --program-trans=* | --program-tran=* \
  1017. | --progr-tra=* | --program-tr=* | --program-t=*)
  1018. program_transform_name=$ac_optarg ;;
  1019. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1020. ac_prev=pdfdir ;;
  1021. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1022. pdfdir=$ac_optarg ;;
  1023. -psdir | --psdir | --psdi | --psd | --ps)
  1024. ac_prev=psdir ;;
  1025. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1026. psdir=$ac_optarg ;;
  1027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1028. | -silent | --silent | --silen | --sile | --sil)
  1029. silent=yes ;;
  1030. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1031. ac_prev=sbindir ;;
  1032. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1033. | --sbi=* | --sb=*)
  1034. sbindir=$ac_optarg ;;
  1035. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1036. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1037. | --sharedst | --shareds | --shared | --share | --shar \
  1038. | --sha | --sh)
  1039. ac_prev=sharedstatedir ;;
  1040. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1041. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1042. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1043. | --sha=* | --sh=*)
  1044. sharedstatedir=$ac_optarg ;;
  1045. -site | --site | --sit)
  1046. ac_prev=site ;;
  1047. -site=* | --site=* | --sit=*)
  1048. site=$ac_optarg ;;
  1049. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1050. ac_prev=srcdir ;;
  1051. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1052. srcdir=$ac_optarg ;;
  1053. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1054. | --syscon | --sysco | --sysc | --sys | --sy)
  1055. ac_prev=sysconfdir ;;
  1056. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1057. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1058. sysconfdir=$ac_optarg ;;
  1059. -target | --target | --targe | --targ | --tar | --ta | --t)
  1060. ac_prev=target_alias ;;
  1061. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1062. target_alias=$ac_optarg ;;
  1063. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1064. verbose=yes ;;
  1065. -version | --version | --versio | --versi | --vers | -V)
  1066. ac_init_version=: ;;
  1067. -with-* | --with-*)
  1068. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1072. { (exit 1); exit 1; }; }
  1073. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1074. eval with_$ac_package=\$ac_optarg ;;
  1075. -without-* | --without-*)
  1076. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1077. # Reject names that are not valid shell variable names.
  1078. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1079. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1080. { (exit 1); exit 1; }; }
  1081. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1082. eval with_$ac_package=no ;;
  1083. --x)
  1084. # Obsolete; use --with-x.
  1085. with_x=yes ;;
  1086. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1087. | --x-incl | --x-inc | --x-in | --x-i)
  1088. ac_prev=x_includes ;;
  1089. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1090. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1091. x_includes=$ac_optarg ;;
  1092. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1093. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1094. ac_prev=x_libraries ;;
  1095. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1096. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1097. x_libraries=$ac_optarg ;;
  1098. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1099. Try \`$0 --help' for more information." >&2
  1100. { (exit 1); exit 1; }; }
  1101. ;;
  1102. *=*)
  1103. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1104. # Reject names that are not valid shell variable names.
  1105. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1106. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1107. { (exit 1); exit 1; }; }
  1108. eval $ac_envvar=\$ac_optarg
  1109. export $ac_envvar ;;
  1110. *)
  1111. # FIXME: should be removed in autoconf 3.0.
  1112. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1113. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1114. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1115. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1116. ;;
  1117. esac
  1118. done
  1119. if test -n "$ac_prev"; then
  1120. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1121. { echo "$as_me: error: missing argument to $ac_option" >&2
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. # Be sure to have absolute directory names.
  1125. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1126. datadir sysconfdir sharedstatedir localstatedir includedir \
  1127. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1128. libdir localedir mandir
  1129. do
  1130. eval ac_val=\$$ac_var
  1131. case $ac_val in
  1132. [\\/$]* | ?:[\\/]* ) continue;;
  1133. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1134. esac
  1135. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1136. { (exit 1); exit 1; }; }
  1137. done
  1138. # There might be people who depend on the old broken behavior: `$host'
  1139. # used to hold the argument of --host etc.
  1140. # FIXME: To remove some day.
  1141. build=$build_alias
  1142. host=$host_alias
  1143. target=$target_alias
  1144. # FIXME: To remove some day.
  1145. if test "x$host_alias" != x; then
  1146. if test "x$build_alias" = x; then
  1147. cross_compiling=maybe
  1148. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1149. If a cross compiler is detected then cross compile mode will be used." >&2
  1150. elif test "x$build_alias" != "x$host_alias"; then
  1151. cross_compiling=yes
  1152. fi
  1153. fi
  1154. ac_tool_prefix=
  1155. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1156. test "$silent" = yes && exec 6>/dev/null
  1157. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1158. ac_ls_di=`ls -di .` &&
  1159. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1160. { echo "$as_me: error: Working directory cannot be determined" >&2
  1161. { (exit 1); exit 1; }; }
  1162. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1163. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1164. { (exit 1); exit 1; }; }
  1165. # Find the source files, if location was not specified.
  1166. if test -z "$srcdir"; then
  1167. ac_srcdir_defaulted=yes
  1168. # Try the directory containing this script, then the parent directory.
  1169. ac_confdir=`$as_dirname -- "$0" ||
  1170. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1171. X"$0" : 'X\(//\)[^/]' \| \
  1172. X"$0" : 'X\(//\)$' \| \
  1173. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1174. echo X"$0" |
  1175. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)[^/].*/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\/\)$/{
  1184. s//\1/
  1185. q
  1186. }
  1187. /^X\(\/\).*/{
  1188. s//\1/
  1189. q
  1190. }
  1191. s/.*/./; q'`
  1192. srcdir=$ac_confdir
  1193. if test ! -r "$srcdir/$ac_unique_file"; then
  1194. srcdir=..
  1195. fi
  1196. else
  1197. ac_srcdir_defaulted=no
  1198. fi
  1199. if test ! -r "$srcdir/$ac_unique_file"; then
  1200. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1201. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1202. { (exit 1); exit 1; }; }
  1203. fi
  1204. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1205. ac_abs_confdir=`(
  1206. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1207. { (exit 1); exit 1; }; }
  1208. pwd)`
  1209. # When building in place, set srcdir=.
  1210. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1211. srcdir=.
  1212. fi
  1213. # Remove unnecessary trailing slashes from srcdir.
  1214. # Double slashes in file names in object file debugging info
  1215. # mess up M-x gdb in Emacs.
  1216. case $srcdir in
  1217. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1218. esac
  1219. for ac_var in $ac_precious_vars; do
  1220. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1221. eval ac_env_${ac_var}_value=\$${ac_var}
  1222. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1223. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1224. done
  1225. #
  1226. # Report the --help message.
  1227. #
  1228. if test "$ac_init_help" = "long"; then
  1229. # Omit some internal or obsolete options to make the list less imposing.
  1230. # This message is too long to be a string in the A/UX 3.1 sh.
  1231. cat <<_ACEOF
  1232. \`configure' configures file 5.04 to adapt to many kinds of systems.
  1233. Usage: $0 [OPTION]... [VAR=VALUE]...
  1234. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1235. VAR=VALUE. See below for descriptions of some of the useful variables.
  1236. Defaults for the options are specified in brackets.
  1237. Configuration:
  1238. -h, --help display this help and exit
  1239. --help=short display options specific to this package
  1240. --help=recursive display the short help of all the included packages
  1241. -V, --version display version information and exit
  1242. -q, --quiet, --silent do not print \`checking...' messages
  1243. --cache-file=FILE cache test results in FILE [disabled]
  1244. -C, --config-cache alias for \`--cache-file=config.cache'
  1245. -n, --no-create do not create output files
  1246. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1247. Installation directories:
  1248. --prefix=PREFIX install architecture-independent files in PREFIX
  1249. [$ac_default_prefix]
  1250. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1251. [PREFIX]
  1252. By default, \`make install' will install all the files in
  1253. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1254. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1255. for instance \`--prefix=\$HOME'.
  1256. For better control, use the options below.
  1257. Fine tuning of the installation directories:
  1258. --bindir=DIR user executables [EPREFIX/bin]
  1259. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1260. --libexecdir=DIR program executables [EPREFIX/libexec]
  1261. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1262. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1263. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1264. --libdir=DIR object code libraries [EPREFIX/lib]
  1265. --includedir=DIR C header files [PREFIX/include]
  1266. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1267. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1268. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1269. --infodir=DIR info documentation [DATAROOTDIR/info]
  1270. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1271. --mandir=DIR man documentation [DATAROOTDIR/man]
  1272. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1273. --htmldir=DIR html documentation [DOCDIR]
  1274. --dvidir=DIR dvi documentation [DOCDIR]
  1275. --pdfdir=DIR pdf documentation [DOCDIR]
  1276. --psdir=DIR ps documentation [DOCDIR]
  1277. _ACEOF
  1278. cat <<\_ACEOF
  1279. Program names:
  1280. --program-prefix=PREFIX prepend PREFIX to installed program names
  1281. --program-suffix=SUFFIX append SUFFIX to installed program names
  1282. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1283. System types:
  1284. --build=BUILD configure for building on BUILD [guessed]
  1285. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1286. _ACEOF
  1287. fi
  1288. if test -n "$ac_init_help"; then
  1289. case $ac_init_help in
  1290. short | recursive ) echo "Configuration of file 5.04:";;
  1291. esac
  1292. cat <<\_ACEOF
  1293. Optional Features:
  1294. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1295. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1296. --disable-elf disable builtin ELF support
  1297. --disable-elf-core disable ELF core file support
  1298. --enable-fsect-man5 enable file formats in man section 5
  1299. --disable-dependency-tracking speeds up one-time build
  1300. --enable-dependency-tracking do not reject slow dependency extractors
  1301. --enable-shared[=PKGS] build shared libraries [default=yes]
  1302. --enable-static[=PKGS] build static libraries [default=yes]
  1303. --enable-fast-install[=PKGS]
  1304. optimize for fast installation [default=yes]
  1305. --disable-libtool-lock avoid locking (might break parallel builds)
  1306. --disable-largefile omit support for large files
  1307. --disable-warnings disable compiler warnings
  1308. Optional Packages:
  1309. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1310. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1311. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1312. --with-pic try to use only PIC/non-PIC objects [default=use
  1313. both]
  1314. --with-tags[=TAGS] include additional configurations [automatic]
  1315. Some influential environment variables:
  1316. CC C compiler command
  1317. CFLAGS C compiler flags
  1318. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1319. nonstandard directory <lib dir>
  1320. LIBS libraries to pass to the linker, e.g. -l<library>
  1321. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1322. you have headers in a nonstandard directory <include dir>
  1323. CPP C preprocessor
  1324. CXX C++ compiler command
  1325. CXXFLAGS C++ compiler flags
  1326. CXXCPP C++ preprocessor
  1327. F77 Fortran 77 compiler command
  1328. FFLAGS Fortran 77 compiler flags
  1329. Use these variables to override the choices made by `configure' or to help
  1330. it to find libraries and programs with nonstandard names/locations.
  1331. Report bugs to <christos@astron.com>.
  1332. _ACEOF
  1333. ac_status=$?
  1334. fi
  1335. if test "$ac_init_help" = "recursive"; then
  1336. # If there are subdirs, report their specific --help.
  1337. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1338. test -d "$ac_dir" || continue
  1339. ac_builddir=.
  1340. case "$ac_dir" in
  1341. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *)
  1343. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1344. # A ".." for each directory in $ac_dir_suffix.
  1345. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1346. case $ac_top_builddir_sub in
  1347. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1349. esac ;;
  1350. esac
  1351. ac_abs_top_builddir=$ac_pwd
  1352. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1353. # for backward compatibility:
  1354. ac_top_builddir=$ac_top_build_prefix
  1355. case $srcdir in
  1356. .) # We are building in place.
  1357. ac_srcdir=.
  1358. ac_top_srcdir=$ac_top_builddir_sub
  1359. ac_abs_top_srcdir=$ac_pwd ;;
  1360. [\\/]* | ?:[\\/]* ) # Absolute name.
  1361. ac_srcdir=$srcdir$ac_dir_suffix;
  1362. ac_top_srcdir=$srcdir
  1363. ac_abs_top_srcdir=$srcdir ;;
  1364. *) # Relative name.
  1365. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1366. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1367. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1368. esac
  1369. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1370. cd "$ac_dir" || { ac_status=$?; continue; }
  1371. # Check for guested configure.
  1372. if test -f "$ac_srcdir/configure.gnu"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1375. elif test -f "$ac_srcdir/configure"; then
  1376. echo &&
  1377. $SHELL "$ac_srcdir/configure" --help=recursive
  1378. else
  1379. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1380. fi || ac_status=$?
  1381. cd "$ac_pwd" || { ac_status=$?; break; }
  1382. done
  1383. fi
  1384. test -n "$ac_init_help" && exit $ac_status
  1385. if $ac_init_version; then
  1386. cat <<\_ACEOF
  1387. file configure 5.04
  1388. generated by GNU Autoconf 2.61
  1389. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1390. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1391. This configure script is free software; the Free Software Foundation
  1392. gives unlimited permission to copy, distribute and modify it.
  1393. _ACEOF
  1394. exit
  1395. fi
  1396. cat >config.log <<_ACEOF
  1397. This file contains any messages produced by compilers while
  1398. running configure, to aid debugging if configure makes a mistake.
  1399. It was created by file $as_me 5.04, which was
  1400. generated by GNU Autoconf 2.61. Invocation command line was
  1401. $ $0 $@
  1402. _ACEOF
  1403. exec 5>>config.log
  1404. {
  1405. cat <<_ASUNAME
  1406. ## --------- ##
  1407. ## Platform. ##
  1408. ## --------- ##
  1409. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1410. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1411. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1412. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1413. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1414. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1415. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1416. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1417. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1418. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1419. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1420. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1421. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1422. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1423. _ASUNAME
  1424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1425. for as_dir in $PATH
  1426. do
  1427. IFS=$as_save_IFS
  1428. test -z "$as_dir" && as_dir=.
  1429. echo "PATH: $as_dir"
  1430. done
  1431. IFS=$as_save_IFS
  1432. } >&5
  1433. cat >&5 <<_ACEOF
  1434. ## ----------- ##
  1435. ## Core tests. ##
  1436. ## ----------- ##
  1437. _ACEOF
  1438. # Keep a trace of the command line.
  1439. # Strip out --no-create and --no-recursion so they do not pile up.
  1440. # Strip out --silent because we don't want to record it for future runs.
  1441. # Also quote any args containing shell meta-characters.
  1442. # Make two passes to allow for proper duplicate-argument suppression.
  1443. ac_configure_args=
  1444. ac_configure_args0=
  1445. ac_configure_args1=
  1446. ac_must_keep_next=false
  1447. for ac_pass in 1 2
  1448. do
  1449. for ac_arg
  1450. do
  1451. case $ac_arg in
  1452. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1453. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1454. | -silent | --silent | --silen | --sile | --sil)
  1455. continue ;;
  1456. *\'*)
  1457. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1458. esac
  1459. case $ac_pass in
  1460. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1461. 2)
  1462. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1463. if test $ac_must_keep_next = true; then
  1464. ac_must_keep_next=false # Got value, back to normal.
  1465. else
  1466. case $ac_arg in
  1467. *=* | --config-cache | -C | -disable-* | --disable-* \
  1468. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1469. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1470. | -with-* | --with-* | -without-* | --without-* | --x)
  1471. case "$ac_configure_args0 " in
  1472. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1473. esac
  1474. ;;
  1475. -* ) ac_must_keep_next=true ;;
  1476. esac
  1477. fi
  1478. ac_configure_args="$ac_configure_args '$ac_arg'"
  1479. ;;
  1480. esac
  1481. done
  1482. done
  1483. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1484. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1485. # When interrupted or exit'd, cleanup temporary files, and complete
  1486. # config.log. We remove comments because anyway the quotes in there
  1487. # would cause problems or look ugly.
  1488. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1489. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1490. trap 'exit_status=$?
  1491. # Save into config.log some information that might help in debugging.
  1492. {
  1493. echo
  1494. cat <<\_ASBOX
  1495. ## ---------------- ##
  1496. ## Cache variables. ##
  1497. ## ---------------- ##
  1498. _ASBOX
  1499. echo
  1500. # The following way of writing the cache mishandles newlines in values,
  1501. (
  1502. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1503. eval ac_val=\$$ac_var
  1504. case $ac_val in #(
  1505. *${as_nl}*)
  1506. case $ac_var in #(
  1507. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1508. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1509. esac
  1510. case $ac_var in #(
  1511. _ | IFS | as_nl) ;; #(
  1512. *) $as_unset $ac_var ;;
  1513. esac ;;
  1514. esac
  1515. done
  1516. (set) 2>&1 |
  1517. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1518. *${as_nl}ac_space=\ *)
  1519. sed -n \
  1520. "s/'\''/'\''\\\\'\'''\''/g;
  1521. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1522. ;; #(
  1523. *)
  1524. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1525. ;;
  1526. esac |
  1527. sort
  1528. )
  1529. echo
  1530. cat <<\_ASBOX
  1531. ## ----------------- ##
  1532. ## Output variables. ##
  1533. ## ----------------- ##
  1534. _ASBOX
  1535. echo
  1536. for ac_var in $ac_subst_vars
  1537. do
  1538. eval ac_val=\$$ac_var
  1539. case $ac_val in
  1540. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1541. esac
  1542. echo "$ac_var='\''$ac_val'\''"
  1543. done | sort
  1544. echo
  1545. if test -n "$ac_subst_files"; then
  1546. cat <<\_ASBOX
  1547. ## ------------------- ##
  1548. ## File substitutions. ##
  1549. ## ------------------- ##
  1550. _ASBOX
  1551. echo
  1552. for ac_var in $ac_subst_files
  1553. do
  1554. eval ac_val=\$$ac_var
  1555. case $ac_val in
  1556. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1557. esac
  1558. echo "$ac_var='\''$ac_val'\''"
  1559. done | sort
  1560. echo
  1561. fi
  1562. if test -s confdefs.h; then
  1563. cat <<\_ASBOX
  1564. ## ----------- ##
  1565. ## confdefs.h. ##
  1566. ## ----------- ##
  1567. _ASBOX
  1568. echo
  1569. cat confdefs.h
  1570. echo
  1571. fi
  1572. test "$ac_signal" != 0 &&
  1573. echo "$as_me: caught signal $ac_signal"
  1574. echo "$as_me: exit $exit_status"
  1575. } >&5
  1576. rm -f core *.core core.conftest.* &&
  1577. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1578. exit $exit_status
  1579. ' 0
  1580. for ac_signal in 1 2 13 15; do
  1581. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1582. done
  1583. ac_signal=0
  1584. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1585. rm -f -r conftest* confdefs.h
  1586. # Predefined preprocessor variables.
  1587. cat >>confdefs.h <<_ACEOF
  1588. #define PACKAGE_NAME "$PACKAGE_NAME"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1592. _ACEOF
  1593. cat >>confdefs.h <<_ACEOF
  1594. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1595. _ACEOF
  1596. cat >>confdefs.h <<_ACEOF
  1597. #define PACKAGE_STRING "$PACKAGE_STRING"
  1598. _ACEOF
  1599. cat >>confdefs.h <<_ACEOF
  1600. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1601. _ACEOF
  1602. # Let the site file select an alternate cache file if it wants to.
  1603. # Prefer explicitly selected file to automatically selected ones.
  1604. if test -n "$CONFIG_SITE"; then
  1605. set x "$CONFIG_SITE"
  1606. elif test "x$prefix" != xNONE; then
  1607. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1608. else
  1609. set x "$ac_default_prefix/share/config.site" \
  1610. "$ac_default_prefix/etc/config.site"
  1611. fi
  1612. shift
  1613. for ac_site_file
  1614. do
  1615. if test -r "$ac_site_file"; then
  1616. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1617. echo "$as_me: loading site script $ac_site_file" >&6;}
  1618. sed 's/^/| /' "$ac_site_file" >&5
  1619. . "$ac_site_file"
  1620. fi
  1621. done
  1622. if test -r "$cache_file"; then
  1623. # Some versions of bash will fail to source /dev/null (special
  1624. # files actually), so we avoid doing that.
  1625. if test -f "$cache_file"; then
  1626. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1627. echo "$as_me: loading cache $cache_file" >&6;}
  1628. case $cache_file in
  1629. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1630. *) . "./$cache_file";;
  1631. esac
  1632. fi
  1633. else
  1634. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1635. echo "$as_me: creating cache $cache_file" >&6;}
  1636. >$cache_file
  1637. fi
  1638. # Check that the precious variables saved in the cache have kept the same
  1639. # value.
  1640. ac_cache_corrupted=false
  1641. for ac_var in $ac_precious_vars; do
  1642. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1643. eval ac_new_set=\$ac_env_${ac_var}_set
  1644. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1645. eval ac_new_val=\$ac_env_${ac_var}_value
  1646. case $ac_old_set,$ac_new_set in
  1647. set,)
  1648. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1649. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1650. ac_cache_corrupted=: ;;
  1651. ,set)
  1652. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1653. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1654. ac_cache_corrupted=: ;;
  1655. ,);;
  1656. *)
  1657. if test "x$ac_old_val" != "x$ac_new_val"; then
  1658. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1659. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1660. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1661. echo "$as_me: former value: $ac_old_val" >&2;}
  1662. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1663. echo "$as_me: current value: $ac_new_val" >&2;}
  1664. ac_cache_corrupted=:
  1665. fi;;
  1666. esac
  1667. # Pass precious variables to config.status.
  1668. if test "$ac_new_set" = set; then
  1669. case $ac_new_val in
  1670. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1671. *) ac_arg=$ac_var=$ac_new_val ;;
  1672. esac
  1673. case " $ac_configure_args " in
  1674. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1675. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1676. esac
  1677. fi
  1678. done
  1679. if $ac_cache_corrupted; then
  1680. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1681. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1682. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1683. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1684. { (exit 1); exit 1; }; }
  1685. fi
  1686. ac_ext=c
  1687. ac_cpp='$CPP $CPPFLAGS'
  1688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1691. am__api_version='1.10'
  1692. ac_aux_dir=
  1693. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1694. if 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/install.sh"; then
  1699. ac_aux_dir=$ac_dir
  1700. ac_install_sh="$ac_aux_dir/install.sh -c"
  1701. break
  1702. elif test -f "$ac_dir/shtool"; then
  1703. ac_aux_dir=$ac_dir
  1704. ac_install_sh="$ac_aux_dir/shtool install -c"
  1705. break
  1706. fi
  1707. done
  1708. if test -z "$ac_aux_dir"; then
  1709. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1710. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1711. { (exit 1); exit 1; }; }
  1712. fi
  1713. # These three variables are undocumented and unsupported,
  1714. # and are intended to be withdrawn in a future Autoconf release.
  1715. # They can cause serious problems if a builder's source tree is in a directory
  1716. # whose full name contains unusual characters.
  1717. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1718. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1719. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1720. # Find a good install program. We prefer a C program (faster),
  1721. # so one script is as good as another. But avoid the broken or
  1722. # incompatible versions:
  1723. # SysV /etc/install, /usr/sbin/install
  1724. # SunOS /usr/etc/install
  1725. # IRIX /sbin/install
  1726. # AIX /bin/install
  1727. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1728. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1729. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1730. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1731. # OS/2's system install, which has a completely different semantic
  1732. # ./install, which can be erroneously created by make from ./install.sh.
  1733. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1734. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1735. if test -z "$INSTALL"; then
  1736. if test "${ac_cv_path_install+set}" = set; then
  1737. echo $ECHO_N "(cached) $ECHO_C" >&6
  1738. else
  1739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1740. for as_dir in $PATH
  1741. do
  1742. IFS=$as_save_IFS
  1743. test -z "$as_dir" && as_dir=.
  1744. # Account for people who put trailing slashes in PATH elements.
  1745. case $as_dir/ in
  1746. ./ | .// | /cC/* | \
  1747. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1748. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1749. /usr/ucb/* ) ;;
  1750. *)
  1751. # OSF1 and SCO ODT 3.0 have their own names for install.
  1752. # Don't use installbsd from OSF since it installs stuff as root
  1753. # by default.
  1754. for ac_prog in ginstall scoinst install; do
  1755. for ac_exec_ext in '' $ac_executable_extensions; do
  1756. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1757. if test $ac_prog = install &&
  1758. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1759. # AIX install. It has an incompatible calling convention.
  1760. :
  1761. elif test $ac_prog = install &&
  1762. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1763. # program-specific install script used by HP pwplus--don't use.
  1764. :
  1765. else
  1766. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1767. break 3
  1768. fi
  1769. fi
  1770. done
  1771. done
  1772. ;;
  1773. esac
  1774. done
  1775. IFS=$as_save_IFS
  1776. fi
  1777. if test "${ac_cv_path_install+set}" = set; then
  1778. INSTALL=$ac_cv_path_install
  1779. else
  1780. # As a last resort, use the slow shell script. Don't cache a
  1781. # value for INSTALL within a source directory, because that will
  1782. # break other packages using the cache if that directory is
  1783. # removed, or if the value is a relative name.
  1784. INSTALL=$ac_install_sh
  1785. fi
  1786. fi
  1787. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1788. echo "${ECHO_T}$INSTALL" >&6; }
  1789. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1790. # It thinks the first close brace ends the variable substitution.
  1791. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1792. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1793. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1794. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1795. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1796. # Just in case
  1797. sleep 1
  1798. echo timestamp > conftest.file
  1799. # Do `set' in a subshell so we don't clobber the current shell's
  1800. # arguments. Must try -L first in case configure is actually a
  1801. # symlink; some systems play weird games with the mod time of symlinks
  1802. # (eg FreeBSD returns the mod time of the symlink's containing
  1803. # directory).
  1804. if (
  1805. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1806. if test "$*" = "X"; then
  1807. # -L didn't work.
  1808. set X `ls -t $srcdir/configure conftest.file`
  1809. fi
  1810. rm -f conftest.file
  1811. if test "$*" != "X $srcdir/configure conftest.file" \
  1812. && test "$*" != "X conftest.file $srcdir/configure"; then
  1813. # If neither matched, then we have a broken ls. This can happen
  1814. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1815. # broken ls alias from the environment. This has actually
  1816. # happened. Such a system could not be considered "sane".
  1817. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1818. alias in your environment" >&5
  1819. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1820. alias in your environment" >&2;}
  1821. { (exit 1); exit 1; }; }
  1822. fi
  1823. test "$2" = conftest.file
  1824. )
  1825. then
  1826. # Ok.
  1827. :
  1828. else
  1829. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1830. Check your system clock" >&5
  1831. echo "$as_me: error: newly created file is older than distributed files!
  1832. Check your system clock" >&2;}
  1833. { (exit 1); exit 1; }; }
  1834. fi
  1835. { echo "$as_me:$LINENO: result: yes" >&5
  1836. echo "${ECHO_T}yes" >&6; }
  1837. test "$program_prefix" != NONE &&
  1838. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1839. # Use a double $ so make ignores it.
  1840. test "$program_suffix" != NONE &&
  1841. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1842. # Double any \ or $. echo might interpret backslashes.
  1843. # By default was `s,x,x', remove it if useless.
  1844. cat <<\_ACEOF >conftest.sed
  1845. s/[\\$]/&&/g;s/;s,x,x,$//
  1846. _ACEOF
  1847. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1848. rm -f conftest.sed
  1849. # expand $ac_aux_dir to an absolute path
  1850. am_aux_dir=`cd $ac_aux_dir && pwd`
  1851. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1852. # Use eval to expand $SHELL
  1853. if eval "$MISSING --run true"; then
  1854. am_missing_run="$MISSING --run "
  1855. else
  1856. am_missing_run=
  1857. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1858. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1859. fi
  1860. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1861. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1862. if test -z "$MKDIR_P"; then
  1863. if test "${ac_cv_path_mkdir+set}" = set; then
  1864. echo $ECHO_N "(cached) $ECHO_C" >&6
  1865. else
  1866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1867. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1868. do
  1869. IFS=$as_save_IFS
  1870. test -z "$as_dir" && as_dir=.
  1871. for ac_prog in mkdir gmkdir; do
  1872. for ac_exec_ext in '' $ac_executable_extensions; do
  1873. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1874. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1875. 'mkdir (GNU coreutils) '* | \
  1876. 'mkdir (coreutils) '* | \
  1877. 'mkdir (fileutils) '4.1*)
  1878. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1879. break 3;;
  1880. esac
  1881. done
  1882. done
  1883. done
  1884. IFS=$as_save_IFS
  1885. fi
  1886. if test "${ac_cv_path_mkdir+set}" = set; then
  1887. MKDIR_P="$ac_cv_path_mkdir -p"
  1888. else
  1889. # As a last resort, use the slow shell script. Don't cache a
  1890. # value for MKDIR_P within a source directory, because that will
  1891. # break other packages using the cache if that directory is
  1892. # removed, or if the value is a relative name.
  1893. test -d ./--version && rmdir ./--version
  1894. MKDIR_P="$ac_install_sh -d"
  1895. fi
  1896. fi
  1897. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1898. echo "${ECHO_T}$MKDIR_P" >&6; }
  1899. mkdir_p="$MKDIR_P"
  1900. case $mkdir_p in
  1901. [\\/$]* | ?:[\\/]*) ;;
  1902. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1903. esac
  1904. for ac_prog in gawk mawk nawk awk
  1905. do
  1906. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1907. set dummy $ac_prog; ac_word=$2
  1908. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1909. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1910. if test "${ac_cv_prog_AWK+set}" = set; then
  1911. echo $ECHO_N "(cached) $ECHO_C" >&6
  1912. else
  1913. if test -n "$AWK"; then
  1914. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1915. else
  1916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1917. for as_dir in $PATH
  1918. do
  1919. IFS=$as_save_IFS
  1920. test -z "$as_dir" && as_dir=.
  1921. for ac_exec_ext in '' $ac_executable_extensions; do
  1922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1923. ac_cv_prog_AWK="$ac_prog"
  1924. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1925. break 2
  1926. fi
  1927. done
  1928. done
  1929. IFS=$as_save_IFS
  1930. fi
  1931. fi
  1932. AWK=$ac_cv_prog_AWK
  1933. if test -n "$AWK"; then
  1934. { echo "$as_me:$LINENO: result: $AWK" >&5
  1935. echo "${ECHO_T}$AWK" >&6; }
  1936. else
  1937. { echo "$as_me:$LINENO: result: no" >&5
  1938. echo "${ECHO_T}no" >&6; }
  1939. fi
  1940. test -n "$AWK" && break
  1941. done
  1942. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1943. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1944. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1945. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1946. echo $ECHO_N "(cached) $ECHO_C" >&6
  1947. else
  1948. cat >conftest.make <<\_ACEOF
  1949. SHELL = /bin/sh
  1950. all:
  1951. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1952. _ACEOF
  1953. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1954. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1955. *@@@%%%=?*=@@@%%%*)
  1956. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1957. *)
  1958. eval ac_cv_prog_make_${ac_make}_set=no;;
  1959. esac
  1960. rm -f conftest.make
  1961. fi
  1962. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1963. { echo "$as_me:$LINENO: result: yes" >&5
  1964. echo "${ECHO_T}yes" >&6; }
  1965. SET_MAKE=
  1966. else
  1967. { echo "$as_me:$LINENO: result: no" >&5
  1968. echo "${ECHO_T}no" >&6; }
  1969. SET_MAKE="MAKE=${MAKE-make}"
  1970. fi
  1971. rm -rf .tst 2>/dev/null
  1972. mkdir .tst 2>/dev/null
  1973. if test -d .tst; then
  1974. am__leading_dot=.
  1975. else
  1976. am__leading_dot=_
  1977. fi
  1978. rmdir .tst 2>/dev/null
  1979. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1980. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1981. # is not polluted with repeated "-I."
  1982. am__isrc=' -I$(srcdir)'
  1983. # test to see if srcdir already configured
  1984. if test -f $srcdir/config.status; then
  1985. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1986. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1987. { (exit 1); exit 1; }; }
  1988. fi
  1989. fi
  1990. # test whether we have cygpath
  1991. if test -z "$CYGPATH_W"; then
  1992. if (cygpath --version) >/dev/null 2>/dev/null; then
  1993. CYGPATH_W='cygpath -w'
  1994. else
  1995. CYGPATH_W=echo
  1996. fi
  1997. fi
  1998. # Define the identity of the package.
  1999. PACKAGE='file'
  2000. VERSION='5.04'
  2001. cat >>confdefs.h <<_ACEOF
  2002. #define PACKAGE "$PACKAGE"
  2003. _ACEOF
  2004. cat >>confdefs.h <<_ACEOF
  2005. #define VERSION "$VERSION"
  2006. _ACEOF
  2007. # Some tools Automake needs.
  2008. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2009. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2010. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2011. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2012. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2013. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2014. # Installed binaries are usually stripped using `strip' when the user
  2015. # run `make install-strip'. However `strip' might not be the right
  2016. # tool to use in cross-compilation environments, therefore Automake
  2017. # will honor the `STRIP' environment variable to overrule this program.
  2018. if test "$cross_compiling" != no; then
  2019. if test -n "$ac_tool_prefix"; then
  2020. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2021. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2022. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2023. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2024. if test "${ac_cv_prog_STRIP+set}" = set; then
  2025. echo $ECHO_N "(cached) $ECHO_C" >&6
  2026. else
  2027. if test -n "$STRIP"; then
  2028. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2029. else
  2030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2031. for as_dir in $PATH
  2032. do
  2033. IFS=$as_save_IFS
  2034. test -z "$as_dir" && as_dir=.
  2035. for ac_exec_ext in '' $ac_executable_extensions; do
  2036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2037. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2038. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2039. break 2
  2040. fi
  2041. done
  2042. done
  2043. IFS=$as_save_IFS
  2044. fi
  2045. fi
  2046. STRIP=$ac_cv_prog_STRIP
  2047. if test -n "$STRIP"; then
  2048. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2049. echo "${ECHO_T}$STRIP" >&6; }
  2050. else
  2051. { echo "$as_me:$LINENO: result: no" >&5
  2052. echo "${ECHO_T}no" >&6; }
  2053. fi
  2054. fi
  2055. if test -z "$ac_cv_prog_STRIP"; then
  2056. ac_ct_STRIP=$STRIP
  2057. # Extract the first word of "strip", so it can be a program name with args.
  2058. set dummy strip; ac_word=$2
  2059. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2060. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2061. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2062. echo $ECHO_N "(cached) $ECHO_C" >&6
  2063. else
  2064. if test -n "$ac_ct_STRIP"; then
  2065. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2066. else
  2067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2068. for as_dir in $PATH
  2069. do
  2070. IFS=$as_save_IFS
  2071. test -z "$as_dir" && as_dir=.
  2072. for ac_exec_ext in '' $ac_executable_extensions; do
  2073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2074. ac_cv_prog_ac_ct_STRIP="strip"
  2075. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2076. break 2
  2077. fi
  2078. done
  2079. done
  2080. IFS=$as_save_IFS
  2081. fi
  2082. fi
  2083. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2084. if test -n "$ac_ct_STRIP"; then
  2085. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2086. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2087. else
  2088. { echo "$as_me:$LINENO: result: no" >&5
  2089. echo "${ECHO_T}no" >&6; }
  2090. fi
  2091. if test "x$ac_ct_STRIP" = x; then
  2092. STRIP=":"
  2093. else
  2094. case $cross_compiling:$ac_tool_warned in
  2095. yes:)
  2096. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2097. whose name does not start with the host triplet. If you think this
  2098. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2099. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2100. whose name does not start with the host triplet. If you think this
  2101. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2102. ac_tool_warned=yes ;;
  2103. esac
  2104. STRIP=$ac_ct_STRIP
  2105. fi
  2106. else
  2107. STRIP="$ac_cv_prog_STRIP"
  2108. fi
  2109. fi
  2110. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2111. # We need awk for the "check" target. The system "awk" is bad on
  2112. # some platforms.
  2113. # Always define AMTAR for backward compatibility.
  2114. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2115. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2116. ac_config_headers="$ac_config_headers config.h"
  2117. #AC_CONFIG_MACRO_DIR([m4])
  2118. { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  2119. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  2120. # Check whether --enable-elf was given.
  2121. if test "${enable_elf+set}" = set; then
  2122. enableval=$enable_elf; if test "${enableval}" = yes; then
  2123. { echo "$as_me:$LINENO: result: yes" >&5
  2124. echo "${ECHO_T}yes" >&6; }
  2125. cat >>confdefs.h <<\_ACEOF
  2126. #define BUILTIN_ELF 1
  2127. _ACEOF
  2128. else
  2129. { echo "$as_me:$LINENO: result: no" >&5
  2130. echo "${ECHO_T}no" >&6; }
  2131. fi
  2132. else
  2133. # enable by default
  2134. { echo "$as_me:$LINENO: result: yes" >&5
  2135. echo "${ECHO_T}yes" >&6; }
  2136. cat >>confdefs.h <<\_ACEOF
  2137. #define BUILTIN_ELF 1
  2138. _ACEOF
  2139. fi
  2140. { echo "$as_me:$LINENO: checking for ELF core file support" >&5
  2141. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  2142. # Check whether --enable-elf-core was given.
  2143. if test "${enable_elf_core+set}" = set; then
  2144. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2145. { echo "$as_me:$LINENO: result: yes" >&5
  2146. echo "${ECHO_T}yes" >&6; }
  2147. cat >>confdefs.h <<\_ACEOF
  2148. #define ELFCORE 1
  2149. _ACEOF
  2150. else
  2151. { echo "$as_me:$LINENO: result: no" >&5
  2152. echo "${ECHO_T}no" >&6; }
  2153. fi
  2154. else
  2155. # enable by default
  2156. { echo "$as_me:$LINENO: result: yes" >&5
  2157. echo "${ECHO_T}yes" >&6; }
  2158. cat >>confdefs.h <<\_ACEOF
  2159. #define ELFCORE 1
  2160. _ACEOF
  2161. fi
  2162. { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  2163. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  2164. # Check whether --enable-fsect-man5 was given.
  2165. if test "${enable_fsect_man5+set}" = set; then
  2166. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2167. { echo "$as_me:$LINENO: result: yes" >&5
  2168. echo "${ECHO_T}yes" >&6; }
  2169. fsect=5
  2170. else
  2171. { echo "$as_me:$LINENO: result: no" >&5
  2172. echo "${ECHO_T}no" >&6; }
  2173. fsect=4
  2174. fi
  2175. else
  2176. # disable by default
  2177. { echo "$as_me:$LINENO: result: no" >&5
  2178. echo "${ECHO_T}no" >&6; }
  2179. fsect=4
  2180. fi
  2181. pkgdatadir='$(datadir)/misc'
  2182. if test x$fsect = x5; then
  2183. FSECT5_TRUE=
  2184. FSECT5_FALSE='#'
  2185. else
  2186. FSECT5_TRUE='#'
  2187. FSECT5_FALSE=
  2188. fi
  2189. cat >>confdefs.h <<\_ACEOF
  2190. #define _GNU_SOURCE 1
  2191. _ACEOF
  2192. ac_ext=c
  2193. ac_cpp='$CPP $CPPFLAGS'
  2194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2197. if test -n "$ac_tool_prefix"; then
  2198. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2199. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2200. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2202. if test "${ac_cv_prog_CC+set}" = set; then
  2203. echo $ECHO_N "(cached) $ECHO_C" >&6
  2204. else
  2205. if test -n "$CC"; then
  2206. ac_cv_prog_CC="$CC" # Let the user override the test.
  2207. else
  2208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2209. for as_dir in $PATH
  2210. do
  2211. IFS=$as_save_IFS
  2212. test -z "$as_dir" && as_dir=.
  2213. for ac_exec_ext in '' $ac_executable_extensions; do
  2214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2215. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2217. break 2
  2218. fi
  2219. done
  2220. done
  2221. IFS=$as_save_IFS
  2222. fi
  2223. fi
  2224. CC=$ac_cv_prog_CC
  2225. if test -n "$CC"; then
  2226. { echo "$as_me:$LINENO: result: $CC" >&5
  2227. echo "${ECHO_T}$CC" >&6; }
  2228. else
  2229. { echo "$as_me:$LINENO: result: no" >&5
  2230. echo "${ECHO_T}no" >&6; }
  2231. fi
  2232. fi
  2233. if test -z "$ac_cv_prog_CC"; then
  2234. ac_ct_CC=$CC
  2235. # Extract the first word of "gcc", so it can be a program name with args.
  2236. set dummy gcc; ac_word=$2
  2237. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2239. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2240. echo $ECHO_N "(cached) $ECHO_C" >&6
  2241. else
  2242. if test -n "$ac_ct_CC"; then
  2243. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2244. else
  2245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2246. for as_dir in $PATH
  2247. do
  2248. IFS=$as_save_IFS
  2249. test -z "$as_dir" && as_dir=.
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2252. ac_cv_prog_ac_ct_CC="gcc"
  2253. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2254. break 2
  2255. fi
  2256. done
  2257. done
  2258. IFS=$as_save_IFS
  2259. fi
  2260. fi
  2261. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2262. if test -n "$ac_ct_CC"; then
  2263. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2264. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2265. else
  2266. { echo "$as_me:$LINENO: result: no" >&5
  2267. echo "${ECHO_T}no" >&6; }
  2268. fi
  2269. if test "x$ac_ct_CC" = x; then
  2270. CC=""
  2271. else
  2272. case $cross_compiling:$ac_tool_warned in
  2273. yes:)
  2274. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2275. whose name does not start with the host triplet. If you think this
  2276. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2277. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2278. whose name does not start with the host triplet. If you think this
  2279. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2280. ac_tool_warned=yes ;;
  2281. esac
  2282. CC=$ac_ct_CC
  2283. fi
  2284. else
  2285. CC="$ac_cv_prog_CC"
  2286. fi
  2287. if test -z "$CC"; then
  2288. if test -n "$ac_tool_prefix"; then
  2289. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2290. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2291. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2292. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2293. if test "${ac_cv_prog_CC+set}" = set; then
  2294. echo $ECHO_N "(cached) $ECHO_C" >&6
  2295. else
  2296. if test -n "$CC"; then
  2297. ac_cv_prog_CC="$CC" # Let the user override the test.
  2298. else
  2299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2300. for as_dir in $PATH
  2301. do
  2302. IFS=$as_save_IFS
  2303. test -z "$as_dir" && as_dir=.
  2304. for ac_exec_ext in '' $ac_executable_extensions; do
  2305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2306. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2307. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2308. break 2
  2309. fi
  2310. done
  2311. done
  2312. IFS=$as_save_IFS
  2313. fi
  2314. fi
  2315. CC=$ac_cv_prog_CC
  2316. if test -n "$CC"; then
  2317. { echo "$as_me:$LINENO: result: $CC" >&5
  2318. echo "${ECHO_T}$CC" >&6; }
  2319. else
  2320. { echo "$as_me:$LINENO: result: no" >&5
  2321. echo "${ECHO_T}no" >&6; }
  2322. fi
  2323. fi
  2324. fi
  2325. if test -z "$CC"; then
  2326. # Extract the first word of "cc", so it can be a program name with args.
  2327. set dummy cc; ac_word=$2
  2328. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2329. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2330. if test "${ac_cv_prog_CC+set}" = set; then
  2331. echo $ECHO_N "(cached) $ECHO_C" >&6
  2332. else
  2333. if test -n "$CC"; then
  2334. ac_cv_prog_CC="$CC" # Let the user override the test.
  2335. else
  2336. ac_prog_rejected=no
  2337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2338. for as_dir in $PATH
  2339. do
  2340. IFS=$as_save_IFS
  2341. test -z "$as_dir" && as_dir=.
  2342. for ac_exec_ext in '' $ac_executable_extensions; do
  2343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2344. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2345. ac_prog_rejected=yes
  2346. continue
  2347. fi
  2348. ac_cv_prog_CC="cc"
  2349. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. if test $ac_prog_rejected = yes; then
  2356. # We found a bogon in the path, so make sure we never use it.
  2357. set dummy $ac_cv_prog_CC
  2358. shift
  2359. if test $# != 0; then
  2360. # We chose a different compiler from the bogus one.
  2361. # However, it has the same basename, so the bogon will be chosen
  2362. # first if we set CC to just the basename; use the full file name.
  2363. shift
  2364. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2365. fi
  2366. fi
  2367. fi
  2368. fi
  2369. CC=$ac_cv_prog_CC
  2370. if test -n "$CC"; then
  2371. { echo "$as_me:$LINENO: result: $CC" >&5
  2372. echo "${ECHO_T}$CC" >&6; }
  2373. else
  2374. { echo "$as_me:$LINENO: result: no" >&5
  2375. echo "${ECHO_T}no" >&6; }
  2376. fi
  2377. fi
  2378. if test -z "$CC"; then
  2379. if test -n "$ac_tool_prefix"; then
  2380. for ac_prog in cl.exe
  2381. do
  2382. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2383. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2384. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2385. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2386. if test "${ac_cv_prog_CC+set}" = set; then
  2387. echo $ECHO_N "(cached) $ECHO_C" >&6
  2388. else
  2389. if test -n "$CC"; then
  2390. ac_cv_prog_CC="$CC" # Let the user override the test.
  2391. else
  2392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2393. for as_dir in $PATH
  2394. do
  2395. IFS=$as_save_IFS
  2396. test -z "$as_dir" && as_dir=.
  2397. for ac_exec_ext in '' $ac_executable_extensions; do
  2398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2399. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2401. break 2
  2402. fi
  2403. done
  2404. done
  2405. IFS=$as_save_IFS
  2406. fi
  2407. fi
  2408. CC=$ac_cv_prog_CC
  2409. if test -n "$CC"; then
  2410. { echo "$as_me:$LINENO: result: $CC" >&5
  2411. echo "${ECHO_T}$CC" >&6; }
  2412. else
  2413. { echo "$as_me:$LINENO: result: no" >&5
  2414. echo "${ECHO_T}no" >&6; }
  2415. fi
  2416. test -n "$CC" && break
  2417. done
  2418. fi
  2419. if test -z "$CC"; then
  2420. ac_ct_CC=$CC
  2421. for ac_prog in cl.exe
  2422. do
  2423. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2424. set dummy $ac_prog; ac_word=$2
  2425. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2426. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2427. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2428. echo $ECHO_N "(cached) $ECHO_C" >&6
  2429. else
  2430. if test -n "$ac_ct_CC"; then
  2431. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2440. ac_cv_prog_ac_ct_CC="$ac_prog"
  2441. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2442. break 2
  2443. fi
  2444. done
  2445. done
  2446. IFS=$as_save_IFS
  2447. fi
  2448. fi
  2449. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2450. if test -n "$ac_ct_CC"; then
  2451. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2452. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2453. else
  2454. { echo "$as_me:$LINENO: result: no" >&5
  2455. echo "${ECHO_T}no" >&6; }
  2456. fi
  2457. test -n "$ac_ct_CC" && break
  2458. done
  2459. if test "x$ac_ct_CC" = x; then
  2460. CC=""
  2461. else
  2462. case $cross_compiling:$ac_tool_warned in
  2463. yes:)
  2464. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2465. whose name does not start with the host triplet. If you think this
  2466. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2467. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2468. whose name does not start with the host triplet. If you think this
  2469. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2470. ac_tool_warned=yes ;;
  2471. esac
  2472. CC=$ac_ct_CC
  2473. fi
  2474. fi
  2475. fi
  2476. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2477. See \`config.log' for more details." >&5
  2478. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2479. See \`config.log' for more details." >&2;}
  2480. { (exit 1); exit 1; }; }
  2481. # Provide some information about the compiler.
  2482. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2483. ac_compiler=`set X $ac_compile; echo $2`
  2484. { (ac_try="$ac_compiler --version >&5"
  2485. case "(($ac_try" in
  2486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2487. *) ac_try_echo=$ac_try;;
  2488. esac
  2489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2490. (eval "$ac_compiler --version >&5") 2>&5
  2491. ac_status=$?
  2492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2493. (exit $ac_status); }
  2494. { (ac_try="$ac_compiler -v >&5"
  2495. case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2500. (eval "$ac_compiler -v >&5") 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }
  2504. { (ac_try="$ac_compiler -V >&5"
  2505. case "(($ac_try" in
  2506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2507. *) ac_try_echo=$ac_try;;
  2508. esac
  2509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2510. (eval "$ac_compiler -V >&5") 2>&5
  2511. ac_status=$?
  2512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2513. (exit $ac_status); }
  2514. cat >conftest.$ac_ext <<_ACEOF
  2515. /* confdefs.h. */
  2516. _ACEOF
  2517. cat confdefs.h >>conftest.$ac_ext
  2518. cat >>conftest.$ac_ext <<_ACEOF
  2519. /* end confdefs.h. */
  2520. int
  2521. main ()
  2522. {
  2523. ;
  2524. return 0;
  2525. }
  2526. _ACEOF
  2527. ac_clean_files_save=$ac_clean_files
  2528. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2529. # Try to create an executable without -o first, disregard a.out.
  2530. # It will help us diagnose broken compilers, and finding out an intuition
  2531. # of exeext.
  2532. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2533. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2534. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2535. #
  2536. # List of possible output files, starting from the most likely.
  2537. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2538. # only as a last resort. b.out is created by i960 compilers.
  2539. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2540. #
  2541. # The IRIX 6 linker writes into existing files which may not be
  2542. # executable, retaining their permissions. Remove them first so a
  2543. # subsequent execution test works.
  2544. ac_rmfiles=
  2545. for ac_file in $ac_files
  2546. do
  2547. case $ac_file in
  2548. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2549. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2550. esac
  2551. done
  2552. rm -f $ac_rmfiles
  2553. if { (ac_try="$ac_link_default"
  2554. case "(($ac_try" in
  2555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2556. *) ac_try_echo=$ac_try;;
  2557. esac
  2558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2559. (eval "$ac_link_default") 2>&5
  2560. ac_status=$?
  2561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2562. (exit $ac_status); }; then
  2563. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2564. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2565. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2566. # so that the user can short-circuit this test for compilers unknown to
  2567. # Autoconf.
  2568. for ac_file in $ac_files ''
  2569. do
  2570. test -f "$ac_file" || continue
  2571. case $ac_file in
  2572. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2573. ;;
  2574. [ab].out )
  2575. # We found the default executable, but exeext='' is most
  2576. # certainly right.
  2577. break;;
  2578. *.* )
  2579. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2580. then :; else
  2581. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2582. fi
  2583. # We set ac_cv_exeext here because the later test for it is not
  2584. # safe: cross compilers may not add the suffix if given an `-o'
  2585. # argument, so we may need to know it at that point already.
  2586. # Even if this section looks crufty: it has the advantage of
  2587. # actually working.
  2588. break;;
  2589. * )
  2590. break;;
  2591. esac
  2592. done
  2593. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2594. else
  2595. ac_file=''
  2596. fi
  2597. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2598. echo "${ECHO_T}$ac_file" >&6; }
  2599. if test -z "$ac_file"; then
  2600. echo "$as_me: failed program was:" >&5
  2601. sed 's/^/| /' conftest.$ac_ext >&5
  2602. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2603. See \`config.log' for more details." >&5
  2604. echo "$as_me: error: C compiler cannot create executables
  2605. See \`config.log' for more details." >&2;}
  2606. { (exit 77); exit 77; }; }
  2607. fi
  2608. ac_exeext=$ac_cv_exeext
  2609. # Check that the compiler produces executables we can run. If not, either
  2610. # the compiler is broken, or we cross compile.
  2611. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2612. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2613. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2614. # If not cross compiling, check that we can run a simple program.
  2615. if test "$cross_compiling" != yes; then
  2616. if { ac_try='./$ac_file'
  2617. { (case "(($ac_try" in
  2618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2619. *) ac_try_echo=$ac_try;;
  2620. esac
  2621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2622. (eval "$ac_try") 2>&5
  2623. ac_status=$?
  2624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2625. (exit $ac_status); }; }; then
  2626. cross_compiling=no
  2627. else
  2628. if test "$cross_compiling" = maybe; then
  2629. cross_compiling=yes
  2630. else
  2631. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2632. If you meant to cross compile, use \`--host'.
  2633. See \`config.log' for more details." >&5
  2634. echo "$as_me: error: cannot run C compiled programs.
  2635. If you meant to cross compile, use \`--host'.
  2636. See \`config.log' for more details." >&2;}
  2637. { (exit 1); exit 1; }; }
  2638. fi
  2639. fi
  2640. fi
  2641. { echo "$as_me:$LINENO: result: yes" >&5
  2642. echo "${ECHO_T}yes" >&6; }
  2643. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2644. ac_clean_files=$ac_clean_files_save
  2645. # Check that the compiler produces executables we can run. If not, either
  2646. # the compiler is broken, or we cross compile.
  2647. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2648. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2649. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2650. echo "${ECHO_T}$cross_compiling" >&6; }
  2651. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2652. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2653. if { (ac_try="$ac_link"
  2654. case "(($ac_try" in
  2655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2656. *) ac_try_echo=$ac_try;;
  2657. esac
  2658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2659. (eval "$ac_link") 2>&5
  2660. ac_status=$?
  2661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); }; then
  2663. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2664. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2665. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2666. # `rm'.
  2667. for ac_file in conftest.exe conftest conftest.*; do
  2668. test -f "$ac_file" || continue
  2669. case $ac_file in
  2670. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2671. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2672. break;;
  2673. * ) break;;
  2674. esac
  2675. done
  2676. else
  2677. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2678. See \`config.log' for more details." >&5
  2679. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2680. See \`config.log' for more details." >&2;}
  2681. { (exit 1); exit 1; }; }
  2682. fi
  2683. rm -f conftest$ac_cv_exeext
  2684. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2685. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2686. rm -f conftest.$ac_ext
  2687. EXEEXT=$ac_cv_exeext
  2688. ac_exeext=$EXEEXT
  2689. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2690. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2691. if test "${ac_cv_objext+set}" = set; then
  2692. echo $ECHO_N "(cached) $ECHO_C" >&6
  2693. else
  2694. cat >conftest.$ac_ext <<_ACEOF
  2695. /* confdefs.h. */
  2696. _ACEOF
  2697. cat confdefs.h >>conftest.$ac_ext
  2698. cat >>conftest.$ac_ext <<_ACEOF
  2699. /* end confdefs.h. */
  2700. int
  2701. main ()
  2702. {
  2703. ;
  2704. return 0;
  2705. }
  2706. _ACEOF
  2707. rm -f conftest.o conftest.obj
  2708. if { (ac_try="$ac_compile"
  2709. case "(($ac_try" in
  2710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2711. *) ac_try_echo=$ac_try;;
  2712. esac
  2713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2714. (eval "$ac_compile") 2>&5
  2715. ac_status=$?
  2716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2717. (exit $ac_status); }; then
  2718. for ac_file in conftest.o conftest.obj conftest.*; do
  2719. test -f "$ac_file" || continue;
  2720. case $ac_file in
  2721. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2722. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2723. break;;
  2724. esac
  2725. done
  2726. else
  2727. echo "$as_me: failed program was:" >&5
  2728. sed 's/^/| /' conftest.$ac_ext >&5
  2729. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2730. See \`config.log' for more details." >&5
  2731. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2732. See \`config.log' for more details." >&2;}
  2733. { (exit 1); exit 1; }; }
  2734. fi
  2735. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2736. fi
  2737. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2738. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2739. OBJEXT=$ac_cv_objext
  2740. ac_objext=$OBJEXT
  2741. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2742. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2743. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2744. echo $ECHO_N "(cached) $ECHO_C" >&6
  2745. else
  2746. cat >conftest.$ac_ext <<_ACEOF
  2747. /* confdefs.h. */
  2748. _ACEOF
  2749. cat confdefs.h >>conftest.$ac_ext
  2750. cat >>conftest.$ac_ext <<_ACEOF
  2751. /* end confdefs.h. */
  2752. int
  2753. main ()
  2754. {
  2755. #ifndef __GNUC__
  2756. choke me
  2757. #endif
  2758. ;
  2759. return 0;
  2760. }
  2761. _ACEOF
  2762. rm -f conftest.$ac_objext
  2763. if { (ac_try="$ac_compile"
  2764. case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2769. (eval "$ac_compile") 2>conftest.er1
  2770. ac_status=$?
  2771. grep -v '^ *+' conftest.er1 >conftest.err
  2772. rm -f conftest.er1
  2773. cat conftest.err >&5
  2774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2775. (exit $ac_status); } && {
  2776. test -z "$ac_c_werror_flag" ||
  2777. test ! -s conftest.err
  2778. } && test -s conftest.$ac_objext; then
  2779. ac_compiler_gnu=yes
  2780. else
  2781. echo "$as_me: failed program was:" >&5
  2782. sed 's/^/| /' conftest.$ac_ext >&5
  2783. ac_compiler_gnu=no
  2784. fi
  2785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2786. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2787. fi
  2788. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2789. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2790. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2791. ac_test_CFLAGS=${CFLAGS+set}
  2792. ac_save_CFLAGS=$CFLAGS
  2793. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2794. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2795. if test "${ac_cv_prog_cc_g+set}" = set; then
  2796. echo $ECHO_N "(cached) $ECHO_C" >&6
  2797. else
  2798. ac_save_c_werror_flag=$ac_c_werror_flag
  2799. ac_c_werror_flag=yes
  2800. ac_cv_prog_cc_g=no
  2801. CFLAGS="-g"
  2802. cat >conftest.$ac_ext <<_ACEOF
  2803. /* confdefs.h. */
  2804. _ACEOF
  2805. cat confdefs.h >>conftest.$ac_ext
  2806. cat >>conftest.$ac_ext <<_ACEOF
  2807. /* end confdefs.h. */
  2808. int
  2809. main ()
  2810. {
  2811. ;
  2812. return 0;
  2813. }
  2814. _ACEOF
  2815. rm -f conftest.$ac_objext
  2816. if { (ac_try="$ac_compile"
  2817. case "(($ac_try" in
  2818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2819. *) ac_try_echo=$ac_try;;
  2820. esac
  2821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2822. (eval "$ac_compile") 2>conftest.er1
  2823. ac_status=$?
  2824. grep -v '^ *+' conftest.er1 >conftest.err
  2825. rm -f conftest.er1
  2826. cat conftest.err >&5
  2827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828. (exit $ac_status); } && {
  2829. test -z "$ac_c_werror_flag" ||
  2830. test ! -s conftest.err
  2831. } && test -s conftest.$ac_objext; then
  2832. ac_cv_prog_cc_g=yes
  2833. else
  2834. echo "$as_me: failed program was:" >&5
  2835. sed 's/^/| /' conftest.$ac_ext >&5
  2836. CFLAGS=""
  2837. cat >conftest.$ac_ext <<_ACEOF
  2838. /* confdefs.h. */
  2839. _ACEOF
  2840. cat confdefs.h >>conftest.$ac_ext
  2841. cat >>conftest.$ac_ext <<_ACEOF
  2842. /* end confdefs.h. */
  2843. int
  2844. main ()
  2845. {
  2846. ;
  2847. return 0;
  2848. }
  2849. _ACEOF
  2850. rm -f conftest.$ac_objext
  2851. if { (ac_try="$ac_compile"
  2852. case "(($ac_try" in
  2853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854. *) ac_try_echo=$ac_try;;
  2855. esac
  2856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2857. (eval "$ac_compile") 2>conftest.er1
  2858. ac_status=$?
  2859. grep -v '^ *+' conftest.er1 >conftest.err
  2860. rm -f conftest.er1
  2861. cat conftest.err >&5
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); } && {
  2864. test -z "$ac_c_werror_flag" ||
  2865. test ! -s conftest.err
  2866. } && test -s conftest.$ac_objext; then
  2867. :
  2868. else
  2869. echo "$as_me: failed program was:" >&5
  2870. sed 's/^/| /' conftest.$ac_ext >&5
  2871. ac_c_werror_flag=$ac_save_c_werror_flag
  2872. CFLAGS="-g"
  2873. cat >conftest.$ac_ext <<_ACEOF
  2874. /* confdefs.h. */
  2875. _ACEOF
  2876. cat confdefs.h >>conftest.$ac_ext
  2877. cat >>conftest.$ac_ext <<_ACEOF
  2878. /* end confdefs.h. */
  2879. int
  2880. main ()
  2881. {
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. rm -f conftest.$ac_objext
  2887. if { (ac_try="$ac_compile"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2893. (eval "$ac_compile") 2>conftest.er1
  2894. ac_status=$?
  2895. grep -v '^ *+' conftest.er1 >conftest.err
  2896. rm -f conftest.er1
  2897. cat conftest.err >&5
  2898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. (exit $ac_status); } && {
  2900. test -z "$ac_c_werror_flag" ||
  2901. test ! -s conftest.err
  2902. } && test -s conftest.$ac_objext; then
  2903. ac_cv_prog_cc_g=yes
  2904. else
  2905. echo "$as_me: failed program was:" >&5
  2906. sed 's/^/| /' conftest.$ac_ext >&5
  2907. fi
  2908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2909. fi
  2910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2911. fi
  2912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2913. ac_c_werror_flag=$ac_save_c_werror_flag
  2914. fi
  2915. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2916. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2917. if test "$ac_test_CFLAGS" = set; then
  2918. CFLAGS=$ac_save_CFLAGS
  2919. elif test $ac_cv_prog_cc_g = yes; then
  2920. if test "$GCC" = yes; then
  2921. CFLAGS="-g -O2"
  2922. else
  2923. CFLAGS="-g"
  2924. fi
  2925. else
  2926. if test "$GCC" = yes; then
  2927. CFLAGS="-O2"
  2928. else
  2929. CFLAGS=
  2930. fi
  2931. fi
  2932. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2933. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2934. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2935. echo $ECHO_N "(cached) $ECHO_C" >&6
  2936. else
  2937. ac_cv_prog_cc_c89=no
  2938. ac_save_CC=$CC
  2939. cat >conftest.$ac_ext <<_ACEOF
  2940. /* confdefs.h. */
  2941. _ACEOF
  2942. cat confdefs.h >>conftest.$ac_ext
  2943. cat >>conftest.$ac_ext <<_ACEOF
  2944. /* end confdefs.h. */
  2945. #include <stdarg.h>
  2946. #include <stdio.h>
  2947. #include <sys/types.h>
  2948. #include <sys/stat.h>
  2949. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2950. struct buf { int x; };
  2951. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2952. static char *e (p, i)
  2953. char **p;
  2954. int i;
  2955. {
  2956. return p[i];
  2957. }
  2958. static char *f (char * (*g) (char **, int), char **p, ...)
  2959. {
  2960. char *s;
  2961. va_list v;
  2962. va_start (v,p);
  2963. s = g (p, va_arg (v,int));
  2964. va_end (v);
  2965. return s;
  2966. }
  2967. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2968. function prototypes and stuff, but not '\xHH' hex character constants.
  2969. These don't provoke an error unfortunately, instead are silently treated
  2970. as 'x'. The following induces an error, until -std is added to get
  2971. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2972. array size at least. It's necessary to write '\x00'==0 to get something
  2973. that's true only with -std. */
  2974. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2975. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2976. inside strings and character constants. */
  2977. #define FOO(x) 'x'
  2978. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2979. int test (int i, double x);
  2980. struct s1 {int (*f) (int a);};
  2981. struct s2 {int (*f) (double a);};
  2982. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2983. int argc;
  2984. char **argv;
  2985. int
  2986. main ()
  2987. {
  2988. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2989. ;
  2990. return 0;
  2991. }
  2992. _ACEOF
  2993. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2994. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2995. do
  2996. CC="$ac_save_CC $ac_arg"
  2997. rm -f conftest.$ac_objext
  2998. if { (ac_try="$ac_compile"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3004. (eval "$ac_compile") 2>conftest.er1
  3005. ac_status=$?
  3006. grep -v '^ *+' conftest.er1 >conftest.err
  3007. rm -f conftest.er1
  3008. cat conftest.err >&5
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); } && {
  3011. test -z "$ac_c_werror_flag" ||
  3012. test ! -s conftest.err
  3013. } && test -s conftest.$ac_objext; then
  3014. ac_cv_prog_cc_c89=$ac_arg
  3015. else
  3016. echo "$as_me: failed program was:" >&5
  3017. sed 's/^/| /' conftest.$ac_ext >&5
  3018. fi
  3019. rm -f core conftest.err conftest.$ac_objext
  3020. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3021. done
  3022. rm -f conftest.$ac_ext
  3023. CC=$ac_save_CC
  3024. fi
  3025. # AC_CACHE_VAL
  3026. case "x$ac_cv_prog_cc_c89" in
  3027. x)
  3028. { echo "$as_me:$LINENO: result: none needed" >&5
  3029. echo "${ECHO_T}none needed" >&6; } ;;
  3030. xno)
  3031. { echo "$as_me:$LINENO: result: unsupported" >&5
  3032. echo "${ECHO_T}unsupported" >&6; } ;;
  3033. *)
  3034. CC="$CC $ac_cv_prog_cc_c89"
  3035. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3036. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3037. esac
  3038. ac_ext=c
  3039. ac_cpp='$CPP $CPPFLAGS'
  3040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3043. DEPDIR="${am__leading_dot}deps"
  3044. ac_config_commands="$ac_config_commands depfiles"
  3045. am_make=${MAKE-make}
  3046. cat > confinc << 'END'
  3047. am__doit:
  3048. @echo done
  3049. .PHONY: am__doit
  3050. END
  3051. # If we don't find an include directive, just comment out the code.
  3052. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3053. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3054. am__include="#"
  3055. am__quote=
  3056. _am_result=none
  3057. # First try GNU make style include.
  3058. echo "include confinc" > confmf
  3059. # We grep out `Entering directory' and `Leaving directory'
  3060. # messages which can occur if `w' ends up in MAKEFLAGS.
  3061. # In particular we don't look at `^make:' because GNU make might
  3062. # be invoked under some other name (usually "gmake"), in which
  3063. # case it prints its new name instead of `make'.
  3064. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3065. am__include=include
  3066. am__quote=
  3067. _am_result=GNU
  3068. fi
  3069. # Now try BSD make style include.
  3070. if test "$am__include" = "#"; then
  3071. echo '.include "confinc"' > confmf
  3072. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3073. am__include=.include
  3074. am__quote="\""
  3075. _am_result=BSD
  3076. fi
  3077. fi
  3078. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3079. echo "${ECHO_T}$_am_result" >&6; }
  3080. rm -f confinc confmf
  3081. # Check whether --enable-dependency-tracking was given.
  3082. if test "${enable_dependency_tracking+set}" = set; then
  3083. enableval=$enable_dependency_tracking;
  3084. fi
  3085. if test "x$enable_dependency_tracking" != xno; then
  3086. am_depcomp="$ac_aux_dir/depcomp"
  3087. AMDEPBACKSLASH='\'
  3088. fi
  3089. if test "x$enable_dependency_tracking" != xno; then
  3090. AMDEP_TRUE=
  3091. AMDEP_FALSE='#'
  3092. else
  3093. AMDEP_TRUE='#'
  3094. AMDEP_FALSE=
  3095. fi
  3096. depcc="$CC" am_compiler_list=
  3097. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3098. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3099. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3100. echo $ECHO_N "(cached) $ECHO_C" >&6
  3101. else
  3102. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3103. # We make a subdir and do the tests there. Otherwise we can end up
  3104. # making bogus files that we don't know about and never remove. For
  3105. # instance it was reported that on HP-UX the gcc test will end up
  3106. # making a dummy file named `D' -- because `-MD' means `put the output
  3107. # in D'.
  3108. mkdir conftest.dir
  3109. # Copy depcomp to subdir because otherwise we won't find it if we're
  3110. # using a relative directory.
  3111. cp "$am_depcomp" conftest.dir
  3112. cd conftest.dir
  3113. # We will build objects and dependencies in a subdirectory because
  3114. # it helps to detect inapplicable dependency modes. For instance
  3115. # both Tru64's cc and ICC support -MD to output dependencies as a
  3116. # side effect of compilation, but ICC will put the dependencies in
  3117. # the current directory while Tru64 will put them in the object
  3118. # directory.
  3119. mkdir sub
  3120. am_cv_CC_dependencies_compiler_type=none
  3121. if test "$am_compiler_list" = ""; then
  3122. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3123. fi
  3124. for depmode in $am_compiler_list; do
  3125. # Setup a source with many dependencies, because some compilers
  3126. # like to wrap large dependency lists on column 80 (with \), and
  3127. # we should not choose a depcomp mode which is confused by this.
  3128. #
  3129. # We need to recreate these files for each test, as the compiler may
  3130. # overwrite some of them when testing with obscure command lines.
  3131. # This happens at least with the AIX C compiler.
  3132. : > sub/conftest.c
  3133. for i in 1 2 3 4 5 6; do
  3134. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3135. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3136. # Solaris 8's {/usr,}/bin/sh.
  3137. touch sub/conftst$i.h
  3138. done
  3139. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3140. case $depmode in
  3141. nosideeffect)
  3142. # after this tag, mechanisms are not by side-effect, so they'll
  3143. # only be used when explicitly requested
  3144. if test "x$enable_dependency_tracking" = xyes; then
  3145. continue
  3146. else
  3147. break
  3148. fi
  3149. ;;
  3150. none) break ;;
  3151. esac
  3152. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3153. # mode. It turns out that the SunPro C++ compiler does not properly
  3154. # handle `-M -o', and we need to detect this.
  3155. if depmode=$depmode \
  3156. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3157. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3158. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3159. >/dev/null 2>conftest.err &&
  3160. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3161. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3162. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3163. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3164. # icc doesn't choke on unknown options, it will just issue warnings
  3165. # or remarks (even with -Werror). So we grep stderr for any message
  3166. # that says an option was ignored or not supported.
  3167. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3168. # icc: Command line warning: ignoring option '-M'; no argument required
  3169. # The diagnosis changed in icc 8.0:
  3170. # icc: Command line remark: option '-MP' not supported
  3171. if (grep 'ignoring option' conftest.err ||
  3172. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3173. am_cv_CC_dependencies_compiler_type=$depmode
  3174. break
  3175. fi
  3176. fi
  3177. done
  3178. cd ..
  3179. rm -rf conftest.dir
  3180. else
  3181. am_cv_CC_dependencies_compiler_type=none
  3182. fi
  3183. fi
  3184. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3185. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3186. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3187. if
  3188. test "x$enable_dependency_tracking" != xno \
  3189. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3190. am__fastdepCC_TRUE=
  3191. am__fastdepCC_FALSE='#'
  3192. else
  3193. am__fastdepCC_TRUE='#'
  3194. am__fastdepCC_FALSE=
  3195. fi
  3196. if test "x$CC" != xcc; then
  3197. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3198. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3199. else
  3200. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3201. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3202. fi
  3203. set dummy $CC; ac_cc=`echo $2 |
  3204. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3205. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3206. echo $ECHO_N "(cached) $ECHO_C" >&6
  3207. else
  3208. cat >conftest.$ac_ext <<_ACEOF
  3209. /* confdefs.h. */
  3210. _ACEOF
  3211. cat confdefs.h >>conftest.$ac_ext
  3212. cat >>conftest.$ac_ext <<_ACEOF
  3213. /* end confdefs.h. */
  3214. int
  3215. main ()
  3216. {
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. # Make sure it works both with $CC and with simple cc.
  3222. # We do the test twice because some compilers refuse to overwrite an
  3223. # existing .o file with -o, though they will create one.
  3224. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3225. rm -f conftest2.*
  3226. if { (case "(($ac_try" in
  3227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3228. *) ac_try_echo=$ac_try;;
  3229. esac
  3230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3231. (eval "$ac_try") 2>&5
  3232. ac_status=$?
  3233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3234. (exit $ac_status); } &&
  3235. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3240. (eval "$ac_try") 2>&5
  3241. ac_status=$?
  3242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); };
  3244. then
  3245. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3246. if test "x$CC" != xcc; then
  3247. # Test first that cc exists at all.
  3248. if { ac_try='cc -c conftest.$ac_ext >&5'
  3249. { (case "(($ac_try" in
  3250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3251. *) ac_try_echo=$ac_try;;
  3252. esac
  3253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3254. (eval "$ac_try") 2>&5
  3255. ac_status=$?
  3256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3257. (exit $ac_status); }; }; then
  3258. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3259. rm -f conftest2.*
  3260. if { (case "(($ac_try" in
  3261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3262. *) ac_try_echo=$ac_try;;
  3263. esac
  3264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3265. (eval "$ac_try") 2>&5
  3266. ac_status=$?
  3267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3268. (exit $ac_status); } &&
  3269. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3271. *) ac_try_echo=$ac_try;;
  3272. esac
  3273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3274. (eval "$ac_try") 2>&5
  3275. ac_status=$?
  3276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3277. (exit $ac_status); };
  3278. then
  3279. # cc works too.
  3280. :
  3281. else
  3282. # cc exists but doesn't like -o.
  3283. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3284. fi
  3285. fi
  3286. fi
  3287. else
  3288. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3289. fi
  3290. rm -f core conftest*
  3291. fi
  3292. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3293. { echo "$as_me:$LINENO: result: yes" >&5
  3294. echo "${ECHO_T}yes" >&6; }
  3295. else
  3296. { echo "$as_me:$LINENO: result: no" >&5
  3297. echo "${ECHO_T}no" >&6; }
  3298. cat >>confdefs.h <<\_ACEOF
  3299. #define NO_MINUS_C_MINUS_O 1
  3300. _ACEOF
  3301. fi
  3302. # FIXME: we rely on the cache variable name because
  3303. # there is no other way.
  3304. set dummy $CC
  3305. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3306. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3307. # Losing compiler, so override with the script.
  3308. # FIXME: It is wrong to rewrite CC.
  3309. # But if we don't then we get into trouble of one sort or another.
  3310. # A longer-term fix would be to have automake use am__CC in this case,
  3311. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3312. CC="$am_aux_dir/compile $CC"
  3313. fi
  3314. # Find a good install program. We prefer a C program (faster),
  3315. # so one script is as good as another. But avoid the broken or
  3316. # incompatible versions:
  3317. # SysV /etc/install, /usr/sbin/install
  3318. # SunOS /usr/etc/install
  3319. # IRIX /sbin/install
  3320. # AIX /bin/install
  3321. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3322. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3323. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3324. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3325. # OS/2's system install, which has a completely different semantic
  3326. # ./install, which can be erroneously created by make from ./install.sh.
  3327. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3328. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3329. if test -z "$INSTALL"; then
  3330. if test "${ac_cv_path_install+set}" = set; then
  3331. echo $ECHO_N "(cached) $ECHO_C" >&6
  3332. else
  3333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3334. for as_dir in $PATH
  3335. do
  3336. IFS=$as_save_IFS
  3337. test -z "$as_dir" && as_dir=.
  3338. # Account for people who put trailing slashes in PATH elements.
  3339. case $as_dir/ in
  3340. ./ | .// | /cC/* | \
  3341. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3342. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3343. /usr/ucb/* ) ;;
  3344. *)
  3345. # OSF1 and SCO ODT 3.0 have their own names for install.
  3346. # Don't use installbsd from OSF since it installs stuff as root
  3347. # by default.
  3348. for ac_prog in ginstall scoinst install; do
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3351. if test $ac_prog = install &&
  3352. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3353. # AIX install. It has an incompatible calling convention.
  3354. :
  3355. elif test $ac_prog = install &&
  3356. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3357. # program-specific install script used by HP pwplus--don't use.
  3358. :
  3359. else
  3360. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3361. break 3
  3362. fi
  3363. fi
  3364. done
  3365. done
  3366. ;;
  3367. esac
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. if test "${ac_cv_path_install+set}" = set; then
  3372. INSTALL=$ac_cv_path_install
  3373. else
  3374. # As a last resort, use the slow shell script. Don't cache a
  3375. # value for INSTALL within a source directory, because that will
  3376. # break other packages using the cache if that directory is
  3377. # removed, or if the value is a relative name.
  3378. INSTALL=$ac_install_sh
  3379. fi
  3380. fi
  3381. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3382. echo "${ECHO_T}$INSTALL" >&6; }
  3383. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3384. # It thinks the first close brace ends the variable substitution.
  3385. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3386. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3387. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3388. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3389. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3390. LN_S=$as_ln_s
  3391. if test "$LN_S" = "ln -s"; then
  3392. { echo "$as_me:$LINENO: result: yes" >&5
  3393. echo "${ECHO_T}yes" >&6; }
  3394. else
  3395. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3396. echo "${ECHO_T}no, using $LN_S" >&6; }
  3397. fi
  3398. # Check whether --enable-shared was given.
  3399. if test "${enable_shared+set}" = set; then
  3400. enableval=$enable_shared; p=${PACKAGE-default}
  3401. case $enableval in
  3402. yes) enable_shared=yes ;;
  3403. no) enable_shared=no ;;
  3404. *)
  3405. enable_shared=no
  3406. # Look at the argument we got. We use all the common list separators.
  3407. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3408. for pkg in $enableval; do
  3409. IFS="$lt_save_ifs"
  3410. if test "X$pkg" = "X$p"; then
  3411. enable_shared=yes
  3412. fi
  3413. done
  3414. IFS="$lt_save_ifs"
  3415. ;;
  3416. esac
  3417. else
  3418. enable_shared=yes
  3419. fi
  3420. # Check whether --enable-static was given.
  3421. if test "${enable_static+set}" = set; then
  3422. enableval=$enable_static; p=${PACKAGE-default}
  3423. case $enableval in
  3424. yes) enable_static=yes ;;
  3425. no) enable_static=no ;;
  3426. *)
  3427. enable_static=no
  3428. # Look at the argument we got. We use all the common list separators.
  3429. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3430. for pkg in $enableval; do
  3431. IFS="$lt_save_ifs"
  3432. if test "X$pkg" = "X$p"; then
  3433. enable_static=yes
  3434. fi
  3435. done
  3436. IFS="$lt_save_ifs"
  3437. ;;
  3438. esac
  3439. else
  3440. enable_static=yes
  3441. fi
  3442. # Check whether --enable-fast-install was given.
  3443. if test "${enable_fast_install+set}" = set; then
  3444. enableval=$enable_fast_install; p=${PACKAGE-default}
  3445. case $enableval in
  3446. yes) enable_fast_install=yes ;;
  3447. no) enable_fast_install=no ;;
  3448. *)
  3449. enable_fast_install=no
  3450. # Look at the argument we got. We use all the common list separators.
  3451. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3452. for pkg in $enableval; do
  3453. IFS="$lt_save_ifs"
  3454. if test "X$pkg" = "X$p"; then
  3455. enable_fast_install=yes
  3456. fi
  3457. done
  3458. IFS="$lt_save_ifs"
  3459. ;;
  3460. esac
  3461. else
  3462. enable_fast_install=yes
  3463. fi
  3464. # Make sure we can run config.sub.
  3465. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3466. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3467. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3468. { (exit 1); exit 1; }; }
  3469. { echo "$as_me:$LINENO: checking build system type" >&5
  3470. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3471. if test "${ac_cv_build+set}" = set; then
  3472. echo $ECHO_N "(cached) $ECHO_C" >&6
  3473. else
  3474. ac_build_alias=$build_alias
  3475. test "x$ac_build_alias" = x &&
  3476. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3477. test "x$ac_build_alias" = x &&
  3478. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3479. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3480. { (exit 1); exit 1; }; }
  3481. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3482. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3483. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3484. { (exit 1); exit 1; }; }
  3485. fi
  3486. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3487. echo "${ECHO_T}$ac_cv_build" >&6; }
  3488. case $ac_cv_build in
  3489. *-*-*) ;;
  3490. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3491. echo "$as_me: error: invalid value of canonical build" >&2;}
  3492. { (exit 1); exit 1; }; };;
  3493. esac
  3494. build=$ac_cv_build
  3495. ac_save_IFS=$IFS; IFS='-'
  3496. set x $ac_cv_build
  3497. shift
  3498. build_cpu=$1
  3499. build_vendor=$2
  3500. shift; shift
  3501. # Remember, the first character of IFS is used to create $*,
  3502. # except with old shells:
  3503. build_os=$*
  3504. IFS=$ac_save_IFS
  3505. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3506. { echo "$as_me:$LINENO: checking host system type" >&5
  3507. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3508. if test "${ac_cv_host+set}" = set; then
  3509. echo $ECHO_N "(cached) $ECHO_C" >&6
  3510. else
  3511. if test "x$host_alias" = x; then
  3512. ac_cv_host=$ac_cv_build
  3513. else
  3514. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3515. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3516. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3517. { (exit 1); exit 1; }; }
  3518. fi
  3519. fi
  3520. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3521. echo "${ECHO_T}$ac_cv_host" >&6; }
  3522. case $ac_cv_host in
  3523. *-*-*) ;;
  3524. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3525. echo "$as_me: error: invalid value of canonical host" >&2;}
  3526. { (exit 1); exit 1; }; };;
  3527. esac
  3528. host=$ac_cv_host
  3529. ac_save_IFS=$IFS; IFS='-'
  3530. set x $ac_cv_host
  3531. shift
  3532. host_cpu=$1
  3533. host_vendor=$2
  3534. shift; shift
  3535. # Remember, the first character of IFS is used to create $*,
  3536. # except with old shells:
  3537. host_os=$*
  3538. IFS=$ac_save_IFS
  3539. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3540. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3541. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3542. if test "${lt_cv_path_SED+set}" = set; then
  3543. echo $ECHO_N "(cached) $ECHO_C" >&6
  3544. else
  3545. # Loop through the user's path and test for sed and gsed.
  3546. # Then use that list of sed's as ones to test for truncation.
  3547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3548. for as_dir in $PATH
  3549. do
  3550. IFS=$as_save_IFS
  3551. test -z "$as_dir" && as_dir=.
  3552. for lt_ac_prog in sed gsed; do
  3553. for ac_exec_ext in '' $ac_executable_extensions; do
  3554. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3555. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3556. fi
  3557. done
  3558. done
  3559. done
  3560. IFS=$as_save_IFS
  3561. lt_ac_max=0
  3562. lt_ac_count=0
  3563. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3564. # along with /bin/sed that truncates output.
  3565. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3566. test ! -f $lt_ac_sed && continue
  3567. cat /dev/null > conftest.in
  3568. lt_ac_count=0
  3569. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3570. # Check for GNU sed and select it if it is found.
  3571. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3572. lt_cv_path_SED=$lt_ac_sed
  3573. break
  3574. fi
  3575. while true; do
  3576. cat conftest.in conftest.in >conftest.tmp
  3577. mv conftest.tmp conftest.in
  3578. cp conftest.in conftest.nl
  3579. echo >>conftest.nl
  3580. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3581. cmp -s conftest.out conftest.nl || break
  3582. # 10000 chars as input seems more than enough
  3583. test $lt_ac_count -gt 10 && break
  3584. lt_ac_count=`expr $lt_ac_count + 1`
  3585. if test $lt_ac_count -gt $lt_ac_max; then
  3586. lt_ac_max=$lt_ac_count
  3587. lt_cv_path_SED=$lt_ac_sed
  3588. fi
  3589. done
  3590. done
  3591. fi
  3592. SED=$lt_cv_path_SED
  3593. { echo "$as_me:$LINENO: result: $SED" >&5
  3594. echo "${ECHO_T}$SED" >&6; }
  3595. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3596. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3597. if test "${ac_cv_path_GREP+set}" = set; then
  3598. echo $ECHO_N "(cached) $ECHO_C" >&6
  3599. else
  3600. # Extract the first word of "grep ggrep" to use in msg output
  3601. if test -z "$GREP"; then
  3602. set dummy grep ggrep; ac_prog_name=$2
  3603. if test "${ac_cv_path_GREP+set}" = set; then
  3604. echo $ECHO_N "(cached) $ECHO_C" >&6
  3605. else
  3606. ac_path_GREP_found=false
  3607. # Loop through the user's path and test for each of PROGNAME-LIST
  3608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3609. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3610. do
  3611. IFS=$as_save_IFS
  3612. test -z "$as_dir" && as_dir=.
  3613. for ac_prog in grep ggrep; do
  3614. for ac_exec_ext in '' $ac_executable_extensions; do
  3615. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3616. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3617. # Check for GNU ac_path_GREP and select it if it is found.
  3618. # Check for GNU $ac_path_GREP
  3619. case `"$ac_path_GREP" --version 2>&1` in
  3620. *GNU*)
  3621. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3622. *)
  3623. ac_count=0
  3624. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3625. while :
  3626. do
  3627. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3628. mv "conftest.tmp" "conftest.in"
  3629. cp "conftest.in" "conftest.nl"
  3630. echo 'GREP' >> "conftest.nl"
  3631. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3632. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3633. ac_count=`expr $ac_count + 1`
  3634. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3635. # Best one so far, save it but keep looking for a better one
  3636. ac_cv_path_GREP="$ac_path_GREP"
  3637. ac_path_GREP_max=$ac_count
  3638. fi
  3639. # 10*(2^10) chars as input seems more than enough
  3640. test $ac_count -gt 10 && break
  3641. done
  3642. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3643. esac
  3644. $ac_path_GREP_found && break 3
  3645. done
  3646. done
  3647. done
  3648. IFS=$as_save_IFS
  3649. fi
  3650. GREP="$ac_cv_path_GREP"
  3651. if test -z "$GREP"; then
  3652. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3653. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3654. { (exit 1); exit 1; }; }
  3655. fi
  3656. else
  3657. ac_cv_path_GREP=$GREP
  3658. fi
  3659. fi
  3660. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3661. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3662. GREP="$ac_cv_path_GREP"
  3663. { echo "$as_me:$LINENO: checking for egrep" >&5
  3664. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3665. if test "${ac_cv_path_EGREP+set}" = set; then
  3666. echo $ECHO_N "(cached) $ECHO_C" >&6
  3667. else
  3668. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3669. then ac_cv_path_EGREP="$GREP -E"
  3670. else
  3671. # Extract the first word of "egrep" to use in msg output
  3672. if test -z "$EGREP"; then
  3673. set dummy egrep; ac_prog_name=$2
  3674. if test "${ac_cv_path_EGREP+set}" = set; then
  3675. echo $ECHO_N "(cached) $ECHO_C" >&6
  3676. else
  3677. ac_path_EGREP_found=false
  3678. # Loop through the user's path and test for each of PROGNAME-LIST
  3679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3680. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3681. do
  3682. IFS=$as_save_IFS
  3683. test -z "$as_dir" && as_dir=.
  3684. for ac_prog in egrep; do
  3685. for ac_exec_ext in '' $ac_executable_extensions; do
  3686. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3687. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3688. # Check for GNU ac_path_EGREP and select it if it is found.
  3689. # Check for GNU $ac_path_EGREP
  3690. case `"$ac_path_EGREP" --version 2>&1` in
  3691. *GNU*)
  3692. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3693. *)
  3694. ac_count=0
  3695. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3696. while :
  3697. do
  3698. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3699. mv "conftest.tmp" "conftest.in"
  3700. cp "conftest.in" "conftest.nl"
  3701. echo 'EGREP' >> "conftest.nl"
  3702. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3703. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3704. ac_count=`expr $ac_count + 1`
  3705. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3706. # Best one so far, save it but keep looking for a better one
  3707. ac_cv_path_EGREP="$ac_path_EGREP"
  3708. ac_path_EGREP_max=$ac_count
  3709. fi
  3710. # 10*(2^10) chars as input seems more than enough
  3711. test $ac_count -gt 10 && break
  3712. done
  3713. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3714. esac
  3715. $ac_path_EGREP_found && break 3
  3716. done
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. EGREP="$ac_cv_path_EGREP"
  3722. if test -z "$EGREP"; then
  3723. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3724. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3725. { (exit 1); exit 1; }; }
  3726. fi
  3727. else
  3728. ac_cv_path_EGREP=$EGREP
  3729. fi
  3730. fi
  3731. fi
  3732. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3733. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3734. EGREP="$ac_cv_path_EGREP"
  3735. # Check whether --with-gnu-ld was given.
  3736. if test "${with_gnu_ld+set}" = set; then
  3737. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3738. else
  3739. with_gnu_ld=no
  3740. fi
  3741. ac_prog=ld
  3742. if test "$GCC" = yes; then
  3743. # Check if gcc -print-prog-name=ld gives a path.
  3744. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3745. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3746. case $host in
  3747. *-*-mingw*)
  3748. # gcc leaves a trailing carriage return which upsets mingw
  3749. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3750. *)
  3751. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3752. esac
  3753. case $ac_prog in
  3754. # Accept absolute paths.
  3755. [\\/]* | ?:[\\/]*)
  3756. re_direlt='/[^/][^/]*/\.\./'
  3757. # Canonicalize the pathname of ld
  3758. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3759. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3760. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3761. done
  3762. test -z "$LD" && LD="$ac_prog"
  3763. ;;
  3764. "")
  3765. # If it fails, then pretend we aren't using GCC.
  3766. ac_prog=ld
  3767. ;;
  3768. *)
  3769. # If it is relative, then search for the first ld in PATH.
  3770. with_gnu_ld=unknown
  3771. ;;
  3772. esac
  3773. elif test "$with_gnu_ld" = yes; then
  3774. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3775. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3776. else
  3777. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3778. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3779. fi
  3780. if test "${lt_cv_path_LD+set}" = set; then
  3781. echo $ECHO_N "(cached) $ECHO_C" >&6
  3782. else
  3783. if test -z "$LD"; then
  3784. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3785. for ac_dir in $PATH; do
  3786. IFS="$lt_save_ifs"
  3787. test -z "$ac_dir" && ac_dir=.
  3788. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3789. lt_cv_path_LD="$ac_dir/$ac_prog"
  3790. # Check to see if the program is GNU ld. I'd rather use --version,
  3791. # but apparently some variants of GNU ld only accept -v.
  3792. # Break only if it was the GNU/non-GNU ld that we prefer.
  3793. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3794. *GNU* | *'with BFD'*)
  3795. test "$with_gnu_ld" != no && break
  3796. ;;
  3797. *)
  3798. test "$with_gnu_ld" != yes && break
  3799. ;;
  3800. esac
  3801. fi
  3802. done
  3803. IFS="$lt_save_ifs"
  3804. else
  3805. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3806. fi
  3807. fi
  3808. LD="$lt_cv_path_LD"
  3809. if test -n "$LD"; then
  3810. { echo "$as_me:$LINENO: result: $LD" >&5
  3811. echo "${ECHO_T}$LD" >&6; }
  3812. else
  3813. { echo "$as_me:$LINENO: result: no" >&5
  3814. echo "${ECHO_T}no" >&6; }
  3815. fi
  3816. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3817. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3818. { (exit 1); exit 1; }; }
  3819. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3820. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3821. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3822. echo $ECHO_N "(cached) $ECHO_C" >&6
  3823. else
  3824. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3825. case `$LD -v 2>&1 </dev/null` in
  3826. *GNU* | *'with BFD'*)
  3827. lt_cv_prog_gnu_ld=yes
  3828. ;;
  3829. *)
  3830. lt_cv_prog_gnu_ld=no
  3831. ;;
  3832. esac
  3833. fi
  3834. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3835. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3836. with_gnu_ld=$lt_cv_prog_gnu_ld
  3837. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3838. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3839. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3840. echo $ECHO_N "(cached) $ECHO_C" >&6
  3841. else
  3842. lt_cv_ld_reload_flag='-r'
  3843. fi
  3844. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3845. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3846. reload_flag=$lt_cv_ld_reload_flag
  3847. case $reload_flag in
  3848. "" | " "*) ;;
  3849. *) reload_flag=" $reload_flag" ;;
  3850. esac
  3851. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3852. case $host_os in
  3853. darwin*)
  3854. if test "$GCC" = yes; then
  3855. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3856. else
  3857. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3858. fi
  3859. ;;
  3860. esac
  3861. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3862. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3863. if test "${lt_cv_path_NM+set}" = set; then
  3864. echo $ECHO_N "(cached) $ECHO_C" >&6
  3865. else
  3866. if test -n "$NM"; then
  3867. # Let the user override the test.
  3868. lt_cv_path_NM="$NM"
  3869. else
  3870. lt_nm_to_check="${ac_tool_prefix}nm"
  3871. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3872. lt_nm_to_check="$lt_nm_to_check nm"
  3873. fi
  3874. for lt_tmp_nm in $lt_nm_to_check; do
  3875. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3876. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3877. IFS="$lt_save_ifs"
  3878. test -z "$ac_dir" && ac_dir=.
  3879. tmp_nm="$ac_dir/$lt_tmp_nm"
  3880. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3881. # Check to see if the nm accepts a BSD-compat flag.
  3882. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3883. # nm: unknown option "B" ignored
  3884. # Tru64's nm complains that /dev/null is an invalid object file
  3885. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3886. */dev/null* | *'Invalid file or object type'*)
  3887. lt_cv_path_NM="$tmp_nm -B"
  3888. break
  3889. ;;
  3890. *)
  3891. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3892. */dev/null*)
  3893. lt_cv_path_NM="$tmp_nm -p"
  3894. break
  3895. ;;
  3896. *)
  3897. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3898. continue # so that we can try to find one that supports BSD flags
  3899. ;;
  3900. esac
  3901. ;;
  3902. esac
  3903. fi
  3904. done
  3905. IFS="$lt_save_ifs"
  3906. done
  3907. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3908. fi
  3909. fi
  3910. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3911. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3912. NM="$lt_cv_path_NM"
  3913. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3914. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3915. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3916. echo $ECHO_N "(cached) $ECHO_C" >&6
  3917. else
  3918. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3919. lt_cv_file_magic_test_file=
  3920. lt_cv_deplibs_check_method='unknown'
  3921. # Need to set the preceding variable on all platforms that support
  3922. # interlibrary dependencies.
  3923. # 'none' -- dependencies not supported.
  3924. # `unknown' -- same as none, but documents that we really don't know.
  3925. # 'pass_all' -- all dependencies passed with no checks.
  3926. # 'test_compile' -- check by making test program.
  3927. # 'file_magic [[regex]]' -- check by looking for files in library path
  3928. # which responds to the $file_magic_cmd with a given extended regex.
  3929. # If you have `file' or equivalent on your system and you're not sure
  3930. # whether `pass_all' will *always* work, you probably want this one.
  3931. case $host_os in
  3932. aix[4-9]*)
  3933. lt_cv_deplibs_check_method=pass_all
  3934. ;;
  3935. beos*)
  3936. lt_cv_deplibs_check_method=pass_all
  3937. ;;
  3938. bsdi[45]*)
  3939. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3940. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3941. lt_cv_file_magic_test_file=/shlib/libc.so
  3942. ;;
  3943. cygwin*)
  3944. # func_win32_libid is a shell function defined in ltmain.sh
  3945. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3946. lt_cv_file_magic_cmd='func_win32_libid'
  3947. ;;
  3948. mingw* | pw32*)
  3949. # Base MSYS/MinGW do not provide the 'file' command needed by
  3950. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3951. # unless we find 'file', for example because we are cross-compiling.
  3952. if ( file / ) >/dev/null 2>&1; then
  3953. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3954. lt_cv_file_magic_cmd='func_win32_libid'
  3955. else
  3956. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3957. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3958. fi
  3959. ;;
  3960. darwin* | rhapsody*)
  3961. lt_cv_deplibs_check_method=pass_all
  3962. ;;
  3963. freebsd* | dragonfly*)
  3964. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3965. case $host_cpu in
  3966. i*86 )
  3967. # Not sure whether the presence of OpenBSD here was a mistake.
  3968. # Let's accept both of them until this is cleared up.
  3969. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3970. lt_cv_file_magic_cmd=/usr/bin/file
  3971. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3972. ;;
  3973. esac
  3974. else
  3975. lt_cv_deplibs_check_method=pass_all
  3976. fi
  3977. ;;
  3978. gnu*)
  3979. lt_cv_deplibs_check_method=pass_all
  3980. ;;
  3981. hpux10.20* | hpux11*)
  3982. lt_cv_file_magic_cmd=/usr/bin/file
  3983. case $host_cpu in
  3984. ia64*)
  3985. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3986. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3987. ;;
  3988. hppa*64*)
  3989. 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]'
  3990. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3991. ;;
  3992. *)
  3993. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3994. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3995. ;;
  3996. esac
  3997. ;;
  3998. interix[3-9]*)
  3999. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4000. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4001. ;;
  4002. irix5* | irix6* | nonstopux*)
  4003. case $LD in
  4004. *-32|*"-32 ") libmagic=32-bit;;
  4005. *-n32|*"-n32 ") libmagic=N32;;
  4006. *-64|*"-64 ") libmagic=64-bit;;
  4007. *) libmagic=never-match;;
  4008. esac
  4009. lt_cv_deplibs_check_method=pass_all
  4010. ;;
  4011. # This must be Linux ELF.
  4012. linux* | k*bsd*-gnu)
  4013. lt_cv_deplibs_check_method=pass_all
  4014. ;;
  4015. netbsd*)
  4016. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4017. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4018. else
  4019. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4020. fi
  4021. ;;
  4022. newos6*)
  4023. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4024. lt_cv_file_magic_cmd=/usr/bin/file
  4025. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4026. ;;
  4027. nto-qnx*)
  4028. lt_cv_deplibs_check_method=unknown
  4029. ;;
  4030. openbsd*)
  4031. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4032. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4033. else
  4034. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4035. fi
  4036. ;;
  4037. osf3* | osf4* | osf5*)
  4038. lt_cv_deplibs_check_method=pass_all
  4039. ;;
  4040. rdos*)
  4041. lt_cv_deplibs_check_method=pass_all
  4042. ;;
  4043. solaris*)
  4044. lt_cv_deplibs_check_method=pass_all
  4045. ;;
  4046. sysv4 | sysv4.3*)
  4047. case $host_vendor in
  4048. motorola)
  4049. 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]'
  4050. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4051. ;;
  4052. ncr)
  4053. lt_cv_deplibs_check_method=pass_all
  4054. ;;
  4055. sequent)
  4056. lt_cv_file_magic_cmd='/bin/file'
  4057. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4058. ;;
  4059. sni)
  4060. lt_cv_file_magic_cmd='/bin/file'
  4061. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4062. lt_cv_file_magic_test_file=/lib/libc.so
  4063. ;;
  4064. siemens)
  4065. lt_cv_deplibs_check_method=pass_all
  4066. ;;
  4067. pc)
  4068. lt_cv_deplibs_check_method=pass_all
  4069. ;;
  4070. esac
  4071. ;;
  4072. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4073. lt_cv_deplibs_check_method=pass_all
  4074. ;;
  4075. esac
  4076. fi
  4077. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4078. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4079. file_magic_cmd=$lt_cv_file_magic_cmd
  4080. deplibs_check_method=$lt_cv_deplibs_check_method
  4081. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4082. # If no C compiler was specified, use CC.
  4083. LTCC=${LTCC-"$CC"}
  4084. # If no C compiler flags were specified, use CFLAGS.
  4085. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4086. # Allow CC to be a program name with arguments.
  4087. compiler=$CC
  4088. # Check whether --enable-libtool-lock was given.
  4089. if test "${enable_libtool_lock+set}" = set; then
  4090. enableval=$enable_libtool_lock;
  4091. fi
  4092. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4093. # Some flags need to be propagated to the compiler or linker for good
  4094. # libtool support.
  4095. case $host in
  4096. ia64-*-hpux*)
  4097. # Find out which ABI we are using.
  4098. echo 'int i;' > conftest.$ac_ext
  4099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4100. (eval $ac_compile) 2>&5
  4101. ac_status=$?
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); }; then
  4104. case `/usr/bin/file conftest.$ac_objext` in
  4105. *ELF-32*)
  4106. HPUX_IA64_MODE="32"
  4107. ;;
  4108. *ELF-64*)
  4109. HPUX_IA64_MODE="64"
  4110. ;;
  4111. esac
  4112. fi
  4113. rm -rf conftest*
  4114. ;;
  4115. *-*-irix6*)
  4116. # Find out which ABI we are using.
  4117. echo '#line 4639 "configure"' > conftest.$ac_ext
  4118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4119. (eval $ac_compile) 2>&5
  4120. ac_status=$?
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); }; then
  4123. if test "$lt_cv_prog_gnu_ld" = yes; then
  4124. case `/usr/bin/file conftest.$ac_objext` in
  4125. *32-bit*)
  4126. LD="${LD-ld} -melf32bsmip"
  4127. ;;
  4128. *N32*)
  4129. LD="${LD-ld} -melf32bmipn32"
  4130. ;;
  4131. *64-bit*)
  4132. LD="${LD-ld} -melf64bmip"
  4133. ;;
  4134. esac
  4135. else
  4136. case `/usr/bin/file conftest.$ac_objext` in
  4137. *32-bit*)
  4138. LD="${LD-ld} -32"
  4139. ;;
  4140. *N32*)
  4141. LD="${LD-ld} -n32"
  4142. ;;
  4143. *64-bit*)
  4144. LD="${LD-ld} -64"
  4145. ;;
  4146. esac
  4147. fi
  4148. fi
  4149. rm -rf conftest*
  4150. ;;
  4151. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4152. s390*-*linux*|sparc*-*linux*)
  4153. # Find out which ABI we are using.
  4154. echo 'int i;' > conftest.$ac_ext
  4155. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4156. (eval $ac_compile) 2>&5
  4157. ac_status=$?
  4158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4159. (exit $ac_status); }; then
  4160. case `/usr/bin/file conftest.o` in
  4161. *32-bit*)
  4162. case $host in
  4163. x86_64-*kfreebsd*-gnu)
  4164. LD="${LD-ld} -m elf_i386_fbsd"
  4165. ;;
  4166. x86_64-*linux*)
  4167. LD="${LD-ld} -m elf_i386"
  4168. ;;
  4169. ppc64-*linux*|powerpc64-*linux*)
  4170. LD="${LD-ld} -m elf32ppclinux"
  4171. ;;
  4172. s390x-*linux*)
  4173. LD="${LD-ld} -m elf_s390"
  4174. ;;
  4175. sparc64-*linux*)
  4176. LD="${LD-ld} -m elf32_sparc"
  4177. ;;
  4178. esac
  4179. ;;
  4180. *64-bit*)
  4181. case $host in
  4182. x86_64-*kfreebsd*-gnu)
  4183. LD="${LD-ld} -m elf_x86_64_fbsd"
  4184. ;;
  4185. x86_64-*linux*)
  4186. LD="${LD-ld} -m elf_x86_64"
  4187. ;;
  4188. ppc*-*linux*|powerpc*-*linux*)
  4189. LD="${LD-ld} -m elf64ppc"
  4190. ;;
  4191. s390*-*linux*)
  4192. LD="${LD-ld} -m elf64_s390"
  4193. ;;
  4194. sparc*-*linux*)
  4195. LD="${LD-ld} -m elf64_sparc"
  4196. ;;
  4197. esac
  4198. ;;
  4199. esac
  4200. fi
  4201. rm -rf conftest*
  4202. ;;
  4203. *-*-sco3.2v5*)
  4204. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4205. SAVE_CFLAGS="$CFLAGS"
  4206. CFLAGS="$CFLAGS -belf"
  4207. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4208. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4209. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4210. echo $ECHO_N "(cached) $ECHO_C" >&6
  4211. else
  4212. ac_ext=c
  4213. ac_cpp='$CPP $CPPFLAGS'
  4214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4217. cat >conftest.$ac_ext <<_ACEOF
  4218. /* confdefs.h. */
  4219. _ACEOF
  4220. cat confdefs.h >>conftest.$ac_ext
  4221. cat >>conftest.$ac_ext <<_ACEOF
  4222. /* end confdefs.h. */
  4223. int
  4224. main ()
  4225. {
  4226. ;
  4227. return 0;
  4228. }
  4229. _ACEOF
  4230. rm -f conftest.$ac_objext conftest$ac_exeext
  4231. if { (ac_try="$ac_link"
  4232. case "(($ac_try" in
  4233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4234. *) ac_try_echo=$ac_try;;
  4235. esac
  4236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4237. (eval "$ac_link") 2>conftest.er1
  4238. ac_status=$?
  4239. grep -v '^ *+' conftest.er1 >conftest.err
  4240. rm -f conftest.er1
  4241. cat conftest.err >&5
  4242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4243. (exit $ac_status); } && {
  4244. test -z "$ac_c_werror_flag" ||
  4245. test ! -s conftest.err
  4246. } && test -s conftest$ac_exeext &&
  4247. $as_test_x conftest$ac_exeext; then
  4248. lt_cv_cc_needs_belf=yes
  4249. else
  4250. echo "$as_me: failed program was:" >&5
  4251. sed 's/^/| /' conftest.$ac_ext >&5
  4252. lt_cv_cc_needs_belf=no
  4253. fi
  4254. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4255. conftest$ac_exeext conftest.$ac_ext
  4256. ac_ext=c
  4257. ac_cpp='$CPP $CPPFLAGS'
  4258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4261. fi
  4262. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4263. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4264. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4265. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4266. CFLAGS="$SAVE_CFLAGS"
  4267. fi
  4268. ;;
  4269. sparc*-*solaris*)
  4270. # Find out which ABI we are using.
  4271. echo 'int i;' > conftest.$ac_ext
  4272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4273. (eval $ac_compile) 2>&5
  4274. ac_status=$?
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); }; then
  4277. case `/usr/bin/file conftest.o` in
  4278. *64-bit*)
  4279. case $lt_cv_prog_gnu_ld in
  4280. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4281. *)
  4282. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4283. LD="${LD-ld} -64"
  4284. fi
  4285. ;;
  4286. esac
  4287. ;;
  4288. esac
  4289. fi
  4290. rm -rf conftest*
  4291. ;;
  4292. esac
  4293. need_locks="$enable_libtool_lock"
  4294. ac_ext=c
  4295. ac_cpp='$CPP $CPPFLAGS'
  4296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4299. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4300. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4301. # On Suns, sometimes $CPP names a directory.
  4302. if test -n "$CPP" && test -d "$CPP"; then
  4303. CPP=
  4304. fi
  4305. if test -z "$CPP"; then
  4306. if test "${ac_cv_prog_CPP+set}" = set; then
  4307. echo $ECHO_N "(cached) $ECHO_C" >&6
  4308. else
  4309. # Double quotes because CPP needs to be expanded
  4310. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4311. do
  4312. ac_preproc_ok=false
  4313. for ac_c_preproc_warn_flag in '' yes
  4314. do
  4315. # Use a header file that comes with gcc, so configuring glibc
  4316. # with a fresh cross-compiler works.
  4317. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4318. # <limits.h> exists even on freestanding compilers.
  4319. # On the NeXT, cc -E runs the code through the compiler's parser,
  4320. # not just through cpp. "Syntax error" is here to catch this case.
  4321. cat >conftest.$ac_ext <<_ACEOF
  4322. /* confdefs.h. */
  4323. _ACEOF
  4324. cat confdefs.h >>conftest.$ac_ext
  4325. cat >>conftest.$ac_ext <<_ACEOF
  4326. /* end confdefs.h. */
  4327. #ifdef __STDC__
  4328. # include <limits.h>
  4329. #else
  4330. # include <assert.h>
  4331. #endif
  4332. Syntax error
  4333. _ACEOF
  4334. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4335. case "(($ac_try" in
  4336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4337. *) ac_try_echo=$ac_try;;
  4338. esac
  4339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4340. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4341. ac_status=$?
  4342. grep -v '^ *+' conftest.er1 >conftest.err
  4343. rm -f conftest.er1
  4344. cat conftest.err >&5
  4345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4346. (exit $ac_status); } >/dev/null && {
  4347. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4348. test ! -s conftest.err
  4349. }; then
  4350. :
  4351. else
  4352. echo "$as_me: failed program was:" >&5
  4353. sed 's/^/| /' conftest.$ac_ext >&5
  4354. # Broken: fails on valid input.
  4355. continue
  4356. fi
  4357. rm -f conftest.err conftest.$ac_ext
  4358. # OK, works on sane cases. Now check whether nonexistent headers
  4359. # can be detected and how.
  4360. cat >conftest.$ac_ext <<_ACEOF
  4361. /* confdefs.h. */
  4362. _ACEOF
  4363. cat confdefs.h >>conftest.$ac_ext
  4364. cat >>conftest.$ac_ext <<_ACEOF
  4365. /* end confdefs.h. */
  4366. #include <ac_nonexistent.h>
  4367. _ACEOF
  4368. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4369. case "(($ac_try" in
  4370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4371. *) ac_try_echo=$ac_try;;
  4372. esac
  4373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4374. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4375. ac_status=$?
  4376. grep -v '^ *+' conftest.er1 >conftest.err
  4377. rm -f conftest.er1
  4378. cat conftest.err >&5
  4379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4380. (exit $ac_status); } >/dev/null && {
  4381. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4382. test ! -s conftest.err
  4383. }; then
  4384. # Broken: success on invalid input.
  4385. continue
  4386. else
  4387. echo "$as_me: failed program was:" >&5
  4388. sed 's/^/| /' conftest.$ac_ext >&5
  4389. # Passes both tests.
  4390. ac_preproc_ok=:
  4391. break
  4392. fi
  4393. rm -f conftest.err conftest.$ac_ext
  4394. done
  4395. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4396. rm -f conftest.err conftest.$ac_ext
  4397. if $ac_preproc_ok; then
  4398. break
  4399. fi
  4400. done
  4401. ac_cv_prog_CPP=$CPP
  4402. fi
  4403. CPP=$ac_cv_prog_CPP
  4404. else
  4405. ac_cv_prog_CPP=$CPP
  4406. fi
  4407. { echo "$as_me:$LINENO: result: $CPP" >&5
  4408. echo "${ECHO_T}$CPP" >&6; }
  4409. ac_preproc_ok=false
  4410. for ac_c_preproc_warn_flag in '' yes
  4411. do
  4412. # Use a header file that comes with gcc, so configuring glibc
  4413. # with a fresh cross-compiler works.
  4414. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4415. # <limits.h> exists even on freestanding compilers.
  4416. # On the NeXT, cc -E runs the code through the compiler's parser,
  4417. # not just through cpp. "Syntax error" is here to catch this case.
  4418. cat >conftest.$ac_ext <<_ACEOF
  4419. /* confdefs.h. */
  4420. _ACEOF
  4421. cat confdefs.h >>conftest.$ac_ext
  4422. cat >>conftest.$ac_ext <<_ACEOF
  4423. /* end confdefs.h. */
  4424. #ifdef __STDC__
  4425. # include <limits.h>
  4426. #else
  4427. # include <assert.h>
  4428. #endif
  4429. Syntax error
  4430. _ACEOF
  4431. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4432. case "(($ac_try" in
  4433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4434. *) ac_try_echo=$ac_try;;
  4435. esac
  4436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4437. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4438. ac_status=$?
  4439. grep -v '^ *+' conftest.er1 >conftest.err
  4440. rm -f conftest.er1
  4441. cat conftest.err >&5
  4442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4443. (exit $ac_status); } >/dev/null && {
  4444. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4445. test ! -s conftest.err
  4446. }; then
  4447. :
  4448. else
  4449. echo "$as_me: failed program was:" >&5
  4450. sed 's/^/| /' conftest.$ac_ext >&5
  4451. # Broken: fails on valid input.
  4452. continue
  4453. fi
  4454. rm -f conftest.err conftest.$ac_ext
  4455. # OK, works on sane cases. Now check whether nonexistent headers
  4456. # can be detected and how.
  4457. cat >conftest.$ac_ext <<_ACEOF
  4458. /* confdefs.h. */
  4459. _ACEOF
  4460. cat confdefs.h >>conftest.$ac_ext
  4461. cat >>conftest.$ac_ext <<_ACEOF
  4462. /* end confdefs.h. */
  4463. #include <ac_nonexistent.h>
  4464. _ACEOF
  4465. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4466. case "(($ac_try" in
  4467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4468. *) ac_try_echo=$ac_try;;
  4469. esac
  4470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4471. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } >/dev/null && {
  4478. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4479. test ! -s conftest.err
  4480. }; then
  4481. # Broken: success on invalid input.
  4482. continue
  4483. else
  4484. echo "$as_me: failed program was:" >&5
  4485. sed 's/^/| /' conftest.$ac_ext >&5
  4486. # Passes both tests.
  4487. ac_preproc_ok=:
  4488. break
  4489. fi
  4490. rm -f conftest.err conftest.$ac_ext
  4491. done
  4492. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4493. rm -f conftest.err conftest.$ac_ext
  4494. if $ac_preproc_ok; then
  4495. :
  4496. else
  4497. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4498. See \`config.log' for more details." >&5
  4499. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4500. See \`config.log' for more details." >&2;}
  4501. { (exit 1); exit 1; }; }
  4502. fi
  4503. ac_ext=c
  4504. ac_cpp='$CPP $CPPFLAGS'
  4505. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4506. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4508. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4509. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4510. if test "${ac_cv_header_stdc+set}" = set; then
  4511. echo $ECHO_N "(cached) $ECHO_C" >&6
  4512. else
  4513. cat >conftest.$ac_ext <<_ACEOF
  4514. /* confdefs.h. */
  4515. _ACEOF
  4516. cat confdefs.h >>conftest.$ac_ext
  4517. cat >>conftest.$ac_ext <<_ACEOF
  4518. /* end confdefs.h. */
  4519. #include <stdlib.h>
  4520. #include <stdarg.h>
  4521. #include <string.h>
  4522. #include <float.h>
  4523. int
  4524. main ()
  4525. {
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. rm -f conftest.$ac_objext
  4531. if { (ac_try="$ac_compile"
  4532. case "(($ac_try" in
  4533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4534. *) ac_try_echo=$ac_try;;
  4535. esac
  4536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4537. (eval "$ac_compile") 2>conftest.er1
  4538. ac_status=$?
  4539. grep -v '^ *+' conftest.er1 >conftest.err
  4540. rm -f conftest.er1
  4541. cat conftest.err >&5
  4542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); } && {
  4544. test -z "$ac_c_werror_flag" ||
  4545. test ! -s conftest.err
  4546. } && test -s conftest.$ac_objext; then
  4547. ac_cv_header_stdc=yes
  4548. else
  4549. echo "$as_me: failed program was:" >&5
  4550. sed 's/^/| /' conftest.$ac_ext >&5
  4551. ac_cv_header_stdc=no
  4552. fi
  4553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4554. if test $ac_cv_header_stdc = yes; then
  4555. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4556. cat >conftest.$ac_ext <<_ACEOF
  4557. /* confdefs.h. */
  4558. _ACEOF
  4559. cat confdefs.h >>conftest.$ac_ext
  4560. cat >>conftest.$ac_ext <<_ACEOF
  4561. /* end confdefs.h. */
  4562. #include <string.h>
  4563. _ACEOF
  4564. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4565. $EGREP "memchr" >/dev/null 2>&1; then
  4566. :
  4567. else
  4568. ac_cv_header_stdc=no
  4569. fi
  4570. rm -f conftest*
  4571. fi
  4572. if test $ac_cv_header_stdc = yes; then
  4573. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4574. cat >conftest.$ac_ext <<_ACEOF
  4575. /* confdefs.h. */
  4576. _ACEOF
  4577. cat confdefs.h >>conftest.$ac_ext
  4578. cat >>conftest.$ac_ext <<_ACEOF
  4579. /* end confdefs.h. */
  4580. #include <stdlib.h>
  4581. _ACEOF
  4582. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4583. $EGREP "free" >/dev/null 2>&1; then
  4584. :
  4585. else
  4586. ac_cv_header_stdc=no
  4587. fi
  4588. rm -f conftest*
  4589. fi
  4590. if test $ac_cv_header_stdc = yes; then
  4591. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4592. if test "$cross_compiling" = yes; then
  4593. :
  4594. else
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #include <ctype.h>
  4602. #include <stdlib.h>
  4603. #if ((' ' & 0x0FF) == 0x020)
  4604. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4605. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4606. #else
  4607. # define ISLOWER(c) \
  4608. (('a' <= (c) && (c) <= 'i') \
  4609. || ('j' <= (c) && (c) <= 'r') \
  4610. || ('s' <= (c) && (c) <= 'z'))
  4611. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4612. #endif
  4613. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4614. int
  4615. main ()
  4616. {
  4617. int i;
  4618. for (i = 0; i < 256; i++)
  4619. if (XOR (islower (i), ISLOWER (i))
  4620. || toupper (i) != TOUPPER (i))
  4621. return 2;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. rm -f conftest$ac_exeext
  4626. if { (ac_try="$ac_link"
  4627. case "(($ac_try" in
  4628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4629. *) ac_try_echo=$ac_try;;
  4630. esac
  4631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4632. (eval "$ac_link") 2>&5
  4633. ac_status=$?
  4634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4635. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4636. { (case "(($ac_try" in
  4637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4638. *) ac_try_echo=$ac_try;;
  4639. esac
  4640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4641. (eval "$ac_try") 2>&5
  4642. ac_status=$?
  4643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4644. (exit $ac_status); }; }; then
  4645. :
  4646. else
  4647. echo "$as_me: program exited with status $ac_status" >&5
  4648. echo "$as_me: failed program was:" >&5
  4649. sed 's/^/| /' conftest.$ac_ext >&5
  4650. ( exit $ac_status )
  4651. ac_cv_header_stdc=no
  4652. fi
  4653. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4654. fi
  4655. fi
  4656. fi
  4657. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4658. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4659. if test $ac_cv_header_stdc = yes; then
  4660. cat >>confdefs.h <<\_ACEOF
  4661. #define STDC_HEADERS 1
  4662. _ACEOF
  4663. fi
  4664. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4665. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4666. inttypes.h stdint.h unistd.h
  4667. do
  4668. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4669. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4670. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4671. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4672. echo $ECHO_N "(cached) $ECHO_C" >&6
  4673. else
  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. eval "$as_ac_Header=yes"
  4701. else
  4702. echo "$as_me: failed program was:" >&5
  4703. sed 's/^/| /' conftest.$ac_ext >&5
  4704. eval "$as_ac_Header=no"
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. fi
  4708. ac_res=`eval echo '${'$as_ac_Header'}'`
  4709. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4710. echo "${ECHO_T}$ac_res" >&6; }
  4711. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4712. cat >>confdefs.h <<_ACEOF
  4713. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4714. _ACEOF
  4715. fi
  4716. done
  4717. for ac_header in dlfcn.h
  4718. do
  4719. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4721. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4722. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4723. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4724. echo $ECHO_N "(cached) $ECHO_C" >&6
  4725. fi
  4726. ac_res=`eval echo '${'$as_ac_Header'}'`
  4727. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4728. echo "${ECHO_T}$ac_res" >&6; }
  4729. else
  4730. # Is the header compilable?
  4731. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4732. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4733. cat >conftest.$ac_ext <<_ACEOF
  4734. /* confdefs.h. */
  4735. _ACEOF
  4736. cat confdefs.h >>conftest.$ac_ext
  4737. cat >>conftest.$ac_ext <<_ACEOF
  4738. /* end confdefs.h. */
  4739. $ac_includes_default
  4740. #include <$ac_header>
  4741. _ACEOF
  4742. rm -f conftest.$ac_objext
  4743. if { (ac_try="$ac_compile"
  4744. case "(($ac_try" in
  4745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4746. *) ac_try_echo=$ac_try;;
  4747. esac
  4748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4749. (eval "$ac_compile") 2>conftest.er1
  4750. ac_status=$?
  4751. grep -v '^ *+' conftest.er1 >conftest.err
  4752. rm -f conftest.er1
  4753. cat conftest.err >&5
  4754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4755. (exit $ac_status); } && {
  4756. test -z "$ac_c_werror_flag" ||
  4757. test ! -s conftest.err
  4758. } && test -s conftest.$ac_objext; then
  4759. ac_header_compiler=yes
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. ac_header_compiler=no
  4764. fi
  4765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4766. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4767. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4768. # Is the header present?
  4769. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4770. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4771. cat >conftest.$ac_ext <<_ACEOF
  4772. /* confdefs.h. */
  4773. _ACEOF
  4774. cat confdefs.h >>conftest.$ac_ext
  4775. cat >>conftest.$ac_ext <<_ACEOF
  4776. /* end confdefs.h. */
  4777. #include <$ac_header>
  4778. _ACEOF
  4779. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4780. case "(($ac_try" in
  4781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4782. *) ac_try_echo=$ac_try;;
  4783. esac
  4784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4785. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4786. ac_status=$?
  4787. grep -v '^ *+' conftest.er1 >conftest.err
  4788. rm -f conftest.er1
  4789. cat conftest.err >&5
  4790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4791. (exit $ac_status); } >/dev/null && {
  4792. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4793. test ! -s conftest.err
  4794. }; then
  4795. ac_header_preproc=yes
  4796. else
  4797. echo "$as_me: failed program was:" >&5
  4798. sed 's/^/| /' conftest.$ac_ext >&5
  4799. ac_header_preproc=no
  4800. fi
  4801. rm -f conftest.err conftest.$ac_ext
  4802. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4803. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4804. # So? What about this header?
  4805. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4806. yes:no: )
  4807. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4808. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4810. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4811. ac_header_preproc=yes
  4812. ;;
  4813. no:yes:* )
  4814. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4815. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4816. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4817. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4818. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4819. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4820. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4821. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4822. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4823. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4824. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4825. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4826. ( cat <<\_ASBOX
  4827. ## ---------------------------------- ##
  4828. ## Report this to christos@astron.com ##
  4829. ## ---------------------------------- ##
  4830. _ASBOX
  4831. ) | sed "s/^/$as_me: WARNING: /" >&2
  4832. ;;
  4833. esac
  4834. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4835. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4836. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4837. echo $ECHO_N "(cached) $ECHO_C" >&6
  4838. else
  4839. eval "$as_ac_Header=\$ac_header_preproc"
  4840. fi
  4841. ac_res=`eval echo '${'$as_ac_Header'}'`
  4842. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4843. echo "${ECHO_T}$ac_res" >&6; }
  4844. fi
  4845. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4846. cat >>confdefs.h <<_ACEOF
  4847. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4848. _ACEOF
  4849. fi
  4850. done
  4851. ac_ext=cpp
  4852. ac_cpp='$CXXCPP $CPPFLAGS'
  4853. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4854. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4855. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4856. if test -z "$CXX"; then
  4857. if test -n "$CCC"; then
  4858. CXX=$CCC
  4859. else
  4860. if test -n "$ac_tool_prefix"; then
  4861. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4862. do
  4863. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4864. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4865. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4866. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4867. if test "${ac_cv_prog_CXX+set}" = set; then
  4868. echo $ECHO_N "(cached) $ECHO_C" >&6
  4869. else
  4870. if test -n "$CXX"; then
  4871. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4872. else
  4873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4874. for as_dir in $PATH
  4875. do
  4876. IFS=$as_save_IFS
  4877. test -z "$as_dir" && as_dir=.
  4878. for ac_exec_ext in '' $ac_executable_extensions; do
  4879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4880. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4881. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4882. break 2
  4883. fi
  4884. done
  4885. done
  4886. IFS=$as_save_IFS
  4887. fi
  4888. fi
  4889. CXX=$ac_cv_prog_CXX
  4890. if test -n "$CXX"; then
  4891. { echo "$as_me:$LINENO: result: $CXX" >&5
  4892. echo "${ECHO_T}$CXX" >&6; }
  4893. else
  4894. { echo "$as_me:$LINENO: result: no" >&5
  4895. echo "${ECHO_T}no" >&6; }
  4896. fi
  4897. test -n "$CXX" && break
  4898. done
  4899. fi
  4900. if test -z "$CXX"; then
  4901. ac_ct_CXX=$CXX
  4902. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4903. do
  4904. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4905. set dummy $ac_prog; ac_word=$2
  4906. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4907. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4908. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4909. echo $ECHO_N "(cached) $ECHO_C" >&6
  4910. else
  4911. if test -n "$ac_ct_CXX"; then
  4912. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4913. else
  4914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4915. for as_dir in $PATH
  4916. do
  4917. IFS=$as_save_IFS
  4918. test -z "$as_dir" && as_dir=.
  4919. for ac_exec_ext in '' $ac_executable_extensions; do
  4920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4921. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4922. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4923. break 2
  4924. fi
  4925. done
  4926. done
  4927. IFS=$as_save_IFS
  4928. fi
  4929. fi
  4930. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4931. if test -n "$ac_ct_CXX"; then
  4932. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4933. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4934. else
  4935. { echo "$as_me:$LINENO: result: no" >&5
  4936. echo "${ECHO_T}no" >&6; }
  4937. fi
  4938. test -n "$ac_ct_CXX" && break
  4939. done
  4940. if test "x$ac_ct_CXX" = x; then
  4941. CXX="g++"
  4942. else
  4943. case $cross_compiling:$ac_tool_warned in
  4944. yes:)
  4945. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4946. whose name does not start with the host triplet. If you think this
  4947. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4948. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4949. whose name does not start with the host triplet. If you think this
  4950. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4951. ac_tool_warned=yes ;;
  4952. esac
  4953. CXX=$ac_ct_CXX
  4954. fi
  4955. fi
  4956. fi
  4957. fi
  4958. # Provide some information about the compiler.
  4959. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4960. ac_compiler=`set X $ac_compile; echo $2`
  4961. { (ac_try="$ac_compiler --version >&5"
  4962. case "(($ac_try" in
  4963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4964. *) ac_try_echo=$ac_try;;
  4965. esac
  4966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4967. (eval "$ac_compiler --version >&5") 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }
  4971. { (ac_try="$ac_compiler -v >&5"
  4972. case "(($ac_try" in
  4973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4974. *) ac_try_echo=$ac_try;;
  4975. esac
  4976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4977. (eval "$ac_compiler -v >&5") 2>&5
  4978. ac_status=$?
  4979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4980. (exit $ac_status); }
  4981. { (ac_try="$ac_compiler -V >&5"
  4982. case "(($ac_try" in
  4983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4984. *) ac_try_echo=$ac_try;;
  4985. esac
  4986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4987. (eval "$ac_compiler -V >&5") 2>&5
  4988. ac_status=$?
  4989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4990. (exit $ac_status); }
  4991. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4992. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4993. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4994. echo $ECHO_N "(cached) $ECHO_C" >&6
  4995. else
  4996. cat >conftest.$ac_ext <<_ACEOF
  4997. /* confdefs.h. */
  4998. _ACEOF
  4999. cat confdefs.h >>conftest.$ac_ext
  5000. cat >>conftest.$ac_ext <<_ACEOF
  5001. /* end confdefs.h. */
  5002. int
  5003. main ()
  5004. {
  5005. #ifndef __GNUC__
  5006. choke me
  5007. #endif
  5008. ;
  5009. return 0;
  5010. }
  5011. _ACEOF
  5012. rm -f conftest.$ac_objext
  5013. if { (ac_try="$ac_compile"
  5014. case "(($ac_try" in
  5015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5016. *) ac_try_echo=$ac_try;;
  5017. esac
  5018. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5019. (eval "$ac_compile") 2>conftest.er1
  5020. ac_status=$?
  5021. grep -v '^ *+' conftest.er1 >conftest.err
  5022. rm -f conftest.er1
  5023. cat conftest.err >&5
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); } && {
  5026. test -z "$ac_cxx_werror_flag" ||
  5027. test ! -s conftest.err
  5028. } && test -s conftest.$ac_objext; then
  5029. ac_compiler_gnu=yes
  5030. else
  5031. echo "$as_me: failed program was:" >&5
  5032. sed 's/^/| /' conftest.$ac_ext >&5
  5033. ac_compiler_gnu=no
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5036. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5037. fi
  5038. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5039. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5040. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5041. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5042. ac_save_CXXFLAGS=$CXXFLAGS
  5043. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5044. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5045. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5046. echo $ECHO_N "(cached) $ECHO_C" >&6
  5047. else
  5048. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5049. ac_cxx_werror_flag=yes
  5050. ac_cv_prog_cxx_g=no
  5051. CXXFLAGS="-g"
  5052. cat >conftest.$ac_ext <<_ACEOF
  5053. /* confdefs.h. */
  5054. _ACEOF
  5055. cat confdefs.h >>conftest.$ac_ext
  5056. cat >>conftest.$ac_ext <<_ACEOF
  5057. /* end confdefs.h. */
  5058. int
  5059. main ()
  5060. {
  5061. ;
  5062. return 0;
  5063. }
  5064. _ACEOF
  5065. rm -f conftest.$ac_objext
  5066. if { (ac_try="$ac_compile"
  5067. case "(($ac_try" in
  5068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5069. *) ac_try_echo=$ac_try;;
  5070. esac
  5071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5072. (eval "$ac_compile") 2>conftest.er1
  5073. ac_status=$?
  5074. grep -v '^ *+' conftest.er1 >conftest.err
  5075. rm -f conftest.er1
  5076. cat conftest.err >&5
  5077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. (exit $ac_status); } && {
  5079. test -z "$ac_cxx_werror_flag" ||
  5080. test ! -s conftest.err
  5081. } && test -s conftest.$ac_objext; then
  5082. ac_cv_prog_cxx_g=yes
  5083. else
  5084. echo "$as_me: failed program was:" >&5
  5085. sed 's/^/| /' conftest.$ac_ext >&5
  5086. CXXFLAGS=""
  5087. cat >conftest.$ac_ext <<_ACEOF
  5088. /* confdefs.h. */
  5089. _ACEOF
  5090. cat confdefs.h >>conftest.$ac_ext
  5091. cat >>conftest.$ac_ext <<_ACEOF
  5092. /* end confdefs.h. */
  5093. int
  5094. main ()
  5095. {
  5096. ;
  5097. return 0;
  5098. }
  5099. _ACEOF
  5100. rm -f conftest.$ac_objext
  5101. if { (ac_try="$ac_compile"
  5102. case "(($ac_try" in
  5103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5104. *) ac_try_echo=$ac_try;;
  5105. esac
  5106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5107. (eval "$ac_compile") 2>conftest.er1
  5108. ac_status=$?
  5109. grep -v '^ *+' conftest.er1 >conftest.err
  5110. rm -f conftest.er1
  5111. cat conftest.err >&5
  5112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5113. (exit $ac_status); } && {
  5114. test -z "$ac_cxx_werror_flag" ||
  5115. test ! -s conftest.err
  5116. } && test -s conftest.$ac_objext; then
  5117. :
  5118. else
  5119. echo "$as_me: failed program was:" >&5
  5120. sed 's/^/| /' conftest.$ac_ext >&5
  5121. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5122. CXXFLAGS="-g"
  5123. cat >conftest.$ac_ext <<_ACEOF
  5124. /* confdefs.h. */
  5125. _ACEOF
  5126. cat confdefs.h >>conftest.$ac_ext
  5127. cat >>conftest.$ac_ext <<_ACEOF
  5128. /* end confdefs.h. */
  5129. int
  5130. main ()
  5131. {
  5132. ;
  5133. return 0;
  5134. }
  5135. _ACEOF
  5136. rm -f conftest.$ac_objext
  5137. if { (ac_try="$ac_compile"
  5138. case "(($ac_try" in
  5139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5140. *) ac_try_echo=$ac_try;;
  5141. esac
  5142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5143. (eval "$ac_compile") 2>conftest.er1
  5144. ac_status=$?
  5145. grep -v '^ *+' conftest.er1 >conftest.err
  5146. rm -f conftest.er1
  5147. cat conftest.err >&5
  5148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5149. (exit $ac_status); } && {
  5150. test -z "$ac_cxx_werror_flag" ||
  5151. test ! -s conftest.err
  5152. } && test -s conftest.$ac_objext; then
  5153. ac_cv_prog_cxx_g=yes
  5154. else
  5155. echo "$as_me: failed program was:" >&5
  5156. sed 's/^/| /' conftest.$ac_ext >&5
  5157. fi
  5158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5161. fi
  5162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5163. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5164. fi
  5165. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5166. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5167. if test "$ac_test_CXXFLAGS" = set; then
  5168. CXXFLAGS=$ac_save_CXXFLAGS
  5169. elif test $ac_cv_prog_cxx_g = yes; then
  5170. if test "$GXX" = yes; then
  5171. CXXFLAGS="-g -O2"
  5172. else
  5173. CXXFLAGS="-g"
  5174. fi
  5175. else
  5176. if test "$GXX" = yes; then
  5177. CXXFLAGS="-O2"
  5178. else
  5179. CXXFLAGS=
  5180. fi
  5181. fi
  5182. ac_ext=cpp
  5183. ac_cpp='$CXXCPP $CPPFLAGS'
  5184. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5185. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5187. depcc="$CXX" am_compiler_list=
  5188. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5189. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5190. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. else
  5193. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5194. # We make a subdir and do the tests there. Otherwise we can end up
  5195. # making bogus files that we don't know about and never remove. For
  5196. # instance it was reported that on HP-UX the gcc test will end up
  5197. # making a dummy file named `D' -- because `-MD' means `put the output
  5198. # in D'.
  5199. mkdir conftest.dir
  5200. # Copy depcomp to subdir because otherwise we won't find it if we're
  5201. # using a relative directory.
  5202. cp "$am_depcomp" conftest.dir
  5203. cd conftest.dir
  5204. # We will build objects and dependencies in a subdirectory because
  5205. # it helps to detect inapplicable dependency modes. For instance
  5206. # both Tru64's cc and ICC support -MD to output dependencies as a
  5207. # side effect of compilation, but ICC will put the dependencies in
  5208. # the current directory while Tru64 will put them in the object
  5209. # directory.
  5210. mkdir sub
  5211. am_cv_CXX_dependencies_compiler_type=none
  5212. if test "$am_compiler_list" = ""; then
  5213. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5214. fi
  5215. for depmode in $am_compiler_list; do
  5216. # Setup a source with many dependencies, because some compilers
  5217. # like to wrap large dependency lists on column 80 (with \), and
  5218. # we should not choose a depcomp mode which is confused by this.
  5219. #
  5220. # We need to recreate these files for each test, as the compiler may
  5221. # overwrite some of them when testing with obscure command lines.
  5222. # This happens at least with the AIX C compiler.
  5223. : > sub/conftest.c
  5224. for i in 1 2 3 4 5 6; do
  5225. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5226. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5227. # Solaris 8's {/usr,}/bin/sh.
  5228. touch sub/conftst$i.h
  5229. done
  5230. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5231. case $depmode in
  5232. nosideeffect)
  5233. # after this tag, mechanisms are not by side-effect, so they'll
  5234. # only be used when explicitly requested
  5235. if test "x$enable_dependency_tracking" = xyes; then
  5236. continue
  5237. else
  5238. break
  5239. fi
  5240. ;;
  5241. none) break ;;
  5242. esac
  5243. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5244. # mode. It turns out that the SunPro C++ compiler does not properly
  5245. # handle `-M -o', and we need to detect this.
  5246. if depmode=$depmode \
  5247. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5248. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5249. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5250. >/dev/null 2>conftest.err &&
  5251. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5252. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5253. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5254. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5255. # icc doesn't choke on unknown options, it will just issue warnings
  5256. # or remarks (even with -Werror). So we grep stderr for any message
  5257. # that says an option was ignored or not supported.
  5258. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5259. # icc: Command line warning: ignoring option '-M'; no argument required
  5260. # The diagnosis changed in icc 8.0:
  5261. # icc: Command line remark: option '-MP' not supported
  5262. if (grep 'ignoring option' conftest.err ||
  5263. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5264. am_cv_CXX_dependencies_compiler_type=$depmode
  5265. break
  5266. fi
  5267. fi
  5268. done
  5269. cd ..
  5270. rm -rf conftest.dir
  5271. else
  5272. am_cv_CXX_dependencies_compiler_type=none
  5273. fi
  5274. fi
  5275. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5276. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5277. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5278. if
  5279. test "x$enable_dependency_tracking" != xno \
  5280. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5281. am__fastdepCXX_TRUE=
  5282. am__fastdepCXX_FALSE='#'
  5283. else
  5284. am__fastdepCXX_TRUE='#'
  5285. am__fastdepCXX_FALSE=
  5286. fi
  5287. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5288. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5289. (test "X$CXX" != "Xg++"))) ; then
  5290. ac_ext=cpp
  5291. ac_cpp='$CXXCPP $CPPFLAGS'
  5292. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5293. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5294. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5295. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5296. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5297. if test -z "$CXXCPP"; then
  5298. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5299. echo $ECHO_N "(cached) $ECHO_C" >&6
  5300. else
  5301. # Double quotes because CXXCPP needs to be expanded
  5302. for CXXCPP in "$CXX -E" "/lib/cpp"
  5303. do
  5304. ac_preproc_ok=false
  5305. for ac_cxx_preproc_warn_flag in '' yes
  5306. do
  5307. # Use a header file that comes with gcc, so configuring glibc
  5308. # with a fresh cross-compiler works.
  5309. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5310. # <limits.h> exists even on freestanding compilers.
  5311. # On the NeXT, cc -E runs the code through the compiler's parser,
  5312. # not just through cpp. "Syntax error" is here to catch this case.
  5313. cat >conftest.$ac_ext <<_ACEOF
  5314. /* confdefs.h. */
  5315. _ACEOF
  5316. cat confdefs.h >>conftest.$ac_ext
  5317. cat >>conftest.$ac_ext <<_ACEOF
  5318. /* end confdefs.h. */
  5319. #ifdef __STDC__
  5320. # include <limits.h>
  5321. #else
  5322. # include <assert.h>
  5323. #endif
  5324. Syntax error
  5325. _ACEOF
  5326. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5327. case "(($ac_try" in
  5328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5329. *) ac_try_echo=$ac_try;;
  5330. esac
  5331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5332. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5333. ac_status=$?
  5334. grep -v '^ *+' conftest.er1 >conftest.err
  5335. rm -f conftest.er1
  5336. cat conftest.err >&5
  5337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5338. (exit $ac_status); } >/dev/null && {
  5339. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5340. test ! -s conftest.err
  5341. }; then
  5342. :
  5343. else
  5344. echo "$as_me: failed program was:" >&5
  5345. sed 's/^/| /' conftest.$ac_ext >&5
  5346. # Broken: fails on valid input.
  5347. continue
  5348. fi
  5349. rm -f conftest.err conftest.$ac_ext
  5350. # OK, works on sane cases. Now check whether nonexistent headers
  5351. # can be detected and how.
  5352. cat >conftest.$ac_ext <<_ACEOF
  5353. /* confdefs.h. */
  5354. _ACEOF
  5355. cat confdefs.h >>conftest.$ac_ext
  5356. cat >>conftest.$ac_ext <<_ACEOF
  5357. /* end confdefs.h. */
  5358. #include <ac_nonexistent.h>
  5359. _ACEOF
  5360. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5361. case "(($ac_try" in
  5362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5363. *) ac_try_echo=$ac_try;;
  5364. esac
  5365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5366. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5367. ac_status=$?
  5368. grep -v '^ *+' conftest.er1 >conftest.err
  5369. rm -f conftest.er1
  5370. cat conftest.err >&5
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); } >/dev/null && {
  5373. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5374. test ! -s conftest.err
  5375. }; then
  5376. # Broken: success on invalid input.
  5377. continue
  5378. else
  5379. echo "$as_me: failed program was:" >&5
  5380. sed 's/^/| /' conftest.$ac_ext >&5
  5381. # Passes both tests.
  5382. ac_preproc_ok=:
  5383. break
  5384. fi
  5385. rm -f conftest.err conftest.$ac_ext
  5386. done
  5387. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5388. rm -f conftest.err conftest.$ac_ext
  5389. if $ac_preproc_ok; then
  5390. break
  5391. fi
  5392. done
  5393. ac_cv_prog_CXXCPP=$CXXCPP
  5394. fi
  5395. CXXCPP=$ac_cv_prog_CXXCPP
  5396. else
  5397. ac_cv_prog_CXXCPP=$CXXCPP
  5398. fi
  5399. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5400. echo "${ECHO_T}$CXXCPP" >&6; }
  5401. ac_preproc_ok=false
  5402. for ac_cxx_preproc_warn_flag in '' yes
  5403. do
  5404. # Use a header file that comes with gcc, so configuring glibc
  5405. # with a fresh cross-compiler works.
  5406. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5407. # <limits.h> exists even on freestanding compilers.
  5408. # On the NeXT, cc -E runs the code through the compiler's parser,
  5409. # not just through cpp. "Syntax error" is here to catch this case.
  5410. cat >conftest.$ac_ext <<_ACEOF
  5411. /* confdefs.h. */
  5412. _ACEOF
  5413. cat confdefs.h >>conftest.$ac_ext
  5414. cat >>conftest.$ac_ext <<_ACEOF
  5415. /* end confdefs.h. */
  5416. #ifdef __STDC__
  5417. # include <limits.h>
  5418. #else
  5419. # include <assert.h>
  5420. #endif
  5421. Syntax error
  5422. _ACEOF
  5423. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5424. case "(($ac_try" in
  5425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5426. *) ac_try_echo=$ac_try;;
  5427. esac
  5428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5429. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5430. ac_status=$?
  5431. grep -v '^ *+' conftest.er1 >conftest.err
  5432. rm -f conftest.er1
  5433. cat conftest.err >&5
  5434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5435. (exit $ac_status); } >/dev/null && {
  5436. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5437. test ! -s conftest.err
  5438. }; then
  5439. :
  5440. else
  5441. echo "$as_me: failed program was:" >&5
  5442. sed 's/^/| /' conftest.$ac_ext >&5
  5443. # Broken: fails on valid input.
  5444. continue
  5445. fi
  5446. rm -f conftest.err conftest.$ac_ext
  5447. # OK, works on sane cases. Now check whether nonexistent headers
  5448. # can be detected and how.
  5449. cat >conftest.$ac_ext <<_ACEOF
  5450. /* confdefs.h. */
  5451. _ACEOF
  5452. cat confdefs.h >>conftest.$ac_ext
  5453. cat >>conftest.$ac_ext <<_ACEOF
  5454. /* end confdefs.h. */
  5455. #include <ac_nonexistent.h>
  5456. _ACEOF
  5457. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5458. case "(($ac_try" in
  5459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5460. *) ac_try_echo=$ac_try;;
  5461. esac
  5462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5463. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5464. ac_status=$?
  5465. grep -v '^ *+' conftest.er1 >conftest.err
  5466. rm -f conftest.er1
  5467. cat conftest.err >&5
  5468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. (exit $ac_status); } >/dev/null && {
  5470. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5471. test ! -s conftest.err
  5472. }; then
  5473. # Broken: success on invalid input.
  5474. continue
  5475. else
  5476. echo "$as_me: failed program was:" >&5
  5477. sed 's/^/| /' conftest.$ac_ext >&5
  5478. # Passes both tests.
  5479. ac_preproc_ok=:
  5480. break
  5481. fi
  5482. rm -f conftest.err conftest.$ac_ext
  5483. done
  5484. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5485. rm -f conftest.err conftest.$ac_ext
  5486. if $ac_preproc_ok; then
  5487. :
  5488. else
  5489. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5490. See \`config.log' for more details." >&5
  5491. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5492. See \`config.log' for more details." >&2;}
  5493. { (exit 1); exit 1; }; }
  5494. fi
  5495. ac_ext=cpp
  5496. ac_cpp='$CXXCPP $CPPFLAGS'
  5497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5500. fi
  5501. ac_ext=f
  5502. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5503. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5504. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5505. if test -n "$ac_tool_prefix"; then
  5506. 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
  5507. do
  5508. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5509. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5510. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5511. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5512. if test "${ac_cv_prog_F77+set}" = set; then
  5513. echo $ECHO_N "(cached) $ECHO_C" >&6
  5514. else
  5515. if test -n "$F77"; then
  5516. ac_cv_prog_F77="$F77" # Let the user override the test.
  5517. else
  5518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5519. for as_dir in $PATH
  5520. do
  5521. IFS=$as_save_IFS
  5522. test -z "$as_dir" && as_dir=.
  5523. for ac_exec_ext in '' $ac_executable_extensions; do
  5524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5525. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5526. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5527. break 2
  5528. fi
  5529. done
  5530. done
  5531. IFS=$as_save_IFS
  5532. fi
  5533. fi
  5534. F77=$ac_cv_prog_F77
  5535. if test -n "$F77"; then
  5536. { echo "$as_me:$LINENO: result: $F77" >&5
  5537. echo "${ECHO_T}$F77" >&6; }
  5538. else
  5539. { echo "$as_me:$LINENO: result: no" >&5
  5540. echo "${ECHO_T}no" >&6; }
  5541. fi
  5542. test -n "$F77" && break
  5543. done
  5544. fi
  5545. if test -z "$F77"; then
  5546. ac_ct_F77=$F77
  5547. 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
  5548. do
  5549. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5550. set dummy $ac_prog; ac_word=$2
  5551. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5553. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5554. echo $ECHO_N "(cached) $ECHO_C" >&6
  5555. else
  5556. if test -n "$ac_ct_F77"; then
  5557. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5566. ac_cv_prog_ac_ct_F77="$ac_prog"
  5567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5576. if test -n "$ac_ct_F77"; then
  5577. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5578. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5579. else
  5580. { echo "$as_me:$LINENO: result: no" >&5
  5581. echo "${ECHO_T}no" >&6; }
  5582. fi
  5583. test -n "$ac_ct_F77" && break
  5584. done
  5585. if test "x$ac_ct_F77" = x; then
  5586. F77=""
  5587. else
  5588. case $cross_compiling:$ac_tool_warned in
  5589. yes:)
  5590. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5591. whose name does not start with the host triplet. If you think this
  5592. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5593. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5594. whose name does not start with the host triplet. If you think this
  5595. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5596. ac_tool_warned=yes ;;
  5597. esac
  5598. F77=$ac_ct_F77
  5599. fi
  5600. fi
  5601. # Provide some information about the compiler.
  5602. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5603. ac_compiler=`set X $ac_compile; echo $2`
  5604. { (ac_try="$ac_compiler --version >&5"
  5605. case "(($ac_try" in
  5606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5607. *) ac_try_echo=$ac_try;;
  5608. esac
  5609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5610. (eval "$ac_compiler --version >&5") 2>&5
  5611. ac_status=$?
  5612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); }
  5614. { (ac_try="$ac_compiler -v >&5"
  5615. case "(($ac_try" in
  5616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5617. *) ac_try_echo=$ac_try;;
  5618. esac
  5619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5620. (eval "$ac_compiler -v >&5") 2>&5
  5621. ac_status=$?
  5622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. (exit $ac_status); }
  5624. { (ac_try="$ac_compiler -V >&5"
  5625. case "(($ac_try" in
  5626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5627. *) ac_try_echo=$ac_try;;
  5628. esac
  5629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5630. (eval "$ac_compiler -V >&5") 2>&5
  5631. ac_status=$?
  5632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); }
  5634. rm -f a.out
  5635. # If we don't use `.F' as extension, the preprocessor is not run on the
  5636. # input file. (Note that this only needs to work for GNU compilers.)
  5637. ac_save_ext=$ac_ext
  5638. ac_ext=F
  5639. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5640. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5641. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. cat >conftest.$ac_ext <<_ACEOF
  5645. program main
  5646. #ifndef __GNUC__
  5647. choke me
  5648. #endif
  5649. end
  5650. _ACEOF
  5651. rm -f conftest.$ac_objext
  5652. if { (ac_try="$ac_compile"
  5653. case "(($ac_try" in
  5654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5655. *) ac_try_echo=$ac_try;;
  5656. esac
  5657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5658. (eval "$ac_compile") 2>conftest.er1
  5659. ac_status=$?
  5660. grep -v '^ *+' conftest.er1 >conftest.err
  5661. rm -f conftest.er1
  5662. cat conftest.err >&5
  5663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5664. (exit $ac_status); } && {
  5665. test -z "$ac_f77_werror_flag" ||
  5666. test ! -s conftest.err
  5667. } && test -s conftest.$ac_objext; then
  5668. ac_compiler_gnu=yes
  5669. else
  5670. echo "$as_me: failed program was:" >&5
  5671. sed 's/^/| /' conftest.$ac_ext >&5
  5672. ac_compiler_gnu=no
  5673. fi
  5674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5675. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5676. fi
  5677. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5678. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5679. ac_ext=$ac_save_ext
  5680. ac_test_FFLAGS=${FFLAGS+set}
  5681. ac_save_FFLAGS=$FFLAGS
  5682. FFLAGS=
  5683. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5684. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5685. if test "${ac_cv_prog_f77_g+set}" = set; then
  5686. echo $ECHO_N "(cached) $ECHO_C" >&6
  5687. else
  5688. FFLAGS=-g
  5689. cat >conftest.$ac_ext <<_ACEOF
  5690. program main
  5691. end
  5692. _ACEOF
  5693. rm -f conftest.$ac_objext
  5694. if { (ac_try="$ac_compile"
  5695. case "(($ac_try" in
  5696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5697. *) ac_try_echo=$ac_try;;
  5698. esac
  5699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5700. (eval "$ac_compile") 2>conftest.er1
  5701. ac_status=$?
  5702. grep -v '^ *+' conftest.er1 >conftest.err
  5703. rm -f conftest.er1
  5704. cat conftest.err >&5
  5705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5706. (exit $ac_status); } && {
  5707. test -z "$ac_f77_werror_flag" ||
  5708. test ! -s conftest.err
  5709. } && test -s conftest.$ac_objext; then
  5710. ac_cv_prog_f77_g=yes
  5711. else
  5712. echo "$as_me: failed program was:" >&5
  5713. sed 's/^/| /' conftest.$ac_ext >&5
  5714. ac_cv_prog_f77_g=no
  5715. fi
  5716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5717. fi
  5718. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5719. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5720. if test "$ac_test_FFLAGS" = set; then
  5721. FFLAGS=$ac_save_FFLAGS
  5722. elif test $ac_cv_prog_f77_g = yes; then
  5723. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5724. FFLAGS="-g -O2"
  5725. else
  5726. FFLAGS="-g"
  5727. fi
  5728. else
  5729. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5730. FFLAGS="-O2"
  5731. else
  5732. FFLAGS=
  5733. fi
  5734. fi
  5735. G77=`test $ac_compiler_gnu = yes && echo yes`
  5736. ac_ext=c
  5737. ac_cpp='$CPP $CPPFLAGS'
  5738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5741. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5742. # find the maximum length of command line arguments
  5743. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5744. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5745. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5746. echo $ECHO_N "(cached) $ECHO_C" >&6
  5747. else
  5748. i=0
  5749. teststring="ABCD"
  5750. case $build_os in
  5751. msdosdjgpp*)
  5752. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5753. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5754. # during glob expansion). Even if it were fixed, the result of this
  5755. # check would be larger than it should be.
  5756. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5757. ;;
  5758. gnu*)
  5759. # Under GNU Hurd, this test is not required because there is
  5760. # no limit to the length of command line arguments.
  5761. # Libtool will interpret -1 as no limit whatsoever
  5762. lt_cv_sys_max_cmd_len=-1;
  5763. ;;
  5764. cygwin* | mingw*)
  5765. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5766. # about 5 minutes as the teststring grows exponentially.
  5767. # Worse, since 9x/ME are not pre-emptively multitasking,
  5768. # you end up with a "frozen" computer, even though with patience
  5769. # the test eventually succeeds (with a max line length of 256k).
  5770. # Instead, let's just punt: use the minimum linelength reported by
  5771. # all of the supported platforms: 8192 (on NT/2K/XP).
  5772. lt_cv_sys_max_cmd_len=8192;
  5773. ;;
  5774. amigaos*)
  5775. # On AmigaOS with pdksh, this test takes hours, literally.
  5776. # So we just punt and use a minimum line length of 8192.
  5777. lt_cv_sys_max_cmd_len=8192;
  5778. ;;
  5779. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5780. # This has been around since 386BSD, at least. Likely further.
  5781. if test -x /sbin/sysctl; then
  5782. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5783. elif test -x /usr/sbin/sysctl; then
  5784. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5785. else
  5786. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5787. fi
  5788. # And add a safety zone
  5789. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5790. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5791. ;;
  5792. interix*)
  5793. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5794. lt_cv_sys_max_cmd_len=196608
  5795. ;;
  5796. osf*)
  5797. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5798. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5799. # nice to cause kernel panics so lets avoid the loop below.
  5800. # First set a reasonable default.
  5801. lt_cv_sys_max_cmd_len=16384
  5802. #
  5803. if test -x /sbin/sysconfig; then
  5804. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5805. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5806. esac
  5807. fi
  5808. ;;
  5809. sco3.2v5*)
  5810. lt_cv_sys_max_cmd_len=102400
  5811. ;;
  5812. sysv5* | sco5v6* | sysv4.2uw2*)
  5813. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5814. if test -n "$kargmax"; then
  5815. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5816. else
  5817. lt_cv_sys_max_cmd_len=32768
  5818. fi
  5819. ;;
  5820. *)
  5821. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5822. if test -n "$lt_cv_sys_max_cmd_len"; then
  5823. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5824. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5825. else
  5826. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5827. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5828. = "XX$teststring") >/dev/null 2>&1 &&
  5829. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5830. lt_cv_sys_max_cmd_len=$new_result &&
  5831. test $i != 17 # 1/2 MB should be enough
  5832. do
  5833. i=`expr $i + 1`
  5834. teststring=$teststring$teststring
  5835. done
  5836. teststring=
  5837. # Add a significant safety factor because C++ compilers can tack on massive
  5838. # amounts of additional arguments before passing them to the linker.
  5839. # It appears as though 1/2 is a usable value.
  5840. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5841. fi
  5842. ;;
  5843. esac
  5844. fi
  5845. if test -n $lt_cv_sys_max_cmd_len ; then
  5846. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5847. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5848. else
  5849. { echo "$as_me:$LINENO: result: none" >&5
  5850. echo "${ECHO_T}none" >&6; }
  5851. fi
  5852. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5853. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5854. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5855. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5856. echo $ECHO_N "(cached) $ECHO_C" >&6
  5857. else
  5858. # These are sane defaults that work on at least a few old systems.
  5859. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5860. # Character class describing NM global symbol codes.
  5861. symcode='[BCDEGRST]'
  5862. # Regexp to match symbols that can be accessed directly from C.
  5863. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5864. # Transform an extracted symbol line into a proper C declaration
  5865. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5866. # Transform an extracted symbol line into symbol name and symbol address
  5867. 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'"
  5868. # Define system-specific variables.
  5869. case $host_os in
  5870. aix*)
  5871. symcode='[BCDT]'
  5872. ;;
  5873. cygwin* | mingw* | pw32*)
  5874. symcode='[ABCDGISTW]'
  5875. ;;
  5876. hpux*) # Its linker distinguishes data from code symbols
  5877. if test "$host_cpu" = ia64; then
  5878. symcode='[ABCDEGRST]'
  5879. fi
  5880. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5881. 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'"
  5882. ;;
  5883. linux* | k*bsd*-gnu)
  5884. if test "$host_cpu" = ia64; then
  5885. symcode='[ABCDGIRSTW]'
  5886. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5887. 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'"
  5888. fi
  5889. ;;
  5890. irix* | nonstopux*)
  5891. symcode='[BCDEGRST]'
  5892. ;;
  5893. osf*)
  5894. symcode='[BCDEGQRST]'
  5895. ;;
  5896. solaris*)
  5897. symcode='[BDRT]'
  5898. ;;
  5899. sco3.2v5*)
  5900. symcode='[DT]'
  5901. ;;
  5902. sysv4.2uw2*)
  5903. symcode='[DT]'
  5904. ;;
  5905. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5906. symcode='[ABDT]'
  5907. ;;
  5908. sysv4)
  5909. symcode='[DFNSTU]'
  5910. ;;
  5911. esac
  5912. # Handle CRLF in mingw tool chain
  5913. opt_cr=
  5914. case $build_os in
  5915. mingw*)
  5916. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5917. ;;
  5918. esac
  5919. # If we're using GNU nm, then use its standard symbol codes.
  5920. case `$NM -V 2>&1` in
  5921. *GNU* | *'with BFD'*)
  5922. symcode='[ABCDGIRSTW]' ;;
  5923. esac
  5924. # Try without a prefix undercore, then with it.
  5925. for ac_symprfx in "" "_"; do
  5926. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5927. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5928. # Write the raw and C identifiers.
  5929. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5930. # Check to see that the pipe works correctly.
  5931. pipe_works=no
  5932. rm -f conftest*
  5933. cat > conftest.$ac_ext <<EOF
  5934. #ifdef __cplusplus
  5935. extern "C" {
  5936. #endif
  5937. char nm_test_var;
  5938. void nm_test_func(){}
  5939. #ifdef __cplusplus
  5940. }
  5941. #endif
  5942. int main(){nm_test_var='a';nm_test_func();return(0);}
  5943. EOF
  5944. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5945. (eval $ac_compile) 2>&5
  5946. ac_status=$?
  5947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5948. (exit $ac_status); }; then
  5949. # Now try to grab the symbols.
  5950. nlist=conftest.nm
  5951. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5952. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5953. ac_status=$?
  5954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5955. (exit $ac_status); } && test -s "$nlist"; then
  5956. # Try sorting and uniquifying the output.
  5957. if sort "$nlist" | uniq > "$nlist"T; then
  5958. mv -f "$nlist"T "$nlist"
  5959. else
  5960. rm -f "$nlist"T
  5961. fi
  5962. # Make sure that we snagged all the symbols we need.
  5963. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5964. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5965. cat <<EOF > conftest.$ac_ext
  5966. #ifdef __cplusplus
  5967. extern "C" {
  5968. #endif
  5969. EOF
  5970. # Now generate the symbol file.
  5971. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5972. cat <<EOF >> conftest.$ac_ext
  5973. #if defined (__STDC__) && __STDC__
  5974. # define lt_ptr_t void *
  5975. #else
  5976. # define lt_ptr_t char *
  5977. # define const
  5978. #endif
  5979. /* The mapping between symbol names and symbols. */
  5980. const struct {
  5981. const char *name;
  5982. lt_ptr_t address;
  5983. }
  5984. lt_preloaded_symbols[] =
  5985. {
  5986. EOF
  5987. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5988. cat <<\EOF >> conftest.$ac_ext
  5989. {0, (lt_ptr_t) 0}
  5990. };
  5991. #ifdef __cplusplus
  5992. }
  5993. #endif
  5994. EOF
  5995. # Now try linking the two files.
  5996. mv conftest.$ac_objext conftstm.$ac_objext
  5997. lt_save_LIBS="$LIBS"
  5998. lt_save_CFLAGS="$CFLAGS"
  5999. LIBS="conftstm.$ac_objext"
  6000. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6001. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6002. (eval $ac_link) 2>&5
  6003. ac_status=$?
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6006. pipe_works=yes
  6007. fi
  6008. LIBS="$lt_save_LIBS"
  6009. CFLAGS="$lt_save_CFLAGS"
  6010. else
  6011. echo "cannot find nm_test_func in $nlist" >&5
  6012. fi
  6013. else
  6014. echo "cannot find nm_test_var in $nlist" >&5
  6015. fi
  6016. else
  6017. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6018. fi
  6019. else
  6020. echo "$progname: failed program was:" >&5
  6021. cat conftest.$ac_ext >&5
  6022. fi
  6023. rm -rf conftest* conftst*
  6024. # Do not use the global_symbol_pipe unless it works.
  6025. if test "$pipe_works" = yes; then
  6026. break
  6027. else
  6028. lt_cv_sys_global_symbol_pipe=
  6029. fi
  6030. done
  6031. fi
  6032. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6033. lt_cv_sys_global_symbol_to_cdecl=
  6034. fi
  6035. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6036. { echo "$as_me:$LINENO: result: failed" >&5
  6037. echo "${ECHO_T}failed" >&6; }
  6038. else
  6039. { echo "$as_me:$LINENO: result: ok" >&5
  6040. echo "${ECHO_T}ok" >&6; }
  6041. fi
  6042. { echo "$as_me:$LINENO: checking for objdir" >&5
  6043. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6044. if test "${lt_cv_objdir+set}" = set; then
  6045. echo $ECHO_N "(cached) $ECHO_C" >&6
  6046. else
  6047. rm -f .libs 2>/dev/null
  6048. mkdir .libs 2>/dev/null
  6049. if test -d .libs; then
  6050. lt_cv_objdir=.libs
  6051. else
  6052. # MS-DOS does not allow filenames that begin with a dot.
  6053. lt_cv_objdir=_libs
  6054. fi
  6055. rmdir .libs 2>/dev/null
  6056. fi
  6057. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6058. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6059. objdir=$lt_cv_objdir
  6060. case $host_os in
  6061. aix3*)
  6062. # AIX sometimes has problems with the GCC collect2 program. For some
  6063. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6064. # vanish in a puff of smoke.
  6065. if test "X${COLLECT_NAMES+set}" != Xset; then
  6066. COLLECT_NAMES=
  6067. export COLLECT_NAMES
  6068. fi
  6069. ;;
  6070. esac
  6071. # Sed substitution that helps us do robust quoting. It backslashifies
  6072. # metacharacters that are still active within double-quoted strings.
  6073. Xsed='sed -e 1s/^X//'
  6074. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6075. # Same as above, but do not quote variable references.
  6076. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6077. # Sed substitution to delay expansion of an escaped shell variable in a
  6078. # double_quote_subst'ed string.
  6079. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6080. # Sed substitution to avoid accidental globbing in evaled expressions
  6081. no_glob_subst='s/\*/\\\*/g'
  6082. # Constants:
  6083. rm="rm -f"
  6084. # Global variables:
  6085. default_ofile=libtool
  6086. can_build_shared=yes
  6087. # All known linkers require a `.a' archive for static linking (except MSVC,
  6088. # which needs '.lib').
  6089. libext=a
  6090. ltmain="$ac_aux_dir/ltmain.sh"
  6091. ofile="$default_ofile"
  6092. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6093. if test -n "$ac_tool_prefix"; then
  6094. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6095. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6096. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6098. if test "${ac_cv_prog_AR+set}" = set; then
  6099. echo $ECHO_N "(cached) $ECHO_C" >&6
  6100. else
  6101. if test -n "$AR"; then
  6102. ac_cv_prog_AR="$AR" # Let the user override the test.
  6103. else
  6104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6105. for as_dir in $PATH
  6106. do
  6107. IFS=$as_save_IFS
  6108. test -z "$as_dir" && as_dir=.
  6109. for ac_exec_ext in '' $ac_executable_extensions; do
  6110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6111. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6112. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6113. break 2
  6114. fi
  6115. done
  6116. done
  6117. IFS=$as_save_IFS
  6118. fi
  6119. fi
  6120. AR=$ac_cv_prog_AR
  6121. if test -n "$AR"; then
  6122. { echo "$as_me:$LINENO: result: $AR" >&5
  6123. echo "${ECHO_T}$AR" >&6; }
  6124. else
  6125. { echo "$as_me:$LINENO: result: no" >&5
  6126. echo "${ECHO_T}no" >&6; }
  6127. fi
  6128. fi
  6129. if test -z "$ac_cv_prog_AR"; then
  6130. ac_ct_AR=$AR
  6131. # Extract the first word of "ar", so it can be a program name with args.
  6132. set dummy ar; ac_word=$2
  6133. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6135. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6136. echo $ECHO_N "(cached) $ECHO_C" >&6
  6137. else
  6138. if test -n "$ac_ct_AR"; then
  6139. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6140. else
  6141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6142. for as_dir in $PATH
  6143. do
  6144. IFS=$as_save_IFS
  6145. test -z "$as_dir" && as_dir=.
  6146. for ac_exec_ext in '' $ac_executable_extensions; do
  6147. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6148. ac_cv_prog_ac_ct_AR="ar"
  6149. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6150. break 2
  6151. fi
  6152. done
  6153. done
  6154. IFS=$as_save_IFS
  6155. fi
  6156. fi
  6157. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6158. if test -n "$ac_ct_AR"; then
  6159. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6160. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6161. else
  6162. { echo "$as_me:$LINENO: result: no" >&5
  6163. echo "${ECHO_T}no" >&6; }
  6164. fi
  6165. if test "x$ac_ct_AR" = x; then
  6166. AR="false"
  6167. else
  6168. case $cross_compiling:$ac_tool_warned in
  6169. yes:)
  6170. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6171. whose name does not start with the host triplet. If you think this
  6172. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6173. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6174. whose name does not start with the host triplet. If you think this
  6175. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6176. ac_tool_warned=yes ;;
  6177. esac
  6178. AR=$ac_ct_AR
  6179. fi
  6180. else
  6181. AR="$ac_cv_prog_AR"
  6182. fi
  6183. if test -n "$ac_tool_prefix"; then
  6184. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6185. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6186. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6187. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6188. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6189. echo $ECHO_N "(cached) $ECHO_C" >&6
  6190. else
  6191. if test -n "$RANLIB"; then
  6192. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6193. else
  6194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6195. for as_dir in $PATH
  6196. do
  6197. IFS=$as_save_IFS
  6198. test -z "$as_dir" && as_dir=.
  6199. for ac_exec_ext in '' $ac_executable_extensions; do
  6200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6201. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6202. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6203. break 2
  6204. fi
  6205. done
  6206. done
  6207. IFS=$as_save_IFS
  6208. fi
  6209. fi
  6210. RANLIB=$ac_cv_prog_RANLIB
  6211. if test -n "$RANLIB"; then
  6212. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6213. echo "${ECHO_T}$RANLIB" >&6; }
  6214. else
  6215. { echo "$as_me:$LINENO: result: no" >&5
  6216. echo "${ECHO_T}no" >&6; }
  6217. fi
  6218. fi
  6219. if test -z "$ac_cv_prog_RANLIB"; then
  6220. ac_ct_RANLIB=$RANLIB
  6221. # Extract the first word of "ranlib", so it can be a program name with args.
  6222. set dummy ranlib; ac_word=$2
  6223. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6225. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6226. echo $ECHO_N "(cached) $ECHO_C" >&6
  6227. else
  6228. if test -n "$ac_ct_RANLIB"; then
  6229. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6230. else
  6231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6232. for as_dir in $PATH
  6233. do
  6234. IFS=$as_save_IFS
  6235. test -z "$as_dir" && as_dir=.
  6236. for ac_exec_ext in '' $ac_executable_extensions; do
  6237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6238. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6240. break 2
  6241. fi
  6242. done
  6243. done
  6244. IFS=$as_save_IFS
  6245. fi
  6246. fi
  6247. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6248. if test -n "$ac_ct_RANLIB"; then
  6249. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6250. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6251. else
  6252. { echo "$as_me:$LINENO: result: no" >&5
  6253. echo "${ECHO_T}no" >&6; }
  6254. fi
  6255. if test "x$ac_ct_RANLIB" = x; then
  6256. RANLIB=":"
  6257. else
  6258. case $cross_compiling:$ac_tool_warned in
  6259. yes:)
  6260. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6261. whose name does not start with the host triplet. If you think this
  6262. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6263. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6264. whose name does not start with the host triplet. If you think this
  6265. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6266. ac_tool_warned=yes ;;
  6267. esac
  6268. RANLIB=$ac_ct_RANLIB
  6269. fi
  6270. else
  6271. RANLIB="$ac_cv_prog_RANLIB"
  6272. fi
  6273. if test -n "$ac_tool_prefix"; then
  6274. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6275. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6276. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6277. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6278. if test "${ac_cv_prog_STRIP+set}" = set; then
  6279. echo $ECHO_N "(cached) $ECHO_C" >&6
  6280. else
  6281. if test -n "$STRIP"; then
  6282. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6283. else
  6284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6285. for as_dir in $PATH
  6286. do
  6287. IFS=$as_save_IFS
  6288. test -z "$as_dir" && as_dir=.
  6289. for ac_exec_ext in '' $ac_executable_extensions; do
  6290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6291. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6292. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6293. break 2
  6294. fi
  6295. done
  6296. done
  6297. IFS=$as_save_IFS
  6298. fi
  6299. fi
  6300. STRIP=$ac_cv_prog_STRIP
  6301. if test -n "$STRIP"; then
  6302. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6303. echo "${ECHO_T}$STRIP" >&6; }
  6304. else
  6305. { echo "$as_me:$LINENO: result: no" >&5
  6306. echo "${ECHO_T}no" >&6; }
  6307. fi
  6308. fi
  6309. if test -z "$ac_cv_prog_STRIP"; then
  6310. ac_ct_STRIP=$STRIP
  6311. # Extract the first word of "strip", so it can be a program name with args.
  6312. set dummy strip; ac_word=$2
  6313. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6314. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6315. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6316. echo $ECHO_N "(cached) $ECHO_C" >&6
  6317. else
  6318. if test -n "$ac_ct_STRIP"; then
  6319. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6320. else
  6321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6322. for as_dir in $PATH
  6323. do
  6324. IFS=$as_save_IFS
  6325. test -z "$as_dir" && as_dir=.
  6326. for ac_exec_ext in '' $ac_executable_extensions; do
  6327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6328. ac_cv_prog_ac_ct_STRIP="strip"
  6329. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6330. break 2
  6331. fi
  6332. done
  6333. done
  6334. IFS=$as_save_IFS
  6335. fi
  6336. fi
  6337. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6338. if test -n "$ac_ct_STRIP"; then
  6339. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6340. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6341. else
  6342. { echo "$as_me:$LINENO: result: no" >&5
  6343. echo "${ECHO_T}no" >&6; }
  6344. fi
  6345. if test "x$ac_ct_STRIP" = x; then
  6346. STRIP=":"
  6347. else
  6348. case $cross_compiling:$ac_tool_warned in
  6349. yes:)
  6350. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6351. whose name does not start with the host triplet. If you think this
  6352. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6353. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6354. whose name does not start with the host triplet. If you think this
  6355. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6356. ac_tool_warned=yes ;;
  6357. esac
  6358. STRIP=$ac_ct_STRIP
  6359. fi
  6360. else
  6361. STRIP="$ac_cv_prog_STRIP"
  6362. fi
  6363. old_CC="$CC"
  6364. old_CFLAGS="$CFLAGS"
  6365. # Set sane defaults for various variables
  6366. test -z "$AR" && AR=ar
  6367. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6368. test -z "$AS" && AS=as
  6369. test -z "$CC" && CC=cc
  6370. test -z "$LTCC" && LTCC=$CC
  6371. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6372. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6373. test -z "$LD" && LD=ld
  6374. test -z "$LN_S" && LN_S="ln -s"
  6375. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6376. test -z "$NM" && NM=nm
  6377. test -z "$SED" && SED=sed
  6378. test -z "$OBJDUMP" && OBJDUMP=objdump
  6379. test -z "$RANLIB" && RANLIB=:
  6380. test -z "$STRIP" && STRIP=:
  6381. test -z "$ac_objext" && ac_objext=o
  6382. # Determine commands to create old-style static archives.
  6383. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6384. old_postinstall_cmds='chmod 644 $oldlib'
  6385. old_postuninstall_cmds=
  6386. if test -n "$RANLIB"; then
  6387. case $host_os in
  6388. openbsd*)
  6389. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6390. ;;
  6391. *)
  6392. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6393. ;;
  6394. esac
  6395. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6396. fi
  6397. for cc_temp in $compiler""; do
  6398. case $cc_temp in
  6399. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6400. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6401. \-*) ;;
  6402. *) break;;
  6403. esac
  6404. done
  6405. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6406. # Only perform the check for file, if the check method requires it
  6407. case $deplibs_check_method in
  6408. file_magic*)
  6409. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6410. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6411. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6412. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6413. echo $ECHO_N "(cached) $ECHO_C" >&6
  6414. else
  6415. case $MAGIC_CMD in
  6416. [\\/*] | ?:[\\/]*)
  6417. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6418. ;;
  6419. *)
  6420. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6421. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6422. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6423. for ac_dir in $ac_dummy; do
  6424. IFS="$lt_save_ifs"
  6425. test -z "$ac_dir" && ac_dir=.
  6426. if test -f $ac_dir/${ac_tool_prefix}file; then
  6427. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6428. if test -n "$file_magic_test_file"; then
  6429. case $deplibs_check_method in
  6430. "file_magic "*)
  6431. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6432. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6433. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6434. $EGREP "$file_magic_regex" > /dev/null; then
  6435. :
  6436. else
  6437. cat <<EOF 1>&2
  6438. *** Warning: the command libtool uses to detect shared libraries,
  6439. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6440. *** The result is that libtool may fail to recognize shared libraries
  6441. *** as such. This will affect the creation of libtool libraries that
  6442. *** depend on shared libraries, but programs linked with such libtool
  6443. *** libraries will work regardless of this problem. Nevertheless, you
  6444. *** may want to report the problem to your system manager and/or to
  6445. *** bug-libtool@gnu.org
  6446. EOF
  6447. fi ;;
  6448. esac
  6449. fi
  6450. break
  6451. fi
  6452. done
  6453. IFS="$lt_save_ifs"
  6454. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6455. ;;
  6456. esac
  6457. fi
  6458. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6459. if test -n "$MAGIC_CMD"; then
  6460. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6461. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6462. else
  6463. { echo "$as_me:$LINENO: result: no" >&5
  6464. echo "${ECHO_T}no" >&6; }
  6465. fi
  6466. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6467. if test -n "$ac_tool_prefix"; then
  6468. { echo "$as_me:$LINENO: checking for file" >&5
  6469. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6470. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6471. echo $ECHO_N "(cached) $ECHO_C" >&6
  6472. else
  6473. case $MAGIC_CMD in
  6474. [\\/*] | ?:[\\/]*)
  6475. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6476. ;;
  6477. *)
  6478. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6479. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6480. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6481. for ac_dir in $ac_dummy; do
  6482. IFS="$lt_save_ifs"
  6483. test -z "$ac_dir" && ac_dir=.
  6484. if test -f $ac_dir/file; then
  6485. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6486. if test -n "$file_magic_test_file"; then
  6487. case $deplibs_check_method in
  6488. "file_magic "*)
  6489. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6490. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6491. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6492. $EGREP "$file_magic_regex" > /dev/null; then
  6493. :
  6494. else
  6495. cat <<EOF 1>&2
  6496. *** Warning: the command libtool uses to detect shared libraries,
  6497. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6498. *** The result is that libtool may fail to recognize shared libraries
  6499. *** as such. This will affect the creation of libtool libraries that
  6500. *** depend on shared libraries, but programs linked with such libtool
  6501. *** libraries will work regardless of this problem. Nevertheless, you
  6502. *** may want to report the problem to your system manager and/or to
  6503. *** bug-libtool@gnu.org
  6504. EOF
  6505. fi ;;
  6506. esac
  6507. fi
  6508. break
  6509. fi
  6510. done
  6511. IFS="$lt_save_ifs"
  6512. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6513. ;;
  6514. esac
  6515. fi
  6516. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6517. if test -n "$MAGIC_CMD"; then
  6518. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6519. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6520. else
  6521. { echo "$as_me:$LINENO: result: no" >&5
  6522. echo "${ECHO_T}no" >&6; }
  6523. fi
  6524. else
  6525. MAGIC_CMD=:
  6526. fi
  6527. fi
  6528. fi
  6529. ;;
  6530. esac
  6531. case $host_os in
  6532. rhapsody* | darwin*)
  6533. if test -n "$ac_tool_prefix"; then
  6534. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6535. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6536. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6538. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6539. echo $ECHO_N "(cached) $ECHO_C" >&6
  6540. else
  6541. if test -n "$DSYMUTIL"; then
  6542. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6543. else
  6544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6545. for as_dir in $PATH
  6546. do
  6547. IFS=$as_save_IFS
  6548. test -z "$as_dir" && as_dir=.
  6549. for ac_exec_ext in '' $ac_executable_extensions; do
  6550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6551. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6552. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6553. break 2
  6554. fi
  6555. done
  6556. done
  6557. IFS=$as_save_IFS
  6558. fi
  6559. fi
  6560. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6561. if test -n "$DSYMUTIL"; then
  6562. { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6563. echo "${ECHO_T}$DSYMUTIL" >&6; }
  6564. else
  6565. { echo "$as_me:$LINENO: result: no" >&5
  6566. echo "${ECHO_T}no" >&6; }
  6567. fi
  6568. fi
  6569. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6570. ac_ct_DSYMUTIL=$DSYMUTIL
  6571. # Extract the first word of "dsymutil", so it can be a program name with args.
  6572. set dummy dsymutil; ac_word=$2
  6573. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6574. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6575. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6576. echo $ECHO_N "(cached) $ECHO_C" >&6
  6577. else
  6578. if test -n "$ac_ct_DSYMUTIL"; then
  6579. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6580. else
  6581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6582. for as_dir in $PATH
  6583. do
  6584. IFS=$as_save_IFS
  6585. test -z "$as_dir" && as_dir=.
  6586. for ac_exec_ext in '' $ac_executable_extensions; do
  6587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6588. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6589. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6590. break 2
  6591. fi
  6592. done
  6593. done
  6594. IFS=$as_save_IFS
  6595. fi
  6596. fi
  6597. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6598. if test -n "$ac_ct_DSYMUTIL"; then
  6599. { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6600. echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  6601. else
  6602. { echo "$as_me:$LINENO: result: no" >&5
  6603. echo "${ECHO_T}no" >&6; }
  6604. fi
  6605. if test "x$ac_ct_DSYMUTIL" = x; then
  6606. DSYMUTIL=":"
  6607. else
  6608. case $cross_compiling:$ac_tool_warned in
  6609. yes:)
  6610. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6611. whose name does not start with the host triplet. If you think this
  6612. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6613. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6614. whose name does not start with the host triplet. If you think this
  6615. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6616. ac_tool_warned=yes ;;
  6617. esac
  6618. DSYMUTIL=$ac_ct_DSYMUTIL
  6619. fi
  6620. else
  6621. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6622. fi
  6623. if test -n "$ac_tool_prefix"; then
  6624. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6625. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6626. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6627. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6628. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6629. echo $ECHO_N "(cached) $ECHO_C" >&6
  6630. else
  6631. if test -n "$NMEDIT"; then
  6632. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6633. else
  6634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6635. for as_dir in $PATH
  6636. do
  6637. IFS=$as_save_IFS
  6638. test -z "$as_dir" && as_dir=.
  6639. for ac_exec_ext in '' $ac_executable_extensions; do
  6640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6641. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6642. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6643. break 2
  6644. fi
  6645. done
  6646. done
  6647. IFS=$as_save_IFS
  6648. fi
  6649. fi
  6650. NMEDIT=$ac_cv_prog_NMEDIT
  6651. if test -n "$NMEDIT"; then
  6652. { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6653. echo "${ECHO_T}$NMEDIT" >&6; }
  6654. else
  6655. { echo "$as_me:$LINENO: result: no" >&5
  6656. echo "${ECHO_T}no" >&6; }
  6657. fi
  6658. fi
  6659. if test -z "$ac_cv_prog_NMEDIT"; then
  6660. ac_ct_NMEDIT=$NMEDIT
  6661. # Extract the first word of "nmedit", so it can be a program name with args.
  6662. set dummy nmedit; ac_word=$2
  6663. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6664. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6665. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6666. echo $ECHO_N "(cached) $ECHO_C" >&6
  6667. else
  6668. if test -n "$ac_ct_NMEDIT"; then
  6669. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6670. else
  6671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6672. for as_dir in $PATH
  6673. do
  6674. IFS=$as_save_IFS
  6675. test -z "$as_dir" && as_dir=.
  6676. for ac_exec_ext in '' $ac_executable_extensions; do
  6677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6678. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6679. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6680. break 2
  6681. fi
  6682. done
  6683. done
  6684. IFS=$as_save_IFS
  6685. fi
  6686. fi
  6687. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6688. if test -n "$ac_ct_NMEDIT"; then
  6689. { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6690. echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  6691. else
  6692. { echo "$as_me:$LINENO: result: no" >&5
  6693. echo "${ECHO_T}no" >&6; }
  6694. fi
  6695. if test "x$ac_ct_NMEDIT" = x; then
  6696. NMEDIT=":"
  6697. else
  6698. case $cross_compiling:$ac_tool_warned in
  6699. yes:)
  6700. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6701. whose name does not start with the host triplet. If you think this
  6702. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6703. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6704. whose name does not start with the host triplet. If you think this
  6705. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6706. ac_tool_warned=yes ;;
  6707. esac
  6708. NMEDIT=$ac_ct_NMEDIT
  6709. fi
  6710. else
  6711. NMEDIT="$ac_cv_prog_NMEDIT"
  6712. fi
  6713. { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6714. echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  6715. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6716. echo $ECHO_N "(cached) $ECHO_C" >&6
  6717. else
  6718. lt_cv_apple_cc_single_mod=no
  6719. if test -z "${LT_MULTI_MODULE}"; then
  6720. # By default we will add the -single_module flag. You can override
  6721. # by either setting the environment variable LT_MULTI_MODULE
  6722. # non-empty at configure time, or by adding -multi_module to the
  6723. # link flags.
  6724. echo "int foo(void){return 1;}" > conftest.c
  6725. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6726. -dynamiclib ${wl}-single_module conftest.c
  6727. if test -f libconftest.dylib; then
  6728. lt_cv_apple_cc_single_mod=yes
  6729. rm -rf libconftest.dylib*
  6730. fi
  6731. rm conftest.c
  6732. fi
  6733. fi
  6734. { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6735. echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  6736. { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6737. echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  6738. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6739. echo $ECHO_N "(cached) $ECHO_C" >&6
  6740. else
  6741. lt_cv_ld_exported_symbols_list=no
  6742. save_LDFLAGS=$LDFLAGS
  6743. echo "_main" > conftest.sym
  6744. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6745. cat >conftest.$ac_ext <<_ACEOF
  6746. /* confdefs.h. */
  6747. _ACEOF
  6748. cat confdefs.h >>conftest.$ac_ext
  6749. cat >>conftest.$ac_ext <<_ACEOF
  6750. /* end confdefs.h. */
  6751. int
  6752. main ()
  6753. {
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. rm -f conftest.$ac_objext conftest$ac_exeext
  6759. if { (ac_try="$ac_link"
  6760. case "(($ac_try" in
  6761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6762. *) ac_try_echo=$ac_try;;
  6763. esac
  6764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6765. (eval "$ac_link") 2>conftest.er1
  6766. ac_status=$?
  6767. grep -v '^ *+' conftest.er1 >conftest.err
  6768. rm -f conftest.er1
  6769. cat conftest.err >&5
  6770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6771. (exit $ac_status); } && {
  6772. test -z "$ac_c_werror_flag" ||
  6773. test ! -s conftest.err
  6774. } && test -s conftest$ac_exeext &&
  6775. $as_test_x conftest$ac_exeext; then
  6776. lt_cv_ld_exported_symbols_list=yes
  6777. else
  6778. echo "$as_me: failed program was:" >&5
  6779. sed 's/^/| /' conftest.$ac_ext >&5
  6780. lt_cv_ld_exported_symbols_list=no
  6781. fi
  6782. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6783. conftest$ac_exeext conftest.$ac_ext
  6784. LDFLAGS="$save_LDFLAGS"
  6785. fi
  6786. { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6787. echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  6788. case $host_os in
  6789. rhapsody* | darwin1.[0123])
  6790. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6791. darwin1.*)
  6792. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6793. darwin*)
  6794. # if running on 10.5 or later, the deployment target defaults
  6795. # to the OS version, if on x86, and 10.4, the deployment
  6796. # target defaults to 10.4. Don't you love it?
  6797. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6798. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6799. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6800. 10.[012]*)
  6801. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6802. 10.*)
  6803. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6804. esac
  6805. ;;
  6806. esac
  6807. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6808. _lt_dar_single_mod='$single_module'
  6809. fi
  6810. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6811. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6812. else
  6813. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  6814. fi
  6815. if test "$DSYMUTIL" != ":"; then
  6816. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  6817. else
  6818. _lt_dsymutil=
  6819. fi
  6820. ;;
  6821. esac
  6822. enable_dlopen=no
  6823. enable_win32_dll=no
  6824. # Check whether --enable-libtool-lock was given.
  6825. if test "${enable_libtool_lock+set}" = set; then
  6826. enableval=$enable_libtool_lock;
  6827. fi
  6828. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6829. # Check whether --with-pic was given.
  6830. if test "${with_pic+set}" = set; then
  6831. withval=$with_pic; pic_mode="$withval"
  6832. else
  6833. pic_mode=default
  6834. fi
  6835. test -z "$pic_mode" && pic_mode=default
  6836. # Use C for the default configuration in the libtool script
  6837. tagname=
  6838. lt_save_CC="$CC"
  6839. ac_ext=c
  6840. ac_cpp='$CPP $CPPFLAGS'
  6841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6844. # Source file extension for C test sources.
  6845. ac_ext=c
  6846. # Object file extension for compiled C test sources.
  6847. objext=o
  6848. objext=$objext
  6849. # Code to be used in simple compile tests
  6850. lt_simple_compile_test_code="int some_variable = 0;"
  6851. # Code to be used in simple link tests
  6852. lt_simple_link_test_code='int main(){return(0);}'
  6853. # If no C compiler was specified, use CC.
  6854. LTCC=${LTCC-"$CC"}
  6855. # If no C compiler flags were specified, use CFLAGS.
  6856. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6857. # Allow CC to be a program name with arguments.
  6858. compiler=$CC
  6859. # save warnings/boilerplate of simple test code
  6860. ac_outfile=conftest.$ac_objext
  6861. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6862. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6863. _lt_compiler_boilerplate=`cat conftest.err`
  6864. $rm conftest*
  6865. ac_outfile=conftest.$ac_objext
  6866. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6867. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6868. _lt_linker_boilerplate=`cat conftest.err`
  6869. $rm -r conftest*
  6870. lt_prog_compiler_no_builtin_flag=
  6871. if test "$GCC" = yes; then
  6872. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6873. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6874. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6875. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6876. echo $ECHO_N "(cached) $ECHO_C" >&6
  6877. else
  6878. lt_cv_prog_compiler_rtti_exceptions=no
  6879. ac_outfile=conftest.$ac_objext
  6880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6881. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6882. # Insert the option either (1) after the last *FLAGS variable, or
  6883. # (2) before a word containing "conftest.", or (3) at the end.
  6884. # Note that $ac_compile itself does not contain backslashes and begins
  6885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6886. # The option is referenced via a variable to avoid confusing sed.
  6887. lt_compile=`echo "$ac_compile" | $SED \
  6888. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6889. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6890. -e 's:$: $lt_compiler_flag:'`
  6891. (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
  6892. (eval "$lt_compile" 2>conftest.err)
  6893. ac_status=$?
  6894. cat conftest.err >&5
  6895. echo "$as_me:7700: \$? = $ac_status" >&5
  6896. if (exit $ac_status) && test -s "$ac_outfile"; then
  6897. # The compiler can only warn and ignore the option if not recognized
  6898. # So say no if there are warnings other than the usual output.
  6899. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6900. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6901. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6902. lt_cv_prog_compiler_rtti_exceptions=yes
  6903. fi
  6904. fi
  6905. $rm conftest*
  6906. fi
  6907. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6908. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6909. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6910. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6911. else
  6912. :
  6913. fi
  6914. fi
  6915. lt_prog_compiler_wl=
  6916. lt_prog_compiler_pic=
  6917. lt_prog_compiler_static=
  6918. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6919. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6920. if test "$GCC" = yes; then
  6921. lt_prog_compiler_wl='-Wl,'
  6922. lt_prog_compiler_static='-static'
  6923. case $host_os in
  6924. aix*)
  6925. # All AIX code is PIC.
  6926. if test "$host_cpu" = ia64; then
  6927. # AIX 5 now supports IA64 processor
  6928. lt_prog_compiler_static='-Bstatic'
  6929. fi
  6930. ;;
  6931. amigaos*)
  6932. # FIXME: we need at least 68020 code to build shared libraries, but
  6933. # adding the `-m68020' flag to GCC prevents building anything better,
  6934. # like `-m68040'.
  6935. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6936. ;;
  6937. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6938. # PIC is the default for these OSes.
  6939. ;;
  6940. mingw* | cygwin* | pw32* | os2*)
  6941. # This hack is so that the source file can tell whether it is being
  6942. # built for inclusion in a dll (and should export symbols for example).
  6943. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6944. # (--disable-auto-import) libraries
  6945. lt_prog_compiler_pic='-DDLL_EXPORT'
  6946. ;;
  6947. darwin* | rhapsody*)
  6948. # PIC is the default on this platform
  6949. # Common symbols not allowed in MH_DYLIB files
  6950. lt_prog_compiler_pic='-fno-common'
  6951. ;;
  6952. interix[3-9]*)
  6953. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6954. # Instead, we relocate shared libraries at runtime.
  6955. ;;
  6956. msdosdjgpp*)
  6957. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6958. # on systems that don't support them.
  6959. lt_prog_compiler_can_build_shared=no
  6960. enable_shared=no
  6961. ;;
  6962. sysv4*MP*)
  6963. if test -d /usr/nec; then
  6964. lt_prog_compiler_pic=-Kconform_pic
  6965. fi
  6966. ;;
  6967. hpux*)
  6968. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6969. # not for PA HP-UX.
  6970. case $host_cpu in
  6971. hppa*64*|ia64*)
  6972. # +Z the default
  6973. ;;
  6974. *)
  6975. lt_prog_compiler_pic='-fPIC'
  6976. ;;
  6977. esac
  6978. ;;
  6979. *)
  6980. lt_prog_compiler_pic='-fPIC'
  6981. ;;
  6982. esac
  6983. else
  6984. # PORTME Check for flag to pass linker flags through the system compiler.
  6985. case $host_os in
  6986. aix*)
  6987. lt_prog_compiler_wl='-Wl,'
  6988. if test "$host_cpu" = ia64; then
  6989. # AIX 5 now supports IA64 processor
  6990. lt_prog_compiler_static='-Bstatic'
  6991. else
  6992. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6993. fi
  6994. ;;
  6995. darwin*)
  6996. # PIC is the default on this platform
  6997. # Common symbols not allowed in MH_DYLIB files
  6998. case $cc_basename in
  6999. xlc*)
  7000. lt_prog_compiler_pic='-qnocommon'
  7001. lt_prog_compiler_wl='-Wl,'
  7002. ;;
  7003. esac
  7004. ;;
  7005. mingw* | cygwin* | pw32* | os2*)
  7006. # This hack is so that the source file can tell whether it is being
  7007. # built for inclusion in a dll (and should export symbols for example).
  7008. lt_prog_compiler_pic='-DDLL_EXPORT'
  7009. ;;
  7010. hpux9* | hpux10* | hpux11*)
  7011. lt_prog_compiler_wl='-Wl,'
  7012. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7013. # not for PA HP-UX.
  7014. case $host_cpu in
  7015. hppa*64*|ia64*)
  7016. # +Z the default
  7017. ;;
  7018. *)
  7019. lt_prog_compiler_pic='+Z'
  7020. ;;
  7021. esac
  7022. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7023. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7024. ;;
  7025. irix5* | irix6* | nonstopux*)
  7026. lt_prog_compiler_wl='-Wl,'
  7027. # PIC (with -KPIC) is the default.
  7028. lt_prog_compiler_static='-non_shared'
  7029. ;;
  7030. newsos6)
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-Bstatic'
  7033. ;;
  7034. linux* | k*bsd*-gnu)
  7035. case $cc_basename in
  7036. icc* | ecc*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-KPIC'
  7039. lt_prog_compiler_static='-static'
  7040. ;;
  7041. pgcc* | pgf77* | pgf90* | pgf95*)
  7042. # Portland Group compilers (*not* the Pentium gcc compiler,
  7043. # which looks to be a dead project)
  7044. lt_prog_compiler_wl='-Wl,'
  7045. lt_prog_compiler_pic='-fpic'
  7046. lt_prog_compiler_static='-Bstatic'
  7047. ;;
  7048. ccc*)
  7049. lt_prog_compiler_wl='-Wl,'
  7050. # All Alpha code is PIC.
  7051. lt_prog_compiler_static='-non_shared'
  7052. ;;
  7053. *)
  7054. case `$CC -V 2>&1 | sed 5q` in
  7055. *Sun\ C*)
  7056. # Sun C 5.9
  7057. lt_prog_compiler_pic='-KPIC'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. lt_prog_compiler_wl='-Wl,'
  7060. ;;
  7061. *Sun\ F*)
  7062. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. lt_prog_compiler_wl=''
  7066. ;;
  7067. esac
  7068. ;;
  7069. esac
  7070. ;;
  7071. osf3* | osf4* | osf5*)
  7072. lt_prog_compiler_wl='-Wl,'
  7073. # All OSF/1 code is PIC.
  7074. lt_prog_compiler_static='-non_shared'
  7075. ;;
  7076. rdos*)
  7077. lt_prog_compiler_static='-non_shared'
  7078. ;;
  7079. solaris*)
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. case $cc_basename in
  7083. f77* | f90* | f95*)
  7084. lt_prog_compiler_wl='-Qoption ld ';;
  7085. *)
  7086. lt_prog_compiler_wl='-Wl,';;
  7087. esac
  7088. ;;
  7089. sunos4*)
  7090. lt_prog_compiler_wl='-Qoption ld '
  7091. lt_prog_compiler_pic='-PIC'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. sysv4 | sysv4.2uw2* | sysv4.3*)
  7095. lt_prog_compiler_wl='-Wl,'
  7096. lt_prog_compiler_pic='-KPIC'
  7097. lt_prog_compiler_static='-Bstatic'
  7098. ;;
  7099. sysv4*MP*)
  7100. if test -d /usr/nec ;then
  7101. lt_prog_compiler_pic='-Kconform_pic'
  7102. lt_prog_compiler_static='-Bstatic'
  7103. fi
  7104. ;;
  7105. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7106. lt_prog_compiler_wl='-Wl,'
  7107. lt_prog_compiler_pic='-KPIC'
  7108. lt_prog_compiler_static='-Bstatic'
  7109. ;;
  7110. unicos*)
  7111. lt_prog_compiler_wl='-Wl,'
  7112. lt_prog_compiler_can_build_shared=no
  7113. ;;
  7114. uts4*)
  7115. lt_prog_compiler_pic='-pic'
  7116. lt_prog_compiler_static='-Bstatic'
  7117. ;;
  7118. *)
  7119. lt_prog_compiler_can_build_shared=no
  7120. ;;
  7121. esac
  7122. fi
  7123. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7124. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  7125. #
  7126. # Check to make sure the PIC flag actually works.
  7127. #
  7128. if test -n "$lt_prog_compiler_pic"; then
  7129. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7130. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  7131. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7132. echo $ECHO_N "(cached) $ECHO_C" >&6
  7133. else
  7134. lt_cv_prog_compiler_pic_works=no
  7135. ac_outfile=conftest.$ac_objext
  7136. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7137. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7138. # Insert the option either (1) after the last *FLAGS variable, or
  7139. # (2) before a word containing "conftest.", or (3) at the end.
  7140. # Note that $ac_compile itself does not contain backslashes and begins
  7141. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7142. # The option is referenced via a variable to avoid confusing sed.
  7143. lt_compile=`echo "$ac_compile" | $SED \
  7144. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7145. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7146. -e 's:$: $lt_compiler_flag:'`
  7147. (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
  7148. (eval "$lt_compile" 2>conftest.err)
  7149. ac_status=$?
  7150. cat conftest.err >&5
  7151. echo "$as_me:7990: \$? = $ac_status" >&5
  7152. if (exit $ac_status) && test -s "$ac_outfile"; then
  7153. # The compiler can only warn and ignore the option if not recognized
  7154. # So say no if there are warnings other than the usual output.
  7155. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7156. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7157. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7158. lt_cv_prog_compiler_pic_works=yes
  7159. fi
  7160. fi
  7161. $rm conftest*
  7162. fi
  7163. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7164. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  7165. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7166. case $lt_prog_compiler_pic in
  7167. "" | " "*) ;;
  7168. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7169. esac
  7170. else
  7171. lt_prog_compiler_pic=
  7172. lt_prog_compiler_can_build_shared=no
  7173. fi
  7174. fi
  7175. case $host_os in
  7176. # For platforms which do not support PIC, -DPIC is meaningless:
  7177. *djgpp*)
  7178. lt_prog_compiler_pic=
  7179. ;;
  7180. *)
  7181. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7182. ;;
  7183. esac
  7184. #
  7185. # Check to make sure the static flag actually works.
  7186. #
  7187. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7188. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7189. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  7190. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7191. echo $ECHO_N "(cached) $ECHO_C" >&6
  7192. else
  7193. lt_cv_prog_compiler_static_works=no
  7194. save_LDFLAGS="$LDFLAGS"
  7195. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7196. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7197. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7198. # The linker can only warn and ignore the option if not recognized
  7199. # So say no if there are warnings
  7200. if test -s conftest.err; then
  7201. # Append any errors to the config.log.
  7202. cat conftest.err 1>&5
  7203. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7204. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7205. if diff conftest.exp conftest.er2 >/dev/null; then
  7206. lt_cv_prog_compiler_static_works=yes
  7207. fi
  7208. else
  7209. lt_cv_prog_compiler_static_works=yes
  7210. fi
  7211. fi
  7212. $rm -r conftest*
  7213. LDFLAGS="$save_LDFLAGS"
  7214. fi
  7215. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7216. echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  7217. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7218. :
  7219. else
  7220. lt_prog_compiler_static=
  7221. fi
  7222. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7223. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  7224. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7225. echo $ECHO_N "(cached) $ECHO_C" >&6
  7226. else
  7227. lt_cv_prog_compiler_c_o=no
  7228. $rm -r conftest 2>/dev/null
  7229. mkdir conftest
  7230. cd conftest
  7231. mkdir out
  7232. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7233. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7234. # Insert the option either (1) after the last *FLAGS variable, or
  7235. # (2) before a word containing "conftest.", or (3) at the end.
  7236. # Note that $ac_compile itself does not contain backslashes and begins
  7237. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7238. lt_compile=`echo "$ac_compile" | $SED \
  7239. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7240. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7241. -e 's:$: $lt_compiler_flag:'`
  7242. (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
  7243. (eval "$lt_compile" 2>out/conftest.err)
  7244. ac_status=$?
  7245. cat out/conftest.err >&5
  7246. echo "$as_me:8094: \$? = $ac_status" >&5
  7247. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7248. then
  7249. # The compiler can only warn and ignore the option if not recognized
  7250. # So say no if there are warnings
  7251. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7252. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7253. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7254. lt_cv_prog_compiler_c_o=yes
  7255. fi
  7256. fi
  7257. chmod u+w . 2>&5
  7258. $rm conftest*
  7259. # SGI C++ compiler will create directory out/ii_files/ for
  7260. # template instantiation
  7261. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7262. $rm out/* && rmdir out
  7263. cd ..
  7264. rmdir conftest
  7265. $rm conftest*
  7266. fi
  7267. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7268. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7269. hard_links="nottested"
  7270. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7271. # do not overwrite the value of need_locks provided by the user
  7272. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7273. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7274. hard_links=yes
  7275. $rm conftest*
  7276. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7277. touch conftest.a
  7278. ln conftest.a conftest.b 2>&5 || hard_links=no
  7279. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7280. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7281. echo "${ECHO_T}$hard_links" >&6; }
  7282. if test "$hard_links" = no; then
  7283. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7284. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7285. need_locks=warn
  7286. fi
  7287. else
  7288. need_locks=no
  7289. fi
  7290. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7291. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7292. runpath_var=
  7293. allow_undefined_flag=
  7294. enable_shared_with_static_runtimes=no
  7295. archive_cmds=
  7296. archive_expsym_cmds=
  7297. old_archive_From_new_cmds=
  7298. old_archive_from_expsyms_cmds=
  7299. export_dynamic_flag_spec=
  7300. whole_archive_flag_spec=
  7301. thread_safe_flag_spec=
  7302. hardcode_libdir_flag_spec=
  7303. hardcode_libdir_flag_spec_ld=
  7304. hardcode_libdir_separator=
  7305. hardcode_direct=no
  7306. hardcode_minus_L=no
  7307. hardcode_shlibpath_var=unsupported
  7308. link_all_deplibs=unknown
  7309. hardcode_automatic=no
  7310. module_cmds=
  7311. module_expsym_cmds=
  7312. always_export_symbols=no
  7313. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7314. # include_expsyms should be a list of space-separated symbols to be *always*
  7315. # included in the symbol list
  7316. include_expsyms=
  7317. # exclude_expsyms can be an extended regexp of symbols to exclude
  7318. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7319. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7320. # as well as any symbol that contains `d'.
  7321. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7322. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7323. # platforms (ab)use it in PIC code, but their linkers get confused if
  7324. # the symbol is explicitly referenced. Since portable code cannot
  7325. # rely on this symbol name, it's probably fine to never include it in
  7326. # preloaded symbol tables.
  7327. # Exclude shared library initialization/finalization symbols.
  7328. extract_expsyms_cmds=
  7329. # Just being paranoid about ensuring that cc_basename is set.
  7330. for cc_temp in $compiler""; do
  7331. case $cc_temp in
  7332. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7333. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7334. \-*) ;;
  7335. *) break;;
  7336. esac
  7337. done
  7338. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7339. case $host_os in
  7340. cygwin* | mingw* | pw32*)
  7341. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7342. # When not using gcc, we currently assume that we are using
  7343. # Microsoft Visual C++.
  7344. if test "$GCC" != yes; then
  7345. with_gnu_ld=no
  7346. fi
  7347. ;;
  7348. interix*)
  7349. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7350. with_gnu_ld=yes
  7351. ;;
  7352. openbsd*)
  7353. with_gnu_ld=no
  7354. ;;
  7355. esac
  7356. ld_shlibs=yes
  7357. if test "$with_gnu_ld" = yes; then
  7358. # If archive_cmds runs LD, not CC, wlarc should be empty
  7359. wlarc='${wl}'
  7360. # Set some defaults for GNU ld with shared library support. These
  7361. # are reset later if shared libraries are not supported. Putting them
  7362. # here allows them to be overridden if necessary.
  7363. runpath_var=LD_RUN_PATH
  7364. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7365. export_dynamic_flag_spec='${wl}--export-dynamic'
  7366. # ancient GNU ld didn't support --whole-archive et. al.
  7367. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7368. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7369. else
  7370. whole_archive_flag_spec=
  7371. fi
  7372. supports_anon_versioning=no
  7373. case `$LD -v 2>/dev/null` in
  7374. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7375. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7376. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7377. *\ 2.11.*) ;; # other 2.11 versions
  7378. *) supports_anon_versioning=yes ;;
  7379. esac
  7380. # See if GNU ld supports shared libraries.
  7381. case $host_os in
  7382. aix[3-9]*)
  7383. # On AIX/PPC, the GNU linker is very broken
  7384. if test "$host_cpu" != ia64; then
  7385. ld_shlibs=no
  7386. cat <<EOF 1>&2
  7387. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7388. *** to be unable to reliably create shared libraries on AIX.
  7389. *** Therefore, libtool is disabling shared libraries support. If you
  7390. *** really care for shared libraries, you may want to modify your PATH
  7391. *** so that a non-GNU linker is found, and then restart.
  7392. EOF
  7393. fi
  7394. ;;
  7395. amigaos*)
  7396. 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)'
  7397. hardcode_libdir_flag_spec='-L$libdir'
  7398. hardcode_minus_L=yes
  7399. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7400. # that the semantics of dynamic libraries on AmigaOS, at least up
  7401. # to version 4, is to share data among multiple programs linked
  7402. # with the same dynamic library. Since this doesn't match the
  7403. # behavior of shared libraries on other platforms, we can't use
  7404. # them.
  7405. ld_shlibs=no
  7406. ;;
  7407. beos*)
  7408. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7409. allow_undefined_flag=unsupported
  7410. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7411. # support --undefined. This deserves some investigation. FIXME
  7412. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7413. else
  7414. ld_shlibs=no
  7415. fi
  7416. ;;
  7417. cygwin* | mingw* | pw32*)
  7418. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7419. # as there is no search path for DLLs.
  7420. hardcode_libdir_flag_spec='-L$libdir'
  7421. allow_undefined_flag=unsupported
  7422. always_export_symbols=no
  7423. enable_shared_with_static_runtimes=yes
  7424. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7425. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7426. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7427. # If the export-symbols file already is a .def file (1st line
  7428. # is EXPORTS), use it as is; otherwise, prepend...
  7429. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7430. cp $export_symbols $output_objdir/$soname.def;
  7431. else
  7432. echo EXPORTS > $output_objdir/$soname.def;
  7433. cat $export_symbols >> $output_objdir/$soname.def;
  7434. fi~
  7435. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7436. else
  7437. ld_shlibs=no
  7438. fi
  7439. ;;
  7440. interix[3-9]*)
  7441. hardcode_direct=no
  7442. hardcode_shlibpath_var=no
  7443. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7444. export_dynamic_flag_spec='${wl}-E'
  7445. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7446. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7447. # default) and relocated if they conflict, which is a slow very memory
  7448. # consuming and fragmenting process. To avoid this, we pick a random,
  7449. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7450. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7451. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7452. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7453. ;;
  7454. gnu* | linux* | k*bsd*-gnu)
  7455. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7456. tmp_addflag=
  7457. case $cc_basename,$host_cpu in
  7458. pgcc*) # Portland Group C compiler
  7459. 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'
  7460. tmp_addflag=' $pic_flag'
  7461. ;;
  7462. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7463. 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'
  7464. tmp_addflag=' $pic_flag -Mnomain' ;;
  7465. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7466. tmp_addflag=' -i_dynamic' ;;
  7467. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7468. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7469. ifc* | ifort*) # Intel Fortran compiler
  7470. tmp_addflag=' -nofor_main' ;;
  7471. esac
  7472. case `$CC -V 2>&1 | sed 5q` in
  7473. *Sun\ C*) # Sun C 5.9
  7474. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7475. tmp_sharedflag='-G' ;;
  7476. *Sun\ F*) # Sun Fortran 8.3
  7477. tmp_sharedflag='-G' ;;
  7478. *)
  7479. tmp_sharedflag='-shared' ;;
  7480. esac
  7481. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7482. if test $supports_anon_versioning = yes; then
  7483. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7484. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7485. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7486. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7487. fi
  7488. else
  7489. ld_shlibs=no
  7490. fi
  7491. ;;
  7492. netbsd*)
  7493. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7494. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7495. wlarc=
  7496. else
  7497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7498. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7499. fi
  7500. ;;
  7501. solaris*)
  7502. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7503. ld_shlibs=no
  7504. cat <<EOF 1>&2
  7505. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7506. *** create shared libraries on Solaris systems. Therefore, libtool
  7507. *** is disabling shared libraries support. We urge you to upgrade GNU
  7508. *** binutils to release 2.9.1 or newer. Another option is to modify
  7509. *** your PATH or compiler configuration so that the native linker is
  7510. *** used, and then restart.
  7511. EOF
  7512. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7513. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7514. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7515. else
  7516. ld_shlibs=no
  7517. fi
  7518. ;;
  7519. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7520. case `$LD -v 2>&1` in
  7521. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7522. ld_shlibs=no
  7523. cat <<_LT_EOF 1>&2
  7524. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7525. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7526. *** is disabling shared libraries support. We urge you to upgrade GNU
  7527. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7528. *** your PATH or compiler configuration so that the native linker is
  7529. *** used, and then restart.
  7530. _LT_EOF
  7531. ;;
  7532. *)
  7533. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7534. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7535. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7536. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7537. else
  7538. ld_shlibs=no
  7539. fi
  7540. ;;
  7541. esac
  7542. ;;
  7543. sunos4*)
  7544. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7545. wlarc=
  7546. hardcode_direct=yes
  7547. hardcode_shlibpath_var=no
  7548. ;;
  7549. *)
  7550. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7551. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7552. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7553. else
  7554. ld_shlibs=no
  7555. fi
  7556. ;;
  7557. esac
  7558. if test "$ld_shlibs" = no; then
  7559. runpath_var=
  7560. hardcode_libdir_flag_spec=
  7561. export_dynamic_flag_spec=
  7562. whole_archive_flag_spec=
  7563. fi
  7564. else
  7565. # PORTME fill in a description of your system's linker (not GNU ld)
  7566. case $host_os in
  7567. aix3*)
  7568. allow_undefined_flag=unsupported
  7569. always_export_symbols=yes
  7570. 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'
  7571. # Note: this linker hardcodes the directories in LIBPATH if there
  7572. # are no directories specified by -L.
  7573. hardcode_minus_L=yes
  7574. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7575. # Neither direct hardcoding nor static linking is supported with a
  7576. # broken collect2.
  7577. hardcode_direct=unsupported
  7578. fi
  7579. ;;
  7580. aix[4-9]*)
  7581. if test "$host_cpu" = ia64; then
  7582. # On IA64, the linker does run time linking by default, so we don't
  7583. # have to do anything special.
  7584. aix_use_runtimelinking=no
  7585. exp_sym_flag='-Bexport'
  7586. no_entry_flag=""
  7587. else
  7588. # If we're using GNU nm, then we don't want the "-C" option.
  7589. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7590. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7591. 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'
  7592. else
  7593. 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'
  7594. fi
  7595. aix_use_runtimelinking=no
  7596. # Test if we are trying to use run time linking or normal
  7597. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7598. # need to do runtime linking.
  7599. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7600. for ld_flag in $LDFLAGS; do
  7601. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7602. aix_use_runtimelinking=yes
  7603. break
  7604. fi
  7605. done
  7606. ;;
  7607. esac
  7608. exp_sym_flag='-bexport'
  7609. no_entry_flag='-bnoentry'
  7610. fi
  7611. # When large executables or shared objects are built, AIX ld can
  7612. # have problems creating the table of contents. If linking a library
  7613. # or program results in "error TOC overflow" add -mminimal-toc to
  7614. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7615. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7616. archive_cmds=''
  7617. hardcode_direct=yes
  7618. hardcode_libdir_separator=':'
  7619. link_all_deplibs=yes
  7620. if test "$GCC" = yes; then
  7621. case $host_os in aix4.[012]|aix4.[012].*)
  7622. # We only want to do this on AIX 4.2 and lower, the check
  7623. # below for broken collect2 doesn't work under 4.3+
  7624. collect2name=`${CC} -print-prog-name=collect2`
  7625. if test -f "$collect2name" && \
  7626. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7627. then
  7628. # We have reworked collect2
  7629. :
  7630. else
  7631. # We have old collect2
  7632. hardcode_direct=unsupported
  7633. # It fails to find uninstalled libraries when the uninstalled
  7634. # path is not listed in the libpath. Setting hardcode_minus_L
  7635. # to unsupported forces relinking
  7636. hardcode_minus_L=yes
  7637. hardcode_libdir_flag_spec='-L$libdir'
  7638. hardcode_libdir_separator=
  7639. fi
  7640. ;;
  7641. esac
  7642. shared_flag='-shared'
  7643. if test "$aix_use_runtimelinking" = yes; then
  7644. shared_flag="$shared_flag "'${wl}-G'
  7645. fi
  7646. else
  7647. # not using gcc
  7648. if test "$host_cpu" = ia64; then
  7649. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7650. # chokes on -Wl,-G. The following line is correct:
  7651. shared_flag='-G'
  7652. else
  7653. if test "$aix_use_runtimelinking" = yes; then
  7654. shared_flag='${wl}-G'
  7655. else
  7656. shared_flag='${wl}-bM:SRE'
  7657. fi
  7658. fi
  7659. fi
  7660. # It seems that -bexpall does not export symbols beginning with
  7661. # underscore (_), so it is better to generate a list of symbols to export.
  7662. always_export_symbols=yes
  7663. if test "$aix_use_runtimelinking" = yes; then
  7664. # Warning - without using the other runtime loading flags (-brtl),
  7665. # -berok will link without error, but may produce a broken library.
  7666. allow_undefined_flag='-berok'
  7667. # Determine the default libpath from the value encoded in an empty executable.
  7668. cat >conftest.$ac_ext <<_ACEOF
  7669. /* confdefs.h. */
  7670. _ACEOF
  7671. cat confdefs.h >>conftest.$ac_ext
  7672. cat >>conftest.$ac_ext <<_ACEOF
  7673. /* end confdefs.h. */
  7674. int
  7675. main ()
  7676. {
  7677. ;
  7678. return 0;
  7679. }
  7680. _ACEOF
  7681. rm -f conftest.$ac_objext conftest$ac_exeext
  7682. if { (ac_try="$ac_link"
  7683. case "(($ac_try" in
  7684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7685. *) ac_try_echo=$ac_try;;
  7686. esac
  7687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7688. (eval "$ac_link") 2>conftest.er1
  7689. ac_status=$?
  7690. grep -v '^ *+' conftest.er1 >conftest.err
  7691. rm -f conftest.er1
  7692. cat conftest.err >&5
  7693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7694. (exit $ac_status); } && {
  7695. test -z "$ac_c_werror_flag" ||
  7696. test ! -s conftest.err
  7697. } && test -s conftest$ac_exeext &&
  7698. $as_test_x conftest$ac_exeext; then
  7699. lt_aix_libpath_sed='
  7700. /Import File Strings/,/^$/ {
  7701. /^0/ {
  7702. s/^0 *\(.*\)$/\1/
  7703. p
  7704. }
  7705. }'
  7706. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7707. # Check for a 64-bit object if we didn't find anything.
  7708. if test -z "$aix_libpath"; then
  7709. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7710. fi
  7711. else
  7712. echo "$as_me: failed program was:" >&5
  7713. sed 's/^/| /' conftest.$ac_ext >&5
  7714. fi
  7715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7716. conftest$ac_exeext conftest.$ac_ext
  7717. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7718. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7719. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7720. else
  7721. if test "$host_cpu" = ia64; then
  7722. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7723. allow_undefined_flag="-z nodefs"
  7724. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7725. else
  7726. # Determine the default libpath from the value encoded in an empty executable.
  7727. cat >conftest.$ac_ext <<_ACEOF
  7728. /* confdefs.h. */
  7729. _ACEOF
  7730. cat confdefs.h >>conftest.$ac_ext
  7731. cat >>conftest.$ac_ext <<_ACEOF
  7732. /* end confdefs.h. */
  7733. int
  7734. main ()
  7735. {
  7736. ;
  7737. return 0;
  7738. }
  7739. _ACEOF
  7740. rm -f conftest.$ac_objext conftest$ac_exeext
  7741. if { (ac_try="$ac_link"
  7742. case "(($ac_try" in
  7743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7744. *) ac_try_echo=$ac_try;;
  7745. esac
  7746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7747. (eval "$ac_link") 2>conftest.er1
  7748. ac_status=$?
  7749. grep -v '^ *+' conftest.er1 >conftest.err
  7750. rm -f conftest.er1
  7751. cat conftest.err >&5
  7752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753. (exit $ac_status); } && {
  7754. test -z "$ac_c_werror_flag" ||
  7755. test ! -s conftest.err
  7756. } && test -s conftest$ac_exeext &&
  7757. $as_test_x conftest$ac_exeext; then
  7758. lt_aix_libpath_sed='
  7759. /Import File Strings/,/^$/ {
  7760. /^0/ {
  7761. s/^0 *\(.*\)$/\1/
  7762. p
  7763. }
  7764. }'
  7765. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7766. # Check for a 64-bit object if we didn't find anything.
  7767. if test -z "$aix_libpath"; then
  7768. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7769. fi
  7770. else
  7771. echo "$as_me: failed program was:" >&5
  7772. sed 's/^/| /' conftest.$ac_ext >&5
  7773. fi
  7774. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7775. conftest$ac_exeext conftest.$ac_ext
  7776. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7777. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7778. # Warning - without using the other run time loading flags,
  7779. # -berok will link without error, but may produce a broken library.
  7780. no_undefined_flag=' ${wl}-bernotok'
  7781. allow_undefined_flag=' ${wl}-berok'
  7782. # Exported symbols can be pulled into shared objects from archives
  7783. whole_archive_flag_spec='$convenience'
  7784. archive_cmds_need_lc=yes
  7785. # This is similar to how AIX traditionally builds its shared libraries.
  7786. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7787. fi
  7788. fi
  7789. ;;
  7790. amigaos*)
  7791. 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)'
  7792. hardcode_libdir_flag_spec='-L$libdir'
  7793. hardcode_minus_L=yes
  7794. # see comment about different semantics on the GNU ld section
  7795. ld_shlibs=no
  7796. ;;
  7797. bsdi[45]*)
  7798. export_dynamic_flag_spec=-rdynamic
  7799. ;;
  7800. cygwin* | mingw* | pw32*)
  7801. # When not using gcc, we currently assume that we are using
  7802. # Microsoft Visual C++.
  7803. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7804. # no search path for DLLs.
  7805. hardcode_libdir_flag_spec=' '
  7806. allow_undefined_flag=unsupported
  7807. # Tell ltmain to make .lib files, not .a files.
  7808. libext=lib
  7809. # Tell ltmain to make .dll files, not .so files.
  7810. shrext_cmds=".dll"
  7811. # FIXME: Setting linknames here is a bad hack.
  7812. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7813. # The linker will automatically build a .lib file if we build a DLL.
  7814. old_archive_From_new_cmds='true'
  7815. # FIXME: Should let the user specify the lib program.
  7816. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7817. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7818. enable_shared_with_static_runtimes=yes
  7819. ;;
  7820. darwin* | rhapsody*)
  7821. case $host_os in
  7822. rhapsody* | darwin1.[012])
  7823. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7824. ;;
  7825. *) # Darwin 1.3 on
  7826. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7827. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7828. else
  7829. case ${MACOSX_DEPLOYMENT_TARGET} in
  7830. 10.[012])
  7831. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7832. ;;
  7833. 10.*)
  7834. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7835. ;;
  7836. esac
  7837. fi
  7838. ;;
  7839. esac
  7840. archive_cmds_need_lc=no
  7841. hardcode_direct=no
  7842. hardcode_automatic=yes
  7843. hardcode_shlibpath_var=unsupported
  7844. whole_archive_flag_spec=''
  7845. link_all_deplibs=yes
  7846. if test "$GCC" = yes ; then
  7847. output_verbose_link_cmd='echo'
  7848. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7849. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7850. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7851. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7852. else
  7853. case $cc_basename in
  7854. xlc*)
  7855. output_verbose_link_cmd='echo'
  7856. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7857. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7858. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7859. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7860. 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}'
  7861. ;;
  7862. *)
  7863. ld_shlibs=no
  7864. ;;
  7865. esac
  7866. fi
  7867. ;;
  7868. dgux*)
  7869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7870. hardcode_libdir_flag_spec='-L$libdir'
  7871. hardcode_shlibpath_var=no
  7872. ;;
  7873. freebsd1*)
  7874. ld_shlibs=no
  7875. ;;
  7876. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7877. # support. Future versions do this automatically, but an explicit c++rt0.o
  7878. # does not break anything, and helps significantly (at the cost of a little
  7879. # extra space).
  7880. freebsd2.2*)
  7881. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7882. hardcode_libdir_flag_spec='-R$libdir'
  7883. hardcode_direct=yes
  7884. hardcode_shlibpath_var=no
  7885. ;;
  7886. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7887. freebsd2*)
  7888. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7889. hardcode_direct=yes
  7890. hardcode_minus_L=yes
  7891. hardcode_shlibpath_var=no
  7892. ;;
  7893. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7894. freebsd* | dragonfly*)
  7895. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7896. hardcode_libdir_flag_spec='-R$libdir'
  7897. hardcode_direct=yes
  7898. hardcode_shlibpath_var=no
  7899. ;;
  7900. hpux9*)
  7901. if test "$GCC" = yes; then
  7902. 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'
  7903. else
  7904. 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'
  7905. fi
  7906. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7907. hardcode_libdir_separator=:
  7908. hardcode_direct=yes
  7909. # hardcode_minus_L: Not really in the search PATH,
  7910. # but as the default location of the library.
  7911. hardcode_minus_L=yes
  7912. export_dynamic_flag_spec='${wl}-E'
  7913. ;;
  7914. hpux10*)
  7915. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7916. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7917. else
  7918. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7919. fi
  7920. if test "$with_gnu_ld" = no; then
  7921. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7922. hardcode_libdir_separator=:
  7923. hardcode_direct=yes
  7924. export_dynamic_flag_spec='${wl}-E'
  7925. # hardcode_minus_L: Not really in the search PATH,
  7926. # but as the default location of the library.
  7927. hardcode_minus_L=yes
  7928. fi
  7929. ;;
  7930. hpux11*)
  7931. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7932. case $host_cpu in
  7933. hppa*64*)
  7934. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7935. ;;
  7936. ia64*)
  7937. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7938. ;;
  7939. *)
  7940. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7941. ;;
  7942. esac
  7943. else
  7944. case $host_cpu in
  7945. hppa*64*)
  7946. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7947. ;;
  7948. ia64*)
  7949. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7950. ;;
  7951. *)
  7952. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7953. ;;
  7954. esac
  7955. fi
  7956. if test "$with_gnu_ld" = no; then
  7957. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7958. hardcode_libdir_separator=:
  7959. case $host_cpu in
  7960. hppa*64*|ia64*)
  7961. hardcode_libdir_flag_spec_ld='+b $libdir'
  7962. hardcode_direct=no
  7963. hardcode_shlibpath_var=no
  7964. ;;
  7965. *)
  7966. hardcode_direct=yes
  7967. export_dynamic_flag_spec='${wl}-E'
  7968. # hardcode_minus_L: Not really in the search PATH,
  7969. # but as the default location of the library.
  7970. hardcode_minus_L=yes
  7971. ;;
  7972. esac
  7973. fi
  7974. ;;
  7975. irix5* | irix6* | nonstopux*)
  7976. if test "$GCC" = yes; then
  7977. 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'
  7978. else
  7979. 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'
  7980. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7981. fi
  7982. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7983. hardcode_libdir_separator=:
  7984. link_all_deplibs=yes
  7985. ;;
  7986. netbsd*)
  7987. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7988. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7989. else
  7990. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7991. fi
  7992. hardcode_libdir_flag_spec='-R$libdir'
  7993. hardcode_direct=yes
  7994. hardcode_shlibpath_var=no
  7995. ;;
  7996. newsos6)
  7997. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7998. hardcode_direct=yes
  7999. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8000. hardcode_libdir_separator=:
  8001. hardcode_shlibpath_var=no
  8002. ;;
  8003. openbsd*)
  8004. if test -f /usr/libexec/ld.so; then
  8005. hardcode_direct=yes
  8006. hardcode_shlibpath_var=no
  8007. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8008. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8009. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8010. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8011. export_dynamic_flag_spec='${wl}-E'
  8012. else
  8013. case $host_os in
  8014. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8015. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8016. hardcode_libdir_flag_spec='-R$libdir'
  8017. ;;
  8018. *)
  8019. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8020. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8021. ;;
  8022. esac
  8023. fi
  8024. else
  8025. ld_shlibs=no
  8026. fi
  8027. ;;
  8028. os2*)
  8029. hardcode_libdir_flag_spec='-L$libdir'
  8030. hardcode_minus_L=yes
  8031. allow_undefined_flag=unsupported
  8032. 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'
  8033. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8034. ;;
  8035. osf3*)
  8036. if test "$GCC" = yes; then
  8037. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8038. 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'
  8039. else
  8040. allow_undefined_flag=' -expect_unresolved \*'
  8041. 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'
  8042. fi
  8043. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8044. hardcode_libdir_separator=:
  8045. ;;
  8046. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8047. if test "$GCC" = yes; then
  8048. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8049. 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'
  8050. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8051. else
  8052. allow_undefined_flag=' -expect_unresolved \*'
  8053. 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'
  8054. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8055. $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'
  8056. # Both c and cxx compiler support -rpath directly
  8057. hardcode_libdir_flag_spec='-rpath $libdir'
  8058. fi
  8059. hardcode_libdir_separator=:
  8060. ;;
  8061. solaris*)
  8062. no_undefined_flag=' -z text'
  8063. if test "$GCC" = yes; then
  8064. wlarc='${wl}'
  8065. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8066. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8067. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8068. else
  8069. wlarc=''
  8070. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8071. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8072. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8073. fi
  8074. hardcode_libdir_flag_spec='-R$libdir'
  8075. hardcode_shlibpath_var=no
  8076. case $host_os in
  8077. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8078. *)
  8079. # The compiler driver will combine and reorder linker options,
  8080. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8081. # but is careful enough not to reorder.
  8082. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8083. if test "$GCC" = yes; then
  8084. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8085. else
  8086. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8087. fi
  8088. ;;
  8089. esac
  8090. link_all_deplibs=yes
  8091. ;;
  8092. sunos4*)
  8093. if test "x$host_vendor" = xsequent; then
  8094. # Use $CC to link under sequent, because it throws in some extra .o
  8095. # files that make .init and .fini sections work.
  8096. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8097. else
  8098. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8099. fi
  8100. hardcode_libdir_flag_spec='-L$libdir'
  8101. hardcode_direct=yes
  8102. hardcode_minus_L=yes
  8103. hardcode_shlibpath_var=no
  8104. ;;
  8105. sysv4)
  8106. case $host_vendor in
  8107. sni)
  8108. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8109. hardcode_direct=yes # is this really true???
  8110. ;;
  8111. siemens)
  8112. ## LD is ld it makes a PLAMLIB
  8113. ## CC just makes a GrossModule.
  8114. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8115. reload_cmds='$CC -r -o $output$reload_objs'
  8116. hardcode_direct=no
  8117. ;;
  8118. motorola)
  8119. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8120. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8121. ;;
  8122. esac
  8123. runpath_var='LD_RUN_PATH'
  8124. hardcode_shlibpath_var=no
  8125. ;;
  8126. sysv4.3*)
  8127. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8128. hardcode_shlibpath_var=no
  8129. export_dynamic_flag_spec='-Bexport'
  8130. ;;
  8131. sysv4*MP*)
  8132. if test -d /usr/nec; then
  8133. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8134. hardcode_shlibpath_var=no
  8135. runpath_var=LD_RUN_PATH
  8136. hardcode_runpath_var=yes
  8137. ld_shlibs=yes
  8138. fi
  8139. ;;
  8140. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8141. no_undefined_flag='${wl}-z,text'
  8142. archive_cmds_need_lc=no
  8143. hardcode_shlibpath_var=no
  8144. runpath_var='LD_RUN_PATH'
  8145. if test "$GCC" = yes; then
  8146. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8147. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8148. else
  8149. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8150. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. fi
  8152. ;;
  8153. sysv5* | sco3.2v5* | sco5v6*)
  8154. # Note: We can NOT use -z defs as we might desire, because we do not
  8155. # link with -lc, and that would cause any symbols used from libc to
  8156. # always be unresolved, which means just about no library would
  8157. # ever link correctly. If we're not using GNU ld we use -z text
  8158. # though, which does catch some bad symbols but isn't as heavy-handed
  8159. # as -z defs.
  8160. no_undefined_flag='${wl}-z,text'
  8161. allow_undefined_flag='${wl}-z,nodefs'
  8162. archive_cmds_need_lc=no
  8163. hardcode_shlibpath_var=no
  8164. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  8165. hardcode_libdir_separator=':'
  8166. link_all_deplibs=yes
  8167. export_dynamic_flag_spec='${wl}-Bexport'
  8168. runpath_var='LD_RUN_PATH'
  8169. if test "$GCC" = yes; then
  8170. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8171. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8172. else
  8173. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8174. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8175. fi
  8176. ;;
  8177. uts4*)
  8178. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8179. hardcode_libdir_flag_spec='-L$libdir'
  8180. hardcode_shlibpath_var=no
  8181. ;;
  8182. *)
  8183. ld_shlibs=no
  8184. ;;
  8185. esac
  8186. fi
  8187. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8188. echo "${ECHO_T}$ld_shlibs" >&6; }
  8189. test "$ld_shlibs" = no && can_build_shared=no
  8190. #
  8191. # Do we need to explicitly link libc?
  8192. #
  8193. case "x$archive_cmds_need_lc" in
  8194. x|xyes)
  8195. # Assume -lc should be added
  8196. archive_cmds_need_lc=yes
  8197. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8198. case $archive_cmds in
  8199. *'~'*)
  8200. # FIXME: we may have to deal with multi-command sequences.
  8201. ;;
  8202. '$CC '*)
  8203. # Test whether the compiler implicitly links with -lc since on some
  8204. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8205. # to ld, don't add -lc before -lgcc.
  8206. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8207. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  8208. $rm conftest*
  8209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8211. (eval $ac_compile) 2>&5
  8212. ac_status=$?
  8213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8214. (exit $ac_status); } 2>conftest.err; then
  8215. soname=conftest
  8216. lib=conftest
  8217. libobjs=conftest.$ac_objext
  8218. deplibs=
  8219. wl=$lt_prog_compiler_wl
  8220. pic_flag=$lt_prog_compiler_pic
  8221. compiler_flags=-v
  8222. linker_flags=-v
  8223. verstring=
  8224. output_objdir=.
  8225. libname=conftest
  8226. lt_save_allow_undefined_flag=$allow_undefined_flag
  8227. allow_undefined_flag=
  8228. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8229. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8230. ac_status=$?
  8231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. (exit $ac_status); }
  8233. then
  8234. archive_cmds_need_lc=no
  8235. else
  8236. archive_cmds_need_lc=yes
  8237. fi
  8238. allow_undefined_flag=$lt_save_allow_undefined_flag
  8239. else
  8240. cat conftest.err 1>&5
  8241. fi
  8242. $rm conftest*
  8243. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8244. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8245. ;;
  8246. esac
  8247. fi
  8248. ;;
  8249. esac
  8250. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8251. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8252. library_names_spec=
  8253. libname_spec='lib$name'
  8254. soname_spec=
  8255. shrext_cmds=".so"
  8256. postinstall_cmds=
  8257. postuninstall_cmds=
  8258. finish_cmds=
  8259. finish_eval=
  8260. shlibpath_var=
  8261. shlibpath_overrides_runpath=unknown
  8262. version_type=none
  8263. dynamic_linker="$host_os ld.so"
  8264. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8265. if test "$GCC" = yes; then
  8266. case $host_os in
  8267. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8268. *) lt_awk_arg="/^libraries:/" ;;
  8269. esac
  8270. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8271. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8272. # if the path contains ";" then we assume it to be the separator
  8273. # otherwise default to the standard path separator (i.e. ":") - it is
  8274. # assumed that no part of a normal pathname contains ";" but that should
  8275. # okay in the real world where ";" in dirpaths is itself problematic.
  8276. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8277. else
  8278. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8279. fi
  8280. # Ok, now we have the path, separated by spaces, we can step through it
  8281. # and add multilib dir if necessary.
  8282. lt_tmp_lt_search_path_spec=
  8283. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8284. for lt_sys_path in $lt_search_path_spec; do
  8285. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8286. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8287. else
  8288. test -d "$lt_sys_path" && \
  8289. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8290. fi
  8291. done
  8292. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8293. BEGIN {RS=" "; FS="/|\n";} {
  8294. lt_foo="";
  8295. lt_count=0;
  8296. for (lt_i = NF; lt_i > 0; lt_i--) {
  8297. if ($lt_i != "" && $lt_i != ".") {
  8298. if ($lt_i == "..") {
  8299. lt_count++;
  8300. } else {
  8301. if (lt_count == 0) {
  8302. lt_foo="/" $lt_i lt_foo;
  8303. } else {
  8304. lt_count--;
  8305. }
  8306. }
  8307. }
  8308. }
  8309. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8310. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8311. }'`
  8312. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8313. else
  8314. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8315. fi
  8316. need_lib_prefix=unknown
  8317. hardcode_into_libs=no
  8318. # when you set need_version to no, make sure it does not cause -set_version
  8319. # flags to be left without arguments
  8320. need_version=unknown
  8321. case $host_os in
  8322. aix3*)
  8323. version_type=linux
  8324. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8325. shlibpath_var=LIBPATH
  8326. # AIX 3 has no versioning support, so we append a major version to the name.
  8327. soname_spec='${libname}${release}${shared_ext}$major'
  8328. ;;
  8329. aix[4-9]*)
  8330. version_type=linux
  8331. need_lib_prefix=no
  8332. need_version=no
  8333. hardcode_into_libs=yes
  8334. if test "$host_cpu" = ia64; then
  8335. # AIX 5 supports IA64
  8336. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8337. shlibpath_var=LD_LIBRARY_PATH
  8338. else
  8339. # With GCC up to 2.95.x, collect2 would create an import file
  8340. # for dependence libraries. The import file would start with
  8341. # the line `#! .'. This would cause the generated library to
  8342. # depend on `.', always an invalid library. This was fixed in
  8343. # development snapshots of GCC prior to 3.0.
  8344. case $host_os in
  8345. aix4 | aix4.[01] | aix4.[01].*)
  8346. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8347. echo ' yes '
  8348. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8349. :
  8350. else
  8351. can_build_shared=no
  8352. fi
  8353. ;;
  8354. esac
  8355. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8356. # soname into executable. Probably we can add versioning support to
  8357. # collect2, so additional links can be useful in future.
  8358. if test "$aix_use_runtimelinking" = yes; then
  8359. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8360. # instead of lib<name>.a to let people know that these are not
  8361. # typical AIX shared libraries.
  8362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8363. else
  8364. # We preserve .a as extension for shared libraries through AIX4.2
  8365. # and later when we are not doing run time linking.
  8366. library_names_spec='${libname}${release}.a $libname.a'
  8367. soname_spec='${libname}${release}${shared_ext}$major'
  8368. fi
  8369. shlibpath_var=LIBPATH
  8370. fi
  8371. ;;
  8372. amigaos*)
  8373. library_names_spec='$libname.ixlibrary $libname.a'
  8374. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8375. 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'
  8376. ;;
  8377. beos*)
  8378. library_names_spec='${libname}${shared_ext}'
  8379. dynamic_linker="$host_os ld.so"
  8380. shlibpath_var=LIBRARY_PATH
  8381. ;;
  8382. bsdi[45]*)
  8383. version_type=linux
  8384. need_version=no
  8385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8386. soname_spec='${libname}${release}${shared_ext}$major'
  8387. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8388. shlibpath_var=LD_LIBRARY_PATH
  8389. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8390. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8391. # the default ld.so.conf also contains /usr/contrib/lib and
  8392. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8393. # libtool to hard-code these into programs
  8394. ;;
  8395. cygwin* | mingw* | pw32*)
  8396. version_type=windows
  8397. shrext_cmds=".dll"
  8398. need_version=no
  8399. need_lib_prefix=no
  8400. case $GCC,$host_os in
  8401. yes,cygwin* | yes,mingw* | yes,pw32*)
  8402. library_names_spec='$libname.dll.a'
  8403. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8404. postinstall_cmds='base_file=`basename \${file}`~
  8405. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8406. dldir=$destdir/`dirname \$dlpath`~
  8407. test -d \$dldir || mkdir -p \$dldir~
  8408. $install_prog $dir/$dlname \$dldir/$dlname~
  8409. chmod a+x \$dldir/$dlname'
  8410. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8411. dlpath=$dir/\$dldll~
  8412. $rm \$dlpath'
  8413. shlibpath_overrides_runpath=yes
  8414. case $host_os in
  8415. cygwin*)
  8416. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8417. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8418. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8419. ;;
  8420. mingw*)
  8421. # MinGW DLLs use traditional 'lib' prefix
  8422. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8423. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8424. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8425. # It is most probably a Windows format PATH printed by
  8426. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8427. # path with ; separators, and with drive letters. We can handle the
  8428. # drive letters (cygwin fileutils understands them), so leave them,
  8429. # especially as we might pass files found there to a mingw objdump,
  8430. # which wouldn't understand a cygwinified path. Ahh.
  8431. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8432. else
  8433. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8434. fi
  8435. ;;
  8436. pw32*)
  8437. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8438. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8439. ;;
  8440. esac
  8441. ;;
  8442. *)
  8443. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8444. ;;
  8445. esac
  8446. dynamic_linker='Win32 ld.exe'
  8447. # FIXME: first we should search . and the directory the executable is in
  8448. shlibpath_var=PATH
  8449. ;;
  8450. darwin* | rhapsody*)
  8451. dynamic_linker="$host_os dyld"
  8452. version_type=darwin
  8453. need_lib_prefix=no
  8454. need_version=no
  8455. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8456. soname_spec='${libname}${release}${major}$shared_ext'
  8457. shlibpath_overrides_runpath=yes
  8458. shlibpath_var=DYLD_LIBRARY_PATH
  8459. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8460. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8461. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8462. ;;
  8463. dgux*)
  8464. version_type=linux
  8465. need_lib_prefix=no
  8466. need_version=no
  8467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8468. soname_spec='${libname}${release}${shared_ext}$major'
  8469. shlibpath_var=LD_LIBRARY_PATH
  8470. ;;
  8471. freebsd1*)
  8472. dynamic_linker=no
  8473. ;;
  8474. freebsd* | dragonfly*)
  8475. # DragonFly does not have aout. When/if they implement a new
  8476. # versioning mechanism, adjust this.
  8477. if test -x /usr/bin/objformat; then
  8478. objformat=`/usr/bin/objformat`
  8479. else
  8480. case $host_os in
  8481. freebsd[123]*) objformat=aout ;;
  8482. *) objformat=elf ;;
  8483. esac
  8484. fi
  8485. version_type=freebsd-$objformat
  8486. case $version_type in
  8487. freebsd-elf*)
  8488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8489. need_version=no
  8490. need_lib_prefix=no
  8491. ;;
  8492. freebsd-*)
  8493. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8494. need_version=yes
  8495. ;;
  8496. esac
  8497. shlibpath_var=LD_LIBRARY_PATH
  8498. case $host_os in
  8499. freebsd2*)
  8500. shlibpath_overrides_runpath=yes
  8501. ;;
  8502. freebsd3.[01]* | freebsdelf3.[01]*)
  8503. shlibpath_overrides_runpath=yes
  8504. hardcode_into_libs=yes
  8505. ;;
  8506. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8507. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8508. shlibpath_overrides_runpath=no
  8509. hardcode_into_libs=yes
  8510. ;;
  8511. *) # from 4.6 on, and DragonFly
  8512. shlibpath_overrides_runpath=yes
  8513. hardcode_into_libs=yes
  8514. ;;
  8515. esac
  8516. ;;
  8517. gnu*)
  8518. version_type=linux
  8519. need_lib_prefix=no
  8520. need_version=no
  8521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8522. soname_spec='${libname}${release}${shared_ext}$major'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. hardcode_into_libs=yes
  8525. ;;
  8526. hpux9* | hpux10* | hpux11*)
  8527. # Give a soname corresponding to the major version so that dld.sl refuses to
  8528. # link against other versions.
  8529. version_type=sunos
  8530. need_lib_prefix=no
  8531. need_version=no
  8532. case $host_cpu in
  8533. ia64*)
  8534. shrext_cmds='.so'
  8535. hardcode_into_libs=yes
  8536. dynamic_linker="$host_os dld.so"
  8537. shlibpath_var=LD_LIBRARY_PATH
  8538. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8540. soname_spec='${libname}${release}${shared_ext}$major'
  8541. if test "X$HPUX_IA64_MODE" = X32; then
  8542. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8543. else
  8544. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8545. fi
  8546. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8547. ;;
  8548. hppa*64*)
  8549. shrext_cmds='.sl'
  8550. hardcode_into_libs=yes
  8551. dynamic_linker="$host_os dld.sl"
  8552. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8553. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8555. soname_spec='${libname}${release}${shared_ext}$major'
  8556. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8557. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8558. ;;
  8559. *)
  8560. shrext_cmds='.sl'
  8561. dynamic_linker="$host_os dld.sl"
  8562. shlibpath_var=SHLIB_PATH
  8563. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8565. soname_spec='${libname}${release}${shared_ext}$major'
  8566. ;;
  8567. esac
  8568. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8569. postinstall_cmds='chmod 555 $lib'
  8570. ;;
  8571. interix[3-9]*)
  8572. version_type=linux
  8573. need_lib_prefix=no
  8574. need_version=no
  8575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8576. soname_spec='${libname}${release}${shared_ext}$major'
  8577. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8578. shlibpath_var=LD_LIBRARY_PATH
  8579. shlibpath_overrides_runpath=no
  8580. hardcode_into_libs=yes
  8581. ;;
  8582. irix5* | irix6* | nonstopux*)
  8583. case $host_os in
  8584. nonstopux*) version_type=nonstopux ;;
  8585. *)
  8586. if test "$lt_cv_prog_gnu_ld" = yes; then
  8587. version_type=linux
  8588. else
  8589. version_type=irix
  8590. fi ;;
  8591. esac
  8592. need_lib_prefix=no
  8593. need_version=no
  8594. soname_spec='${libname}${release}${shared_ext}$major'
  8595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8596. case $host_os in
  8597. irix5* | nonstopux*)
  8598. libsuff= shlibsuff=
  8599. ;;
  8600. *)
  8601. case $LD in # libtool.m4 will add one of these switches to LD
  8602. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8603. libsuff= shlibsuff= libmagic=32-bit;;
  8604. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8605. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8606. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8607. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8608. *) libsuff= shlibsuff= libmagic=never-match;;
  8609. esac
  8610. ;;
  8611. esac
  8612. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8613. shlibpath_overrides_runpath=no
  8614. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8615. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8616. hardcode_into_libs=yes
  8617. ;;
  8618. # No shared lib support for Linux oldld, aout, or coff.
  8619. linux*oldld* | linux*aout* | linux*coff*)
  8620. dynamic_linker=no
  8621. ;;
  8622. # This must be Linux ELF.
  8623. linux* | k*bsd*-gnu)
  8624. version_type=linux
  8625. need_lib_prefix=no
  8626. need_version=no
  8627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8628. soname_spec='${libname}${release}${shared_ext}$major'
  8629. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8630. shlibpath_var=LD_LIBRARY_PATH
  8631. shlibpath_overrides_runpath=no
  8632. # This implies no fast_install, which is unacceptable.
  8633. # Some rework will be needed to allow for fast_install
  8634. # before this can be enabled.
  8635. hardcode_into_libs=yes
  8636. # Append ld.so.conf contents to the search path
  8637. if test -f /etc/ld.so.conf; then
  8638. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8639. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8640. fi
  8641. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8642. # powerpc, because MkLinux only supported shared libraries with the
  8643. # GNU dynamic linker. Since this was broken with cross compilers,
  8644. # most powerpc-linux boxes support dynamic linking these days and
  8645. # people can always --disable-shared, the test was removed, and we
  8646. # assume the GNU/Linux dynamic linker is in use.
  8647. dynamic_linker='GNU/Linux ld.so'
  8648. ;;
  8649. netbsd*)
  8650. version_type=sunos
  8651. need_lib_prefix=no
  8652. need_version=no
  8653. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8655. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8656. dynamic_linker='NetBSD (a.out) ld.so'
  8657. else
  8658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8659. soname_spec='${libname}${release}${shared_ext}$major'
  8660. dynamic_linker='NetBSD ld.elf_so'
  8661. fi
  8662. shlibpath_var=LD_LIBRARY_PATH
  8663. shlibpath_overrides_runpath=yes
  8664. hardcode_into_libs=yes
  8665. ;;
  8666. newsos6)
  8667. version_type=linux
  8668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8669. shlibpath_var=LD_LIBRARY_PATH
  8670. shlibpath_overrides_runpath=yes
  8671. ;;
  8672. nto-qnx*)
  8673. version_type=linux
  8674. need_lib_prefix=no
  8675. need_version=no
  8676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8677. soname_spec='${libname}${release}${shared_ext}$major'
  8678. shlibpath_var=LD_LIBRARY_PATH
  8679. shlibpath_overrides_runpath=yes
  8680. ;;
  8681. openbsd*)
  8682. version_type=sunos
  8683. sys_lib_dlsearch_path_spec="/usr/lib"
  8684. need_lib_prefix=no
  8685. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8686. case $host_os in
  8687. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8688. *) need_version=no ;;
  8689. esac
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8691. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8692. shlibpath_var=LD_LIBRARY_PATH
  8693. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8694. case $host_os in
  8695. openbsd2.[89] | openbsd2.[89].*)
  8696. shlibpath_overrides_runpath=no
  8697. ;;
  8698. *)
  8699. shlibpath_overrides_runpath=yes
  8700. ;;
  8701. esac
  8702. else
  8703. shlibpath_overrides_runpath=yes
  8704. fi
  8705. ;;
  8706. os2*)
  8707. libname_spec='$name'
  8708. shrext_cmds=".dll"
  8709. need_lib_prefix=no
  8710. library_names_spec='$libname${shared_ext} $libname.a'
  8711. dynamic_linker='OS/2 ld.exe'
  8712. shlibpath_var=LIBPATH
  8713. ;;
  8714. osf3* | osf4* | osf5*)
  8715. version_type=osf
  8716. need_lib_prefix=no
  8717. need_version=no
  8718. soname_spec='${libname}${release}${shared_ext}$major'
  8719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8720. shlibpath_var=LD_LIBRARY_PATH
  8721. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8722. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8723. ;;
  8724. rdos*)
  8725. dynamic_linker=no
  8726. ;;
  8727. solaris*)
  8728. version_type=linux
  8729. need_lib_prefix=no
  8730. need_version=no
  8731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8732. soname_spec='${libname}${release}${shared_ext}$major'
  8733. shlibpath_var=LD_LIBRARY_PATH
  8734. shlibpath_overrides_runpath=yes
  8735. hardcode_into_libs=yes
  8736. # ldd complains unless libraries are executable
  8737. postinstall_cmds='chmod +x $lib'
  8738. ;;
  8739. sunos4*)
  8740. version_type=sunos
  8741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8742. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8743. shlibpath_var=LD_LIBRARY_PATH
  8744. shlibpath_overrides_runpath=yes
  8745. if test "$with_gnu_ld" = yes; then
  8746. need_lib_prefix=no
  8747. fi
  8748. need_version=yes
  8749. ;;
  8750. sysv4 | sysv4.3*)
  8751. version_type=linux
  8752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8753. soname_spec='${libname}${release}${shared_ext}$major'
  8754. shlibpath_var=LD_LIBRARY_PATH
  8755. case $host_vendor in
  8756. sni)
  8757. shlibpath_overrides_runpath=no
  8758. need_lib_prefix=no
  8759. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8760. runpath_var=LD_RUN_PATH
  8761. ;;
  8762. siemens)
  8763. need_lib_prefix=no
  8764. ;;
  8765. motorola)
  8766. need_lib_prefix=no
  8767. need_version=no
  8768. shlibpath_overrides_runpath=no
  8769. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8770. ;;
  8771. esac
  8772. ;;
  8773. sysv4*MP*)
  8774. if test -d /usr/nec ;then
  8775. version_type=linux
  8776. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8777. soname_spec='$libname${shared_ext}.$major'
  8778. shlibpath_var=LD_LIBRARY_PATH
  8779. fi
  8780. ;;
  8781. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8782. version_type=freebsd-elf
  8783. need_lib_prefix=no
  8784. need_version=no
  8785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8786. soname_spec='${libname}${release}${shared_ext}$major'
  8787. shlibpath_var=LD_LIBRARY_PATH
  8788. hardcode_into_libs=yes
  8789. if test "$with_gnu_ld" = yes; then
  8790. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8791. shlibpath_overrides_runpath=no
  8792. else
  8793. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8794. shlibpath_overrides_runpath=yes
  8795. case $host_os in
  8796. sco3.2v5*)
  8797. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8798. ;;
  8799. esac
  8800. fi
  8801. sys_lib_dlsearch_path_spec='/usr/lib'
  8802. ;;
  8803. uts4*)
  8804. version_type=linux
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8806. soname_spec='${libname}${release}${shared_ext}$major'
  8807. shlibpath_var=LD_LIBRARY_PATH
  8808. ;;
  8809. *)
  8810. dynamic_linker=no
  8811. ;;
  8812. esac
  8813. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8814. echo "${ECHO_T}$dynamic_linker" >&6; }
  8815. test "$dynamic_linker" = no && can_build_shared=no
  8816. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8817. echo $ECHO_N "(cached) $ECHO_C" >&6
  8818. else
  8819. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  8820. fi
  8821. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8822. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8823. echo $ECHO_N "(cached) $ECHO_C" >&6
  8824. else
  8825. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  8826. fi
  8827. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8828. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8829. if test "$GCC" = yes; then
  8830. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8831. fi
  8832. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8833. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8834. hardcode_action=
  8835. if test -n "$hardcode_libdir_flag_spec" || \
  8836. test -n "$runpath_var" || \
  8837. test "X$hardcode_automatic" = "Xyes" ; then
  8838. # We can hardcode non-existant directories.
  8839. if test "$hardcode_direct" != no &&
  8840. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8841. # have to relink, otherwise we might link with an installed library
  8842. # when we should be linking with a yet-to-be-installed one
  8843. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8844. test "$hardcode_minus_L" != no; then
  8845. # Linking always hardcodes the temporary library directory.
  8846. hardcode_action=relink
  8847. else
  8848. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8849. hardcode_action=immediate
  8850. fi
  8851. else
  8852. # We cannot hardcode anything, or else we can only hardcode existing
  8853. # directories.
  8854. hardcode_action=unsupported
  8855. fi
  8856. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8857. echo "${ECHO_T}$hardcode_action" >&6; }
  8858. if test "$hardcode_action" = relink; then
  8859. # Fast installation is not supported
  8860. enable_fast_install=no
  8861. elif test "$shlibpath_overrides_runpath" = yes ||
  8862. test "$enable_shared" = no; then
  8863. # Fast installation is not necessary
  8864. enable_fast_install=needless
  8865. fi
  8866. striplib=
  8867. old_striplib=
  8868. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8869. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8870. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8871. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8872. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8873. { echo "$as_me:$LINENO: result: yes" >&5
  8874. echo "${ECHO_T}yes" >&6; }
  8875. else
  8876. # FIXME - insert some real tests, host_os isn't really good enough
  8877. case $host_os in
  8878. darwin*)
  8879. if test -n "$STRIP" ; then
  8880. striplib="$STRIP -x"
  8881. old_striplib="$STRIP -S"
  8882. { echo "$as_me:$LINENO: result: yes" >&5
  8883. echo "${ECHO_T}yes" >&6; }
  8884. else
  8885. { echo "$as_me:$LINENO: result: no" >&5
  8886. echo "${ECHO_T}no" >&6; }
  8887. fi
  8888. ;;
  8889. *)
  8890. { echo "$as_me:$LINENO: result: no" >&5
  8891. echo "${ECHO_T}no" >&6; }
  8892. ;;
  8893. esac
  8894. fi
  8895. if test "x$enable_dlopen" != xyes; then
  8896. enable_dlopen=unknown
  8897. enable_dlopen_self=unknown
  8898. enable_dlopen_self_static=unknown
  8899. else
  8900. lt_cv_dlopen=no
  8901. lt_cv_dlopen_libs=
  8902. case $host_os in
  8903. beos*)
  8904. lt_cv_dlopen="load_add_on"
  8905. lt_cv_dlopen_libs=
  8906. lt_cv_dlopen_self=yes
  8907. ;;
  8908. mingw* | pw32*)
  8909. lt_cv_dlopen="LoadLibrary"
  8910. lt_cv_dlopen_libs=
  8911. ;;
  8912. cygwin*)
  8913. lt_cv_dlopen="dlopen"
  8914. lt_cv_dlopen_libs=
  8915. ;;
  8916. darwin*)
  8917. # if libdl is installed we need to link against it
  8918. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8919. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8920. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8921. echo $ECHO_N "(cached) $ECHO_C" >&6
  8922. else
  8923. ac_check_lib_save_LIBS=$LIBS
  8924. LIBS="-ldl $LIBS"
  8925. cat >conftest.$ac_ext <<_ACEOF
  8926. /* confdefs.h. */
  8927. _ACEOF
  8928. cat confdefs.h >>conftest.$ac_ext
  8929. cat >>conftest.$ac_ext <<_ACEOF
  8930. /* end confdefs.h. */
  8931. /* Override any GCC internal prototype to avoid an error.
  8932. Use char because int might match the return type of a GCC
  8933. builtin and then its argument prototype would still apply. */
  8934. #ifdef __cplusplus
  8935. extern "C"
  8936. #endif
  8937. char dlopen ();
  8938. int
  8939. main ()
  8940. {
  8941. return dlopen ();
  8942. ;
  8943. return 0;
  8944. }
  8945. _ACEOF
  8946. rm -f conftest.$ac_objext conftest$ac_exeext
  8947. if { (ac_try="$ac_link"
  8948. case "(($ac_try" in
  8949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8950. *) ac_try_echo=$ac_try;;
  8951. esac
  8952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8953. (eval "$ac_link") 2>conftest.er1
  8954. ac_status=$?
  8955. grep -v '^ *+' conftest.er1 >conftest.err
  8956. rm -f conftest.er1
  8957. cat conftest.err >&5
  8958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8959. (exit $ac_status); } && {
  8960. test -z "$ac_c_werror_flag" ||
  8961. test ! -s conftest.err
  8962. } && test -s conftest$ac_exeext &&
  8963. $as_test_x conftest$ac_exeext; then
  8964. ac_cv_lib_dl_dlopen=yes
  8965. else
  8966. echo "$as_me: failed program was:" >&5
  8967. sed 's/^/| /' conftest.$ac_ext >&5
  8968. ac_cv_lib_dl_dlopen=no
  8969. fi
  8970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8971. conftest$ac_exeext conftest.$ac_ext
  8972. LIBS=$ac_check_lib_save_LIBS
  8973. fi
  8974. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8975. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8976. if test $ac_cv_lib_dl_dlopen = yes; then
  8977. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8978. else
  8979. lt_cv_dlopen="dyld"
  8980. lt_cv_dlopen_libs=
  8981. lt_cv_dlopen_self=yes
  8982. fi
  8983. ;;
  8984. *)
  8985. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8986. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8987. if test "${ac_cv_func_shl_load+set}" = set; then
  8988. echo $ECHO_N "(cached) $ECHO_C" >&6
  8989. else
  8990. cat >conftest.$ac_ext <<_ACEOF
  8991. /* confdefs.h. */
  8992. _ACEOF
  8993. cat confdefs.h >>conftest.$ac_ext
  8994. cat >>conftest.$ac_ext <<_ACEOF
  8995. /* end confdefs.h. */
  8996. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8997. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8998. #define shl_load innocuous_shl_load
  8999. /* System header to define __stub macros and hopefully few prototypes,
  9000. which can conflict with char shl_load (); below.
  9001. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9002. <limits.h> exists even on freestanding compilers. */
  9003. #ifdef __STDC__
  9004. # include <limits.h>
  9005. #else
  9006. # include <assert.h>
  9007. #endif
  9008. #undef shl_load
  9009. /* Override any GCC internal prototype to avoid an error.
  9010. Use char because int might match the return type of a GCC
  9011. builtin and then its argument prototype would still apply. */
  9012. #ifdef __cplusplus
  9013. extern "C"
  9014. #endif
  9015. char shl_load ();
  9016. /* The GNU C library defines this for functions which it implements
  9017. to always fail with ENOSYS. Some functions are actually named
  9018. something starting with __ and the normal name is an alias. */
  9019. #if defined __stub_shl_load || defined __stub___shl_load
  9020. choke me
  9021. #endif
  9022. int
  9023. main ()
  9024. {
  9025. return shl_load ();
  9026. ;
  9027. return 0;
  9028. }
  9029. _ACEOF
  9030. rm -f conftest.$ac_objext conftest$ac_exeext
  9031. if { (ac_try="$ac_link"
  9032. case "(($ac_try" in
  9033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9034. *) ac_try_echo=$ac_try;;
  9035. esac
  9036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9037. (eval "$ac_link") 2>conftest.er1
  9038. ac_status=$?
  9039. grep -v '^ *+' conftest.er1 >conftest.err
  9040. rm -f conftest.er1
  9041. cat conftest.err >&5
  9042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9043. (exit $ac_status); } && {
  9044. test -z "$ac_c_werror_flag" ||
  9045. test ! -s conftest.err
  9046. } && test -s conftest$ac_exeext &&
  9047. $as_test_x conftest$ac_exeext; then
  9048. ac_cv_func_shl_load=yes
  9049. else
  9050. echo "$as_me: failed program was:" >&5
  9051. sed 's/^/| /' conftest.$ac_ext >&5
  9052. ac_cv_func_shl_load=no
  9053. fi
  9054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9055. conftest$ac_exeext conftest.$ac_ext
  9056. fi
  9057. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9058. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  9059. if test $ac_cv_func_shl_load = yes; then
  9060. lt_cv_dlopen="shl_load"
  9061. else
  9062. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9063. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  9064. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9065. echo $ECHO_N "(cached) $ECHO_C" >&6
  9066. else
  9067. ac_check_lib_save_LIBS=$LIBS
  9068. LIBS="-ldld $LIBS"
  9069. cat >conftest.$ac_ext <<_ACEOF
  9070. /* confdefs.h. */
  9071. _ACEOF
  9072. cat confdefs.h >>conftest.$ac_ext
  9073. cat >>conftest.$ac_ext <<_ACEOF
  9074. /* end confdefs.h. */
  9075. /* Override any GCC internal prototype to avoid an error.
  9076. Use char because int might match the return type of a GCC
  9077. builtin and then its argument prototype would still apply. */
  9078. #ifdef __cplusplus
  9079. extern "C"
  9080. #endif
  9081. char shl_load ();
  9082. int
  9083. main ()
  9084. {
  9085. return shl_load ();
  9086. ;
  9087. return 0;
  9088. }
  9089. _ACEOF
  9090. rm -f conftest.$ac_objext conftest$ac_exeext
  9091. if { (ac_try="$ac_link"
  9092. case "(($ac_try" in
  9093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9094. *) ac_try_echo=$ac_try;;
  9095. esac
  9096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9097. (eval "$ac_link") 2>conftest.er1
  9098. ac_status=$?
  9099. grep -v '^ *+' conftest.er1 >conftest.err
  9100. rm -f conftest.er1
  9101. cat conftest.err >&5
  9102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9103. (exit $ac_status); } && {
  9104. test -z "$ac_c_werror_flag" ||
  9105. test ! -s conftest.err
  9106. } && test -s conftest$ac_exeext &&
  9107. $as_test_x conftest$ac_exeext; then
  9108. ac_cv_lib_dld_shl_load=yes
  9109. else
  9110. echo "$as_me: failed program was:" >&5
  9111. sed 's/^/| /' conftest.$ac_ext >&5
  9112. ac_cv_lib_dld_shl_load=no
  9113. fi
  9114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9115. conftest$ac_exeext conftest.$ac_ext
  9116. LIBS=$ac_check_lib_save_LIBS
  9117. fi
  9118. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9119. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  9120. if test $ac_cv_lib_dld_shl_load = yes; then
  9121. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9122. else
  9123. { echo "$as_me:$LINENO: checking for dlopen" >&5
  9124. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  9125. if test "${ac_cv_func_dlopen+set}" = set; then
  9126. echo $ECHO_N "(cached) $ECHO_C" >&6
  9127. else
  9128. cat >conftest.$ac_ext <<_ACEOF
  9129. /* confdefs.h. */
  9130. _ACEOF
  9131. cat confdefs.h >>conftest.$ac_ext
  9132. cat >>conftest.$ac_ext <<_ACEOF
  9133. /* end confdefs.h. */
  9134. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9135. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9136. #define dlopen innocuous_dlopen
  9137. /* System header to define __stub macros and hopefully few prototypes,
  9138. which can conflict with char dlopen (); below.
  9139. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9140. <limits.h> exists even on freestanding compilers. */
  9141. #ifdef __STDC__
  9142. # include <limits.h>
  9143. #else
  9144. # include <assert.h>
  9145. #endif
  9146. #undef dlopen
  9147. /* Override any GCC internal prototype to avoid an error.
  9148. Use char because int might match the return type of a GCC
  9149. builtin and then its argument prototype would still apply. */
  9150. #ifdef __cplusplus
  9151. extern "C"
  9152. #endif
  9153. char dlopen ();
  9154. /* The GNU C library defines this for functions which it implements
  9155. to always fail with ENOSYS. Some functions are actually named
  9156. something starting with __ and the normal name is an alias. */
  9157. #if defined __stub_dlopen || defined __stub___dlopen
  9158. choke me
  9159. #endif
  9160. int
  9161. main ()
  9162. {
  9163. return dlopen ();
  9164. ;
  9165. return 0;
  9166. }
  9167. _ACEOF
  9168. rm -f conftest.$ac_objext conftest$ac_exeext
  9169. if { (ac_try="$ac_link"
  9170. case "(($ac_try" in
  9171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9172. *) ac_try_echo=$ac_try;;
  9173. esac
  9174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9175. (eval "$ac_link") 2>conftest.er1
  9176. ac_status=$?
  9177. grep -v '^ *+' conftest.er1 >conftest.err
  9178. rm -f conftest.er1
  9179. cat conftest.err >&5
  9180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9181. (exit $ac_status); } && {
  9182. test -z "$ac_c_werror_flag" ||
  9183. test ! -s conftest.err
  9184. } && test -s conftest$ac_exeext &&
  9185. $as_test_x conftest$ac_exeext; then
  9186. ac_cv_func_dlopen=yes
  9187. else
  9188. echo "$as_me: failed program was:" >&5
  9189. sed 's/^/| /' conftest.$ac_ext >&5
  9190. ac_cv_func_dlopen=no
  9191. fi
  9192. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9193. conftest$ac_exeext conftest.$ac_ext
  9194. fi
  9195. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9196. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  9197. if test $ac_cv_func_dlopen = yes; then
  9198. lt_cv_dlopen="dlopen"
  9199. else
  9200. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9201. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9202. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9203. echo $ECHO_N "(cached) $ECHO_C" >&6
  9204. else
  9205. ac_check_lib_save_LIBS=$LIBS
  9206. LIBS="-ldl $LIBS"
  9207. cat >conftest.$ac_ext <<_ACEOF
  9208. /* confdefs.h. */
  9209. _ACEOF
  9210. cat confdefs.h >>conftest.$ac_ext
  9211. cat >>conftest.$ac_ext <<_ACEOF
  9212. /* end confdefs.h. */
  9213. /* Override any GCC internal prototype to avoid an error.
  9214. Use char because int might match the return type of a GCC
  9215. builtin and then its argument prototype would still apply. */
  9216. #ifdef __cplusplus
  9217. extern "C"
  9218. #endif
  9219. char dlopen ();
  9220. int
  9221. main ()
  9222. {
  9223. return dlopen ();
  9224. ;
  9225. return 0;
  9226. }
  9227. _ACEOF
  9228. rm -f conftest.$ac_objext conftest$ac_exeext
  9229. if { (ac_try="$ac_link"
  9230. case "(($ac_try" in
  9231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9232. *) ac_try_echo=$ac_try;;
  9233. esac
  9234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9235. (eval "$ac_link") 2>conftest.er1
  9236. ac_status=$?
  9237. grep -v '^ *+' conftest.er1 >conftest.err
  9238. rm -f conftest.er1
  9239. cat conftest.err >&5
  9240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9241. (exit $ac_status); } && {
  9242. test -z "$ac_c_werror_flag" ||
  9243. test ! -s conftest.err
  9244. } && test -s conftest$ac_exeext &&
  9245. $as_test_x conftest$ac_exeext; then
  9246. ac_cv_lib_dl_dlopen=yes
  9247. else
  9248. echo "$as_me: failed program was:" >&5
  9249. sed 's/^/| /' conftest.$ac_ext >&5
  9250. ac_cv_lib_dl_dlopen=no
  9251. fi
  9252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9253. conftest$ac_exeext conftest.$ac_ext
  9254. LIBS=$ac_check_lib_save_LIBS
  9255. fi
  9256. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9257. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9258. if test $ac_cv_lib_dl_dlopen = yes; then
  9259. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9260. else
  9261. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9262. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9263. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9264. echo $ECHO_N "(cached) $ECHO_C" >&6
  9265. else
  9266. ac_check_lib_save_LIBS=$LIBS
  9267. LIBS="-lsvld $LIBS"
  9268. cat >conftest.$ac_ext <<_ACEOF
  9269. /* confdefs.h. */
  9270. _ACEOF
  9271. cat confdefs.h >>conftest.$ac_ext
  9272. cat >>conftest.$ac_ext <<_ACEOF
  9273. /* end confdefs.h. */
  9274. /* Override any GCC internal prototype to avoid an error.
  9275. Use char because int might match the return type of a GCC
  9276. builtin and then its argument prototype would still apply. */
  9277. #ifdef __cplusplus
  9278. extern "C"
  9279. #endif
  9280. char dlopen ();
  9281. int
  9282. main ()
  9283. {
  9284. return dlopen ();
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. rm -f conftest.$ac_objext conftest$ac_exeext
  9290. if { (ac_try="$ac_link"
  9291. case "(($ac_try" in
  9292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9293. *) ac_try_echo=$ac_try;;
  9294. esac
  9295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9296. (eval "$ac_link") 2>conftest.er1
  9297. ac_status=$?
  9298. grep -v '^ *+' conftest.er1 >conftest.err
  9299. rm -f conftest.er1
  9300. cat conftest.err >&5
  9301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9302. (exit $ac_status); } && {
  9303. test -z "$ac_c_werror_flag" ||
  9304. test ! -s conftest.err
  9305. } && test -s conftest$ac_exeext &&
  9306. $as_test_x conftest$ac_exeext; then
  9307. ac_cv_lib_svld_dlopen=yes
  9308. else
  9309. echo "$as_me: failed program was:" >&5
  9310. sed 's/^/| /' conftest.$ac_ext >&5
  9311. ac_cv_lib_svld_dlopen=no
  9312. fi
  9313. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9314. conftest$ac_exeext conftest.$ac_ext
  9315. LIBS=$ac_check_lib_save_LIBS
  9316. fi
  9317. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9318. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9319. if test $ac_cv_lib_svld_dlopen = yes; then
  9320. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9321. else
  9322. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9323. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9324. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9325. echo $ECHO_N "(cached) $ECHO_C" >&6
  9326. else
  9327. ac_check_lib_save_LIBS=$LIBS
  9328. LIBS="-ldld $LIBS"
  9329. cat >conftest.$ac_ext <<_ACEOF
  9330. /* confdefs.h. */
  9331. _ACEOF
  9332. cat confdefs.h >>conftest.$ac_ext
  9333. cat >>conftest.$ac_ext <<_ACEOF
  9334. /* end confdefs.h. */
  9335. /* Override any GCC internal prototype to avoid an error.
  9336. Use char because int might match the return type of a GCC
  9337. builtin and then its argument prototype would still apply. */
  9338. #ifdef __cplusplus
  9339. extern "C"
  9340. #endif
  9341. char dld_link ();
  9342. int
  9343. main ()
  9344. {
  9345. return dld_link ();
  9346. ;
  9347. return 0;
  9348. }
  9349. _ACEOF
  9350. rm -f conftest.$ac_objext conftest$ac_exeext
  9351. if { (ac_try="$ac_link"
  9352. case "(($ac_try" in
  9353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9354. *) ac_try_echo=$ac_try;;
  9355. esac
  9356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9357. (eval "$ac_link") 2>conftest.er1
  9358. ac_status=$?
  9359. grep -v '^ *+' conftest.er1 >conftest.err
  9360. rm -f conftest.er1
  9361. cat conftest.err >&5
  9362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9363. (exit $ac_status); } && {
  9364. test -z "$ac_c_werror_flag" ||
  9365. test ! -s conftest.err
  9366. } && test -s conftest$ac_exeext &&
  9367. $as_test_x conftest$ac_exeext; then
  9368. ac_cv_lib_dld_dld_link=yes
  9369. else
  9370. echo "$as_me: failed program was:" >&5
  9371. sed 's/^/| /' conftest.$ac_ext >&5
  9372. ac_cv_lib_dld_dld_link=no
  9373. fi
  9374. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9375. conftest$ac_exeext conftest.$ac_ext
  9376. LIBS=$ac_check_lib_save_LIBS
  9377. fi
  9378. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9379. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9380. if test $ac_cv_lib_dld_dld_link = yes; then
  9381. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9382. fi
  9383. fi
  9384. fi
  9385. fi
  9386. fi
  9387. fi
  9388. ;;
  9389. esac
  9390. if test "x$lt_cv_dlopen" != xno; then
  9391. enable_dlopen=yes
  9392. else
  9393. enable_dlopen=no
  9394. fi
  9395. case $lt_cv_dlopen in
  9396. dlopen)
  9397. save_CPPFLAGS="$CPPFLAGS"
  9398. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9399. save_LDFLAGS="$LDFLAGS"
  9400. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9401. save_LIBS="$LIBS"
  9402. LIBS="$lt_cv_dlopen_libs $LIBS"
  9403. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9404. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9405. if test "${lt_cv_dlopen_self+set}" = set; then
  9406. echo $ECHO_N "(cached) $ECHO_C" >&6
  9407. else
  9408. if test "$cross_compiling" = yes; then :
  9409. lt_cv_dlopen_self=cross
  9410. else
  9411. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9412. lt_status=$lt_dlunknown
  9413. cat > conftest.$ac_ext <<EOF
  9414. #line 10454 "configure"
  9415. #include "confdefs.h"
  9416. #if HAVE_DLFCN_H
  9417. #include <dlfcn.h>
  9418. #endif
  9419. #include <stdio.h>
  9420. #ifdef RTLD_GLOBAL
  9421. # define LT_DLGLOBAL RTLD_GLOBAL
  9422. #else
  9423. # ifdef DL_GLOBAL
  9424. # define LT_DLGLOBAL DL_GLOBAL
  9425. # else
  9426. # define LT_DLGLOBAL 0
  9427. # endif
  9428. #endif
  9429. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9430. find out it does not work in some platform. */
  9431. #ifndef LT_DLLAZY_OR_NOW
  9432. # ifdef RTLD_LAZY
  9433. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9434. # else
  9435. # ifdef DL_LAZY
  9436. # define LT_DLLAZY_OR_NOW DL_LAZY
  9437. # else
  9438. # ifdef RTLD_NOW
  9439. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9440. # else
  9441. # ifdef DL_NOW
  9442. # define LT_DLLAZY_OR_NOW DL_NOW
  9443. # else
  9444. # define LT_DLLAZY_OR_NOW 0
  9445. # endif
  9446. # endif
  9447. # endif
  9448. # endif
  9449. #endif
  9450. #ifdef __cplusplus
  9451. extern "C" void exit (int);
  9452. #endif
  9453. void fnord() { int i=42;}
  9454. int main ()
  9455. {
  9456. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9457. int status = $lt_dlunknown;
  9458. if (self)
  9459. {
  9460. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9461. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9462. /* dlclose (self); */
  9463. }
  9464. else
  9465. puts (dlerror ());
  9466. exit (status);
  9467. }
  9468. EOF
  9469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9470. (eval $ac_link) 2>&5
  9471. ac_status=$?
  9472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9474. (./conftest; exit; ) >&5 2>/dev/null
  9475. lt_status=$?
  9476. case x$lt_status in
  9477. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9478. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9479. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9480. esac
  9481. else :
  9482. # compilation failed
  9483. lt_cv_dlopen_self=no
  9484. fi
  9485. fi
  9486. rm -fr conftest*
  9487. fi
  9488. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9489. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9490. if test "x$lt_cv_dlopen_self" = xyes; then
  9491. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9492. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9493. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9494. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9495. echo $ECHO_N "(cached) $ECHO_C" >&6
  9496. else
  9497. if test "$cross_compiling" = yes; then :
  9498. lt_cv_dlopen_self_static=cross
  9499. else
  9500. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9501. lt_status=$lt_dlunknown
  9502. cat > conftest.$ac_ext <<EOF
  9503. #line 10554 "configure"
  9504. #include "confdefs.h"
  9505. #if HAVE_DLFCN_H
  9506. #include <dlfcn.h>
  9507. #endif
  9508. #include <stdio.h>
  9509. #ifdef RTLD_GLOBAL
  9510. # define LT_DLGLOBAL RTLD_GLOBAL
  9511. #else
  9512. # ifdef DL_GLOBAL
  9513. # define LT_DLGLOBAL DL_GLOBAL
  9514. # else
  9515. # define LT_DLGLOBAL 0
  9516. # endif
  9517. #endif
  9518. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9519. find out it does not work in some platform. */
  9520. #ifndef LT_DLLAZY_OR_NOW
  9521. # ifdef RTLD_LAZY
  9522. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9523. # else
  9524. # ifdef DL_LAZY
  9525. # define LT_DLLAZY_OR_NOW DL_LAZY
  9526. # else
  9527. # ifdef RTLD_NOW
  9528. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9529. # else
  9530. # ifdef DL_NOW
  9531. # define LT_DLLAZY_OR_NOW DL_NOW
  9532. # else
  9533. # define LT_DLLAZY_OR_NOW 0
  9534. # endif
  9535. # endif
  9536. # endif
  9537. # endif
  9538. #endif
  9539. #ifdef __cplusplus
  9540. extern "C" void exit (int);
  9541. #endif
  9542. void fnord() { int i=42;}
  9543. int main ()
  9544. {
  9545. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9546. int status = $lt_dlunknown;
  9547. if (self)
  9548. {
  9549. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9550. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9551. /* dlclose (self); */
  9552. }
  9553. else
  9554. puts (dlerror ());
  9555. exit (status);
  9556. }
  9557. EOF
  9558. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9559. (eval $ac_link) 2>&5
  9560. ac_status=$?
  9561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9562. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9563. (./conftest; exit; ) >&5 2>/dev/null
  9564. lt_status=$?
  9565. case x$lt_status in
  9566. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9567. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9568. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9569. esac
  9570. else :
  9571. # compilation failed
  9572. lt_cv_dlopen_self_static=no
  9573. fi
  9574. fi
  9575. rm -fr conftest*
  9576. fi
  9577. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9578. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9579. fi
  9580. CPPFLAGS="$save_CPPFLAGS"
  9581. LDFLAGS="$save_LDFLAGS"
  9582. LIBS="$save_LIBS"
  9583. ;;
  9584. esac
  9585. case $lt_cv_dlopen_self in
  9586. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9587. *) enable_dlopen_self=unknown ;;
  9588. esac
  9589. case $lt_cv_dlopen_self_static in
  9590. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9591. *) enable_dlopen_self_static=unknown ;;
  9592. esac
  9593. fi
  9594. # Report which library types will actually be built
  9595. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9596. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9597. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9598. echo "${ECHO_T}$can_build_shared" >&6; }
  9599. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9600. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9601. test "$can_build_shared" = "no" && enable_shared=no
  9602. # On AIX, shared libraries and static libraries use the same namespace, and
  9603. # are all built from PIC.
  9604. case $host_os in
  9605. aix3*)
  9606. test "$enable_shared" = yes && enable_static=no
  9607. if test -n "$RANLIB"; then
  9608. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9609. postinstall_cmds='$RANLIB $lib'
  9610. fi
  9611. ;;
  9612. aix[4-9]*)
  9613. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9614. test "$enable_shared" = yes && enable_static=no
  9615. fi
  9616. ;;
  9617. esac
  9618. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9619. echo "${ECHO_T}$enable_shared" >&6; }
  9620. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9621. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9622. # Make sure either enable_shared or enable_static is yes.
  9623. test "$enable_shared" = yes || enable_static=yes
  9624. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9625. echo "${ECHO_T}$enable_static" >&6; }
  9626. # The else clause should only fire when bootstrapping the
  9627. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9628. # with your package, and you will get complaints that there are
  9629. # no rules to generate ltmain.sh.
  9630. if test -f "$ltmain"; then
  9631. # See if we are running on zsh, and set the options which allow our commands through
  9632. # without removal of \ escapes.
  9633. if test -n "${ZSH_VERSION+set}" ; then
  9634. setopt NO_GLOB_SUBST
  9635. fi
  9636. # Now quote all the things that may contain metacharacters while being
  9637. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9638. # variables and quote the copies for generation of the libtool script.
  9639. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9640. SED SHELL STRIP \
  9641. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9642. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9643. deplibs_check_method reload_flag reload_cmds need_locks \
  9644. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9645. lt_cv_sys_global_symbol_to_c_name_address \
  9646. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9647. old_postinstall_cmds old_postuninstall_cmds \
  9648. compiler \
  9649. CC \
  9650. LD \
  9651. lt_prog_compiler_wl \
  9652. lt_prog_compiler_pic \
  9653. lt_prog_compiler_static \
  9654. lt_prog_compiler_no_builtin_flag \
  9655. export_dynamic_flag_spec \
  9656. thread_safe_flag_spec \
  9657. whole_archive_flag_spec \
  9658. enable_shared_with_static_runtimes \
  9659. old_archive_cmds \
  9660. old_archive_from_new_cmds \
  9661. predep_objects \
  9662. postdep_objects \
  9663. predeps \
  9664. postdeps \
  9665. compiler_lib_search_path \
  9666. compiler_lib_search_dirs \
  9667. archive_cmds \
  9668. archive_expsym_cmds \
  9669. postinstall_cmds \
  9670. postuninstall_cmds \
  9671. old_archive_from_expsyms_cmds \
  9672. allow_undefined_flag \
  9673. no_undefined_flag \
  9674. export_symbols_cmds \
  9675. hardcode_libdir_flag_spec \
  9676. hardcode_libdir_flag_spec_ld \
  9677. hardcode_libdir_separator \
  9678. hardcode_automatic \
  9679. module_cmds \
  9680. module_expsym_cmds \
  9681. lt_cv_prog_compiler_c_o \
  9682. fix_srcfile_path \
  9683. exclude_expsyms \
  9684. include_expsyms; do
  9685. case $var in
  9686. old_archive_cmds | \
  9687. old_archive_from_new_cmds | \
  9688. archive_cmds | \
  9689. archive_expsym_cmds | \
  9690. module_cmds | \
  9691. module_expsym_cmds | \
  9692. old_archive_from_expsyms_cmds | \
  9693. export_symbols_cmds | \
  9694. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9695. postinstall_cmds | postuninstall_cmds | \
  9696. old_postinstall_cmds | old_postuninstall_cmds | \
  9697. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9698. # Double-quote double-evaled strings.
  9699. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9700. ;;
  9701. *)
  9702. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9703. ;;
  9704. esac
  9705. done
  9706. case $lt_echo in
  9707. *'\$0 --fallback-echo"')
  9708. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9709. ;;
  9710. esac
  9711. cfgfile="${ofile}T"
  9712. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9713. $rm -f "$cfgfile"
  9714. { echo "$as_me:$LINENO: creating $ofile" >&5
  9715. echo "$as_me: creating $ofile" >&6;}
  9716. cat <<__EOF__ >> "$cfgfile"
  9717. #! $SHELL
  9718. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9719. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9720. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9721. #
  9722. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  9723. # Free Software Foundation, Inc.
  9724. #
  9725. # This file is part of GNU Libtool:
  9726. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9727. #
  9728. # This program is free software; you can redistribute it and/or modify
  9729. # it under the terms of the GNU General Public License as published by
  9730. # the Free Software Foundation; either version 2 of the License, or
  9731. # (at your option) any later version.
  9732. #
  9733. # This program is distributed in the hope that it will be useful, but
  9734. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9735. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9736. # General Public License for more details.
  9737. #
  9738. # You should have received a copy of the GNU General Public License
  9739. # along with this program; if not, write to the Free Software
  9740. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9741. #
  9742. # As a special exception to the GNU General Public License, if you
  9743. # distribute this file as part of a program that contains a
  9744. # configuration script generated by Autoconf, you may include it under
  9745. # the same distribution terms that you use for the rest of that program.
  9746. # A sed program that does not truncate output.
  9747. SED=$lt_SED
  9748. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9749. Xsed="$SED -e 1s/^X//"
  9750. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9751. # if CDPATH is set.
  9752. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9753. # The names of the tagged configurations supported by this script.
  9754. available_tags=
  9755. # ### BEGIN LIBTOOL CONFIG
  9756. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9757. # Shell to use when invoking shell scripts.
  9758. SHELL=$lt_SHELL
  9759. # Whether or not to build shared libraries.
  9760. build_libtool_libs=$enable_shared
  9761. # Whether or not to build static libraries.
  9762. build_old_libs=$enable_static
  9763. # Whether or not to add -lc for building shared libraries.
  9764. build_libtool_need_lc=$archive_cmds_need_lc
  9765. # Whether or not to disallow shared libs when runtime libs are static
  9766. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9767. # Whether or not to optimize for fast installation.
  9768. fast_install=$enable_fast_install
  9769. # The host system.
  9770. host_alias=$host_alias
  9771. host=$host
  9772. host_os=$host_os
  9773. # The build system.
  9774. build_alias=$build_alias
  9775. build=$build
  9776. build_os=$build_os
  9777. # An echo program that does not interpret backslashes.
  9778. echo=$lt_echo
  9779. # The archiver.
  9780. AR=$lt_AR
  9781. AR_FLAGS=$lt_AR_FLAGS
  9782. # A C compiler.
  9783. LTCC=$lt_LTCC
  9784. # LTCC compiler flags.
  9785. LTCFLAGS=$lt_LTCFLAGS
  9786. # A language-specific compiler.
  9787. CC=$lt_compiler
  9788. # Is the compiler the GNU C compiler?
  9789. with_gcc=$GCC
  9790. # An ERE matcher.
  9791. EGREP=$lt_EGREP
  9792. # The linker used to build libraries.
  9793. LD=$lt_LD
  9794. # Whether we need hard or soft links.
  9795. LN_S=$lt_LN_S
  9796. # A BSD-compatible nm program.
  9797. NM=$lt_NM
  9798. # A symbol stripping program
  9799. STRIP=$lt_STRIP
  9800. # Used to examine libraries when file_magic_cmd begins "file"
  9801. MAGIC_CMD=$MAGIC_CMD
  9802. # Used on cygwin: DLL creation program.
  9803. DLLTOOL="$DLLTOOL"
  9804. # Used on cygwin: object dumper.
  9805. OBJDUMP="$OBJDUMP"
  9806. # Used on cygwin: assembler.
  9807. AS="$AS"
  9808. # The name of the directory that contains temporary libtool files.
  9809. objdir=$objdir
  9810. # How to create reloadable object files.
  9811. reload_flag=$lt_reload_flag
  9812. reload_cmds=$lt_reload_cmds
  9813. # How to pass a linker flag through the compiler.
  9814. wl=$lt_lt_prog_compiler_wl
  9815. # Object file suffix (normally "o").
  9816. objext="$ac_objext"
  9817. # Old archive suffix (normally "a").
  9818. libext="$libext"
  9819. # Shared library suffix (normally ".so").
  9820. shrext_cmds='$shrext_cmds'
  9821. # Executable file suffix (normally "").
  9822. exeext="$exeext"
  9823. # Additional compiler flags for building library objects.
  9824. pic_flag=$lt_lt_prog_compiler_pic
  9825. pic_mode=$pic_mode
  9826. # What is the maximum length of a command?
  9827. max_cmd_len=$lt_cv_sys_max_cmd_len
  9828. # Does compiler simultaneously support -c and -o options?
  9829. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9830. # Must we lock files when doing compilation?
  9831. need_locks=$lt_need_locks
  9832. # Do we need the lib prefix for modules?
  9833. need_lib_prefix=$need_lib_prefix
  9834. # Do we need a version for libraries?
  9835. need_version=$need_version
  9836. # Whether dlopen is supported.
  9837. dlopen_support=$enable_dlopen
  9838. # Whether dlopen of programs is supported.
  9839. dlopen_self=$enable_dlopen_self
  9840. # Whether dlopen of statically linked programs is supported.
  9841. dlopen_self_static=$enable_dlopen_self_static
  9842. # Compiler flag to prevent dynamic linking.
  9843. link_static_flag=$lt_lt_prog_compiler_static
  9844. # Compiler flag to turn off builtin functions.
  9845. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9846. # Compiler flag to allow reflexive dlopens.
  9847. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9848. # Compiler flag to generate shared objects directly from archives.
  9849. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9850. # Compiler flag to generate thread-safe objects.
  9851. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9852. # Library versioning type.
  9853. version_type=$version_type
  9854. # Format of library name prefix.
  9855. libname_spec=$lt_libname_spec
  9856. # List of archive names. First name is the real one, the rest are links.
  9857. # The last name is the one that the linker finds with -lNAME.
  9858. library_names_spec=$lt_library_names_spec
  9859. # The coded name of the library, if different from the real name.
  9860. soname_spec=$lt_soname_spec
  9861. # Commands used to build and install an old-style archive.
  9862. RANLIB=$lt_RANLIB
  9863. old_archive_cmds=$lt_old_archive_cmds
  9864. old_postinstall_cmds=$lt_old_postinstall_cmds
  9865. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9866. # Create an old-style archive from a shared archive.
  9867. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9868. # Create a temporary old-style archive to link instead of a shared archive.
  9869. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9870. # Commands used to build and install a shared archive.
  9871. archive_cmds=$lt_archive_cmds
  9872. archive_expsym_cmds=$lt_archive_expsym_cmds
  9873. postinstall_cmds=$lt_postinstall_cmds
  9874. postuninstall_cmds=$lt_postuninstall_cmds
  9875. # Commands used to build a loadable module (assumed same as above if empty)
  9876. module_cmds=$lt_module_cmds
  9877. module_expsym_cmds=$lt_module_expsym_cmds
  9878. # Commands to strip libraries.
  9879. old_striplib=$lt_old_striplib
  9880. striplib=$lt_striplib
  9881. # Dependencies to place before the objects being linked to create a
  9882. # shared library.
  9883. predep_objects=$lt_predep_objects
  9884. # Dependencies to place after the objects being linked to create a
  9885. # shared library.
  9886. postdep_objects=$lt_postdep_objects
  9887. # Dependencies to place before the objects being linked to create a
  9888. # shared library.
  9889. predeps=$lt_predeps
  9890. # Dependencies to place after the objects being linked to create a
  9891. # shared library.
  9892. postdeps=$lt_postdeps
  9893. # The directories searched by this compiler when creating a shared
  9894. # library
  9895. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  9896. # The library search path used internally by the compiler when linking
  9897. # a shared library.
  9898. compiler_lib_search_path=$lt_compiler_lib_search_path
  9899. # Method to check whether dependent libraries are shared objects.
  9900. deplibs_check_method=$lt_deplibs_check_method
  9901. # Command to use when deplibs_check_method == file_magic.
  9902. file_magic_cmd=$lt_file_magic_cmd
  9903. # Flag that allows shared libraries with undefined symbols to be built.
  9904. allow_undefined_flag=$lt_allow_undefined_flag
  9905. # Flag that forces no undefined symbols.
  9906. no_undefined_flag=$lt_no_undefined_flag
  9907. # Commands used to finish a libtool library installation in a directory.
  9908. finish_cmds=$lt_finish_cmds
  9909. # Same as above, but a single script fragment to be evaled but not shown.
  9910. finish_eval=$lt_finish_eval
  9911. # Take the output of nm and produce a listing of raw symbols and C names.
  9912. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9913. # Transform the output of nm in a proper C declaration
  9914. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9915. # Transform the output of nm in a C name address pair
  9916. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9917. # This is the shared library runtime path variable.
  9918. runpath_var=$runpath_var
  9919. # This is the shared library path variable.
  9920. shlibpath_var=$shlibpath_var
  9921. # Is shlibpath searched before the hard-coded library search path?
  9922. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9923. # How to hardcode a shared library path into an executable.
  9924. hardcode_action=$hardcode_action
  9925. # Whether we should hardcode library paths into libraries.
  9926. hardcode_into_libs=$hardcode_into_libs
  9927. # Flag to hardcode \$libdir into a binary during linking.
  9928. # This must work even if \$libdir does not exist.
  9929. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9930. # If ld is used when linking, flag to hardcode \$libdir into
  9931. # a binary during linking. This must work even if \$libdir does
  9932. # not exist.
  9933. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9934. # Whether we need a single -rpath flag with a separated argument.
  9935. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9936. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9937. # resulting binary.
  9938. hardcode_direct=$hardcode_direct
  9939. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9940. # resulting binary.
  9941. hardcode_minus_L=$hardcode_minus_L
  9942. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9943. # the resulting binary.
  9944. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9945. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9946. # and all subsequent libraries and executables linked against it.
  9947. hardcode_automatic=$hardcode_automatic
  9948. # Variables whose values should be saved in libtool wrapper scripts and
  9949. # restored at relink time.
  9950. variables_saved_for_relink="$variables_saved_for_relink"
  9951. # Whether libtool must link a program against all its dependency libraries.
  9952. link_all_deplibs=$link_all_deplibs
  9953. # Compile-time system search path for libraries
  9954. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9955. # Run-time system search path for libraries
  9956. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9957. # Fix the shell variable \$srcfile for the compiler.
  9958. fix_srcfile_path=$lt_fix_srcfile_path
  9959. # Set to yes if exported symbols are required.
  9960. always_export_symbols=$always_export_symbols
  9961. # The commands to list exported symbols.
  9962. export_symbols_cmds=$lt_export_symbols_cmds
  9963. # The commands to extract the exported symbol list from a shared archive.
  9964. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9965. # Symbols that should not be listed in the preloaded symbols.
  9966. exclude_expsyms=$lt_exclude_expsyms
  9967. # Symbols that must always be exported.
  9968. include_expsyms=$lt_include_expsyms
  9969. # ### END LIBTOOL CONFIG
  9970. __EOF__
  9971. case $host_os in
  9972. aix3*)
  9973. cat <<\EOF >> "$cfgfile"
  9974. # AIX sometimes has problems with the GCC collect2 program. For some
  9975. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9976. # vanish in a puff of smoke.
  9977. if test "X${COLLECT_NAMES+set}" != Xset; then
  9978. COLLECT_NAMES=
  9979. export COLLECT_NAMES
  9980. fi
  9981. EOF
  9982. ;;
  9983. esac
  9984. # We use sed instead of cat because bash on DJGPP gets confused if
  9985. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9986. # text mode, it properly converts lines to CR/LF. This bash problem
  9987. # is reportedly fixed, but why not run on old versions too?
  9988. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9989. mv -f "$cfgfile" "$ofile" || \
  9990. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9991. chmod +x "$ofile"
  9992. else
  9993. # If there is no Makefile yet, we rely on a make rule to execute
  9994. # `config.status --recheck' to rerun these tests and create the
  9995. # libtool script then.
  9996. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9997. if test -f "$ltmain_in"; then
  9998. test -f Makefile && make "$ltmain"
  9999. fi
  10000. fi
  10001. ac_ext=c
  10002. ac_cpp='$CPP $CPPFLAGS'
  10003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10006. CC="$lt_save_CC"
  10007. # Check whether --with-tags was given.
  10008. if test "${with_tags+set}" = set; then
  10009. withval=$with_tags; tagnames="$withval"
  10010. fi
  10011. if test -f "$ltmain" && test -n "$tagnames"; then
  10012. if test ! -f "${ofile}"; then
  10013. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10014. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10015. fi
  10016. if test -z "$LTCC"; then
  10017. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10018. if test -z "$LTCC"; then
  10019. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10020. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10021. else
  10022. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10023. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10024. fi
  10025. fi
  10026. if test -z "$LTCFLAGS"; then
  10027. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  10028. fi
  10029. # Extract list of available tagged configurations in $ofile.
  10030. # Note that this assumes the entire list is on one line.
  10031. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10032. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10033. for tagname in $tagnames; do
  10034. IFS="$lt_save_ifs"
  10035. # Check whether tagname contains only valid characters
  10036. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10037. "") ;;
  10038. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10039. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10040. { (exit 1); exit 1; }; }
  10041. ;;
  10042. esac
  10043. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10044. then
  10045. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10046. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10047. { (exit 1); exit 1; }; }
  10048. fi
  10049. # Update the list of available tags.
  10050. if test -n "$tagname"; then
  10051. echo appending configuration tag \"$tagname\" to $ofile
  10052. case $tagname in
  10053. CXX)
  10054. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10055. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10056. (test "X$CXX" != "Xg++"))) ; then
  10057. ac_ext=cpp
  10058. ac_cpp='$CXXCPP $CPPFLAGS'
  10059. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10060. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10061. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10062. archive_cmds_need_lc_CXX=no
  10063. allow_undefined_flag_CXX=
  10064. always_export_symbols_CXX=no
  10065. archive_expsym_cmds_CXX=
  10066. export_dynamic_flag_spec_CXX=
  10067. hardcode_direct_CXX=no
  10068. hardcode_libdir_flag_spec_CXX=
  10069. hardcode_libdir_flag_spec_ld_CXX=
  10070. hardcode_libdir_separator_CXX=
  10071. hardcode_minus_L_CXX=no
  10072. hardcode_shlibpath_var_CXX=unsupported
  10073. hardcode_automatic_CXX=no
  10074. module_cmds_CXX=
  10075. module_expsym_cmds_CXX=
  10076. link_all_deplibs_CXX=unknown
  10077. old_archive_cmds_CXX=$old_archive_cmds
  10078. no_undefined_flag_CXX=
  10079. whole_archive_flag_spec_CXX=
  10080. enable_shared_with_static_runtimes_CXX=no
  10081. # Dependencies to place before and after the object being linked:
  10082. predep_objects_CXX=
  10083. postdep_objects_CXX=
  10084. predeps_CXX=
  10085. postdeps_CXX=
  10086. compiler_lib_search_path_CXX=
  10087. compiler_lib_search_dirs_CXX=
  10088. # Source file extension for C++ test sources.
  10089. ac_ext=cpp
  10090. # Object file extension for compiled C++ test sources.
  10091. objext=o
  10092. objext_CXX=$objext
  10093. # Code to be used in simple compile tests
  10094. lt_simple_compile_test_code="int some_variable = 0;"
  10095. # Code to be used in simple link tests
  10096. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10097. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10098. # If no C compiler was specified, use CC.
  10099. LTCC=${LTCC-"$CC"}
  10100. # If no C compiler flags were specified, use CFLAGS.
  10101. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10102. # Allow CC to be a program name with arguments.
  10103. compiler=$CC
  10104. # save warnings/boilerplate of simple test code
  10105. ac_outfile=conftest.$ac_objext
  10106. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10107. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10108. _lt_compiler_boilerplate=`cat conftest.err`
  10109. $rm conftest*
  10110. ac_outfile=conftest.$ac_objext
  10111. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10112. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10113. _lt_linker_boilerplate=`cat conftest.err`
  10114. $rm -r conftest*
  10115. # Allow CC to be a program name with arguments.
  10116. lt_save_CC=$CC
  10117. lt_save_LD=$LD
  10118. lt_save_GCC=$GCC
  10119. GCC=$GXX
  10120. lt_save_with_gnu_ld=$with_gnu_ld
  10121. lt_save_path_LD=$lt_cv_path_LD
  10122. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10123. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10124. else
  10125. $as_unset lt_cv_prog_gnu_ld
  10126. fi
  10127. if test -n "${lt_cv_path_LDCXX+set}"; then
  10128. lt_cv_path_LD=$lt_cv_path_LDCXX
  10129. else
  10130. $as_unset lt_cv_path_LD
  10131. fi
  10132. test -z "${LDCXX+set}" || LD=$LDCXX
  10133. CC=${CXX-"c++"}
  10134. compiler=$CC
  10135. compiler_CXX=$CC
  10136. for cc_temp in $compiler""; do
  10137. case $cc_temp in
  10138. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10139. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10140. \-*) ;;
  10141. *) break;;
  10142. esac
  10143. done
  10144. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10145. # We don't want -fno-exception wen compiling C++ code, so set the
  10146. # no_builtin_flag separately
  10147. if test "$GXX" = yes; then
  10148. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10149. else
  10150. lt_prog_compiler_no_builtin_flag_CXX=
  10151. fi
  10152. if test "$GXX" = yes; then
  10153. # Set up default GNU C++ configuration
  10154. # Check whether --with-gnu-ld was given.
  10155. if test "${with_gnu_ld+set}" = set; then
  10156. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10157. else
  10158. with_gnu_ld=no
  10159. fi
  10160. ac_prog=ld
  10161. if test "$GCC" = yes; then
  10162. # Check if gcc -print-prog-name=ld gives a path.
  10163. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10164. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  10165. case $host in
  10166. *-*-mingw*)
  10167. # gcc leaves a trailing carriage return which upsets mingw
  10168. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10169. *)
  10170. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10171. esac
  10172. case $ac_prog in
  10173. # Accept absolute paths.
  10174. [\\/]* | ?:[\\/]*)
  10175. re_direlt='/[^/][^/]*/\.\./'
  10176. # Canonicalize the pathname of ld
  10177. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10178. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10179. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10180. done
  10181. test -z "$LD" && LD="$ac_prog"
  10182. ;;
  10183. "")
  10184. # If it fails, then pretend we aren't using GCC.
  10185. ac_prog=ld
  10186. ;;
  10187. *)
  10188. # If it is relative, then search for the first ld in PATH.
  10189. with_gnu_ld=unknown
  10190. ;;
  10191. esac
  10192. elif test "$with_gnu_ld" = yes; then
  10193. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10194. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10195. else
  10196. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10197. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10198. fi
  10199. if test "${lt_cv_path_LD+set}" = set; then
  10200. echo $ECHO_N "(cached) $ECHO_C" >&6
  10201. else
  10202. if test -z "$LD"; then
  10203. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10204. for ac_dir in $PATH; do
  10205. IFS="$lt_save_ifs"
  10206. test -z "$ac_dir" && ac_dir=.
  10207. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10208. lt_cv_path_LD="$ac_dir/$ac_prog"
  10209. # Check to see if the program is GNU ld. I'd rather use --version,
  10210. # but apparently some variants of GNU ld only accept -v.
  10211. # Break only if it was the GNU/non-GNU ld that we prefer.
  10212. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10213. *GNU* | *'with BFD'*)
  10214. test "$with_gnu_ld" != no && break
  10215. ;;
  10216. *)
  10217. test "$with_gnu_ld" != yes && break
  10218. ;;
  10219. esac
  10220. fi
  10221. done
  10222. IFS="$lt_save_ifs"
  10223. else
  10224. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10225. fi
  10226. fi
  10227. LD="$lt_cv_path_LD"
  10228. if test -n "$LD"; then
  10229. { echo "$as_me:$LINENO: result: $LD" >&5
  10230. echo "${ECHO_T}$LD" >&6; }
  10231. else
  10232. { echo "$as_me:$LINENO: result: no" >&5
  10233. echo "${ECHO_T}no" >&6; }
  10234. fi
  10235. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10236. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10237. { (exit 1); exit 1; }; }
  10238. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10239. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10240. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10241. echo $ECHO_N "(cached) $ECHO_C" >&6
  10242. else
  10243. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10244. case `$LD -v 2>&1 </dev/null` in
  10245. *GNU* | *'with BFD'*)
  10246. lt_cv_prog_gnu_ld=yes
  10247. ;;
  10248. *)
  10249. lt_cv_prog_gnu_ld=no
  10250. ;;
  10251. esac
  10252. fi
  10253. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10254. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10255. with_gnu_ld=$lt_cv_prog_gnu_ld
  10256. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10257. # archiving commands below assume that GNU ld is being used.
  10258. if test "$with_gnu_ld" = yes; then
  10259. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10260. 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'
  10261. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10262. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10263. # If archive_cmds runs LD, not CC, wlarc should be empty
  10264. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10265. # investigate it a little bit more. (MM)
  10266. wlarc='${wl}'
  10267. # ancient GNU ld didn't support --whole-archive et. al.
  10268. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10269. grep 'no-whole-archive' > /dev/null; then
  10270. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10271. else
  10272. whole_archive_flag_spec_CXX=
  10273. fi
  10274. else
  10275. with_gnu_ld=no
  10276. wlarc=
  10277. # A generic and very simple default shared library creation
  10278. # command for GNU C++ for the case where it uses the native
  10279. # linker, instead of GNU ld. If possible, this setting should
  10280. # overridden to take advantage of the native linker features on
  10281. # the platform it is being used on.
  10282. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10283. fi
  10284. # Commands to make compiler produce verbose output that lists
  10285. # what "hidden" libraries, object files and flags are used when
  10286. # linking a shared library.
  10287. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10288. else
  10289. GXX=no
  10290. with_gnu_ld=no
  10291. wlarc=
  10292. fi
  10293. # PORTME: fill in a description of your system's C++ link characteristics
  10294. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10295. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10296. ld_shlibs_CXX=yes
  10297. case $host_os in
  10298. aix3*)
  10299. # FIXME: insert proper C++ library support
  10300. ld_shlibs_CXX=no
  10301. ;;
  10302. aix[4-9]*)
  10303. if test "$host_cpu" = ia64; then
  10304. # On IA64, the linker does run time linking by default, so we don't
  10305. # have to do anything special.
  10306. aix_use_runtimelinking=no
  10307. exp_sym_flag='-Bexport'
  10308. no_entry_flag=""
  10309. else
  10310. aix_use_runtimelinking=no
  10311. # Test if we are trying to use run time linking or normal
  10312. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10313. # need to do runtime linking.
  10314. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10315. for ld_flag in $LDFLAGS; do
  10316. case $ld_flag in
  10317. *-brtl*)
  10318. aix_use_runtimelinking=yes
  10319. break
  10320. ;;
  10321. esac
  10322. done
  10323. ;;
  10324. esac
  10325. exp_sym_flag='-bexport'
  10326. no_entry_flag='-bnoentry'
  10327. fi
  10328. # When large executables or shared objects are built, AIX ld can
  10329. # have problems creating the table of contents. If linking a library
  10330. # or program results in "error TOC overflow" add -mminimal-toc to
  10331. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10332. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10333. archive_cmds_CXX=''
  10334. hardcode_direct_CXX=yes
  10335. hardcode_libdir_separator_CXX=':'
  10336. link_all_deplibs_CXX=yes
  10337. if test "$GXX" = yes; then
  10338. case $host_os in aix4.[012]|aix4.[012].*)
  10339. # We only want to do this on AIX 4.2 and lower, the check
  10340. # below for broken collect2 doesn't work under 4.3+
  10341. collect2name=`${CC} -print-prog-name=collect2`
  10342. if test -f "$collect2name" && \
  10343. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10344. then
  10345. # We have reworked collect2
  10346. :
  10347. else
  10348. # We have old collect2
  10349. hardcode_direct_CXX=unsupported
  10350. # It fails to find uninstalled libraries when the uninstalled
  10351. # path is not listed in the libpath. Setting hardcode_minus_L
  10352. # to unsupported forces relinking
  10353. hardcode_minus_L_CXX=yes
  10354. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10355. hardcode_libdir_separator_CXX=
  10356. fi
  10357. ;;
  10358. esac
  10359. shared_flag='-shared'
  10360. if test "$aix_use_runtimelinking" = yes; then
  10361. shared_flag="$shared_flag "'${wl}-G'
  10362. fi
  10363. else
  10364. # not using gcc
  10365. if test "$host_cpu" = ia64; then
  10366. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10367. # chokes on -Wl,-G. The following line is correct:
  10368. shared_flag='-G'
  10369. else
  10370. if test "$aix_use_runtimelinking" = yes; then
  10371. shared_flag='${wl}-G'
  10372. else
  10373. shared_flag='${wl}-bM:SRE'
  10374. fi
  10375. fi
  10376. fi
  10377. # It seems that -bexpall does not export symbols beginning with
  10378. # underscore (_), so it is better to generate a list of symbols to export.
  10379. always_export_symbols_CXX=yes
  10380. if test "$aix_use_runtimelinking" = yes; then
  10381. # Warning - without using the other runtime loading flags (-brtl),
  10382. # -berok will link without error, but may produce a broken library.
  10383. allow_undefined_flag_CXX='-berok'
  10384. # Determine the default libpath from the value encoded in an empty executable.
  10385. cat >conftest.$ac_ext <<_ACEOF
  10386. /* confdefs.h. */
  10387. _ACEOF
  10388. cat confdefs.h >>conftest.$ac_ext
  10389. cat >>conftest.$ac_ext <<_ACEOF
  10390. /* end confdefs.h. */
  10391. int
  10392. main ()
  10393. {
  10394. ;
  10395. return 0;
  10396. }
  10397. _ACEOF
  10398. rm -f conftest.$ac_objext conftest$ac_exeext
  10399. if { (ac_try="$ac_link"
  10400. case "(($ac_try" in
  10401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10402. *) ac_try_echo=$ac_try;;
  10403. esac
  10404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10405. (eval "$ac_link") 2>conftest.er1
  10406. ac_status=$?
  10407. grep -v '^ *+' conftest.er1 >conftest.err
  10408. rm -f conftest.er1
  10409. cat conftest.err >&5
  10410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10411. (exit $ac_status); } && {
  10412. test -z "$ac_cxx_werror_flag" ||
  10413. test ! -s conftest.err
  10414. } && test -s conftest$ac_exeext &&
  10415. $as_test_x conftest$ac_exeext; then
  10416. lt_aix_libpath_sed='
  10417. /Import File Strings/,/^$/ {
  10418. /^0/ {
  10419. s/^0 *\(.*\)$/\1/
  10420. p
  10421. }
  10422. }'
  10423. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10424. # Check for a 64-bit object if we didn't find anything.
  10425. if test -z "$aix_libpath"; then
  10426. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10427. fi
  10428. else
  10429. echo "$as_me: failed program was:" >&5
  10430. sed 's/^/| /' conftest.$ac_ext >&5
  10431. fi
  10432. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10433. conftest$ac_exeext conftest.$ac_ext
  10434. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10435. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10436. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10437. else
  10438. if test "$host_cpu" = ia64; then
  10439. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10440. allow_undefined_flag_CXX="-z nodefs"
  10441. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10442. else
  10443. # Determine the default libpath from the value encoded in an empty executable.
  10444. cat >conftest.$ac_ext <<_ACEOF
  10445. /* confdefs.h. */
  10446. _ACEOF
  10447. cat confdefs.h >>conftest.$ac_ext
  10448. cat >>conftest.$ac_ext <<_ACEOF
  10449. /* end confdefs.h. */
  10450. int
  10451. main ()
  10452. {
  10453. ;
  10454. return 0;
  10455. }
  10456. _ACEOF
  10457. rm -f conftest.$ac_objext conftest$ac_exeext
  10458. if { (ac_try="$ac_link"
  10459. case "(($ac_try" in
  10460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10461. *) ac_try_echo=$ac_try;;
  10462. esac
  10463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10464. (eval "$ac_link") 2>conftest.er1
  10465. ac_status=$?
  10466. grep -v '^ *+' conftest.er1 >conftest.err
  10467. rm -f conftest.er1
  10468. cat conftest.err >&5
  10469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10470. (exit $ac_status); } && {
  10471. test -z "$ac_cxx_werror_flag" ||
  10472. test ! -s conftest.err
  10473. } && test -s conftest$ac_exeext &&
  10474. $as_test_x conftest$ac_exeext; then
  10475. lt_aix_libpath_sed='
  10476. /Import File Strings/,/^$/ {
  10477. /^0/ {
  10478. s/^0 *\(.*\)$/\1/
  10479. p
  10480. }
  10481. }'
  10482. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10483. # Check for a 64-bit object if we didn't find anything.
  10484. if test -z "$aix_libpath"; then
  10485. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10486. fi
  10487. else
  10488. echo "$as_me: failed program was:" >&5
  10489. sed 's/^/| /' conftest.$ac_ext >&5
  10490. fi
  10491. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10492. conftest$ac_exeext conftest.$ac_ext
  10493. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10494. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10495. # Warning - without using the other run time loading flags,
  10496. # -berok will link without error, but may produce a broken library.
  10497. no_undefined_flag_CXX=' ${wl}-bernotok'
  10498. allow_undefined_flag_CXX=' ${wl}-berok'
  10499. # Exported symbols can be pulled into shared objects from archives
  10500. whole_archive_flag_spec_CXX='$convenience'
  10501. archive_cmds_need_lc_CXX=yes
  10502. # This is similar to how AIX traditionally builds its shared libraries.
  10503. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10504. fi
  10505. fi
  10506. ;;
  10507. beos*)
  10508. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10509. allow_undefined_flag_CXX=unsupported
  10510. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10511. # support --undefined. This deserves some investigation. FIXME
  10512. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10513. else
  10514. ld_shlibs_CXX=no
  10515. fi
  10516. ;;
  10517. chorus*)
  10518. case $cc_basename in
  10519. *)
  10520. # FIXME: insert proper C++ library support
  10521. ld_shlibs_CXX=no
  10522. ;;
  10523. esac
  10524. ;;
  10525. cygwin* | mingw* | pw32*)
  10526. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10527. # as there is no search path for DLLs.
  10528. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10529. allow_undefined_flag_CXX=unsupported
  10530. always_export_symbols_CXX=no
  10531. enable_shared_with_static_runtimes_CXX=yes
  10532. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10533. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10534. # If the export-symbols file already is a .def file (1st line
  10535. # is EXPORTS), use it as is; otherwise, prepend...
  10536. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10537. cp $export_symbols $output_objdir/$soname.def;
  10538. else
  10539. echo EXPORTS > $output_objdir/$soname.def;
  10540. cat $export_symbols >> $output_objdir/$soname.def;
  10541. fi~
  10542. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10543. else
  10544. ld_shlibs_CXX=no
  10545. fi
  10546. ;;
  10547. darwin* | rhapsody*)
  10548. archive_cmds_need_lc_CXX=no
  10549. hardcode_direct_CXX=no
  10550. hardcode_automatic_CXX=yes
  10551. hardcode_shlibpath_var_CXX=unsupported
  10552. whole_archive_flag_spec_CXX=''
  10553. link_all_deplibs_CXX=yes
  10554. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10555. if test "$GXX" = yes ; then
  10556. output_verbose_link_cmd='echo'
  10557. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10558. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10559. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10560. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10561. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10562. 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${_lt_dsymutil}"
  10563. archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
  10564. fi
  10565. else
  10566. case $cc_basename in
  10567. xlc*)
  10568. output_verbose_link_cmd='echo'
  10569. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10570. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10571. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10572. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10573. 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}'
  10574. ;;
  10575. *)
  10576. ld_shlibs_CXX=no
  10577. ;;
  10578. esac
  10579. fi
  10580. ;;
  10581. dgux*)
  10582. case $cc_basename in
  10583. ec++*)
  10584. # FIXME: insert proper C++ library support
  10585. ld_shlibs_CXX=no
  10586. ;;
  10587. ghcx*)
  10588. # Green Hills C++ Compiler
  10589. # FIXME: insert proper C++ library support
  10590. ld_shlibs_CXX=no
  10591. ;;
  10592. *)
  10593. # FIXME: insert proper C++ library support
  10594. ld_shlibs_CXX=no
  10595. ;;
  10596. esac
  10597. ;;
  10598. freebsd[12]*)
  10599. # C++ shared libraries reported to be fairly broken before switch to ELF
  10600. ld_shlibs_CXX=no
  10601. ;;
  10602. freebsd-elf*)
  10603. archive_cmds_need_lc_CXX=no
  10604. ;;
  10605. freebsd* | dragonfly*)
  10606. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10607. # conventions
  10608. ld_shlibs_CXX=yes
  10609. ;;
  10610. gnu*)
  10611. ;;
  10612. hpux9*)
  10613. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10614. hardcode_libdir_separator_CXX=:
  10615. export_dynamic_flag_spec_CXX='${wl}-E'
  10616. hardcode_direct_CXX=yes
  10617. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10618. # but as the default
  10619. # location of the library.
  10620. case $cc_basename in
  10621. CC*)
  10622. # FIXME: insert proper C++ library support
  10623. ld_shlibs_CXX=no
  10624. ;;
  10625. aCC*)
  10626. 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'
  10627. # Commands to make compiler produce verbose output that lists
  10628. # what "hidden" libraries, object files and flags are used when
  10629. # linking a shared library.
  10630. #
  10631. # There doesn't appear to be a way to prevent this compiler from
  10632. # explicitly linking system object files so we need to strip them
  10633. # from the output so that they don't get included in the library
  10634. # dependencies.
  10635. 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'
  10636. ;;
  10637. *)
  10638. if test "$GXX" = yes; then
  10639. 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'
  10640. else
  10641. # FIXME: insert proper C++ library support
  10642. ld_shlibs_CXX=no
  10643. fi
  10644. ;;
  10645. esac
  10646. ;;
  10647. hpux10*|hpux11*)
  10648. if test $with_gnu_ld = no; then
  10649. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10650. hardcode_libdir_separator_CXX=:
  10651. case $host_cpu in
  10652. hppa*64*|ia64*) ;;
  10653. *)
  10654. export_dynamic_flag_spec_CXX='${wl}-E'
  10655. ;;
  10656. esac
  10657. fi
  10658. case $host_cpu in
  10659. hppa*64*|ia64*)
  10660. hardcode_direct_CXX=no
  10661. hardcode_shlibpath_var_CXX=no
  10662. ;;
  10663. *)
  10664. hardcode_direct_CXX=yes
  10665. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10666. # but as the default
  10667. # location of the library.
  10668. ;;
  10669. esac
  10670. case $cc_basename in
  10671. CC*)
  10672. # FIXME: insert proper C++ library support
  10673. ld_shlibs_CXX=no
  10674. ;;
  10675. aCC*)
  10676. case $host_cpu in
  10677. hppa*64*)
  10678. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10679. ;;
  10680. ia64*)
  10681. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10682. ;;
  10683. *)
  10684. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10685. ;;
  10686. esac
  10687. # Commands to make compiler produce verbose output that lists
  10688. # what "hidden" libraries, object files and flags are used when
  10689. # linking a shared library.
  10690. #
  10691. # There doesn't appear to be a way to prevent this compiler from
  10692. # explicitly linking system object files so we need to strip them
  10693. # from the output so that they don't get included in the library
  10694. # dependencies.
  10695. 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'
  10696. ;;
  10697. *)
  10698. if test "$GXX" = yes; then
  10699. if test $with_gnu_ld = no; then
  10700. case $host_cpu in
  10701. hppa*64*)
  10702. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10703. ;;
  10704. ia64*)
  10705. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10706. ;;
  10707. *)
  10708. 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'
  10709. ;;
  10710. esac
  10711. fi
  10712. else
  10713. # FIXME: insert proper C++ library support
  10714. ld_shlibs_CXX=no
  10715. fi
  10716. ;;
  10717. esac
  10718. ;;
  10719. interix[3-9]*)
  10720. hardcode_direct_CXX=no
  10721. hardcode_shlibpath_var_CXX=no
  10722. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10723. export_dynamic_flag_spec_CXX='${wl}-E'
  10724. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10725. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10726. # default) and relocated if they conflict, which is a slow very memory
  10727. # consuming and fragmenting process. To avoid this, we pick a random,
  10728. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10729. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10730. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10731. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10732. ;;
  10733. irix5* | irix6*)
  10734. case $cc_basename in
  10735. CC*)
  10736. # SGI C++
  10737. 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'
  10738. # Archives containing C++ object files must be created using
  10739. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10740. # necessary to make sure instantiated templates are included
  10741. # in the archive.
  10742. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10743. ;;
  10744. *)
  10745. if test "$GXX" = yes; then
  10746. if test "$with_gnu_ld" = no; then
  10747. 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'
  10748. else
  10749. 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'
  10750. fi
  10751. fi
  10752. link_all_deplibs_CXX=yes
  10753. ;;
  10754. esac
  10755. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10756. hardcode_libdir_separator_CXX=:
  10757. ;;
  10758. linux* | k*bsd*-gnu)
  10759. case $cc_basename in
  10760. KCC*)
  10761. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10762. # KCC will only create a shared library if the output file
  10763. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10764. # to its proper name (with version) after linking.
  10765. 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'
  10766. 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'
  10767. # Commands to make compiler produce verbose output that lists
  10768. # what "hidden" libraries, object files and flags are used when
  10769. # linking a shared library.
  10770. #
  10771. # There doesn't appear to be a way to prevent this compiler from
  10772. # explicitly linking system object files so we need to strip them
  10773. # from the output so that they don't get included in the library
  10774. # dependencies.
  10775. 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'
  10776. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10777. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10778. # Archives containing C++ object files must be created using
  10779. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10780. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10781. ;;
  10782. icpc*)
  10783. # Intel C++
  10784. with_gnu_ld=yes
  10785. # version 8.0 and above of icpc choke on multiply defined symbols
  10786. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10787. # earlier do not add the objects themselves.
  10788. case `$CC -V 2>&1` in
  10789. *"Version 7."*)
  10790. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10791. 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'
  10792. ;;
  10793. *) # Version 8.0 or newer
  10794. tmp_idyn=
  10795. case $host_cpu in
  10796. ia64*) tmp_idyn=' -i_dynamic';;
  10797. esac
  10798. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10799. 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'
  10800. ;;
  10801. esac
  10802. archive_cmds_need_lc_CXX=no
  10803. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10804. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10805. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10806. ;;
  10807. pgCC* | pgcpp*)
  10808. # Portland Group C++ compiler
  10809. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10810. 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'
  10811. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10812. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10813. 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'
  10814. ;;
  10815. cxx*)
  10816. # Compaq C++
  10817. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10818. 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'
  10819. runpath_var=LD_RUN_PATH
  10820. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10821. hardcode_libdir_separator_CXX=:
  10822. # Commands to make compiler produce verbose output that lists
  10823. # what "hidden" libraries, object files and flags are used when
  10824. # linking a shared library.
  10825. #
  10826. # There doesn't appear to be a way to prevent this compiler from
  10827. # explicitly linking system object files so we need to strip them
  10828. # from the output so that they don't get included in the library
  10829. # dependencies.
  10830. 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'
  10831. ;;
  10832. *)
  10833. case `$CC -V 2>&1 | sed 5q` in
  10834. *Sun\ C*)
  10835. # Sun C++ 5.9
  10836. no_undefined_flag_CXX=' -zdefs'
  10837. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10838. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10839. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10840. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10841. # Not sure whether something based on
  10842. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10843. # would be better.
  10844. output_verbose_link_cmd='echo'
  10845. # Archives containing C++ object files must be created using
  10846. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10847. # necessary to make sure instantiated templates are included
  10848. # in the archive.
  10849. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10850. ;;
  10851. esac
  10852. ;;
  10853. esac
  10854. ;;
  10855. lynxos*)
  10856. # FIXME: insert proper C++ library support
  10857. ld_shlibs_CXX=no
  10858. ;;
  10859. m88k*)
  10860. # FIXME: insert proper C++ library support
  10861. ld_shlibs_CXX=no
  10862. ;;
  10863. mvs*)
  10864. case $cc_basename in
  10865. cxx*)
  10866. # FIXME: insert proper C++ library support
  10867. ld_shlibs_CXX=no
  10868. ;;
  10869. *)
  10870. # FIXME: insert proper C++ library support
  10871. ld_shlibs_CXX=no
  10872. ;;
  10873. esac
  10874. ;;
  10875. netbsd*)
  10876. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10877. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10878. wlarc=
  10879. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10880. hardcode_direct_CXX=yes
  10881. hardcode_shlibpath_var_CXX=no
  10882. fi
  10883. # Workaround some broken pre-1.5 toolchains
  10884. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10885. ;;
  10886. openbsd2*)
  10887. # C++ shared libraries are fairly broken
  10888. ld_shlibs_CXX=no
  10889. ;;
  10890. openbsd*)
  10891. if test -f /usr/libexec/ld.so; then
  10892. hardcode_direct_CXX=yes
  10893. hardcode_shlibpath_var_CXX=no
  10894. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10895. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10896. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10897. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10898. export_dynamic_flag_spec_CXX='${wl}-E'
  10899. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10900. fi
  10901. output_verbose_link_cmd='echo'
  10902. else
  10903. ld_shlibs_CXX=no
  10904. fi
  10905. ;;
  10906. osf3*)
  10907. case $cc_basename in
  10908. KCC*)
  10909. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10910. # KCC will only create a shared library if the output file
  10911. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10912. # to its proper name (with version) after linking.
  10913. 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'
  10914. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10915. hardcode_libdir_separator_CXX=:
  10916. # Archives containing C++ object files must be created using
  10917. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10918. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10919. ;;
  10920. RCC*)
  10921. # Rational C++ 2.4.1
  10922. # FIXME: insert proper C++ library support
  10923. ld_shlibs_CXX=no
  10924. ;;
  10925. cxx*)
  10926. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10927. 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'
  10928. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10929. hardcode_libdir_separator_CXX=:
  10930. # Commands to make compiler produce verbose output that lists
  10931. # what "hidden" libraries, object files and flags are used when
  10932. # linking a shared library.
  10933. #
  10934. # There doesn't appear to be a way to prevent this compiler from
  10935. # explicitly linking system object files so we need to strip them
  10936. # from the output so that they don't get included in the library
  10937. # dependencies.
  10938. 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'
  10939. ;;
  10940. *)
  10941. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10942. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10943. 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'
  10944. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10945. hardcode_libdir_separator_CXX=:
  10946. # Commands to make compiler produce verbose output that lists
  10947. # what "hidden" libraries, object files and flags are used when
  10948. # linking a shared library.
  10949. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10950. else
  10951. # FIXME: insert proper C++ library support
  10952. ld_shlibs_CXX=no
  10953. fi
  10954. ;;
  10955. esac
  10956. ;;
  10957. osf4* | osf5*)
  10958. case $cc_basename in
  10959. KCC*)
  10960. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10961. # KCC will only create a shared library if the output file
  10962. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10963. # to its proper name (with version) after linking.
  10964. 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'
  10965. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10966. hardcode_libdir_separator_CXX=:
  10967. # Archives containing C++ object files must be created using
  10968. # the KAI C++ compiler.
  10969. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10970. ;;
  10971. RCC*)
  10972. # Rational C++ 2.4.1
  10973. # FIXME: insert proper C++ library support
  10974. ld_shlibs_CXX=no
  10975. ;;
  10976. cxx*)
  10977. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10978. 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'
  10979. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10980. echo "-hidden">> $lib.exp~
  10981. $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~
  10982. $rm $lib.exp'
  10983. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10984. hardcode_libdir_separator_CXX=:
  10985. # Commands to make compiler produce verbose output that lists
  10986. # what "hidden" libraries, object files and flags are used when
  10987. # linking a shared library.
  10988. #
  10989. # There doesn't appear to be a way to prevent this compiler from
  10990. # explicitly linking system object files so we need to strip them
  10991. # from the output so that they don't get included in the library
  10992. # dependencies.
  10993. 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'
  10994. ;;
  10995. *)
  10996. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10997. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10998. 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'
  10999. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11000. hardcode_libdir_separator_CXX=:
  11001. # Commands to make compiler produce verbose output that lists
  11002. # what "hidden" libraries, object files and flags are used when
  11003. # linking a shared library.
  11004. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11005. else
  11006. # FIXME: insert proper C++ library support
  11007. ld_shlibs_CXX=no
  11008. fi
  11009. ;;
  11010. esac
  11011. ;;
  11012. psos*)
  11013. # FIXME: insert proper C++ library support
  11014. ld_shlibs_CXX=no
  11015. ;;
  11016. sunos4*)
  11017. case $cc_basename in
  11018. CC*)
  11019. # Sun C++ 4.x
  11020. # FIXME: insert proper C++ library support
  11021. ld_shlibs_CXX=no
  11022. ;;
  11023. lcc*)
  11024. # Lucid
  11025. # FIXME: insert proper C++ library support
  11026. ld_shlibs_CXX=no
  11027. ;;
  11028. *)
  11029. # FIXME: insert proper C++ library support
  11030. ld_shlibs_CXX=no
  11031. ;;
  11032. esac
  11033. ;;
  11034. solaris*)
  11035. case $cc_basename in
  11036. CC*)
  11037. # Sun C++ 4.2, 5.x and Centerline C++
  11038. archive_cmds_need_lc_CXX=yes
  11039. no_undefined_flag_CXX=' -zdefs'
  11040. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11041. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11042. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11043. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11044. hardcode_shlibpath_var_CXX=no
  11045. case $host_os in
  11046. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11047. *)
  11048. # The compiler driver will combine and reorder linker options,
  11049. # but understands `-z linker_flag'.
  11050. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11051. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11052. ;;
  11053. esac
  11054. link_all_deplibs_CXX=yes
  11055. output_verbose_link_cmd='echo'
  11056. # Archives containing C++ object files must be created using
  11057. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11058. # necessary to make sure instantiated templates are included
  11059. # in the archive.
  11060. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11061. ;;
  11062. gcx*)
  11063. # Green Hills C++ Compiler
  11064. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11065. # The C++ compiler must be used to create the archive.
  11066. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11067. ;;
  11068. *)
  11069. # GNU C++ compiler with Solaris linker
  11070. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11071. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11072. if $CC --version | grep -v '^2\.7' > /dev/null; then
  11073. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11074. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11075. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11076. # Commands to make compiler produce verbose output that lists
  11077. # what "hidden" libraries, object files and flags are used when
  11078. # linking a shared library.
  11079. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11080. else
  11081. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11082. # platform.
  11083. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11084. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11085. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11086. # Commands to make compiler produce verbose output that lists
  11087. # what "hidden" libraries, object files and flags are used when
  11088. # linking a shared library.
  11089. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11090. fi
  11091. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11092. case $host_os in
  11093. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11094. *)
  11095. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11096. ;;
  11097. esac
  11098. fi
  11099. ;;
  11100. esac
  11101. ;;
  11102. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11103. no_undefined_flag_CXX='${wl}-z,text'
  11104. archive_cmds_need_lc_CXX=no
  11105. hardcode_shlibpath_var_CXX=no
  11106. runpath_var='LD_RUN_PATH'
  11107. case $cc_basename in
  11108. CC*)
  11109. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11110. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11111. ;;
  11112. *)
  11113. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11114. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11115. ;;
  11116. esac
  11117. ;;
  11118. sysv5* | sco3.2v5* | sco5v6*)
  11119. # Note: We can NOT use -z defs as we might desire, because we do not
  11120. # link with -lc, and that would cause any symbols used from libc to
  11121. # always be unresolved, which means just about no library would
  11122. # ever link correctly. If we're not using GNU ld we use -z text
  11123. # though, which does catch some bad symbols but isn't as heavy-handed
  11124. # as -z defs.
  11125. # For security reasons, it is highly recommended that you always
  11126. # use absolute paths for naming shared libraries, and exclude the
  11127. # DT_RUNPATH tag from executables and libraries. But doing so
  11128. # requires that you compile everything twice, which is a pain.
  11129. # So that behaviour is only enabled if SCOABSPATH is set to a
  11130. # non-empty value in the environment. Most likely only useful for
  11131. # creating official distributions of packages.
  11132. # This is a hack until libtool officially supports absolute path
  11133. # names for shared libraries.
  11134. no_undefined_flag_CXX='${wl}-z,text'
  11135. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11136. archive_cmds_need_lc_CXX=no
  11137. hardcode_shlibpath_var_CXX=no
  11138. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  11139. hardcode_libdir_separator_CXX=':'
  11140. link_all_deplibs_CXX=yes
  11141. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11142. runpath_var='LD_RUN_PATH'
  11143. case $cc_basename in
  11144. CC*)
  11145. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11146. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11147. ;;
  11148. *)
  11149. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11150. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11151. ;;
  11152. esac
  11153. ;;
  11154. tandem*)
  11155. case $cc_basename in
  11156. NCC*)
  11157. # NonStop-UX NCC 3.20
  11158. # FIXME: insert proper C++ library support
  11159. ld_shlibs_CXX=no
  11160. ;;
  11161. *)
  11162. # FIXME: insert proper C++ library support
  11163. ld_shlibs_CXX=no
  11164. ;;
  11165. esac
  11166. ;;
  11167. vxworks*)
  11168. # FIXME: insert proper C++ library support
  11169. ld_shlibs_CXX=no
  11170. ;;
  11171. *)
  11172. # FIXME: insert proper C++ library support
  11173. ld_shlibs_CXX=no
  11174. ;;
  11175. esac
  11176. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11177. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11178. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11179. GCC_CXX="$GXX"
  11180. LD_CXX="$LD"
  11181. cat > conftest.$ac_ext <<EOF
  11182. class Foo
  11183. {
  11184. public:
  11185. Foo (void) { a = 0; }
  11186. private:
  11187. int a;
  11188. };
  11189. EOF
  11190. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11191. (eval $ac_compile) 2>&5
  11192. ac_status=$?
  11193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11194. (exit $ac_status); }; then
  11195. # Parse the compiler output and extract the necessary
  11196. # objects, libraries and library flags.
  11197. # Sentinel used to keep track of whether or not we are before
  11198. # the conftest object file.
  11199. pre_test_object_deps_done=no
  11200. # The `*' in the case matches for architectures that use `case' in
  11201. # $output_verbose_cmd can trigger glob expansion during the loop
  11202. # eval without this substitution.
  11203. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11204. for p in `eval $output_verbose_link_cmd`; do
  11205. case $p in
  11206. -L* | -R* | -l*)
  11207. # Some compilers place space between "-{L,R}" and the path.
  11208. # Remove the space.
  11209. if test $p = "-L" \
  11210. || test $p = "-R"; then
  11211. prev=$p
  11212. continue
  11213. else
  11214. prev=
  11215. fi
  11216. if test "$pre_test_object_deps_done" = no; then
  11217. case $p in
  11218. -L* | -R*)
  11219. # Internal compiler library paths should come after those
  11220. # provided the user. The postdeps already come after the
  11221. # user supplied libs so there is no need to process them.
  11222. if test -z "$compiler_lib_search_path_CXX"; then
  11223. compiler_lib_search_path_CXX="${prev}${p}"
  11224. else
  11225. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11226. fi
  11227. ;;
  11228. # The "-l" case would never come before the object being
  11229. # linked, so don't bother handling this case.
  11230. esac
  11231. else
  11232. if test -z "$postdeps_CXX"; then
  11233. postdeps_CXX="${prev}${p}"
  11234. else
  11235. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11236. fi
  11237. fi
  11238. ;;
  11239. *.$objext)
  11240. # This assumes that the test object file only shows up
  11241. # once in the compiler output.
  11242. if test "$p" = "conftest.$objext"; then
  11243. pre_test_object_deps_done=yes
  11244. continue
  11245. fi
  11246. if test "$pre_test_object_deps_done" = no; then
  11247. if test -z "$predep_objects_CXX"; then
  11248. predep_objects_CXX="$p"
  11249. else
  11250. predep_objects_CXX="$predep_objects_CXX $p"
  11251. fi
  11252. else
  11253. if test -z "$postdep_objects_CXX"; then
  11254. postdep_objects_CXX="$p"
  11255. else
  11256. postdep_objects_CXX="$postdep_objects_CXX $p"
  11257. fi
  11258. fi
  11259. ;;
  11260. *) ;; # Ignore the rest.
  11261. esac
  11262. done
  11263. # Clean up.
  11264. rm -f a.out a.exe
  11265. else
  11266. echo "libtool.m4: error: problem compiling CXX test program"
  11267. fi
  11268. $rm -f confest.$objext
  11269. compiler_lib_search_dirs_CXX=
  11270. if test -n "$compiler_lib_search_path_CXX"; then
  11271. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11272. fi
  11273. # PORTME: override above test on systems where it is broken
  11274. case $host_os in
  11275. interix[3-9]*)
  11276. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11277. # hack all around it, let's just trust "g++" to DTRT.
  11278. predep_objects_CXX=
  11279. postdep_objects_CXX=
  11280. postdeps_CXX=
  11281. ;;
  11282. linux*)
  11283. case `$CC -V 2>&1 | sed 5q` in
  11284. *Sun\ C*)
  11285. # Sun C++ 5.9
  11286. #
  11287. # The more standards-conforming stlport4 library is
  11288. # incompatible with the Cstd library. Avoid specifying
  11289. # it if it's in CXXFLAGS. Ignore libCrun as
  11290. # -library=stlport4 depends on it.
  11291. case " $CXX $CXXFLAGS " in
  11292. *" -library=stlport4 "*)
  11293. solaris_use_stlport4=yes
  11294. ;;
  11295. esac
  11296. if test "$solaris_use_stlport4" != yes; then
  11297. postdeps_CXX='-library=Cstd -library=Crun'
  11298. fi
  11299. ;;
  11300. esac
  11301. ;;
  11302. solaris*)
  11303. case $cc_basename in
  11304. CC*)
  11305. # The more standards-conforming stlport4 library is
  11306. # incompatible with the Cstd library. Avoid specifying
  11307. # it if it's in CXXFLAGS. Ignore libCrun as
  11308. # -library=stlport4 depends on it.
  11309. case " $CXX $CXXFLAGS " in
  11310. *" -library=stlport4 "*)
  11311. solaris_use_stlport4=yes
  11312. ;;
  11313. esac
  11314. # Adding this requires a known-good setup of shared libraries for
  11315. # Sun compiler versions before 5.6, else PIC objects from an old
  11316. # archive will be linked into the output, leading to subtle bugs.
  11317. if test "$solaris_use_stlport4" != yes; then
  11318. postdeps_CXX='-library=Cstd -library=Crun'
  11319. fi
  11320. ;;
  11321. esac
  11322. ;;
  11323. esac
  11324. case " $postdeps_CXX " in
  11325. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11326. esac
  11327. lt_prog_compiler_wl_CXX=
  11328. lt_prog_compiler_pic_CXX=
  11329. lt_prog_compiler_static_CXX=
  11330. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11331. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11332. # C++ specific cases for pic, static, wl, etc.
  11333. if test "$GXX" = yes; then
  11334. lt_prog_compiler_wl_CXX='-Wl,'
  11335. lt_prog_compiler_static_CXX='-static'
  11336. case $host_os in
  11337. aix*)
  11338. # All AIX code is PIC.
  11339. if test "$host_cpu" = ia64; then
  11340. # AIX 5 now supports IA64 processor
  11341. lt_prog_compiler_static_CXX='-Bstatic'
  11342. fi
  11343. ;;
  11344. amigaos*)
  11345. # FIXME: we need at least 68020 code to build shared libraries, but
  11346. # adding the `-m68020' flag to GCC prevents building anything better,
  11347. # like `-m68040'.
  11348. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11349. ;;
  11350. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11351. # PIC is the default for these OSes.
  11352. ;;
  11353. mingw* | cygwin* | os2* | pw32*)
  11354. # This hack is so that the source file can tell whether it is being
  11355. # built for inclusion in a dll (and should export symbols for example).
  11356. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11357. # (--disable-auto-import) libraries
  11358. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11359. ;;
  11360. darwin* | rhapsody*)
  11361. # PIC is the default on this platform
  11362. # Common symbols not allowed in MH_DYLIB files
  11363. lt_prog_compiler_pic_CXX='-fno-common'
  11364. ;;
  11365. *djgpp*)
  11366. # DJGPP does not support shared libraries at all
  11367. lt_prog_compiler_pic_CXX=
  11368. ;;
  11369. interix[3-9]*)
  11370. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11371. # Instead, we relocate shared libraries at runtime.
  11372. ;;
  11373. sysv4*MP*)
  11374. if test -d /usr/nec; then
  11375. lt_prog_compiler_pic_CXX=-Kconform_pic
  11376. fi
  11377. ;;
  11378. hpux*)
  11379. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11380. # not for PA HP-UX.
  11381. case $host_cpu in
  11382. hppa*64*|ia64*)
  11383. ;;
  11384. *)
  11385. lt_prog_compiler_pic_CXX='-fPIC'
  11386. ;;
  11387. esac
  11388. ;;
  11389. *)
  11390. lt_prog_compiler_pic_CXX='-fPIC'
  11391. ;;
  11392. esac
  11393. else
  11394. case $host_os in
  11395. aix[4-9]*)
  11396. # All AIX code is PIC.
  11397. if test "$host_cpu" = ia64; then
  11398. # AIX 5 now supports IA64 processor
  11399. lt_prog_compiler_static_CXX='-Bstatic'
  11400. else
  11401. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11402. fi
  11403. ;;
  11404. chorus*)
  11405. case $cc_basename in
  11406. cxch68*)
  11407. # Green Hills C++ Compiler
  11408. # _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"
  11409. ;;
  11410. esac
  11411. ;;
  11412. darwin*)
  11413. # PIC is the default on this platform
  11414. # Common symbols not allowed in MH_DYLIB files
  11415. case $cc_basename in
  11416. xlc*)
  11417. lt_prog_compiler_pic_CXX='-qnocommon'
  11418. lt_prog_compiler_wl_CXX='-Wl,'
  11419. ;;
  11420. esac
  11421. ;;
  11422. dgux*)
  11423. case $cc_basename in
  11424. ec++*)
  11425. lt_prog_compiler_pic_CXX='-KPIC'
  11426. ;;
  11427. ghcx*)
  11428. # Green Hills C++ Compiler
  11429. lt_prog_compiler_pic_CXX='-pic'
  11430. ;;
  11431. *)
  11432. ;;
  11433. esac
  11434. ;;
  11435. freebsd* | dragonfly*)
  11436. # FreeBSD uses GNU C++
  11437. ;;
  11438. hpux9* | hpux10* | hpux11*)
  11439. case $cc_basename in
  11440. CC*)
  11441. lt_prog_compiler_wl_CXX='-Wl,'
  11442. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11443. if test "$host_cpu" != ia64; then
  11444. lt_prog_compiler_pic_CXX='+Z'
  11445. fi
  11446. ;;
  11447. aCC*)
  11448. lt_prog_compiler_wl_CXX='-Wl,'
  11449. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11450. case $host_cpu in
  11451. hppa*64*|ia64*)
  11452. # +Z the default
  11453. ;;
  11454. *)
  11455. lt_prog_compiler_pic_CXX='+Z'
  11456. ;;
  11457. esac
  11458. ;;
  11459. *)
  11460. ;;
  11461. esac
  11462. ;;
  11463. interix*)
  11464. # This is c89, which is MS Visual C++ (no shared libs)
  11465. # Anyone wants to do a port?
  11466. ;;
  11467. irix5* | irix6* | nonstopux*)
  11468. case $cc_basename in
  11469. CC*)
  11470. lt_prog_compiler_wl_CXX='-Wl,'
  11471. lt_prog_compiler_static_CXX='-non_shared'
  11472. # CC pic flag -KPIC is the default.
  11473. ;;
  11474. *)
  11475. ;;
  11476. esac
  11477. ;;
  11478. linux* | k*bsd*-gnu)
  11479. case $cc_basename in
  11480. KCC*)
  11481. # KAI C++ Compiler
  11482. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11483. lt_prog_compiler_pic_CXX='-fPIC'
  11484. ;;
  11485. icpc* | ecpc*)
  11486. # Intel C++
  11487. lt_prog_compiler_wl_CXX='-Wl,'
  11488. lt_prog_compiler_pic_CXX='-KPIC'
  11489. lt_prog_compiler_static_CXX='-static'
  11490. ;;
  11491. pgCC* | pgcpp*)
  11492. # Portland Group C++ compiler.
  11493. lt_prog_compiler_wl_CXX='-Wl,'
  11494. lt_prog_compiler_pic_CXX='-fpic'
  11495. lt_prog_compiler_static_CXX='-Bstatic'
  11496. ;;
  11497. cxx*)
  11498. # Compaq C++
  11499. # Make sure the PIC flag is empty. It appears that all Alpha
  11500. # Linux and Compaq Tru64 Unix objects are PIC.
  11501. lt_prog_compiler_pic_CXX=
  11502. lt_prog_compiler_static_CXX='-non_shared'
  11503. ;;
  11504. *)
  11505. case `$CC -V 2>&1 | sed 5q` in
  11506. *Sun\ C*)
  11507. # Sun C++ 5.9
  11508. lt_prog_compiler_pic_CXX='-KPIC'
  11509. lt_prog_compiler_static_CXX='-Bstatic'
  11510. lt_prog_compiler_wl_CXX='-Qoption ld '
  11511. ;;
  11512. esac
  11513. ;;
  11514. esac
  11515. ;;
  11516. lynxos*)
  11517. ;;
  11518. m88k*)
  11519. ;;
  11520. mvs*)
  11521. case $cc_basename in
  11522. cxx*)
  11523. lt_prog_compiler_pic_CXX='-W c,exportall'
  11524. ;;
  11525. *)
  11526. ;;
  11527. esac
  11528. ;;
  11529. netbsd*)
  11530. ;;
  11531. osf3* | osf4* | osf5*)
  11532. case $cc_basename in
  11533. KCC*)
  11534. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11535. ;;
  11536. RCC*)
  11537. # Rational C++ 2.4.1
  11538. lt_prog_compiler_pic_CXX='-pic'
  11539. ;;
  11540. cxx*)
  11541. # Digital/Compaq C++
  11542. lt_prog_compiler_wl_CXX='-Wl,'
  11543. # Make sure the PIC flag is empty. It appears that all Alpha
  11544. # Linux and Compaq Tru64 Unix objects are PIC.
  11545. lt_prog_compiler_pic_CXX=
  11546. lt_prog_compiler_static_CXX='-non_shared'
  11547. ;;
  11548. *)
  11549. ;;
  11550. esac
  11551. ;;
  11552. psos*)
  11553. ;;
  11554. solaris*)
  11555. case $cc_basename in
  11556. CC*)
  11557. # Sun C++ 4.2, 5.x and Centerline C++
  11558. lt_prog_compiler_pic_CXX='-KPIC'
  11559. lt_prog_compiler_static_CXX='-Bstatic'
  11560. lt_prog_compiler_wl_CXX='-Qoption ld '
  11561. ;;
  11562. gcx*)
  11563. # Green Hills C++ Compiler
  11564. lt_prog_compiler_pic_CXX='-PIC'
  11565. ;;
  11566. *)
  11567. ;;
  11568. esac
  11569. ;;
  11570. sunos4*)
  11571. case $cc_basename in
  11572. CC*)
  11573. # Sun C++ 4.x
  11574. lt_prog_compiler_pic_CXX='-pic'
  11575. lt_prog_compiler_static_CXX='-Bstatic'
  11576. ;;
  11577. lcc*)
  11578. # Lucid
  11579. lt_prog_compiler_pic_CXX='-pic'
  11580. ;;
  11581. *)
  11582. ;;
  11583. esac
  11584. ;;
  11585. tandem*)
  11586. case $cc_basename in
  11587. NCC*)
  11588. # NonStop-UX NCC 3.20
  11589. lt_prog_compiler_pic_CXX='-KPIC'
  11590. ;;
  11591. *)
  11592. ;;
  11593. esac
  11594. ;;
  11595. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11596. case $cc_basename in
  11597. CC*)
  11598. lt_prog_compiler_wl_CXX='-Wl,'
  11599. lt_prog_compiler_pic_CXX='-KPIC'
  11600. lt_prog_compiler_static_CXX='-Bstatic'
  11601. ;;
  11602. esac
  11603. ;;
  11604. vxworks*)
  11605. ;;
  11606. *)
  11607. lt_prog_compiler_can_build_shared_CXX=no
  11608. ;;
  11609. esac
  11610. fi
  11611. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11612. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11613. #
  11614. # Check to make sure the PIC flag actually works.
  11615. #
  11616. if test -n "$lt_prog_compiler_pic_CXX"; then
  11617. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11618. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11619. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  11620. echo $ECHO_N "(cached) $ECHO_C" >&6
  11621. else
  11622. lt_cv_prog_compiler_pic_works_CXX=no
  11623. ac_outfile=conftest.$ac_objext
  11624. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11625. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11626. # Insert the option either (1) after the last *FLAGS variable, or
  11627. # (2) before a word containing "conftest.", or (3) at the end.
  11628. # Note that $ac_compile itself does not contain backslashes and begins
  11629. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11630. # The option is referenced via a variable to avoid confusing sed.
  11631. lt_compile=`echo "$ac_compile" | $SED \
  11632. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11633. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11634. -e 's:$: $lt_compiler_flag:'`
  11635. (eval echo "\"\$as_me:12955: $lt_compile\"" >&5)
  11636. (eval "$lt_compile" 2>conftest.err)
  11637. ac_status=$?
  11638. cat conftest.err >&5
  11639. echo "$as_me:12959: \$? = $ac_status" >&5
  11640. if (exit $ac_status) && test -s "$ac_outfile"; then
  11641. # The compiler can only warn and ignore the option if not recognized
  11642. # So say no if there are warnings other than the usual output.
  11643. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11644. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11645. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11646. lt_cv_prog_compiler_pic_works_CXX=yes
  11647. fi
  11648. fi
  11649. $rm conftest*
  11650. fi
  11651. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11652. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11653. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11654. case $lt_prog_compiler_pic_CXX in
  11655. "" | " "*) ;;
  11656. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11657. esac
  11658. else
  11659. lt_prog_compiler_pic_CXX=
  11660. lt_prog_compiler_can_build_shared_CXX=no
  11661. fi
  11662. fi
  11663. case $host_os in
  11664. # For platforms which do not support PIC, -DPIC is meaningless:
  11665. *djgpp*)
  11666. lt_prog_compiler_pic_CXX=
  11667. ;;
  11668. *)
  11669. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11670. ;;
  11671. esac
  11672. #
  11673. # Check to make sure the static flag actually works.
  11674. #
  11675. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11676. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11677. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11678. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  11679. echo $ECHO_N "(cached) $ECHO_C" >&6
  11680. else
  11681. lt_cv_prog_compiler_static_works_CXX=no
  11682. save_LDFLAGS="$LDFLAGS"
  11683. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11684. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11685. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11686. # The linker can only warn and ignore the option if not recognized
  11687. # So say no if there are warnings
  11688. if test -s conftest.err; then
  11689. # Append any errors to the config.log.
  11690. cat conftest.err 1>&5
  11691. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11692. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11693. if diff conftest.exp conftest.er2 >/dev/null; then
  11694. lt_cv_prog_compiler_static_works_CXX=yes
  11695. fi
  11696. else
  11697. lt_cv_prog_compiler_static_works_CXX=yes
  11698. fi
  11699. fi
  11700. $rm -r conftest*
  11701. LDFLAGS="$save_LDFLAGS"
  11702. fi
  11703. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11704. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11705. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11706. :
  11707. else
  11708. lt_prog_compiler_static_CXX=
  11709. fi
  11710. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11711. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11712. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11713. echo $ECHO_N "(cached) $ECHO_C" >&6
  11714. else
  11715. lt_cv_prog_compiler_c_o_CXX=no
  11716. $rm -r conftest 2>/dev/null
  11717. mkdir conftest
  11718. cd conftest
  11719. mkdir out
  11720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11721. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11722. # Insert the option either (1) after the last *FLAGS variable, or
  11723. # (2) before a word containing "conftest.", or (3) at the end.
  11724. # Note that $ac_compile itself does not contain backslashes and begins
  11725. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11726. lt_compile=`echo "$ac_compile" | $SED \
  11727. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11728. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11729. -e 's:$: $lt_compiler_flag:'`
  11730. (eval echo "\"\$as_me:13059: $lt_compile\"" >&5)
  11731. (eval "$lt_compile" 2>out/conftest.err)
  11732. ac_status=$?
  11733. cat out/conftest.err >&5
  11734. echo "$as_me:13063: \$? = $ac_status" >&5
  11735. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11736. then
  11737. # The compiler can only warn and ignore the option if not recognized
  11738. # So say no if there are warnings
  11739. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11740. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11741. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11742. lt_cv_prog_compiler_c_o_CXX=yes
  11743. fi
  11744. fi
  11745. chmod u+w . 2>&5
  11746. $rm conftest*
  11747. # SGI C++ compiler will create directory out/ii_files/ for
  11748. # template instantiation
  11749. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11750. $rm out/* && rmdir out
  11751. cd ..
  11752. rmdir conftest
  11753. $rm conftest*
  11754. fi
  11755. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11756. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11757. hard_links="nottested"
  11758. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11759. # do not overwrite the value of need_locks provided by the user
  11760. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11761. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11762. hard_links=yes
  11763. $rm conftest*
  11764. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11765. touch conftest.a
  11766. ln conftest.a conftest.b 2>&5 || hard_links=no
  11767. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11768. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11769. echo "${ECHO_T}$hard_links" >&6; }
  11770. if test "$hard_links" = no; then
  11771. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11772. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11773. need_locks=warn
  11774. fi
  11775. else
  11776. need_locks=no
  11777. fi
  11778. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11779. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11780. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11781. case $host_os in
  11782. aix[4-9]*)
  11783. # If we're using GNU nm, then we don't want the "-C" option.
  11784. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11785. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11786. 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'
  11787. else
  11788. 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'
  11789. fi
  11790. ;;
  11791. pw32*)
  11792. export_symbols_cmds_CXX="$ltdll_cmds"
  11793. ;;
  11794. cygwin* | mingw*)
  11795. 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'
  11796. ;;
  11797. *)
  11798. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11799. ;;
  11800. esac
  11801. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11802. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11803. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11804. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11805. #
  11806. # Do we need to explicitly link libc?
  11807. #
  11808. case "x$archive_cmds_need_lc_CXX" in
  11809. x|xyes)
  11810. # Assume -lc should be added
  11811. archive_cmds_need_lc_CXX=yes
  11812. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11813. case $archive_cmds_CXX in
  11814. *'~'*)
  11815. # FIXME: we may have to deal with multi-command sequences.
  11816. ;;
  11817. '$CC '*)
  11818. # Test whether the compiler implicitly links with -lc since on some
  11819. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11820. # to ld, don't add -lc before -lgcc.
  11821. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11822. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11823. $rm conftest*
  11824. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11825. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11826. (eval $ac_compile) 2>&5
  11827. ac_status=$?
  11828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11829. (exit $ac_status); } 2>conftest.err; then
  11830. soname=conftest
  11831. lib=conftest
  11832. libobjs=conftest.$ac_objext
  11833. deplibs=
  11834. wl=$lt_prog_compiler_wl_CXX
  11835. pic_flag=$lt_prog_compiler_pic_CXX
  11836. compiler_flags=-v
  11837. linker_flags=-v
  11838. verstring=
  11839. output_objdir=.
  11840. libname=conftest
  11841. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11842. allow_undefined_flag_CXX=
  11843. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11844. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11845. ac_status=$?
  11846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11847. (exit $ac_status); }
  11848. then
  11849. archive_cmds_need_lc_CXX=no
  11850. else
  11851. archive_cmds_need_lc_CXX=yes
  11852. fi
  11853. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11854. else
  11855. cat conftest.err 1>&5
  11856. fi
  11857. $rm conftest*
  11858. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11859. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11860. ;;
  11861. esac
  11862. fi
  11863. ;;
  11864. esac
  11865. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11866. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11867. library_names_spec=
  11868. libname_spec='lib$name'
  11869. soname_spec=
  11870. shrext_cmds=".so"
  11871. postinstall_cmds=
  11872. postuninstall_cmds=
  11873. finish_cmds=
  11874. finish_eval=
  11875. shlibpath_var=
  11876. shlibpath_overrides_runpath=unknown
  11877. version_type=none
  11878. dynamic_linker="$host_os ld.so"
  11879. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11880. need_lib_prefix=unknown
  11881. hardcode_into_libs=no
  11882. # when you set need_version to no, make sure it does not cause -set_version
  11883. # flags to be left without arguments
  11884. need_version=unknown
  11885. case $host_os in
  11886. aix3*)
  11887. version_type=linux
  11888. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11889. shlibpath_var=LIBPATH
  11890. # AIX 3 has no versioning support, so we append a major version to the name.
  11891. soname_spec='${libname}${release}${shared_ext}$major'
  11892. ;;
  11893. aix[4-9]*)
  11894. version_type=linux
  11895. need_lib_prefix=no
  11896. need_version=no
  11897. hardcode_into_libs=yes
  11898. if test "$host_cpu" = ia64; then
  11899. # AIX 5 supports IA64
  11900. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11901. shlibpath_var=LD_LIBRARY_PATH
  11902. else
  11903. # With GCC up to 2.95.x, collect2 would create an import file
  11904. # for dependence libraries. The import file would start with
  11905. # the line `#! .'. This would cause the generated library to
  11906. # depend on `.', always an invalid library. This was fixed in
  11907. # development snapshots of GCC prior to 3.0.
  11908. case $host_os in
  11909. aix4 | aix4.[01] | aix4.[01].*)
  11910. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11911. echo ' yes '
  11912. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11913. :
  11914. else
  11915. can_build_shared=no
  11916. fi
  11917. ;;
  11918. esac
  11919. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11920. # soname into executable. Probably we can add versioning support to
  11921. # collect2, so additional links can be useful in future.
  11922. if test "$aix_use_runtimelinking" = yes; then
  11923. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11924. # instead of lib<name>.a to let people know that these are not
  11925. # typical AIX shared libraries.
  11926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11927. else
  11928. # We preserve .a as extension for shared libraries through AIX4.2
  11929. # and later when we are not doing run time linking.
  11930. library_names_spec='${libname}${release}.a $libname.a'
  11931. soname_spec='${libname}${release}${shared_ext}$major'
  11932. fi
  11933. shlibpath_var=LIBPATH
  11934. fi
  11935. ;;
  11936. amigaos*)
  11937. library_names_spec='$libname.ixlibrary $libname.a'
  11938. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11939. 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'
  11940. ;;
  11941. beos*)
  11942. library_names_spec='${libname}${shared_ext}'
  11943. dynamic_linker="$host_os ld.so"
  11944. shlibpath_var=LIBRARY_PATH
  11945. ;;
  11946. bsdi[45]*)
  11947. version_type=linux
  11948. need_version=no
  11949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11950. soname_spec='${libname}${release}${shared_ext}$major'
  11951. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11952. shlibpath_var=LD_LIBRARY_PATH
  11953. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11954. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11955. # the default ld.so.conf also contains /usr/contrib/lib and
  11956. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11957. # libtool to hard-code these into programs
  11958. ;;
  11959. cygwin* | mingw* | pw32*)
  11960. version_type=windows
  11961. shrext_cmds=".dll"
  11962. need_version=no
  11963. need_lib_prefix=no
  11964. case $GCC,$host_os in
  11965. yes,cygwin* | yes,mingw* | yes,pw32*)
  11966. library_names_spec='$libname.dll.a'
  11967. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11968. postinstall_cmds='base_file=`basename \${file}`~
  11969. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11970. dldir=$destdir/`dirname \$dlpath`~
  11971. test -d \$dldir || mkdir -p \$dldir~
  11972. $install_prog $dir/$dlname \$dldir/$dlname~
  11973. chmod a+x \$dldir/$dlname'
  11974. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11975. dlpath=$dir/\$dldll~
  11976. $rm \$dlpath'
  11977. shlibpath_overrides_runpath=yes
  11978. case $host_os in
  11979. cygwin*)
  11980. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11981. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11982. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11983. ;;
  11984. mingw*)
  11985. # MinGW DLLs use traditional 'lib' prefix
  11986. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11987. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11988. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11989. # It is most probably a Windows format PATH printed by
  11990. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11991. # path with ; separators, and with drive letters. We can handle the
  11992. # drive letters (cygwin fileutils understands them), so leave them,
  11993. # especially as we might pass files found there to a mingw objdump,
  11994. # which wouldn't understand a cygwinified path. Ahh.
  11995. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11996. else
  11997. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11998. fi
  11999. ;;
  12000. pw32*)
  12001. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12002. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12003. ;;
  12004. esac
  12005. ;;
  12006. *)
  12007. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12008. ;;
  12009. esac
  12010. dynamic_linker='Win32 ld.exe'
  12011. # FIXME: first we should search . and the directory the executable is in
  12012. shlibpath_var=PATH
  12013. ;;
  12014. darwin* | rhapsody*)
  12015. dynamic_linker="$host_os dyld"
  12016. version_type=darwin
  12017. need_lib_prefix=no
  12018. need_version=no
  12019. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12020. soname_spec='${libname}${release}${major}$shared_ext'
  12021. shlibpath_overrides_runpath=yes
  12022. shlibpath_var=DYLD_LIBRARY_PATH
  12023. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12024. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12025. ;;
  12026. dgux*)
  12027. version_type=linux
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12031. soname_spec='${libname}${release}${shared_ext}$major'
  12032. shlibpath_var=LD_LIBRARY_PATH
  12033. ;;
  12034. freebsd1*)
  12035. dynamic_linker=no
  12036. ;;
  12037. freebsd* | dragonfly*)
  12038. # DragonFly does not have aout. When/if they implement a new
  12039. # versioning mechanism, adjust this.
  12040. if test -x /usr/bin/objformat; then
  12041. objformat=`/usr/bin/objformat`
  12042. else
  12043. case $host_os in
  12044. freebsd[123]*) objformat=aout ;;
  12045. *) objformat=elf ;;
  12046. esac
  12047. fi
  12048. version_type=freebsd-$objformat
  12049. case $version_type in
  12050. freebsd-elf*)
  12051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12052. need_version=no
  12053. need_lib_prefix=no
  12054. ;;
  12055. freebsd-*)
  12056. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12057. need_version=yes
  12058. ;;
  12059. esac
  12060. shlibpath_var=LD_LIBRARY_PATH
  12061. case $host_os in
  12062. freebsd2*)
  12063. shlibpath_overrides_runpath=yes
  12064. ;;
  12065. freebsd3.[01]* | freebsdelf3.[01]*)
  12066. shlibpath_overrides_runpath=yes
  12067. hardcode_into_libs=yes
  12068. ;;
  12069. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12070. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12071. shlibpath_overrides_runpath=no
  12072. hardcode_into_libs=yes
  12073. ;;
  12074. *) # from 4.6 on, and DragonFly
  12075. shlibpath_overrides_runpath=yes
  12076. hardcode_into_libs=yes
  12077. ;;
  12078. esac
  12079. ;;
  12080. gnu*)
  12081. version_type=linux
  12082. need_lib_prefix=no
  12083. need_version=no
  12084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12085. soname_spec='${libname}${release}${shared_ext}$major'
  12086. shlibpath_var=LD_LIBRARY_PATH
  12087. hardcode_into_libs=yes
  12088. ;;
  12089. hpux9* | hpux10* | hpux11*)
  12090. # Give a soname corresponding to the major version so that dld.sl refuses to
  12091. # link against other versions.
  12092. version_type=sunos
  12093. need_lib_prefix=no
  12094. need_version=no
  12095. case $host_cpu in
  12096. ia64*)
  12097. shrext_cmds='.so'
  12098. hardcode_into_libs=yes
  12099. dynamic_linker="$host_os dld.so"
  12100. shlibpath_var=LD_LIBRARY_PATH
  12101. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12103. soname_spec='${libname}${release}${shared_ext}$major'
  12104. if test "X$HPUX_IA64_MODE" = X32; then
  12105. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12106. else
  12107. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12108. fi
  12109. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12110. ;;
  12111. hppa*64*)
  12112. shrext_cmds='.sl'
  12113. hardcode_into_libs=yes
  12114. dynamic_linker="$host_os dld.sl"
  12115. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12116. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12118. soname_spec='${libname}${release}${shared_ext}$major'
  12119. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12120. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12121. ;;
  12122. *)
  12123. shrext_cmds='.sl'
  12124. dynamic_linker="$host_os dld.sl"
  12125. shlibpath_var=SHLIB_PATH
  12126. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12128. soname_spec='${libname}${release}${shared_ext}$major'
  12129. ;;
  12130. esac
  12131. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12132. postinstall_cmds='chmod 555 $lib'
  12133. ;;
  12134. interix[3-9]*)
  12135. version_type=linux
  12136. need_lib_prefix=no
  12137. need_version=no
  12138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12139. soname_spec='${libname}${release}${shared_ext}$major'
  12140. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12141. shlibpath_var=LD_LIBRARY_PATH
  12142. shlibpath_overrides_runpath=no
  12143. hardcode_into_libs=yes
  12144. ;;
  12145. irix5* | irix6* | nonstopux*)
  12146. case $host_os in
  12147. nonstopux*) version_type=nonstopux ;;
  12148. *)
  12149. if test "$lt_cv_prog_gnu_ld" = yes; then
  12150. version_type=linux
  12151. else
  12152. version_type=irix
  12153. fi ;;
  12154. esac
  12155. need_lib_prefix=no
  12156. need_version=no
  12157. soname_spec='${libname}${release}${shared_ext}$major'
  12158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12159. case $host_os in
  12160. irix5* | nonstopux*)
  12161. libsuff= shlibsuff=
  12162. ;;
  12163. *)
  12164. case $LD in # libtool.m4 will add one of these switches to LD
  12165. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12166. libsuff= shlibsuff= libmagic=32-bit;;
  12167. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12168. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12169. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12170. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12171. *) libsuff= shlibsuff= libmagic=never-match;;
  12172. esac
  12173. ;;
  12174. esac
  12175. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12176. shlibpath_overrides_runpath=no
  12177. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12178. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12179. hardcode_into_libs=yes
  12180. ;;
  12181. # No shared lib support for Linux oldld, aout, or coff.
  12182. linux*oldld* | linux*aout* | linux*coff*)
  12183. dynamic_linker=no
  12184. ;;
  12185. # This must be Linux ELF.
  12186. linux* | k*bsd*-gnu)
  12187. version_type=linux
  12188. need_lib_prefix=no
  12189. need_version=no
  12190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12191. soname_spec='${libname}${release}${shared_ext}$major'
  12192. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12193. shlibpath_var=LD_LIBRARY_PATH
  12194. shlibpath_overrides_runpath=no
  12195. # This implies no fast_install, which is unacceptable.
  12196. # Some rework will be needed to allow for fast_install
  12197. # before this can be enabled.
  12198. hardcode_into_libs=yes
  12199. # Append ld.so.conf contents to the search path
  12200. if test -f /etc/ld.so.conf; then
  12201. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12202. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12203. fi
  12204. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12205. # powerpc, because MkLinux only supported shared libraries with the
  12206. # GNU dynamic linker. Since this was broken with cross compilers,
  12207. # most powerpc-linux boxes support dynamic linking these days and
  12208. # people can always --disable-shared, the test was removed, and we
  12209. # assume the GNU/Linux dynamic linker is in use.
  12210. dynamic_linker='GNU/Linux ld.so'
  12211. ;;
  12212. netbsd*)
  12213. version_type=sunos
  12214. need_lib_prefix=no
  12215. need_version=no
  12216. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12218. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12219. dynamic_linker='NetBSD (a.out) ld.so'
  12220. else
  12221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12222. soname_spec='${libname}${release}${shared_ext}$major'
  12223. dynamic_linker='NetBSD ld.elf_so'
  12224. fi
  12225. shlibpath_var=LD_LIBRARY_PATH
  12226. shlibpath_overrides_runpath=yes
  12227. hardcode_into_libs=yes
  12228. ;;
  12229. newsos6)
  12230. version_type=linux
  12231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12232. shlibpath_var=LD_LIBRARY_PATH
  12233. shlibpath_overrides_runpath=yes
  12234. ;;
  12235. nto-qnx*)
  12236. version_type=linux
  12237. need_lib_prefix=no
  12238. need_version=no
  12239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12240. soname_spec='${libname}${release}${shared_ext}$major'
  12241. shlibpath_var=LD_LIBRARY_PATH
  12242. shlibpath_overrides_runpath=yes
  12243. ;;
  12244. openbsd*)
  12245. version_type=sunos
  12246. sys_lib_dlsearch_path_spec="/usr/lib"
  12247. need_lib_prefix=no
  12248. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12249. case $host_os in
  12250. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12251. *) need_version=no ;;
  12252. esac
  12253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12254. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12255. shlibpath_var=LD_LIBRARY_PATH
  12256. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12257. case $host_os in
  12258. openbsd2.[89] | openbsd2.[89].*)
  12259. shlibpath_overrides_runpath=no
  12260. ;;
  12261. *)
  12262. shlibpath_overrides_runpath=yes
  12263. ;;
  12264. esac
  12265. else
  12266. shlibpath_overrides_runpath=yes
  12267. fi
  12268. ;;
  12269. os2*)
  12270. libname_spec='$name'
  12271. shrext_cmds=".dll"
  12272. need_lib_prefix=no
  12273. library_names_spec='$libname${shared_ext} $libname.a'
  12274. dynamic_linker='OS/2 ld.exe'
  12275. shlibpath_var=LIBPATH
  12276. ;;
  12277. osf3* | osf4* | osf5*)
  12278. version_type=osf
  12279. need_lib_prefix=no
  12280. need_version=no
  12281. soname_spec='${libname}${release}${shared_ext}$major'
  12282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12283. shlibpath_var=LD_LIBRARY_PATH
  12284. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12285. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12286. ;;
  12287. rdos*)
  12288. dynamic_linker=no
  12289. ;;
  12290. solaris*)
  12291. version_type=linux
  12292. need_lib_prefix=no
  12293. need_version=no
  12294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12295. soname_spec='${libname}${release}${shared_ext}$major'
  12296. shlibpath_var=LD_LIBRARY_PATH
  12297. shlibpath_overrides_runpath=yes
  12298. hardcode_into_libs=yes
  12299. # ldd complains unless libraries are executable
  12300. postinstall_cmds='chmod +x $lib'
  12301. ;;
  12302. sunos4*)
  12303. version_type=sunos
  12304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12305. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12306. shlibpath_var=LD_LIBRARY_PATH
  12307. shlibpath_overrides_runpath=yes
  12308. if test "$with_gnu_ld" = yes; then
  12309. need_lib_prefix=no
  12310. fi
  12311. need_version=yes
  12312. ;;
  12313. sysv4 | sysv4.3*)
  12314. version_type=linux
  12315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12316. soname_spec='${libname}${release}${shared_ext}$major'
  12317. shlibpath_var=LD_LIBRARY_PATH
  12318. case $host_vendor in
  12319. sni)
  12320. shlibpath_overrides_runpath=no
  12321. need_lib_prefix=no
  12322. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12323. runpath_var=LD_RUN_PATH
  12324. ;;
  12325. siemens)
  12326. need_lib_prefix=no
  12327. ;;
  12328. motorola)
  12329. need_lib_prefix=no
  12330. need_version=no
  12331. shlibpath_overrides_runpath=no
  12332. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12333. ;;
  12334. esac
  12335. ;;
  12336. sysv4*MP*)
  12337. if test -d /usr/nec ;then
  12338. version_type=linux
  12339. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12340. soname_spec='$libname${shared_ext}.$major'
  12341. shlibpath_var=LD_LIBRARY_PATH
  12342. fi
  12343. ;;
  12344. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12345. version_type=freebsd-elf
  12346. need_lib_prefix=no
  12347. need_version=no
  12348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12349. soname_spec='${libname}${release}${shared_ext}$major'
  12350. shlibpath_var=LD_LIBRARY_PATH
  12351. hardcode_into_libs=yes
  12352. if test "$with_gnu_ld" = yes; then
  12353. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12354. shlibpath_overrides_runpath=no
  12355. else
  12356. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12357. shlibpath_overrides_runpath=yes
  12358. case $host_os in
  12359. sco3.2v5*)
  12360. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12361. ;;
  12362. esac
  12363. fi
  12364. sys_lib_dlsearch_path_spec='/usr/lib'
  12365. ;;
  12366. uts4*)
  12367. version_type=linux
  12368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. shlibpath_var=LD_LIBRARY_PATH
  12371. ;;
  12372. *)
  12373. dynamic_linker=no
  12374. ;;
  12375. esac
  12376. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12377. echo "${ECHO_T}$dynamic_linker" >&6; }
  12378. test "$dynamic_linker" = no && can_build_shared=no
  12379. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12380. echo $ECHO_N "(cached) $ECHO_C" >&6
  12381. else
  12382. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  12383. fi
  12384. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12385. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12386. echo $ECHO_N "(cached) $ECHO_C" >&6
  12387. else
  12388. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  12389. fi
  12390. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12391. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12392. if test "$GCC" = yes; then
  12393. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12394. fi
  12395. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12396. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12397. hardcode_action_CXX=
  12398. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12399. test -n "$runpath_var_CXX" || \
  12400. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12401. # We can hardcode non-existant directories.
  12402. if test "$hardcode_direct_CXX" != no &&
  12403. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12404. # have to relink, otherwise we might link with an installed library
  12405. # when we should be linking with a yet-to-be-installed one
  12406. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12407. test "$hardcode_minus_L_CXX" != no; then
  12408. # Linking always hardcodes the temporary library directory.
  12409. hardcode_action_CXX=relink
  12410. else
  12411. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12412. hardcode_action_CXX=immediate
  12413. fi
  12414. else
  12415. # We cannot hardcode anything, or else we can only hardcode existing
  12416. # directories.
  12417. hardcode_action_CXX=unsupported
  12418. fi
  12419. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12420. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12421. if test "$hardcode_action_CXX" = relink; then
  12422. # Fast installation is not supported
  12423. enable_fast_install=no
  12424. elif test "$shlibpath_overrides_runpath" = yes ||
  12425. test "$enable_shared" = no; then
  12426. # Fast installation is not necessary
  12427. enable_fast_install=needless
  12428. fi
  12429. # The else clause should only fire when bootstrapping the
  12430. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12431. # with your package, and you will get complaints that there are
  12432. # no rules to generate ltmain.sh.
  12433. if test -f "$ltmain"; then
  12434. # See if we are running on zsh, and set the options which allow our commands through
  12435. # without removal of \ escapes.
  12436. if test -n "${ZSH_VERSION+set}" ; then
  12437. setopt NO_GLOB_SUBST
  12438. fi
  12439. # Now quote all the things that may contain metacharacters while being
  12440. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12441. # variables and quote the copies for generation of the libtool script.
  12442. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12443. SED SHELL STRIP \
  12444. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12445. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12446. deplibs_check_method reload_flag reload_cmds need_locks \
  12447. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12448. lt_cv_sys_global_symbol_to_c_name_address \
  12449. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12450. old_postinstall_cmds old_postuninstall_cmds \
  12451. compiler_CXX \
  12452. CC_CXX \
  12453. LD_CXX \
  12454. lt_prog_compiler_wl_CXX \
  12455. lt_prog_compiler_pic_CXX \
  12456. lt_prog_compiler_static_CXX \
  12457. lt_prog_compiler_no_builtin_flag_CXX \
  12458. export_dynamic_flag_spec_CXX \
  12459. thread_safe_flag_spec_CXX \
  12460. whole_archive_flag_spec_CXX \
  12461. enable_shared_with_static_runtimes_CXX \
  12462. old_archive_cmds_CXX \
  12463. old_archive_from_new_cmds_CXX \
  12464. predep_objects_CXX \
  12465. postdep_objects_CXX \
  12466. predeps_CXX \
  12467. postdeps_CXX \
  12468. compiler_lib_search_path_CXX \
  12469. compiler_lib_search_dirs_CXX \
  12470. archive_cmds_CXX \
  12471. archive_expsym_cmds_CXX \
  12472. postinstall_cmds_CXX \
  12473. postuninstall_cmds_CXX \
  12474. old_archive_from_expsyms_cmds_CXX \
  12475. allow_undefined_flag_CXX \
  12476. no_undefined_flag_CXX \
  12477. export_symbols_cmds_CXX \
  12478. hardcode_libdir_flag_spec_CXX \
  12479. hardcode_libdir_flag_spec_ld_CXX \
  12480. hardcode_libdir_separator_CXX \
  12481. hardcode_automatic_CXX \
  12482. module_cmds_CXX \
  12483. module_expsym_cmds_CXX \
  12484. lt_cv_prog_compiler_c_o_CXX \
  12485. fix_srcfile_path_CXX \
  12486. exclude_expsyms_CXX \
  12487. include_expsyms_CXX; do
  12488. case $var in
  12489. old_archive_cmds_CXX | \
  12490. old_archive_from_new_cmds_CXX | \
  12491. archive_cmds_CXX | \
  12492. archive_expsym_cmds_CXX | \
  12493. module_cmds_CXX | \
  12494. module_expsym_cmds_CXX | \
  12495. old_archive_from_expsyms_cmds_CXX | \
  12496. export_symbols_cmds_CXX | \
  12497. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12498. postinstall_cmds | postuninstall_cmds | \
  12499. old_postinstall_cmds | old_postuninstall_cmds | \
  12500. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12501. # Double-quote double-evaled strings.
  12502. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12503. ;;
  12504. *)
  12505. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12506. ;;
  12507. esac
  12508. done
  12509. case $lt_echo in
  12510. *'\$0 --fallback-echo"')
  12511. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12512. ;;
  12513. esac
  12514. cfgfile="$ofile"
  12515. cat <<__EOF__ >> "$cfgfile"
  12516. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12517. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12518. # Shell to use when invoking shell scripts.
  12519. SHELL=$lt_SHELL
  12520. # Whether or not to build shared libraries.
  12521. build_libtool_libs=$enable_shared
  12522. # Whether or not to build static libraries.
  12523. build_old_libs=$enable_static
  12524. # Whether or not to add -lc for building shared libraries.
  12525. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12526. # Whether or not to disallow shared libs when runtime libs are static
  12527. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12528. # Whether or not to optimize for fast installation.
  12529. fast_install=$enable_fast_install
  12530. # The host system.
  12531. host_alias=$host_alias
  12532. host=$host
  12533. host_os=$host_os
  12534. # The build system.
  12535. build_alias=$build_alias
  12536. build=$build
  12537. build_os=$build_os
  12538. # An echo program that does not interpret backslashes.
  12539. echo=$lt_echo
  12540. # The archiver.
  12541. AR=$lt_AR
  12542. AR_FLAGS=$lt_AR_FLAGS
  12543. # A C compiler.
  12544. LTCC=$lt_LTCC
  12545. # LTCC compiler flags.
  12546. LTCFLAGS=$lt_LTCFLAGS
  12547. # A language-specific compiler.
  12548. CC=$lt_compiler_CXX
  12549. # Is the compiler the GNU C compiler?
  12550. with_gcc=$GCC_CXX
  12551. # An ERE matcher.
  12552. EGREP=$lt_EGREP
  12553. # The linker used to build libraries.
  12554. LD=$lt_LD_CXX
  12555. # Whether we need hard or soft links.
  12556. LN_S=$lt_LN_S
  12557. # A BSD-compatible nm program.
  12558. NM=$lt_NM
  12559. # A symbol stripping program
  12560. STRIP=$lt_STRIP
  12561. # Used to examine libraries when file_magic_cmd begins "file"
  12562. MAGIC_CMD=$MAGIC_CMD
  12563. # Used on cygwin: DLL creation program.
  12564. DLLTOOL="$DLLTOOL"
  12565. # Used on cygwin: object dumper.
  12566. OBJDUMP="$OBJDUMP"
  12567. # Used on cygwin: assembler.
  12568. AS="$AS"
  12569. # The name of the directory that contains temporary libtool files.
  12570. objdir=$objdir
  12571. # How to create reloadable object files.
  12572. reload_flag=$lt_reload_flag
  12573. reload_cmds=$lt_reload_cmds
  12574. # How to pass a linker flag through the compiler.
  12575. wl=$lt_lt_prog_compiler_wl_CXX
  12576. # Object file suffix (normally "o").
  12577. objext="$ac_objext"
  12578. # Old archive suffix (normally "a").
  12579. libext="$libext"
  12580. # Shared library suffix (normally ".so").
  12581. shrext_cmds='$shrext_cmds'
  12582. # Executable file suffix (normally "").
  12583. exeext="$exeext"
  12584. # Additional compiler flags for building library objects.
  12585. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12586. pic_mode=$pic_mode
  12587. # What is the maximum length of a command?
  12588. max_cmd_len=$lt_cv_sys_max_cmd_len
  12589. # Does compiler simultaneously support -c and -o options?
  12590. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12591. # Must we lock files when doing compilation?
  12592. need_locks=$lt_need_locks
  12593. # Do we need the lib prefix for modules?
  12594. need_lib_prefix=$need_lib_prefix
  12595. # Do we need a version for libraries?
  12596. need_version=$need_version
  12597. # Whether dlopen is supported.
  12598. dlopen_support=$enable_dlopen
  12599. # Whether dlopen of programs is supported.
  12600. dlopen_self=$enable_dlopen_self
  12601. # Whether dlopen of statically linked programs is supported.
  12602. dlopen_self_static=$enable_dlopen_self_static
  12603. # Compiler flag to prevent dynamic linking.
  12604. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12605. # Compiler flag to turn off builtin functions.
  12606. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12607. # Compiler flag to allow reflexive dlopens.
  12608. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12609. # Compiler flag to generate shared objects directly from archives.
  12610. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12611. # Compiler flag to generate thread-safe objects.
  12612. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12613. # Library versioning type.
  12614. version_type=$version_type
  12615. # Format of library name prefix.
  12616. libname_spec=$lt_libname_spec
  12617. # List of archive names. First name is the real one, the rest are links.
  12618. # The last name is the one that the linker finds with -lNAME.
  12619. library_names_spec=$lt_library_names_spec
  12620. # The coded name of the library, if different from the real name.
  12621. soname_spec=$lt_soname_spec
  12622. # Commands used to build and install an old-style archive.
  12623. RANLIB=$lt_RANLIB
  12624. old_archive_cmds=$lt_old_archive_cmds_CXX
  12625. old_postinstall_cmds=$lt_old_postinstall_cmds
  12626. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12627. # Create an old-style archive from a shared archive.
  12628. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12629. # Create a temporary old-style archive to link instead of a shared archive.
  12630. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12631. # Commands used to build and install a shared archive.
  12632. archive_cmds=$lt_archive_cmds_CXX
  12633. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12634. postinstall_cmds=$lt_postinstall_cmds
  12635. postuninstall_cmds=$lt_postuninstall_cmds
  12636. # Commands used to build a loadable module (assumed same as above if empty)
  12637. module_cmds=$lt_module_cmds_CXX
  12638. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12639. # Commands to strip libraries.
  12640. old_striplib=$lt_old_striplib
  12641. striplib=$lt_striplib
  12642. # Dependencies to place before the objects being linked to create a
  12643. # shared library.
  12644. predep_objects=$lt_predep_objects_CXX
  12645. # Dependencies to place after the objects being linked to create a
  12646. # shared library.
  12647. postdep_objects=$lt_postdep_objects_CXX
  12648. # Dependencies to place before the objects being linked to create a
  12649. # shared library.
  12650. predeps=$lt_predeps_CXX
  12651. # Dependencies to place after the objects being linked to create a
  12652. # shared library.
  12653. postdeps=$lt_postdeps_CXX
  12654. # The directories searched by this compiler when creating a shared
  12655. # library
  12656. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  12657. # The library search path used internally by the compiler when linking
  12658. # a shared library.
  12659. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12660. # Method to check whether dependent libraries are shared objects.
  12661. deplibs_check_method=$lt_deplibs_check_method
  12662. # Command to use when deplibs_check_method == file_magic.
  12663. file_magic_cmd=$lt_file_magic_cmd
  12664. # Flag that allows shared libraries with undefined symbols to be built.
  12665. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12666. # Flag that forces no undefined symbols.
  12667. no_undefined_flag=$lt_no_undefined_flag_CXX
  12668. # Commands used to finish a libtool library installation in a directory.
  12669. finish_cmds=$lt_finish_cmds
  12670. # Same as above, but a single script fragment to be evaled but not shown.
  12671. finish_eval=$lt_finish_eval
  12672. # Take the output of nm and produce a listing of raw symbols and C names.
  12673. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12674. # Transform the output of nm in a proper C declaration
  12675. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12676. # Transform the output of nm in a C name address pair
  12677. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12678. # This is the shared library runtime path variable.
  12679. runpath_var=$runpath_var
  12680. # This is the shared library path variable.
  12681. shlibpath_var=$shlibpath_var
  12682. # Is shlibpath searched before the hard-coded library search path?
  12683. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12684. # How to hardcode a shared library path into an executable.
  12685. hardcode_action=$hardcode_action_CXX
  12686. # Whether we should hardcode library paths into libraries.
  12687. hardcode_into_libs=$hardcode_into_libs
  12688. # Flag to hardcode \$libdir into a binary during linking.
  12689. # This must work even if \$libdir does not exist.
  12690. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12691. # If ld is used when linking, flag to hardcode \$libdir into
  12692. # a binary during linking. This must work even if \$libdir does
  12693. # not exist.
  12694. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12695. # Whether we need a single -rpath flag with a separated argument.
  12696. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12697. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12698. # resulting binary.
  12699. hardcode_direct=$hardcode_direct_CXX
  12700. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12701. # resulting binary.
  12702. hardcode_minus_L=$hardcode_minus_L_CXX
  12703. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12704. # the resulting binary.
  12705. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12706. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12707. # and all subsequent libraries and executables linked against it.
  12708. hardcode_automatic=$hardcode_automatic_CXX
  12709. # Variables whose values should be saved in libtool wrapper scripts and
  12710. # restored at relink time.
  12711. variables_saved_for_relink="$variables_saved_for_relink"
  12712. # Whether libtool must link a program against all its dependency libraries.
  12713. link_all_deplibs=$link_all_deplibs_CXX
  12714. # Compile-time system search path for libraries
  12715. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12716. # Run-time system search path for libraries
  12717. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12718. # Fix the shell variable \$srcfile for the compiler.
  12719. fix_srcfile_path=$lt_fix_srcfile_path
  12720. # Set to yes if exported symbols are required.
  12721. always_export_symbols=$always_export_symbols_CXX
  12722. # The commands to list exported symbols.
  12723. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12724. # The commands to extract the exported symbol list from a shared archive.
  12725. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12726. # Symbols that should not be listed in the preloaded symbols.
  12727. exclude_expsyms=$lt_exclude_expsyms_CXX
  12728. # Symbols that must always be exported.
  12729. include_expsyms=$lt_include_expsyms_CXX
  12730. # ### END LIBTOOL TAG CONFIG: $tagname
  12731. __EOF__
  12732. else
  12733. # If there is no Makefile yet, we rely on a make rule to execute
  12734. # `config.status --recheck' to rerun these tests and create the
  12735. # libtool script then.
  12736. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12737. if test -f "$ltmain_in"; then
  12738. test -f Makefile && make "$ltmain"
  12739. fi
  12740. fi
  12741. ac_ext=c
  12742. ac_cpp='$CPP $CPPFLAGS'
  12743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12746. CC=$lt_save_CC
  12747. LDCXX=$LD
  12748. LD=$lt_save_LD
  12749. GCC=$lt_save_GCC
  12750. with_gnu_ldcxx=$with_gnu_ld
  12751. with_gnu_ld=$lt_save_with_gnu_ld
  12752. lt_cv_path_LDCXX=$lt_cv_path_LD
  12753. lt_cv_path_LD=$lt_save_path_LD
  12754. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12755. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12756. else
  12757. tagname=""
  12758. fi
  12759. ;;
  12760. F77)
  12761. if test -n "$F77" && test "X$F77" != "Xno"; then
  12762. ac_ext=f
  12763. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12764. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12765. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12766. archive_cmds_need_lc_F77=no
  12767. allow_undefined_flag_F77=
  12768. always_export_symbols_F77=no
  12769. archive_expsym_cmds_F77=
  12770. export_dynamic_flag_spec_F77=
  12771. hardcode_direct_F77=no
  12772. hardcode_libdir_flag_spec_F77=
  12773. hardcode_libdir_flag_spec_ld_F77=
  12774. hardcode_libdir_separator_F77=
  12775. hardcode_minus_L_F77=no
  12776. hardcode_automatic_F77=no
  12777. module_cmds_F77=
  12778. module_expsym_cmds_F77=
  12779. link_all_deplibs_F77=unknown
  12780. old_archive_cmds_F77=$old_archive_cmds
  12781. no_undefined_flag_F77=
  12782. whole_archive_flag_spec_F77=
  12783. enable_shared_with_static_runtimes_F77=no
  12784. # Source file extension for f77 test sources.
  12785. ac_ext=f
  12786. # Object file extension for compiled f77 test sources.
  12787. objext=o
  12788. objext_F77=$objext
  12789. # Code to be used in simple compile tests
  12790. lt_simple_compile_test_code="\
  12791. subroutine t
  12792. return
  12793. end
  12794. "
  12795. # Code to be used in simple link tests
  12796. lt_simple_link_test_code="\
  12797. program t
  12798. end
  12799. "
  12800. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12801. # If no C compiler was specified, use CC.
  12802. LTCC=${LTCC-"$CC"}
  12803. # If no C compiler flags were specified, use CFLAGS.
  12804. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12805. # Allow CC to be a program name with arguments.
  12806. compiler=$CC
  12807. # save warnings/boilerplate of simple test code
  12808. ac_outfile=conftest.$ac_objext
  12809. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12810. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12811. _lt_compiler_boilerplate=`cat conftest.err`
  12812. $rm conftest*
  12813. ac_outfile=conftest.$ac_objext
  12814. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12815. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12816. _lt_linker_boilerplate=`cat conftest.err`
  12817. $rm -r conftest*
  12818. # Allow CC to be a program name with arguments.
  12819. lt_save_CC="$CC"
  12820. CC=${F77-"f77"}
  12821. compiler=$CC
  12822. compiler_F77=$CC
  12823. for cc_temp in $compiler""; do
  12824. case $cc_temp in
  12825. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12826. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12827. \-*) ;;
  12828. *) break;;
  12829. esac
  12830. done
  12831. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12832. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12833. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12834. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12835. echo "${ECHO_T}$can_build_shared" >&6; }
  12836. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12837. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12838. test "$can_build_shared" = "no" && enable_shared=no
  12839. # On AIX, shared libraries and static libraries use the same namespace, and
  12840. # are all built from PIC.
  12841. case $host_os in
  12842. aix3*)
  12843. test "$enable_shared" = yes && enable_static=no
  12844. if test -n "$RANLIB"; then
  12845. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12846. postinstall_cmds='$RANLIB $lib'
  12847. fi
  12848. ;;
  12849. aix[4-9]*)
  12850. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12851. test "$enable_shared" = yes && enable_static=no
  12852. fi
  12853. ;;
  12854. esac
  12855. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12856. echo "${ECHO_T}$enable_shared" >&6; }
  12857. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12858. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12859. # Make sure either enable_shared or enable_static is yes.
  12860. test "$enable_shared" = yes || enable_static=yes
  12861. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12862. echo "${ECHO_T}$enable_static" >&6; }
  12863. GCC_F77="$G77"
  12864. LD_F77="$LD"
  12865. lt_prog_compiler_wl_F77=
  12866. lt_prog_compiler_pic_F77=
  12867. lt_prog_compiler_static_F77=
  12868. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12869. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12870. if test "$GCC" = yes; then
  12871. lt_prog_compiler_wl_F77='-Wl,'
  12872. lt_prog_compiler_static_F77='-static'
  12873. case $host_os in
  12874. aix*)
  12875. # All AIX code is PIC.
  12876. if test "$host_cpu" = ia64; then
  12877. # AIX 5 now supports IA64 processor
  12878. lt_prog_compiler_static_F77='-Bstatic'
  12879. fi
  12880. ;;
  12881. amigaos*)
  12882. # FIXME: we need at least 68020 code to build shared libraries, but
  12883. # adding the `-m68020' flag to GCC prevents building anything better,
  12884. # like `-m68040'.
  12885. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12886. ;;
  12887. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12888. # PIC is the default for these OSes.
  12889. ;;
  12890. mingw* | cygwin* | pw32* | os2*)
  12891. # This hack is so that the source file can tell whether it is being
  12892. # built for inclusion in a dll (and should export symbols for example).
  12893. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12894. # (--disable-auto-import) libraries
  12895. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12896. ;;
  12897. darwin* | rhapsody*)
  12898. # PIC is the default on this platform
  12899. # Common symbols not allowed in MH_DYLIB files
  12900. lt_prog_compiler_pic_F77='-fno-common'
  12901. ;;
  12902. interix[3-9]*)
  12903. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12904. # Instead, we relocate shared libraries at runtime.
  12905. ;;
  12906. msdosdjgpp*)
  12907. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12908. # on systems that don't support them.
  12909. lt_prog_compiler_can_build_shared_F77=no
  12910. enable_shared=no
  12911. ;;
  12912. sysv4*MP*)
  12913. if test -d /usr/nec; then
  12914. lt_prog_compiler_pic_F77=-Kconform_pic
  12915. fi
  12916. ;;
  12917. hpux*)
  12918. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12919. # not for PA HP-UX.
  12920. case $host_cpu in
  12921. hppa*64*|ia64*)
  12922. # +Z the default
  12923. ;;
  12924. *)
  12925. lt_prog_compiler_pic_F77='-fPIC'
  12926. ;;
  12927. esac
  12928. ;;
  12929. *)
  12930. lt_prog_compiler_pic_F77='-fPIC'
  12931. ;;
  12932. esac
  12933. else
  12934. # PORTME Check for flag to pass linker flags through the system compiler.
  12935. case $host_os in
  12936. aix*)
  12937. lt_prog_compiler_wl_F77='-Wl,'
  12938. if test "$host_cpu" = ia64; then
  12939. # AIX 5 now supports IA64 processor
  12940. lt_prog_compiler_static_F77='-Bstatic'
  12941. else
  12942. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12943. fi
  12944. ;;
  12945. darwin*)
  12946. # PIC is the default on this platform
  12947. # Common symbols not allowed in MH_DYLIB files
  12948. case $cc_basename in
  12949. xlc*)
  12950. lt_prog_compiler_pic_F77='-qnocommon'
  12951. lt_prog_compiler_wl_F77='-Wl,'
  12952. ;;
  12953. esac
  12954. ;;
  12955. mingw* | cygwin* | pw32* | os2*)
  12956. # This hack is so that the source file can tell whether it is being
  12957. # built for inclusion in a dll (and should export symbols for example).
  12958. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12959. ;;
  12960. hpux9* | hpux10* | hpux11*)
  12961. lt_prog_compiler_wl_F77='-Wl,'
  12962. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12963. # not for PA HP-UX.
  12964. case $host_cpu in
  12965. hppa*64*|ia64*)
  12966. # +Z the default
  12967. ;;
  12968. *)
  12969. lt_prog_compiler_pic_F77='+Z'
  12970. ;;
  12971. esac
  12972. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12973. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12974. ;;
  12975. irix5* | irix6* | nonstopux*)
  12976. lt_prog_compiler_wl_F77='-Wl,'
  12977. # PIC (with -KPIC) is the default.
  12978. lt_prog_compiler_static_F77='-non_shared'
  12979. ;;
  12980. newsos6)
  12981. lt_prog_compiler_pic_F77='-KPIC'
  12982. lt_prog_compiler_static_F77='-Bstatic'
  12983. ;;
  12984. linux* | k*bsd*-gnu)
  12985. case $cc_basename in
  12986. icc* | ecc*)
  12987. lt_prog_compiler_wl_F77='-Wl,'
  12988. lt_prog_compiler_pic_F77='-KPIC'
  12989. lt_prog_compiler_static_F77='-static'
  12990. ;;
  12991. pgcc* | pgf77* | pgf90* | pgf95*)
  12992. # Portland Group compilers (*not* the Pentium gcc compiler,
  12993. # which looks to be a dead project)
  12994. lt_prog_compiler_wl_F77='-Wl,'
  12995. lt_prog_compiler_pic_F77='-fpic'
  12996. lt_prog_compiler_static_F77='-Bstatic'
  12997. ;;
  12998. ccc*)
  12999. lt_prog_compiler_wl_F77='-Wl,'
  13000. # All Alpha code is PIC.
  13001. lt_prog_compiler_static_F77='-non_shared'
  13002. ;;
  13003. *)
  13004. case `$CC -V 2>&1 | sed 5q` in
  13005. *Sun\ C*)
  13006. # Sun C 5.9
  13007. lt_prog_compiler_pic_F77='-KPIC'
  13008. lt_prog_compiler_static_F77='-Bstatic'
  13009. lt_prog_compiler_wl_F77='-Wl,'
  13010. ;;
  13011. *Sun\ F*)
  13012. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13013. lt_prog_compiler_pic_F77='-KPIC'
  13014. lt_prog_compiler_static_F77='-Bstatic'
  13015. lt_prog_compiler_wl_F77=''
  13016. ;;
  13017. esac
  13018. ;;
  13019. esac
  13020. ;;
  13021. osf3* | osf4* | osf5*)
  13022. lt_prog_compiler_wl_F77='-Wl,'
  13023. # All OSF/1 code is PIC.
  13024. lt_prog_compiler_static_F77='-non_shared'
  13025. ;;
  13026. rdos*)
  13027. lt_prog_compiler_static_F77='-non_shared'
  13028. ;;
  13029. solaris*)
  13030. lt_prog_compiler_pic_F77='-KPIC'
  13031. lt_prog_compiler_static_F77='-Bstatic'
  13032. case $cc_basename in
  13033. f77* | f90* | f95*)
  13034. lt_prog_compiler_wl_F77='-Qoption ld ';;
  13035. *)
  13036. lt_prog_compiler_wl_F77='-Wl,';;
  13037. esac
  13038. ;;
  13039. sunos4*)
  13040. lt_prog_compiler_wl_F77='-Qoption ld '
  13041. lt_prog_compiler_pic_F77='-PIC'
  13042. lt_prog_compiler_static_F77='-Bstatic'
  13043. ;;
  13044. sysv4 | sysv4.2uw2* | sysv4.3*)
  13045. lt_prog_compiler_wl_F77='-Wl,'
  13046. lt_prog_compiler_pic_F77='-KPIC'
  13047. lt_prog_compiler_static_F77='-Bstatic'
  13048. ;;
  13049. sysv4*MP*)
  13050. if test -d /usr/nec ;then
  13051. lt_prog_compiler_pic_F77='-Kconform_pic'
  13052. lt_prog_compiler_static_F77='-Bstatic'
  13053. fi
  13054. ;;
  13055. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13056. lt_prog_compiler_wl_F77='-Wl,'
  13057. lt_prog_compiler_pic_F77='-KPIC'
  13058. lt_prog_compiler_static_F77='-Bstatic'
  13059. ;;
  13060. unicos*)
  13061. lt_prog_compiler_wl_F77='-Wl,'
  13062. lt_prog_compiler_can_build_shared_F77=no
  13063. ;;
  13064. uts4*)
  13065. lt_prog_compiler_pic_F77='-pic'
  13066. lt_prog_compiler_static_F77='-Bstatic'
  13067. ;;
  13068. *)
  13069. lt_prog_compiler_can_build_shared_F77=no
  13070. ;;
  13071. esac
  13072. fi
  13073. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13074. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  13075. #
  13076. # Check to make sure the PIC flag actually works.
  13077. #
  13078. if test -n "$lt_prog_compiler_pic_F77"; then
  13079. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13080. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  13081. if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  13082. echo $ECHO_N "(cached) $ECHO_C" >&6
  13083. else
  13084. lt_cv_prog_compiler_pic_works_F77=no
  13085. ac_outfile=conftest.$ac_objext
  13086. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13087. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13088. # Insert the option either (1) after the last *FLAGS variable, or
  13089. # (2) before a word containing "conftest.", or (3) at the end.
  13090. # Note that $ac_compile itself does not contain backslashes and begins
  13091. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13092. # The option is referenced via a variable to avoid confusing sed.
  13093. lt_compile=`echo "$ac_compile" | $SED \
  13094. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13095. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13096. -e 's:$: $lt_compiler_flag:'`
  13097. (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
  13098. (eval "$lt_compile" 2>conftest.err)
  13099. ac_status=$?
  13100. cat conftest.err >&5
  13101. echo "$as_me:14646: \$? = $ac_status" >&5
  13102. if (exit $ac_status) && test -s "$ac_outfile"; then
  13103. # The compiler can only warn and ignore the option if not recognized
  13104. # So say no if there are warnings other than the usual output.
  13105. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13106. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13107. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13108. lt_cv_prog_compiler_pic_works_F77=yes
  13109. fi
  13110. fi
  13111. $rm conftest*
  13112. fi
  13113. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  13114. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  13115. if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  13116. case $lt_prog_compiler_pic_F77 in
  13117. "" | " "*) ;;
  13118. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13119. esac
  13120. else
  13121. lt_prog_compiler_pic_F77=
  13122. lt_prog_compiler_can_build_shared_F77=no
  13123. fi
  13124. fi
  13125. case $host_os in
  13126. # For platforms which do not support PIC, -DPIC is meaningless:
  13127. *djgpp*)
  13128. lt_prog_compiler_pic_F77=
  13129. ;;
  13130. *)
  13131. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13132. ;;
  13133. esac
  13134. #
  13135. # Check to make sure the static flag actually works.
  13136. #
  13137. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  13138. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13139. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  13140. if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  13141. echo $ECHO_N "(cached) $ECHO_C" >&6
  13142. else
  13143. lt_cv_prog_compiler_static_works_F77=no
  13144. save_LDFLAGS="$LDFLAGS"
  13145. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13146. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13147. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13148. # The linker can only warn and ignore the option if not recognized
  13149. # So say no if there are warnings
  13150. if test -s conftest.err; then
  13151. # Append any errors to the config.log.
  13152. cat conftest.err 1>&5
  13153. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13154. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13155. if diff conftest.exp conftest.er2 >/dev/null; then
  13156. lt_cv_prog_compiler_static_works_F77=yes
  13157. fi
  13158. else
  13159. lt_cv_prog_compiler_static_works_F77=yes
  13160. fi
  13161. fi
  13162. $rm -r conftest*
  13163. LDFLAGS="$save_LDFLAGS"
  13164. fi
  13165. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  13166. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  13167. if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  13168. :
  13169. else
  13170. lt_prog_compiler_static_F77=
  13171. fi
  13172. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13173. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13174. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13175. echo $ECHO_N "(cached) $ECHO_C" >&6
  13176. else
  13177. lt_cv_prog_compiler_c_o_F77=no
  13178. $rm -r conftest 2>/dev/null
  13179. mkdir conftest
  13180. cd conftest
  13181. mkdir out
  13182. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13183. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13184. # Insert the option either (1) after the last *FLAGS variable, or
  13185. # (2) before a word containing "conftest.", or (3) at the end.
  13186. # Note that $ac_compile itself does not contain backslashes and begins
  13187. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13188. lt_compile=`echo "$ac_compile" | $SED \
  13189. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13190. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13191. -e 's:$: $lt_compiler_flag:'`
  13192. (eval echo "\"\$as_me:14746: $lt_compile\"" >&5)
  13193. (eval "$lt_compile" 2>out/conftest.err)
  13194. ac_status=$?
  13195. cat out/conftest.err >&5
  13196. echo "$as_me:14750: \$? = $ac_status" >&5
  13197. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13198. then
  13199. # The compiler can only warn and ignore the option if not recognized
  13200. # So say no if there are warnings
  13201. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13202. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13203. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13204. lt_cv_prog_compiler_c_o_F77=yes
  13205. fi
  13206. fi
  13207. chmod u+w . 2>&5
  13208. $rm conftest*
  13209. # SGI C++ compiler will create directory out/ii_files/ for
  13210. # template instantiation
  13211. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13212. $rm out/* && rmdir out
  13213. cd ..
  13214. rmdir conftest
  13215. $rm conftest*
  13216. fi
  13217. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13218. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13219. hard_links="nottested"
  13220. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13221. # do not overwrite the value of need_locks provided by the user
  13222. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13223. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13224. hard_links=yes
  13225. $rm conftest*
  13226. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13227. touch conftest.a
  13228. ln conftest.a conftest.b 2>&5 || hard_links=no
  13229. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13230. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13231. echo "${ECHO_T}$hard_links" >&6; }
  13232. if test "$hard_links" = no; then
  13233. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13234. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13235. need_locks=warn
  13236. fi
  13237. else
  13238. need_locks=no
  13239. fi
  13240. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13241. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13242. runpath_var=
  13243. allow_undefined_flag_F77=
  13244. enable_shared_with_static_runtimes_F77=no
  13245. archive_cmds_F77=
  13246. archive_expsym_cmds_F77=
  13247. old_archive_From_new_cmds_F77=
  13248. old_archive_from_expsyms_cmds_F77=
  13249. export_dynamic_flag_spec_F77=
  13250. whole_archive_flag_spec_F77=
  13251. thread_safe_flag_spec_F77=
  13252. hardcode_libdir_flag_spec_F77=
  13253. hardcode_libdir_flag_spec_ld_F77=
  13254. hardcode_libdir_separator_F77=
  13255. hardcode_direct_F77=no
  13256. hardcode_minus_L_F77=no
  13257. hardcode_shlibpath_var_F77=unsupported
  13258. link_all_deplibs_F77=unknown
  13259. hardcode_automatic_F77=no
  13260. module_cmds_F77=
  13261. module_expsym_cmds_F77=
  13262. always_export_symbols_F77=no
  13263. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13264. # include_expsyms should be a list of space-separated symbols to be *always*
  13265. # included in the symbol list
  13266. include_expsyms_F77=
  13267. # exclude_expsyms can be an extended regexp of symbols to exclude
  13268. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13269. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13270. # as well as any symbol that contains `d'.
  13271. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13272. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13273. # platforms (ab)use it in PIC code, but their linkers get confused if
  13274. # the symbol is explicitly referenced. Since portable code cannot
  13275. # rely on this symbol name, it's probably fine to never include it in
  13276. # preloaded symbol tables.
  13277. # Exclude shared library initialization/finalization symbols.
  13278. extract_expsyms_cmds=
  13279. # Just being paranoid about ensuring that cc_basename is set.
  13280. for cc_temp in $compiler""; do
  13281. case $cc_temp in
  13282. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13283. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13284. \-*) ;;
  13285. *) break;;
  13286. esac
  13287. done
  13288. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13289. case $host_os in
  13290. cygwin* | mingw* | pw32*)
  13291. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13292. # When not using gcc, we currently assume that we are using
  13293. # Microsoft Visual C++.
  13294. if test "$GCC" != yes; then
  13295. with_gnu_ld=no
  13296. fi
  13297. ;;
  13298. interix*)
  13299. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13300. with_gnu_ld=yes
  13301. ;;
  13302. openbsd*)
  13303. with_gnu_ld=no
  13304. ;;
  13305. esac
  13306. ld_shlibs_F77=yes
  13307. if test "$with_gnu_ld" = yes; then
  13308. # If archive_cmds runs LD, not CC, wlarc should be empty
  13309. wlarc='${wl}'
  13310. # Set some defaults for GNU ld with shared library support. These
  13311. # are reset later if shared libraries are not supported. Putting them
  13312. # here allows them to be overridden if necessary.
  13313. runpath_var=LD_RUN_PATH
  13314. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13315. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13316. # ancient GNU ld didn't support --whole-archive et. al.
  13317. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13318. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13319. else
  13320. whole_archive_flag_spec_F77=
  13321. fi
  13322. supports_anon_versioning=no
  13323. case `$LD -v 2>/dev/null` in
  13324. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13325. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13326. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13327. *\ 2.11.*) ;; # other 2.11 versions
  13328. *) supports_anon_versioning=yes ;;
  13329. esac
  13330. # See if GNU ld supports shared libraries.
  13331. case $host_os in
  13332. aix[3-9]*)
  13333. # On AIX/PPC, the GNU linker is very broken
  13334. if test "$host_cpu" != ia64; then
  13335. ld_shlibs_F77=no
  13336. cat <<EOF 1>&2
  13337. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13338. *** to be unable to reliably create shared libraries on AIX.
  13339. *** Therefore, libtool is disabling shared libraries support. If you
  13340. *** really care for shared libraries, you may want to modify your PATH
  13341. *** so that a non-GNU linker is found, and then restart.
  13342. EOF
  13343. fi
  13344. ;;
  13345. amigaos*)
  13346. 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)'
  13347. hardcode_libdir_flag_spec_F77='-L$libdir'
  13348. hardcode_minus_L_F77=yes
  13349. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13350. # that the semantics of dynamic libraries on AmigaOS, at least up
  13351. # to version 4, is to share data among multiple programs linked
  13352. # with the same dynamic library. Since this doesn't match the
  13353. # behavior of shared libraries on other platforms, we can't use
  13354. # them.
  13355. ld_shlibs_F77=no
  13356. ;;
  13357. beos*)
  13358. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13359. allow_undefined_flag_F77=unsupported
  13360. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13361. # support --undefined. This deserves some investigation. FIXME
  13362. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13363. else
  13364. ld_shlibs_F77=no
  13365. fi
  13366. ;;
  13367. cygwin* | mingw* | pw32*)
  13368. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13369. # as there is no search path for DLLs.
  13370. hardcode_libdir_flag_spec_F77='-L$libdir'
  13371. allow_undefined_flag_F77=unsupported
  13372. always_export_symbols_F77=no
  13373. enable_shared_with_static_runtimes_F77=yes
  13374. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13375. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13376. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13377. # If the export-symbols file already is a .def file (1st line
  13378. # is EXPORTS), use it as is; otherwise, prepend...
  13379. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13380. cp $export_symbols $output_objdir/$soname.def;
  13381. else
  13382. echo EXPORTS > $output_objdir/$soname.def;
  13383. cat $export_symbols >> $output_objdir/$soname.def;
  13384. fi~
  13385. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13386. else
  13387. ld_shlibs_F77=no
  13388. fi
  13389. ;;
  13390. interix[3-9]*)
  13391. hardcode_direct_F77=no
  13392. hardcode_shlibpath_var_F77=no
  13393. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13394. export_dynamic_flag_spec_F77='${wl}-E'
  13395. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13396. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13397. # default) and relocated if they conflict, which is a slow very memory
  13398. # consuming and fragmenting process. To avoid this, we pick a random,
  13399. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13400. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13401. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13402. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13403. ;;
  13404. gnu* | linux* | k*bsd*-gnu)
  13405. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13406. tmp_addflag=
  13407. case $cc_basename,$host_cpu in
  13408. pgcc*) # Portland Group C compiler
  13409. 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'
  13410. tmp_addflag=' $pic_flag'
  13411. ;;
  13412. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13413. 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'
  13414. tmp_addflag=' $pic_flag -Mnomain' ;;
  13415. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13416. tmp_addflag=' -i_dynamic' ;;
  13417. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13418. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13419. ifc* | ifort*) # Intel Fortran compiler
  13420. tmp_addflag=' -nofor_main' ;;
  13421. esac
  13422. case `$CC -V 2>&1 | sed 5q` in
  13423. *Sun\ C*) # Sun C 5.9
  13424. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13425. tmp_sharedflag='-G' ;;
  13426. *Sun\ F*) # Sun Fortran 8.3
  13427. tmp_sharedflag='-G' ;;
  13428. *)
  13429. tmp_sharedflag='-shared' ;;
  13430. esac
  13431. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13432. if test $supports_anon_versioning = yes; then
  13433. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13434. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13435. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13436. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13437. fi
  13438. else
  13439. ld_shlibs_F77=no
  13440. fi
  13441. ;;
  13442. netbsd*)
  13443. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13444. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13445. wlarc=
  13446. else
  13447. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13448. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13449. fi
  13450. ;;
  13451. solaris*)
  13452. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13453. ld_shlibs_F77=no
  13454. cat <<EOF 1>&2
  13455. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13456. *** create shared libraries on Solaris systems. Therefore, libtool
  13457. *** is disabling shared libraries support. We urge you to upgrade GNU
  13458. *** binutils to release 2.9.1 or newer. Another option is to modify
  13459. *** your PATH or compiler configuration so that the native linker is
  13460. *** used, and then restart.
  13461. EOF
  13462. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13463. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13464. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13465. else
  13466. ld_shlibs_F77=no
  13467. fi
  13468. ;;
  13469. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13470. case `$LD -v 2>&1` in
  13471. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13472. ld_shlibs_F77=no
  13473. cat <<_LT_EOF 1>&2
  13474. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13475. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13476. *** is disabling shared libraries support. We urge you to upgrade GNU
  13477. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13478. *** your PATH or compiler configuration so that the native linker is
  13479. *** used, and then restart.
  13480. _LT_EOF
  13481. ;;
  13482. *)
  13483. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13484. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13485. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13486. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13487. else
  13488. ld_shlibs_F77=no
  13489. fi
  13490. ;;
  13491. esac
  13492. ;;
  13493. sunos4*)
  13494. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13495. wlarc=
  13496. hardcode_direct_F77=yes
  13497. hardcode_shlibpath_var_F77=no
  13498. ;;
  13499. *)
  13500. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13501. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13502. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13503. else
  13504. ld_shlibs_F77=no
  13505. fi
  13506. ;;
  13507. esac
  13508. if test "$ld_shlibs_F77" = no; then
  13509. runpath_var=
  13510. hardcode_libdir_flag_spec_F77=
  13511. export_dynamic_flag_spec_F77=
  13512. whole_archive_flag_spec_F77=
  13513. fi
  13514. else
  13515. # PORTME fill in a description of your system's linker (not GNU ld)
  13516. case $host_os in
  13517. aix3*)
  13518. allow_undefined_flag_F77=unsupported
  13519. always_export_symbols_F77=yes
  13520. 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'
  13521. # Note: this linker hardcodes the directories in LIBPATH if there
  13522. # are no directories specified by -L.
  13523. hardcode_minus_L_F77=yes
  13524. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13525. # Neither direct hardcoding nor static linking is supported with a
  13526. # broken collect2.
  13527. hardcode_direct_F77=unsupported
  13528. fi
  13529. ;;
  13530. aix[4-9]*)
  13531. if test "$host_cpu" = ia64; then
  13532. # On IA64, the linker does run time linking by default, so we don't
  13533. # have to do anything special.
  13534. aix_use_runtimelinking=no
  13535. exp_sym_flag='-Bexport'
  13536. no_entry_flag=""
  13537. else
  13538. # If we're using GNU nm, then we don't want the "-C" option.
  13539. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13540. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13541. 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'
  13542. else
  13543. 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'
  13544. fi
  13545. aix_use_runtimelinking=no
  13546. # Test if we are trying to use run time linking or normal
  13547. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13548. # need to do runtime linking.
  13549. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13550. for ld_flag in $LDFLAGS; do
  13551. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13552. aix_use_runtimelinking=yes
  13553. break
  13554. fi
  13555. done
  13556. ;;
  13557. esac
  13558. exp_sym_flag='-bexport'
  13559. no_entry_flag='-bnoentry'
  13560. fi
  13561. # When large executables or shared objects are built, AIX ld can
  13562. # have problems creating the table of contents. If linking a library
  13563. # or program results in "error TOC overflow" add -mminimal-toc to
  13564. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13565. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13566. archive_cmds_F77=''
  13567. hardcode_direct_F77=yes
  13568. hardcode_libdir_separator_F77=':'
  13569. link_all_deplibs_F77=yes
  13570. if test "$GCC" = yes; then
  13571. case $host_os in aix4.[012]|aix4.[012].*)
  13572. # We only want to do this on AIX 4.2 and lower, the check
  13573. # below for broken collect2 doesn't work under 4.3+
  13574. collect2name=`${CC} -print-prog-name=collect2`
  13575. if test -f "$collect2name" && \
  13576. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13577. then
  13578. # We have reworked collect2
  13579. :
  13580. else
  13581. # We have old collect2
  13582. hardcode_direct_F77=unsupported
  13583. # It fails to find uninstalled libraries when the uninstalled
  13584. # path is not listed in the libpath. Setting hardcode_minus_L
  13585. # to unsupported forces relinking
  13586. hardcode_minus_L_F77=yes
  13587. hardcode_libdir_flag_spec_F77='-L$libdir'
  13588. hardcode_libdir_separator_F77=
  13589. fi
  13590. ;;
  13591. esac
  13592. shared_flag='-shared'
  13593. if test "$aix_use_runtimelinking" = yes; then
  13594. shared_flag="$shared_flag "'${wl}-G'
  13595. fi
  13596. else
  13597. # not using gcc
  13598. if test "$host_cpu" = ia64; then
  13599. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13600. # chokes on -Wl,-G. The following line is correct:
  13601. shared_flag='-G'
  13602. else
  13603. if test "$aix_use_runtimelinking" = yes; then
  13604. shared_flag='${wl}-G'
  13605. else
  13606. shared_flag='${wl}-bM:SRE'
  13607. fi
  13608. fi
  13609. fi
  13610. # It seems that -bexpall does not export symbols beginning with
  13611. # underscore (_), so it is better to generate a list of symbols to export.
  13612. always_export_symbols_F77=yes
  13613. if test "$aix_use_runtimelinking" = yes; then
  13614. # Warning - without using the other runtime loading flags (-brtl),
  13615. # -berok will link without error, but may produce a broken library.
  13616. allow_undefined_flag_F77='-berok'
  13617. # Determine the default libpath from the value encoded in an empty executable.
  13618. cat >conftest.$ac_ext <<_ACEOF
  13619. program main
  13620. end
  13621. _ACEOF
  13622. rm -f conftest.$ac_objext conftest$ac_exeext
  13623. if { (ac_try="$ac_link"
  13624. case "(($ac_try" in
  13625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13626. *) ac_try_echo=$ac_try;;
  13627. esac
  13628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13629. (eval "$ac_link") 2>conftest.er1
  13630. ac_status=$?
  13631. grep -v '^ *+' conftest.er1 >conftest.err
  13632. rm -f conftest.er1
  13633. cat conftest.err >&5
  13634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13635. (exit $ac_status); } && {
  13636. test -z "$ac_f77_werror_flag" ||
  13637. test ! -s conftest.err
  13638. } && test -s conftest$ac_exeext &&
  13639. $as_test_x conftest$ac_exeext; then
  13640. lt_aix_libpath_sed='
  13641. /Import File Strings/,/^$/ {
  13642. /^0/ {
  13643. s/^0 *\(.*\)$/\1/
  13644. p
  13645. }
  13646. }'
  13647. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13648. # Check for a 64-bit object if we didn't find anything.
  13649. if test -z "$aix_libpath"; then
  13650. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13651. fi
  13652. else
  13653. echo "$as_me: failed program was:" >&5
  13654. sed 's/^/| /' conftest.$ac_ext >&5
  13655. fi
  13656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13657. conftest$ac_exeext conftest.$ac_ext
  13658. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13659. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13660. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13661. else
  13662. if test "$host_cpu" = ia64; then
  13663. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13664. allow_undefined_flag_F77="-z nodefs"
  13665. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13666. else
  13667. # Determine the default libpath from the value encoded in an empty executable.
  13668. cat >conftest.$ac_ext <<_ACEOF
  13669. program main
  13670. end
  13671. _ACEOF
  13672. rm -f conftest.$ac_objext conftest$ac_exeext
  13673. if { (ac_try="$ac_link"
  13674. case "(($ac_try" in
  13675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13676. *) ac_try_echo=$ac_try;;
  13677. esac
  13678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13679. (eval "$ac_link") 2>conftest.er1
  13680. ac_status=$?
  13681. grep -v '^ *+' conftest.er1 >conftest.err
  13682. rm -f conftest.er1
  13683. cat conftest.err >&5
  13684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13685. (exit $ac_status); } && {
  13686. test -z "$ac_f77_werror_flag" ||
  13687. test ! -s conftest.err
  13688. } && test -s conftest$ac_exeext &&
  13689. $as_test_x conftest$ac_exeext; then
  13690. lt_aix_libpath_sed='
  13691. /Import File Strings/,/^$/ {
  13692. /^0/ {
  13693. s/^0 *\(.*\)$/\1/
  13694. p
  13695. }
  13696. }'
  13697. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13698. # Check for a 64-bit object if we didn't find anything.
  13699. if test -z "$aix_libpath"; then
  13700. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13701. fi
  13702. else
  13703. echo "$as_me: failed program was:" >&5
  13704. sed 's/^/| /' conftest.$ac_ext >&5
  13705. fi
  13706. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13707. conftest$ac_exeext conftest.$ac_ext
  13708. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13709. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13710. # Warning - without using the other run time loading flags,
  13711. # -berok will link without error, but may produce a broken library.
  13712. no_undefined_flag_F77=' ${wl}-bernotok'
  13713. allow_undefined_flag_F77=' ${wl}-berok'
  13714. # Exported symbols can be pulled into shared objects from archives
  13715. whole_archive_flag_spec_F77='$convenience'
  13716. archive_cmds_need_lc_F77=yes
  13717. # This is similar to how AIX traditionally builds its shared libraries.
  13718. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13719. fi
  13720. fi
  13721. ;;
  13722. amigaos*)
  13723. 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)'
  13724. hardcode_libdir_flag_spec_F77='-L$libdir'
  13725. hardcode_minus_L_F77=yes
  13726. # see comment about different semantics on the GNU ld section
  13727. ld_shlibs_F77=no
  13728. ;;
  13729. bsdi[45]*)
  13730. export_dynamic_flag_spec_F77=-rdynamic
  13731. ;;
  13732. cygwin* | mingw* | pw32*)
  13733. # When not using gcc, we currently assume that we are using
  13734. # Microsoft Visual C++.
  13735. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13736. # no search path for DLLs.
  13737. hardcode_libdir_flag_spec_F77=' '
  13738. allow_undefined_flag_F77=unsupported
  13739. # Tell ltmain to make .lib files, not .a files.
  13740. libext=lib
  13741. # Tell ltmain to make .dll files, not .so files.
  13742. shrext_cmds=".dll"
  13743. # FIXME: Setting linknames here is a bad hack.
  13744. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13745. # The linker will automatically build a .lib file if we build a DLL.
  13746. old_archive_From_new_cmds_F77='true'
  13747. # FIXME: Should let the user specify the lib program.
  13748. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13749. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13750. enable_shared_with_static_runtimes_F77=yes
  13751. ;;
  13752. darwin* | rhapsody*)
  13753. case $host_os in
  13754. rhapsody* | darwin1.[012])
  13755. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13756. ;;
  13757. *) # Darwin 1.3 on
  13758. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13759. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13760. else
  13761. case ${MACOSX_DEPLOYMENT_TARGET} in
  13762. 10.[012])
  13763. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13764. ;;
  13765. 10.*)
  13766. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13767. ;;
  13768. esac
  13769. fi
  13770. ;;
  13771. esac
  13772. archive_cmds_need_lc_F77=no
  13773. hardcode_direct_F77=no
  13774. hardcode_automatic_F77=yes
  13775. hardcode_shlibpath_var_F77=unsupported
  13776. whole_archive_flag_spec_F77=''
  13777. link_all_deplibs_F77=yes
  13778. if test "$GCC" = yes ; then
  13779. output_verbose_link_cmd='echo'
  13780. archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13781. module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13782. archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  13783. module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  13784. else
  13785. case $cc_basename in
  13786. xlc*)
  13787. output_verbose_link_cmd='echo'
  13788. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13789. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13790. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13791. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13792. 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}'
  13793. ;;
  13794. *)
  13795. ld_shlibs_F77=no
  13796. ;;
  13797. esac
  13798. fi
  13799. ;;
  13800. dgux*)
  13801. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13802. hardcode_libdir_flag_spec_F77='-L$libdir'
  13803. hardcode_shlibpath_var_F77=no
  13804. ;;
  13805. freebsd1*)
  13806. ld_shlibs_F77=no
  13807. ;;
  13808. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13809. # support. Future versions do this automatically, but an explicit c++rt0.o
  13810. # does not break anything, and helps significantly (at the cost of a little
  13811. # extra space).
  13812. freebsd2.2*)
  13813. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13814. hardcode_libdir_flag_spec_F77='-R$libdir'
  13815. hardcode_direct_F77=yes
  13816. hardcode_shlibpath_var_F77=no
  13817. ;;
  13818. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13819. freebsd2*)
  13820. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13821. hardcode_direct_F77=yes
  13822. hardcode_minus_L_F77=yes
  13823. hardcode_shlibpath_var_F77=no
  13824. ;;
  13825. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13826. freebsd* | dragonfly*)
  13827. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13828. hardcode_libdir_flag_spec_F77='-R$libdir'
  13829. hardcode_direct_F77=yes
  13830. hardcode_shlibpath_var_F77=no
  13831. ;;
  13832. hpux9*)
  13833. if test "$GCC" = yes; then
  13834. 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'
  13835. else
  13836. 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'
  13837. fi
  13838. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13839. hardcode_libdir_separator_F77=:
  13840. hardcode_direct_F77=yes
  13841. # hardcode_minus_L: Not really in the search PATH,
  13842. # but as the default location of the library.
  13843. hardcode_minus_L_F77=yes
  13844. export_dynamic_flag_spec_F77='${wl}-E'
  13845. ;;
  13846. hpux10*)
  13847. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13848. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13849. else
  13850. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13851. fi
  13852. if test "$with_gnu_ld" = no; then
  13853. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13854. hardcode_libdir_separator_F77=:
  13855. hardcode_direct_F77=yes
  13856. export_dynamic_flag_spec_F77='${wl}-E'
  13857. # hardcode_minus_L: Not really in the search PATH,
  13858. # but as the default location of the library.
  13859. hardcode_minus_L_F77=yes
  13860. fi
  13861. ;;
  13862. hpux11*)
  13863. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13864. case $host_cpu in
  13865. hppa*64*)
  13866. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13867. ;;
  13868. ia64*)
  13869. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13870. ;;
  13871. *)
  13872. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13873. ;;
  13874. esac
  13875. else
  13876. case $host_cpu in
  13877. hppa*64*)
  13878. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13879. ;;
  13880. ia64*)
  13881. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13882. ;;
  13883. *)
  13884. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13885. ;;
  13886. esac
  13887. fi
  13888. if test "$with_gnu_ld" = no; then
  13889. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13890. hardcode_libdir_separator_F77=:
  13891. case $host_cpu in
  13892. hppa*64*|ia64*)
  13893. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13894. hardcode_direct_F77=no
  13895. hardcode_shlibpath_var_F77=no
  13896. ;;
  13897. *)
  13898. hardcode_direct_F77=yes
  13899. export_dynamic_flag_spec_F77='${wl}-E'
  13900. # hardcode_minus_L: Not really in the search PATH,
  13901. # but as the default location of the library.
  13902. hardcode_minus_L_F77=yes
  13903. ;;
  13904. esac
  13905. fi
  13906. ;;
  13907. irix5* | irix6* | nonstopux*)
  13908. if test "$GCC" = yes; then
  13909. 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'
  13910. else
  13911. 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'
  13912. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13913. fi
  13914. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13915. hardcode_libdir_separator_F77=:
  13916. link_all_deplibs_F77=yes
  13917. ;;
  13918. netbsd*)
  13919. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13920. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13921. else
  13922. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13923. fi
  13924. hardcode_libdir_flag_spec_F77='-R$libdir'
  13925. hardcode_direct_F77=yes
  13926. hardcode_shlibpath_var_F77=no
  13927. ;;
  13928. newsos6)
  13929. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13930. hardcode_direct_F77=yes
  13931. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13932. hardcode_libdir_separator_F77=:
  13933. hardcode_shlibpath_var_F77=no
  13934. ;;
  13935. openbsd*)
  13936. if test -f /usr/libexec/ld.so; then
  13937. hardcode_direct_F77=yes
  13938. hardcode_shlibpath_var_F77=no
  13939. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13940. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13941. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13942. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13943. export_dynamic_flag_spec_F77='${wl}-E'
  13944. else
  13945. case $host_os in
  13946. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13947. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13948. hardcode_libdir_flag_spec_F77='-R$libdir'
  13949. ;;
  13950. *)
  13951. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13952. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13953. ;;
  13954. esac
  13955. fi
  13956. else
  13957. ld_shlibs_F77=no
  13958. fi
  13959. ;;
  13960. os2*)
  13961. hardcode_libdir_flag_spec_F77='-L$libdir'
  13962. hardcode_minus_L_F77=yes
  13963. allow_undefined_flag_F77=unsupported
  13964. 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'
  13965. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13966. ;;
  13967. osf3*)
  13968. if test "$GCC" = yes; then
  13969. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13970. 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'
  13971. else
  13972. allow_undefined_flag_F77=' -expect_unresolved \*'
  13973. 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'
  13974. fi
  13975. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13976. hardcode_libdir_separator_F77=:
  13977. ;;
  13978. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13979. if test "$GCC" = yes; then
  13980. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13981. 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'
  13982. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13983. else
  13984. allow_undefined_flag_F77=' -expect_unresolved \*'
  13985. 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'
  13986. 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~
  13987. $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'
  13988. # Both c and cxx compiler support -rpath directly
  13989. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13990. fi
  13991. hardcode_libdir_separator_F77=:
  13992. ;;
  13993. solaris*)
  13994. no_undefined_flag_F77=' -z text'
  13995. if test "$GCC" = yes; then
  13996. wlarc='${wl}'
  13997. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13998. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13999. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14000. else
  14001. wlarc=''
  14002. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14003. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14004. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14005. fi
  14006. hardcode_libdir_flag_spec_F77='-R$libdir'
  14007. hardcode_shlibpath_var_F77=no
  14008. case $host_os in
  14009. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14010. *)
  14011. # The compiler driver will combine and reorder linker options,
  14012. # but understands `-z linker_flag'. GCC discards it without `$wl',
  14013. # but is careful enough not to reorder.
  14014. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14015. if test "$GCC" = yes; then
  14016. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14017. else
  14018. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  14019. fi
  14020. ;;
  14021. esac
  14022. link_all_deplibs_F77=yes
  14023. ;;
  14024. sunos4*)
  14025. if test "x$host_vendor" = xsequent; then
  14026. # Use $CC to link under sequent, because it throws in some extra .o
  14027. # files that make .init and .fini sections work.
  14028. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14029. else
  14030. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14031. fi
  14032. hardcode_libdir_flag_spec_F77='-L$libdir'
  14033. hardcode_direct_F77=yes
  14034. hardcode_minus_L_F77=yes
  14035. hardcode_shlibpath_var_F77=no
  14036. ;;
  14037. sysv4)
  14038. case $host_vendor in
  14039. sni)
  14040. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14041. hardcode_direct_F77=yes # is this really true???
  14042. ;;
  14043. siemens)
  14044. ## LD is ld it makes a PLAMLIB
  14045. ## CC just makes a GrossModule.
  14046. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14047. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14048. hardcode_direct_F77=no
  14049. ;;
  14050. motorola)
  14051. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14052. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14053. ;;
  14054. esac
  14055. runpath_var='LD_RUN_PATH'
  14056. hardcode_shlibpath_var_F77=no
  14057. ;;
  14058. sysv4.3*)
  14059. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14060. hardcode_shlibpath_var_F77=no
  14061. export_dynamic_flag_spec_F77='-Bexport'
  14062. ;;
  14063. sysv4*MP*)
  14064. if test -d /usr/nec; then
  14065. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14066. hardcode_shlibpath_var_F77=no
  14067. runpath_var=LD_RUN_PATH
  14068. hardcode_runpath_var=yes
  14069. ld_shlibs_F77=yes
  14070. fi
  14071. ;;
  14072. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14073. no_undefined_flag_F77='${wl}-z,text'
  14074. archive_cmds_need_lc_F77=no
  14075. hardcode_shlibpath_var_F77=no
  14076. runpath_var='LD_RUN_PATH'
  14077. if test "$GCC" = yes; then
  14078. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14079. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14080. else
  14081. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14082. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14083. fi
  14084. ;;
  14085. sysv5* | sco3.2v5* | sco5v6*)
  14086. # Note: We can NOT use -z defs as we might desire, because we do not
  14087. # link with -lc, and that would cause any symbols used from libc to
  14088. # always be unresolved, which means just about no library would
  14089. # ever link correctly. If we're not using GNU ld we use -z text
  14090. # though, which does catch some bad symbols but isn't as heavy-handed
  14091. # as -z defs.
  14092. no_undefined_flag_F77='${wl}-z,text'
  14093. allow_undefined_flag_F77='${wl}-z,nodefs'
  14094. archive_cmds_need_lc_F77=no
  14095. hardcode_shlibpath_var_F77=no
  14096. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14097. hardcode_libdir_separator_F77=':'
  14098. link_all_deplibs_F77=yes
  14099. export_dynamic_flag_spec_F77='${wl}-Bexport'
  14100. runpath_var='LD_RUN_PATH'
  14101. if test "$GCC" = yes; then
  14102. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14103. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14104. else
  14105. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14106. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14107. fi
  14108. ;;
  14109. uts4*)
  14110. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14111. hardcode_libdir_flag_spec_F77='-L$libdir'
  14112. hardcode_shlibpath_var_F77=no
  14113. ;;
  14114. *)
  14115. ld_shlibs_F77=no
  14116. ;;
  14117. esac
  14118. fi
  14119. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  14120. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  14121. test "$ld_shlibs_F77" = no && can_build_shared=no
  14122. #
  14123. # Do we need to explicitly link libc?
  14124. #
  14125. case "x$archive_cmds_need_lc_F77" in
  14126. x|xyes)
  14127. # Assume -lc should be added
  14128. archive_cmds_need_lc_F77=yes
  14129. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14130. case $archive_cmds_F77 in
  14131. *'~'*)
  14132. # FIXME: we may have to deal with multi-command sequences.
  14133. ;;
  14134. '$CC '*)
  14135. # Test whether the compiler implicitly links with -lc since on some
  14136. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14137. # to ld, don't add -lc before -lgcc.
  14138. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14139. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  14140. $rm conftest*
  14141. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14143. (eval $ac_compile) 2>&5
  14144. ac_status=$?
  14145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14146. (exit $ac_status); } 2>conftest.err; then
  14147. soname=conftest
  14148. lib=conftest
  14149. libobjs=conftest.$ac_objext
  14150. deplibs=
  14151. wl=$lt_prog_compiler_wl_F77
  14152. pic_flag=$lt_prog_compiler_pic_F77
  14153. compiler_flags=-v
  14154. linker_flags=-v
  14155. verstring=
  14156. output_objdir=.
  14157. libname=conftest
  14158. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14159. allow_undefined_flag_F77=
  14160. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14161. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14162. ac_status=$?
  14163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14164. (exit $ac_status); }
  14165. then
  14166. archive_cmds_need_lc_F77=no
  14167. else
  14168. archive_cmds_need_lc_F77=yes
  14169. fi
  14170. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14171. else
  14172. cat conftest.err 1>&5
  14173. fi
  14174. $rm conftest*
  14175. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14176. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14177. ;;
  14178. esac
  14179. fi
  14180. ;;
  14181. esac
  14182. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14183. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14184. library_names_spec=
  14185. libname_spec='lib$name'
  14186. soname_spec=
  14187. shrext_cmds=".so"
  14188. postinstall_cmds=
  14189. postuninstall_cmds=
  14190. finish_cmds=
  14191. finish_eval=
  14192. shlibpath_var=
  14193. shlibpath_overrides_runpath=unknown
  14194. version_type=none
  14195. dynamic_linker="$host_os ld.so"
  14196. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14197. need_lib_prefix=unknown
  14198. hardcode_into_libs=no
  14199. # when you set need_version to no, make sure it does not cause -set_version
  14200. # flags to be left without arguments
  14201. need_version=unknown
  14202. case $host_os in
  14203. aix3*)
  14204. version_type=linux
  14205. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14206. shlibpath_var=LIBPATH
  14207. # AIX 3 has no versioning support, so we append a major version to the name.
  14208. soname_spec='${libname}${release}${shared_ext}$major'
  14209. ;;
  14210. aix[4-9]*)
  14211. version_type=linux
  14212. need_lib_prefix=no
  14213. need_version=no
  14214. hardcode_into_libs=yes
  14215. if test "$host_cpu" = ia64; then
  14216. # AIX 5 supports IA64
  14217. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14218. shlibpath_var=LD_LIBRARY_PATH
  14219. else
  14220. # With GCC up to 2.95.x, collect2 would create an import file
  14221. # for dependence libraries. The import file would start with
  14222. # the line `#! .'. This would cause the generated library to
  14223. # depend on `.', always an invalid library. This was fixed in
  14224. # development snapshots of GCC prior to 3.0.
  14225. case $host_os in
  14226. aix4 | aix4.[01] | aix4.[01].*)
  14227. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14228. echo ' yes '
  14229. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14230. :
  14231. else
  14232. can_build_shared=no
  14233. fi
  14234. ;;
  14235. esac
  14236. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14237. # soname into executable. Probably we can add versioning support to
  14238. # collect2, so additional links can be useful in future.
  14239. if test "$aix_use_runtimelinking" = yes; then
  14240. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14241. # instead of lib<name>.a to let people know that these are not
  14242. # typical AIX shared libraries.
  14243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14244. else
  14245. # We preserve .a as extension for shared libraries through AIX4.2
  14246. # and later when we are not doing run time linking.
  14247. library_names_spec='${libname}${release}.a $libname.a'
  14248. soname_spec='${libname}${release}${shared_ext}$major'
  14249. fi
  14250. shlibpath_var=LIBPATH
  14251. fi
  14252. ;;
  14253. amigaos*)
  14254. library_names_spec='$libname.ixlibrary $libname.a'
  14255. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14256. 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'
  14257. ;;
  14258. beos*)
  14259. library_names_spec='${libname}${shared_ext}'
  14260. dynamic_linker="$host_os ld.so"
  14261. shlibpath_var=LIBRARY_PATH
  14262. ;;
  14263. bsdi[45]*)
  14264. version_type=linux
  14265. need_version=no
  14266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14267. soname_spec='${libname}${release}${shared_ext}$major'
  14268. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14269. shlibpath_var=LD_LIBRARY_PATH
  14270. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14271. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14272. # the default ld.so.conf also contains /usr/contrib/lib and
  14273. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14274. # libtool to hard-code these into programs
  14275. ;;
  14276. cygwin* | mingw* | pw32*)
  14277. version_type=windows
  14278. shrext_cmds=".dll"
  14279. need_version=no
  14280. need_lib_prefix=no
  14281. case $GCC,$host_os in
  14282. yes,cygwin* | yes,mingw* | yes,pw32*)
  14283. library_names_spec='$libname.dll.a'
  14284. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14285. postinstall_cmds='base_file=`basename \${file}`~
  14286. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14287. dldir=$destdir/`dirname \$dlpath`~
  14288. test -d \$dldir || mkdir -p \$dldir~
  14289. $install_prog $dir/$dlname \$dldir/$dlname~
  14290. chmod a+x \$dldir/$dlname'
  14291. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14292. dlpath=$dir/\$dldll~
  14293. $rm \$dlpath'
  14294. shlibpath_overrides_runpath=yes
  14295. case $host_os in
  14296. cygwin*)
  14297. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14298. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14299. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14300. ;;
  14301. mingw*)
  14302. # MinGW DLLs use traditional 'lib' prefix
  14303. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14304. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14305. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14306. # It is most probably a Windows format PATH printed by
  14307. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14308. # path with ; separators, and with drive letters. We can handle the
  14309. # drive letters (cygwin fileutils understands them), so leave them,
  14310. # especially as we might pass files found there to a mingw objdump,
  14311. # which wouldn't understand a cygwinified path. Ahh.
  14312. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14313. else
  14314. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14315. fi
  14316. ;;
  14317. pw32*)
  14318. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14319. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14320. ;;
  14321. esac
  14322. ;;
  14323. *)
  14324. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14325. ;;
  14326. esac
  14327. dynamic_linker='Win32 ld.exe'
  14328. # FIXME: first we should search . and the directory the executable is in
  14329. shlibpath_var=PATH
  14330. ;;
  14331. darwin* | rhapsody*)
  14332. dynamic_linker="$host_os dyld"
  14333. version_type=darwin
  14334. need_lib_prefix=no
  14335. need_version=no
  14336. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14337. soname_spec='${libname}${release}${major}$shared_ext'
  14338. shlibpath_overrides_runpath=yes
  14339. shlibpath_var=DYLD_LIBRARY_PATH
  14340. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14341. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14342. ;;
  14343. dgux*)
  14344. version_type=linux
  14345. need_lib_prefix=no
  14346. need_version=no
  14347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14348. soname_spec='${libname}${release}${shared_ext}$major'
  14349. shlibpath_var=LD_LIBRARY_PATH
  14350. ;;
  14351. freebsd1*)
  14352. dynamic_linker=no
  14353. ;;
  14354. freebsd* | dragonfly*)
  14355. # DragonFly does not have aout. When/if they implement a new
  14356. # versioning mechanism, adjust this.
  14357. if test -x /usr/bin/objformat; then
  14358. objformat=`/usr/bin/objformat`
  14359. else
  14360. case $host_os in
  14361. freebsd[123]*) objformat=aout ;;
  14362. *) objformat=elf ;;
  14363. esac
  14364. fi
  14365. version_type=freebsd-$objformat
  14366. case $version_type in
  14367. freebsd-elf*)
  14368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14369. need_version=no
  14370. need_lib_prefix=no
  14371. ;;
  14372. freebsd-*)
  14373. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14374. need_version=yes
  14375. ;;
  14376. esac
  14377. shlibpath_var=LD_LIBRARY_PATH
  14378. case $host_os in
  14379. freebsd2*)
  14380. shlibpath_overrides_runpath=yes
  14381. ;;
  14382. freebsd3.[01]* | freebsdelf3.[01]*)
  14383. shlibpath_overrides_runpath=yes
  14384. hardcode_into_libs=yes
  14385. ;;
  14386. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14387. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14388. shlibpath_overrides_runpath=no
  14389. hardcode_into_libs=yes
  14390. ;;
  14391. *) # from 4.6 on, and DragonFly
  14392. shlibpath_overrides_runpath=yes
  14393. hardcode_into_libs=yes
  14394. ;;
  14395. esac
  14396. ;;
  14397. gnu*)
  14398. version_type=linux
  14399. need_lib_prefix=no
  14400. need_version=no
  14401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14402. soname_spec='${libname}${release}${shared_ext}$major'
  14403. shlibpath_var=LD_LIBRARY_PATH
  14404. hardcode_into_libs=yes
  14405. ;;
  14406. hpux9* | hpux10* | hpux11*)
  14407. # Give a soname corresponding to the major version so that dld.sl refuses to
  14408. # link against other versions.
  14409. version_type=sunos
  14410. need_lib_prefix=no
  14411. need_version=no
  14412. case $host_cpu in
  14413. ia64*)
  14414. shrext_cmds='.so'
  14415. hardcode_into_libs=yes
  14416. dynamic_linker="$host_os dld.so"
  14417. shlibpath_var=LD_LIBRARY_PATH
  14418. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14420. soname_spec='${libname}${release}${shared_ext}$major'
  14421. if test "X$HPUX_IA64_MODE" = X32; then
  14422. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14423. else
  14424. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14425. fi
  14426. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14427. ;;
  14428. hppa*64*)
  14429. shrext_cmds='.sl'
  14430. hardcode_into_libs=yes
  14431. dynamic_linker="$host_os dld.sl"
  14432. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14433. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14435. soname_spec='${libname}${release}${shared_ext}$major'
  14436. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14437. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14438. ;;
  14439. *)
  14440. shrext_cmds='.sl'
  14441. dynamic_linker="$host_os dld.sl"
  14442. shlibpath_var=SHLIB_PATH
  14443. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14445. soname_spec='${libname}${release}${shared_ext}$major'
  14446. ;;
  14447. esac
  14448. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14449. postinstall_cmds='chmod 555 $lib'
  14450. ;;
  14451. interix[3-9]*)
  14452. version_type=linux
  14453. need_lib_prefix=no
  14454. need_version=no
  14455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14456. soname_spec='${libname}${release}${shared_ext}$major'
  14457. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14458. shlibpath_var=LD_LIBRARY_PATH
  14459. shlibpath_overrides_runpath=no
  14460. hardcode_into_libs=yes
  14461. ;;
  14462. irix5* | irix6* | nonstopux*)
  14463. case $host_os in
  14464. nonstopux*) version_type=nonstopux ;;
  14465. *)
  14466. if test "$lt_cv_prog_gnu_ld" = yes; then
  14467. version_type=linux
  14468. else
  14469. version_type=irix
  14470. fi ;;
  14471. esac
  14472. need_lib_prefix=no
  14473. need_version=no
  14474. soname_spec='${libname}${release}${shared_ext}$major'
  14475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14476. case $host_os in
  14477. irix5* | nonstopux*)
  14478. libsuff= shlibsuff=
  14479. ;;
  14480. *)
  14481. case $LD in # libtool.m4 will add one of these switches to LD
  14482. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14483. libsuff= shlibsuff= libmagic=32-bit;;
  14484. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14485. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14486. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14487. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14488. *) libsuff= shlibsuff= libmagic=never-match;;
  14489. esac
  14490. ;;
  14491. esac
  14492. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14493. shlibpath_overrides_runpath=no
  14494. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14495. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14496. hardcode_into_libs=yes
  14497. ;;
  14498. # No shared lib support for Linux oldld, aout, or coff.
  14499. linux*oldld* | linux*aout* | linux*coff*)
  14500. dynamic_linker=no
  14501. ;;
  14502. # This must be Linux ELF.
  14503. linux* | k*bsd*-gnu)
  14504. version_type=linux
  14505. need_lib_prefix=no
  14506. need_version=no
  14507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14508. soname_spec='${libname}${release}${shared_ext}$major'
  14509. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14510. shlibpath_var=LD_LIBRARY_PATH
  14511. shlibpath_overrides_runpath=no
  14512. # This implies no fast_install, which is unacceptable.
  14513. # Some rework will be needed to allow for fast_install
  14514. # before this can be enabled.
  14515. hardcode_into_libs=yes
  14516. # Append ld.so.conf contents to the search path
  14517. if test -f /etc/ld.so.conf; then
  14518. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14519. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14520. fi
  14521. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14522. # powerpc, because MkLinux only supported shared libraries with the
  14523. # GNU dynamic linker. Since this was broken with cross compilers,
  14524. # most powerpc-linux boxes support dynamic linking these days and
  14525. # people can always --disable-shared, the test was removed, and we
  14526. # assume the GNU/Linux dynamic linker is in use.
  14527. dynamic_linker='GNU/Linux ld.so'
  14528. ;;
  14529. netbsd*)
  14530. version_type=sunos
  14531. need_lib_prefix=no
  14532. need_version=no
  14533. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14535. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14536. dynamic_linker='NetBSD (a.out) ld.so'
  14537. else
  14538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14539. soname_spec='${libname}${release}${shared_ext}$major'
  14540. dynamic_linker='NetBSD ld.elf_so'
  14541. fi
  14542. shlibpath_var=LD_LIBRARY_PATH
  14543. shlibpath_overrides_runpath=yes
  14544. hardcode_into_libs=yes
  14545. ;;
  14546. newsos6)
  14547. version_type=linux
  14548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14549. shlibpath_var=LD_LIBRARY_PATH
  14550. shlibpath_overrides_runpath=yes
  14551. ;;
  14552. nto-qnx*)
  14553. version_type=linux
  14554. need_lib_prefix=no
  14555. need_version=no
  14556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14557. soname_spec='${libname}${release}${shared_ext}$major'
  14558. shlibpath_var=LD_LIBRARY_PATH
  14559. shlibpath_overrides_runpath=yes
  14560. ;;
  14561. openbsd*)
  14562. version_type=sunos
  14563. sys_lib_dlsearch_path_spec="/usr/lib"
  14564. need_lib_prefix=no
  14565. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14566. case $host_os in
  14567. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14568. *) need_version=no ;;
  14569. esac
  14570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14571. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14572. shlibpath_var=LD_LIBRARY_PATH
  14573. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14574. case $host_os in
  14575. openbsd2.[89] | openbsd2.[89].*)
  14576. shlibpath_overrides_runpath=no
  14577. ;;
  14578. *)
  14579. shlibpath_overrides_runpath=yes
  14580. ;;
  14581. esac
  14582. else
  14583. shlibpath_overrides_runpath=yes
  14584. fi
  14585. ;;
  14586. os2*)
  14587. libname_spec='$name'
  14588. shrext_cmds=".dll"
  14589. need_lib_prefix=no
  14590. library_names_spec='$libname${shared_ext} $libname.a'
  14591. dynamic_linker='OS/2 ld.exe'
  14592. shlibpath_var=LIBPATH
  14593. ;;
  14594. osf3* | osf4* | osf5*)
  14595. version_type=osf
  14596. need_lib_prefix=no
  14597. need_version=no
  14598. soname_spec='${libname}${release}${shared_ext}$major'
  14599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14600. shlibpath_var=LD_LIBRARY_PATH
  14601. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14602. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14603. ;;
  14604. rdos*)
  14605. dynamic_linker=no
  14606. ;;
  14607. solaris*)
  14608. version_type=linux
  14609. need_lib_prefix=no
  14610. need_version=no
  14611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14612. soname_spec='${libname}${release}${shared_ext}$major'
  14613. shlibpath_var=LD_LIBRARY_PATH
  14614. shlibpath_overrides_runpath=yes
  14615. hardcode_into_libs=yes
  14616. # ldd complains unless libraries are executable
  14617. postinstall_cmds='chmod +x $lib'
  14618. ;;
  14619. sunos4*)
  14620. version_type=sunos
  14621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14622. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14623. shlibpath_var=LD_LIBRARY_PATH
  14624. shlibpath_overrides_runpath=yes
  14625. if test "$with_gnu_ld" = yes; then
  14626. need_lib_prefix=no
  14627. fi
  14628. need_version=yes
  14629. ;;
  14630. sysv4 | sysv4.3*)
  14631. version_type=linux
  14632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14633. soname_spec='${libname}${release}${shared_ext}$major'
  14634. shlibpath_var=LD_LIBRARY_PATH
  14635. case $host_vendor in
  14636. sni)
  14637. shlibpath_overrides_runpath=no
  14638. need_lib_prefix=no
  14639. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14640. runpath_var=LD_RUN_PATH
  14641. ;;
  14642. siemens)
  14643. need_lib_prefix=no
  14644. ;;
  14645. motorola)
  14646. need_lib_prefix=no
  14647. need_version=no
  14648. shlibpath_overrides_runpath=no
  14649. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14650. ;;
  14651. esac
  14652. ;;
  14653. sysv4*MP*)
  14654. if test -d /usr/nec ;then
  14655. version_type=linux
  14656. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14657. soname_spec='$libname${shared_ext}.$major'
  14658. shlibpath_var=LD_LIBRARY_PATH
  14659. fi
  14660. ;;
  14661. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14662. version_type=freebsd-elf
  14663. need_lib_prefix=no
  14664. need_version=no
  14665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14666. soname_spec='${libname}${release}${shared_ext}$major'
  14667. shlibpath_var=LD_LIBRARY_PATH
  14668. hardcode_into_libs=yes
  14669. if test "$with_gnu_ld" = yes; then
  14670. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14671. shlibpath_overrides_runpath=no
  14672. else
  14673. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14674. shlibpath_overrides_runpath=yes
  14675. case $host_os in
  14676. sco3.2v5*)
  14677. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14678. ;;
  14679. esac
  14680. fi
  14681. sys_lib_dlsearch_path_spec='/usr/lib'
  14682. ;;
  14683. uts4*)
  14684. version_type=linux
  14685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14686. soname_spec='${libname}${release}${shared_ext}$major'
  14687. shlibpath_var=LD_LIBRARY_PATH
  14688. ;;
  14689. *)
  14690. dynamic_linker=no
  14691. ;;
  14692. esac
  14693. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14694. echo "${ECHO_T}$dynamic_linker" >&6; }
  14695. test "$dynamic_linker" = no && can_build_shared=no
  14696. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14697. echo $ECHO_N "(cached) $ECHO_C" >&6
  14698. else
  14699. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  14700. fi
  14701. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14702. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14703. echo $ECHO_N "(cached) $ECHO_C" >&6
  14704. else
  14705. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  14706. fi
  14707. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14708. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14709. if test "$GCC" = yes; then
  14710. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14711. fi
  14712. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14713. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14714. hardcode_action_F77=
  14715. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14716. test -n "$runpath_var_F77" || \
  14717. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14718. # We can hardcode non-existant directories.
  14719. if test "$hardcode_direct_F77" != no &&
  14720. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14721. # have to relink, otherwise we might link with an installed library
  14722. # when we should be linking with a yet-to-be-installed one
  14723. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14724. test "$hardcode_minus_L_F77" != no; then
  14725. # Linking always hardcodes the temporary library directory.
  14726. hardcode_action_F77=relink
  14727. else
  14728. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14729. hardcode_action_F77=immediate
  14730. fi
  14731. else
  14732. # We cannot hardcode anything, or else we can only hardcode existing
  14733. # directories.
  14734. hardcode_action_F77=unsupported
  14735. fi
  14736. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14737. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14738. if test "$hardcode_action_F77" = relink; then
  14739. # Fast installation is not supported
  14740. enable_fast_install=no
  14741. elif test "$shlibpath_overrides_runpath" = yes ||
  14742. test "$enable_shared" = no; then
  14743. # Fast installation is not necessary
  14744. enable_fast_install=needless
  14745. fi
  14746. # The else clause should only fire when bootstrapping the
  14747. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14748. # with your package, and you will get complaints that there are
  14749. # no rules to generate ltmain.sh.
  14750. if test -f "$ltmain"; then
  14751. # See if we are running on zsh, and set the options which allow our commands through
  14752. # without removal of \ escapes.
  14753. if test -n "${ZSH_VERSION+set}" ; then
  14754. setopt NO_GLOB_SUBST
  14755. fi
  14756. # Now quote all the things that may contain metacharacters while being
  14757. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14758. # variables and quote the copies for generation of the libtool script.
  14759. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14760. SED SHELL STRIP \
  14761. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14762. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14763. deplibs_check_method reload_flag reload_cmds need_locks \
  14764. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14765. lt_cv_sys_global_symbol_to_c_name_address \
  14766. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14767. old_postinstall_cmds old_postuninstall_cmds \
  14768. compiler_F77 \
  14769. CC_F77 \
  14770. LD_F77 \
  14771. lt_prog_compiler_wl_F77 \
  14772. lt_prog_compiler_pic_F77 \
  14773. lt_prog_compiler_static_F77 \
  14774. lt_prog_compiler_no_builtin_flag_F77 \
  14775. export_dynamic_flag_spec_F77 \
  14776. thread_safe_flag_spec_F77 \
  14777. whole_archive_flag_spec_F77 \
  14778. enable_shared_with_static_runtimes_F77 \
  14779. old_archive_cmds_F77 \
  14780. old_archive_from_new_cmds_F77 \
  14781. predep_objects_F77 \
  14782. postdep_objects_F77 \
  14783. predeps_F77 \
  14784. postdeps_F77 \
  14785. compiler_lib_search_path_F77 \
  14786. compiler_lib_search_dirs_F77 \
  14787. archive_cmds_F77 \
  14788. archive_expsym_cmds_F77 \
  14789. postinstall_cmds_F77 \
  14790. postuninstall_cmds_F77 \
  14791. old_archive_from_expsyms_cmds_F77 \
  14792. allow_undefined_flag_F77 \
  14793. no_undefined_flag_F77 \
  14794. export_symbols_cmds_F77 \
  14795. hardcode_libdir_flag_spec_F77 \
  14796. hardcode_libdir_flag_spec_ld_F77 \
  14797. hardcode_libdir_separator_F77 \
  14798. hardcode_automatic_F77 \
  14799. module_cmds_F77 \
  14800. module_expsym_cmds_F77 \
  14801. lt_cv_prog_compiler_c_o_F77 \
  14802. fix_srcfile_path_F77 \
  14803. exclude_expsyms_F77 \
  14804. include_expsyms_F77; do
  14805. case $var in
  14806. old_archive_cmds_F77 | \
  14807. old_archive_from_new_cmds_F77 | \
  14808. archive_cmds_F77 | \
  14809. archive_expsym_cmds_F77 | \
  14810. module_cmds_F77 | \
  14811. module_expsym_cmds_F77 | \
  14812. old_archive_from_expsyms_cmds_F77 | \
  14813. export_symbols_cmds_F77 | \
  14814. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14815. postinstall_cmds | postuninstall_cmds | \
  14816. old_postinstall_cmds | old_postuninstall_cmds | \
  14817. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14818. # Double-quote double-evaled strings.
  14819. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14820. ;;
  14821. *)
  14822. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14823. ;;
  14824. esac
  14825. done
  14826. case $lt_echo in
  14827. *'\$0 --fallback-echo"')
  14828. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14829. ;;
  14830. esac
  14831. cfgfile="$ofile"
  14832. cat <<__EOF__ >> "$cfgfile"
  14833. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14834. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14835. # Shell to use when invoking shell scripts.
  14836. SHELL=$lt_SHELL
  14837. # Whether or not to build shared libraries.
  14838. build_libtool_libs=$enable_shared
  14839. # Whether or not to build static libraries.
  14840. build_old_libs=$enable_static
  14841. # Whether or not to add -lc for building shared libraries.
  14842. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14843. # Whether or not to disallow shared libs when runtime libs are static
  14844. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14845. # Whether or not to optimize for fast installation.
  14846. fast_install=$enable_fast_install
  14847. # The host system.
  14848. host_alias=$host_alias
  14849. host=$host
  14850. host_os=$host_os
  14851. # The build system.
  14852. build_alias=$build_alias
  14853. build=$build
  14854. build_os=$build_os
  14855. # An echo program that does not interpret backslashes.
  14856. echo=$lt_echo
  14857. # The archiver.
  14858. AR=$lt_AR
  14859. AR_FLAGS=$lt_AR_FLAGS
  14860. # A C compiler.
  14861. LTCC=$lt_LTCC
  14862. # LTCC compiler flags.
  14863. LTCFLAGS=$lt_LTCFLAGS
  14864. # A language-specific compiler.
  14865. CC=$lt_compiler_F77
  14866. # Is the compiler the GNU C compiler?
  14867. with_gcc=$GCC_F77
  14868. # An ERE matcher.
  14869. EGREP=$lt_EGREP
  14870. # The linker used to build libraries.
  14871. LD=$lt_LD_F77
  14872. # Whether we need hard or soft links.
  14873. LN_S=$lt_LN_S
  14874. # A BSD-compatible nm program.
  14875. NM=$lt_NM
  14876. # A symbol stripping program
  14877. STRIP=$lt_STRIP
  14878. # Used to examine libraries when file_magic_cmd begins "file"
  14879. MAGIC_CMD=$MAGIC_CMD
  14880. # Used on cygwin: DLL creation program.
  14881. DLLTOOL="$DLLTOOL"
  14882. # Used on cygwin: object dumper.
  14883. OBJDUMP="$OBJDUMP"
  14884. # Used on cygwin: assembler.
  14885. AS="$AS"
  14886. # The name of the directory that contains temporary libtool files.
  14887. objdir=$objdir
  14888. # How to create reloadable object files.
  14889. reload_flag=$lt_reload_flag
  14890. reload_cmds=$lt_reload_cmds
  14891. # How to pass a linker flag through the compiler.
  14892. wl=$lt_lt_prog_compiler_wl_F77
  14893. # Object file suffix (normally "o").
  14894. objext="$ac_objext"
  14895. # Old archive suffix (normally "a").
  14896. libext="$libext"
  14897. # Shared library suffix (normally ".so").
  14898. shrext_cmds='$shrext_cmds'
  14899. # Executable file suffix (normally "").
  14900. exeext="$exeext"
  14901. # Additional compiler flags for building library objects.
  14902. pic_flag=$lt_lt_prog_compiler_pic_F77
  14903. pic_mode=$pic_mode
  14904. # What is the maximum length of a command?
  14905. max_cmd_len=$lt_cv_sys_max_cmd_len
  14906. # Does compiler simultaneously support -c and -o options?
  14907. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14908. # Must we lock files when doing compilation?
  14909. need_locks=$lt_need_locks
  14910. # Do we need the lib prefix for modules?
  14911. need_lib_prefix=$need_lib_prefix
  14912. # Do we need a version for libraries?
  14913. need_version=$need_version
  14914. # Whether dlopen is supported.
  14915. dlopen_support=$enable_dlopen
  14916. # Whether dlopen of programs is supported.
  14917. dlopen_self=$enable_dlopen_self
  14918. # Whether dlopen of statically linked programs is supported.
  14919. dlopen_self_static=$enable_dlopen_self_static
  14920. # Compiler flag to prevent dynamic linking.
  14921. link_static_flag=$lt_lt_prog_compiler_static_F77
  14922. # Compiler flag to turn off builtin functions.
  14923. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14924. # Compiler flag to allow reflexive dlopens.
  14925. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14926. # Compiler flag to generate shared objects directly from archives.
  14927. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14928. # Compiler flag to generate thread-safe objects.
  14929. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14930. # Library versioning type.
  14931. version_type=$version_type
  14932. # Format of library name prefix.
  14933. libname_spec=$lt_libname_spec
  14934. # List of archive names. First name is the real one, the rest are links.
  14935. # The last name is the one that the linker finds with -lNAME.
  14936. library_names_spec=$lt_library_names_spec
  14937. # The coded name of the library, if different from the real name.
  14938. soname_spec=$lt_soname_spec
  14939. # Commands used to build and install an old-style archive.
  14940. RANLIB=$lt_RANLIB
  14941. old_archive_cmds=$lt_old_archive_cmds_F77
  14942. old_postinstall_cmds=$lt_old_postinstall_cmds
  14943. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14944. # Create an old-style archive from a shared archive.
  14945. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14946. # Create a temporary old-style archive to link instead of a shared archive.
  14947. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14948. # Commands used to build and install a shared archive.
  14949. archive_cmds=$lt_archive_cmds_F77
  14950. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14951. postinstall_cmds=$lt_postinstall_cmds
  14952. postuninstall_cmds=$lt_postuninstall_cmds
  14953. # Commands used to build a loadable module (assumed same as above if empty)
  14954. module_cmds=$lt_module_cmds_F77
  14955. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14956. # Commands to strip libraries.
  14957. old_striplib=$lt_old_striplib
  14958. striplib=$lt_striplib
  14959. # Dependencies to place before the objects being linked to create a
  14960. # shared library.
  14961. predep_objects=$lt_predep_objects_F77
  14962. # Dependencies to place after the objects being linked to create a
  14963. # shared library.
  14964. postdep_objects=$lt_postdep_objects_F77
  14965. # Dependencies to place before the objects being linked to create a
  14966. # shared library.
  14967. predeps=$lt_predeps_F77
  14968. # Dependencies to place after the objects being linked to create a
  14969. # shared library.
  14970. postdeps=$lt_postdeps_F77
  14971. # The directories searched by this compiler when creating a shared
  14972. # library
  14973. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  14974. # The library search path used internally by the compiler when linking
  14975. # a shared library.
  14976. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14977. # Method to check whether dependent libraries are shared objects.
  14978. deplibs_check_method=$lt_deplibs_check_method
  14979. # Command to use when deplibs_check_method == file_magic.
  14980. file_magic_cmd=$lt_file_magic_cmd
  14981. # Flag that allows shared libraries with undefined symbols to be built.
  14982. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14983. # Flag that forces no undefined symbols.
  14984. no_undefined_flag=$lt_no_undefined_flag_F77
  14985. # Commands used to finish a libtool library installation in a directory.
  14986. finish_cmds=$lt_finish_cmds
  14987. # Same as above, but a single script fragment to be evaled but not shown.
  14988. finish_eval=$lt_finish_eval
  14989. # Take the output of nm and produce a listing of raw symbols and C names.
  14990. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14991. # Transform the output of nm in a proper C declaration
  14992. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14993. # Transform the output of nm in a C name address pair
  14994. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14995. # This is the shared library runtime path variable.
  14996. runpath_var=$runpath_var
  14997. # This is the shared library path variable.
  14998. shlibpath_var=$shlibpath_var
  14999. # Is shlibpath searched before the hard-coded library search path?
  15000. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15001. # How to hardcode a shared library path into an executable.
  15002. hardcode_action=$hardcode_action_F77
  15003. # Whether we should hardcode library paths into libraries.
  15004. hardcode_into_libs=$hardcode_into_libs
  15005. # Flag to hardcode \$libdir into a binary during linking.
  15006. # This must work even if \$libdir does not exist.
  15007. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15008. # If ld is used when linking, flag to hardcode \$libdir into
  15009. # a binary during linking. This must work even if \$libdir does
  15010. # not exist.
  15011. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15012. # Whether we need a single -rpath flag with a separated argument.
  15013. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15014. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15015. # resulting binary.
  15016. hardcode_direct=$hardcode_direct_F77
  15017. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15018. # resulting binary.
  15019. hardcode_minus_L=$hardcode_minus_L_F77
  15020. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15021. # the resulting binary.
  15022. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15023. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15024. # and all subsequent libraries and executables linked against it.
  15025. hardcode_automatic=$hardcode_automatic_F77
  15026. # Variables whose values should be saved in libtool wrapper scripts and
  15027. # restored at relink time.
  15028. variables_saved_for_relink="$variables_saved_for_relink"
  15029. # Whether libtool must link a program against all its dependency libraries.
  15030. link_all_deplibs=$link_all_deplibs_F77
  15031. # Compile-time system search path for libraries
  15032. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15033. # Run-time system search path for libraries
  15034. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15035. # Fix the shell variable \$srcfile for the compiler.
  15036. fix_srcfile_path=$lt_fix_srcfile_path
  15037. # Set to yes if exported symbols are required.
  15038. always_export_symbols=$always_export_symbols_F77
  15039. # The commands to list exported symbols.
  15040. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15041. # The commands to extract the exported symbol list from a shared archive.
  15042. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15043. # Symbols that should not be listed in the preloaded symbols.
  15044. exclude_expsyms=$lt_exclude_expsyms_F77
  15045. # Symbols that must always be exported.
  15046. include_expsyms=$lt_include_expsyms_F77
  15047. # ### END LIBTOOL TAG CONFIG: $tagname
  15048. __EOF__
  15049. else
  15050. # If there is no Makefile yet, we rely on a make rule to execute
  15051. # `config.status --recheck' to rerun these tests and create the
  15052. # libtool script then.
  15053. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15054. if test -f "$ltmain_in"; then
  15055. test -f Makefile && make "$ltmain"
  15056. fi
  15057. fi
  15058. ac_ext=c
  15059. ac_cpp='$CPP $CPPFLAGS'
  15060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15063. CC="$lt_save_CC"
  15064. else
  15065. tagname=""
  15066. fi
  15067. ;;
  15068. GCJ)
  15069. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15070. # Source file extension for Java test sources.
  15071. ac_ext=java
  15072. # Object file extension for compiled Java test sources.
  15073. objext=o
  15074. objext_GCJ=$objext
  15075. # Code to be used in simple compile tests
  15076. lt_simple_compile_test_code="class foo {}"
  15077. # Code to be used in simple link tests
  15078. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  15079. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15080. # If no C compiler was specified, use CC.
  15081. LTCC=${LTCC-"$CC"}
  15082. # If no C compiler flags were specified, use CFLAGS.
  15083. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15084. # Allow CC to be a program name with arguments.
  15085. compiler=$CC
  15086. # save warnings/boilerplate of simple test code
  15087. ac_outfile=conftest.$ac_objext
  15088. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15089. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15090. _lt_compiler_boilerplate=`cat conftest.err`
  15091. $rm conftest*
  15092. ac_outfile=conftest.$ac_objext
  15093. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15094. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15095. _lt_linker_boilerplate=`cat conftest.err`
  15096. $rm -r conftest*
  15097. # Allow CC to be a program name with arguments.
  15098. lt_save_CC="$CC"
  15099. CC=${GCJ-"gcj"}
  15100. compiler=$CC
  15101. compiler_GCJ=$CC
  15102. for cc_temp in $compiler""; do
  15103. case $cc_temp in
  15104. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15105. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15106. \-*) ;;
  15107. *) break;;
  15108. esac
  15109. done
  15110. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15111. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  15112. archive_cmds_need_lc_GCJ=no
  15113. old_archive_cmds_GCJ=$old_archive_cmds
  15114. lt_prog_compiler_no_builtin_flag_GCJ=
  15115. if test "$GCC" = yes; then
  15116. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  15117. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15118. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  15119. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15120. echo $ECHO_N "(cached) $ECHO_C" >&6
  15121. else
  15122. lt_cv_prog_compiler_rtti_exceptions=no
  15123. ac_outfile=conftest.$ac_objext
  15124. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15125. lt_compiler_flag="-fno-rtti -fno-exceptions"
  15126. # Insert the option either (1) after the last *FLAGS variable, or
  15127. # (2) before a word containing "conftest.", or (3) at the end.
  15128. # Note that $ac_compile itself does not contain backslashes and begins
  15129. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15130. # The option is referenced via a variable to avoid confusing sed.
  15131. lt_compile=`echo "$ac_compile" | $SED \
  15132. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15133. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15134. -e 's:$: $lt_compiler_flag:'`
  15135. (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
  15136. (eval "$lt_compile" 2>conftest.err)
  15137. ac_status=$?
  15138. cat conftest.err >&5
  15139. echo "$as_me:16957: \$? = $ac_status" >&5
  15140. if (exit $ac_status) && test -s "$ac_outfile"; then
  15141. # The compiler can only warn and ignore the option if not recognized
  15142. # So say no if there are warnings other than the usual output.
  15143. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15144. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15145. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15146. lt_cv_prog_compiler_rtti_exceptions=yes
  15147. fi
  15148. fi
  15149. $rm conftest*
  15150. fi
  15151. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15152. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  15153. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15154. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15155. else
  15156. :
  15157. fi
  15158. fi
  15159. lt_prog_compiler_wl_GCJ=
  15160. lt_prog_compiler_pic_GCJ=
  15161. lt_prog_compiler_static_GCJ=
  15162. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15163. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  15164. if test "$GCC" = yes; then
  15165. lt_prog_compiler_wl_GCJ='-Wl,'
  15166. lt_prog_compiler_static_GCJ='-static'
  15167. case $host_os in
  15168. aix*)
  15169. # All AIX code is PIC.
  15170. if test "$host_cpu" = ia64; then
  15171. # AIX 5 now supports IA64 processor
  15172. lt_prog_compiler_static_GCJ='-Bstatic'
  15173. fi
  15174. ;;
  15175. amigaos*)
  15176. # FIXME: we need at least 68020 code to build shared libraries, but
  15177. # adding the `-m68020' flag to GCC prevents building anything better,
  15178. # like `-m68040'.
  15179. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15180. ;;
  15181. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15182. # PIC is the default for these OSes.
  15183. ;;
  15184. mingw* | cygwin* | pw32* | os2*)
  15185. # This hack is so that the source file can tell whether it is being
  15186. # built for inclusion in a dll (and should export symbols for example).
  15187. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  15188. # (--disable-auto-import) libraries
  15189. ;;
  15190. darwin* | rhapsody*)
  15191. # PIC is the default on this platform
  15192. # Common symbols not allowed in MH_DYLIB files
  15193. lt_prog_compiler_pic_GCJ='-fno-common'
  15194. ;;
  15195. interix[3-9]*)
  15196. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15197. # Instead, we relocate shared libraries at runtime.
  15198. ;;
  15199. msdosdjgpp*)
  15200. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15201. # on systems that don't support them.
  15202. lt_prog_compiler_can_build_shared_GCJ=no
  15203. enable_shared=no
  15204. ;;
  15205. sysv4*MP*)
  15206. if test -d /usr/nec; then
  15207. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15208. fi
  15209. ;;
  15210. hpux*)
  15211. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15212. # not for PA HP-UX.
  15213. case $host_cpu in
  15214. hppa*64*|ia64*)
  15215. # +Z the default
  15216. ;;
  15217. *)
  15218. lt_prog_compiler_pic_GCJ='-fPIC'
  15219. ;;
  15220. esac
  15221. ;;
  15222. *)
  15223. lt_prog_compiler_pic_GCJ='-fPIC'
  15224. ;;
  15225. esac
  15226. else
  15227. # PORTME Check for flag to pass linker flags through the system compiler.
  15228. case $host_os in
  15229. aix*)
  15230. lt_prog_compiler_wl_GCJ='-Wl,'
  15231. if test "$host_cpu" = ia64; then
  15232. # AIX 5 now supports IA64 processor
  15233. lt_prog_compiler_static_GCJ='-Bstatic'
  15234. else
  15235. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15236. fi
  15237. ;;
  15238. darwin*)
  15239. # PIC is the default on this platform
  15240. # Common symbols not allowed in MH_DYLIB files
  15241. case $cc_basename in
  15242. xlc*)
  15243. lt_prog_compiler_pic_GCJ='-qnocommon'
  15244. lt_prog_compiler_wl_GCJ='-Wl,'
  15245. ;;
  15246. esac
  15247. ;;
  15248. mingw* | cygwin* | pw32* | os2*)
  15249. # This hack is so that the source file can tell whether it is being
  15250. # built for inclusion in a dll (and should export symbols for example).
  15251. ;;
  15252. hpux9* | hpux10* | hpux11*)
  15253. lt_prog_compiler_wl_GCJ='-Wl,'
  15254. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15255. # not for PA HP-UX.
  15256. case $host_cpu in
  15257. hppa*64*|ia64*)
  15258. # +Z the default
  15259. ;;
  15260. *)
  15261. lt_prog_compiler_pic_GCJ='+Z'
  15262. ;;
  15263. esac
  15264. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15265. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15266. ;;
  15267. irix5* | irix6* | nonstopux*)
  15268. lt_prog_compiler_wl_GCJ='-Wl,'
  15269. # PIC (with -KPIC) is the default.
  15270. lt_prog_compiler_static_GCJ='-non_shared'
  15271. ;;
  15272. newsos6)
  15273. lt_prog_compiler_pic_GCJ='-KPIC'
  15274. lt_prog_compiler_static_GCJ='-Bstatic'
  15275. ;;
  15276. linux* | k*bsd*-gnu)
  15277. case $cc_basename in
  15278. icc* | ecc*)
  15279. lt_prog_compiler_wl_GCJ='-Wl,'
  15280. lt_prog_compiler_pic_GCJ='-KPIC'
  15281. lt_prog_compiler_static_GCJ='-static'
  15282. ;;
  15283. pgcc* | pgf77* | pgf90* | pgf95*)
  15284. # Portland Group compilers (*not* the Pentium gcc compiler,
  15285. # which looks to be a dead project)
  15286. lt_prog_compiler_wl_GCJ='-Wl,'
  15287. lt_prog_compiler_pic_GCJ='-fpic'
  15288. lt_prog_compiler_static_GCJ='-Bstatic'
  15289. ;;
  15290. ccc*)
  15291. lt_prog_compiler_wl_GCJ='-Wl,'
  15292. # All Alpha code is PIC.
  15293. lt_prog_compiler_static_GCJ='-non_shared'
  15294. ;;
  15295. *)
  15296. case `$CC -V 2>&1 | sed 5q` in
  15297. *Sun\ C*)
  15298. # Sun C 5.9
  15299. lt_prog_compiler_pic_GCJ='-KPIC'
  15300. lt_prog_compiler_static_GCJ='-Bstatic'
  15301. lt_prog_compiler_wl_GCJ='-Wl,'
  15302. ;;
  15303. *Sun\ F*)
  15304. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15305. lt_prog_compiler_pic_GCJ='-KPIC'
  15306. lt_prog_compiler_static_GCJ='-Bstatic'
  15307. lt_prog_compiler_wl_GCJ=''
  15308. ;;
  15309. esac
  15310. ;;
  15311. esac
  15312. ;;
  15313. osf3* | osf4* | osf5*)
  15314. lt_prog_compiler_wl_GCJ='-Wl,'
  15315. # All OSF/1 code is PIC.
  15316. lt_prog_compiler_static_GCJ='-non_shared'
  15317. ;;
  15318. rdos*)
  15319. lt_prog_compiler_static_GCJ='-non_shared'
  15320. ;;
  15321. solaris*)
  15322. lt_prog_compiler_pic_GCJ='-KPIC'
  15323. lt_prog_compiler_static_GCJ='-Bstatic'
  15324. case $cc_basename in
  15325. f77* | f90* | f95*)
  15326. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15327. *)
  15328. lt_prog_compiler_wl_GCJ='-Wl,';;
  15329. esac
  15330. ;;
  15331. sunos4*)
  15332. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15333. lt_prog_compiler_pic_GCJ='-PIC'
  15334. lt_prog_compiler_static_GCJ='-Bstatic'
  15335. ;;
  15336. sysv4 | sysv4.2uw2* | sysv4.3*)
  15337. lt_prog_compiler_wl_GCJ='-Wl,'
  15338. lt_prog_compiler_pic_GCJ='-KPIC'
  15339. lt_prog_compiler_static_GCJ='-Bstatic'
  15340. ;;
  15341. sysv4*MP*)
  15342. if test -d /usr/nec ;then
  15343. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15344. lt_prog_compiler_static_GCJ='-Bstatic'
  15345. fi
  15346. ;;
  15347. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15348. lt_prog_compiler_wl_GCJ='-Wl,'
  15349. lt_prog_compiler_pic_GCJ='-KPIC'
  15350. lt_prog_compiler_static_GCJ='-Bstatic'
  15351. ;;
  15352. unicos*)
  15353. lt_prog_compiler_wl_GCJ='-Wl,'
  15354. lt_prog_compiler_can_build_shared_GCJ=no
  15355. ;;
  15356. uts4*)
  15357. lt_prog_compiler_pic_GCJ='-pic'
  15358. lt_prog_compiler_static_GCJ='-Bstatic'
  15359. ;;
  15360. *)
  15361. lt_prog_compiler_can_build_shared_GCJ=no
  15362. ;;
  15363. esac
  15364. fi
  15365. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15366. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15367. #
  15368. # Check to make sure the PIC flag actually works.
  15369. #
  15370. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15371. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15372. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15373. if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  15374. echo $ECHO_N "(cached) $ECHO_C" >&6
  15375. else
  15376. lt_cv_prog_compiler_pic_works_GCJ=no
  15377. ac_outfile=conftest.$ac_objext
  15378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15379. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15380. # Insert the option either (1) after the last *FLAGS variable, or
  15381. # (2) before a word containing "conftest.", or (3) at the end.
  15382. # Note that $ac_compile itself does not contain backslashes and begins
  15383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15384. # The option is referenced via a variable to avoid confusing sed.
  15385. lt_compile=`echo "$ac_compile" | $SED \
  15386. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15387. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15388. -e 's:$: $lt_compiler_flag:'`
  15389. (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
  15390. (eval "$lt_compile" 2>conftest.err)
  15391. ac_status=$?
  15392. cat conftest.err >&5
  15393. echo "$as_me:17247: \$? = $ac_status" >&5
  15394. if (exit $ac_status) && test -s "$ac_outfile"; then
  15395. # The compiler can only warn and ignore the option if not recognized
  15396. # So say no if there are warnings other than the usual output.
  15397. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15399. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15400. lt_cv_prog_compiler_pic_works_GCJ=yes
  15401. fi
  15402. fi
  15403. $rm conftest*
  15404. fi
  15405. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  15406. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  15407. if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  15408. case $lt_prog_compiler_pic_GCJ in
  15409. "" | " "*) ;;
  15410. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15411. esac
  15412. else
  15413. lt_prog_compiler_pic_GCJ=
  15414. lt_prog_compiler_can_build_shared_GCJ=no
  15415. fi
  15416. fi
  15417. case $host_os in
  15418. # For platforms which do not support PIC, -DPIC is meaningless:
  15419. *djgpp*)
  15420. lt_prog_compiler_pic_GCJ=
  15421. ;;
  15422. *)
  15423. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15424. ;;
  15425. esac
  15426. #
  15427. # Check to make sure the static flag actually works.
  15428. #
  15429. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15430. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15431. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15432. if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  15433. echo $ECHO_N "(cached) $ECHO_C" >&6
  15434. else
  15435. lt_cv_prog_compiler_static_works_GCJ=no
  15436. save_LDFLAGS="$LDFLAGS"
  15437. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15438. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15439. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15440. # The linker can only warn and ignore the option if not recognized
  15441. # So say no if there are warnings
  15442. if test -s conftest.err; then
  15443. # Append any errors to the config.log.
  15444. cat conftest.err 1>&5
  15445. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15446. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15447. if diff conftest.exp conftest.er2 >/dev/null; then
  15448. lt_cv_prog_compiler_static_works_GCJ=yes
  15449. fi
  15450. else
  15451. lt_cv_prog_compiler_static_works_GCJ=yes
  15452. fi
  15453. fi
  15454. $rm -r conftest*
  15455. LDFLAGS="$save_LDFLAGS"
  15456. fi
  15457. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  15458. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  15459. if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  15460. :
  15461. else
  15462. lt_prog_compiler_static_GCJ=
  15463. fi
  15464. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15465. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15466. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15467. echo $ECHO_N "(cached) $ECHO_C" >&6
  15468. else
  15469. lt_cv_prog_compiler_c_o_GCJ=no
  15470. $rm -r conftest 2>/dev/null
  15471. mkdir conftest
  15472. cd conftest
  15473. mkdir out
  15474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15475. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15476. # Insert the option either (1) after the last *FLAGS variable, or
  15477. # (2) before a word containing "conftest.", or (3) at the end.
  15478. # Note that $ac_compile itself does not contain backslashes and begins
  15479. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15480. lt_compile=`echo "$ac_compile" | $SED \
  15481. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15482. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15483. -e 's:$: $lt_compiler_flag:'`
  15484. (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
  15485. (eval "$lt_compile" 2>out/conftest.err)
  15486. ac_status=$?
  15487. cat out/conftest.err >&5
  15488. echo "$as_me:17351: \$? = $ac_status" >&5
  15489. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15490. then
  15491. # The compiler can only warn and ignore the option if not recognized
  15492. # So say no if there are warnings
  15493. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15494. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15495. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15496. lt_cv_prog_compiler_c_o_GCJ=yes
  15497. fi
  15498. fi
  15499. chmod u+w . 2>&5
  15500. $rm conftest*
  15501. # SGI C++ compiler will create directory out/ii_files/ for
  15502. # template instantiation
  15503. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15504. $rm out/* && rmdir out
  15505. cd ..
  15506. rmdir conftest
  15507. $rm conftest*
  15508. fi
  15509. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15510. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15511. hard_links="nottested"
  15512. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15513. # do not overwrite the value of need_locks provided by the user
  15514. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15515. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15516. hard_links=yes
  15517. $rm conftest*
  15518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15519. touch conftest.a
  15520. ln conftest.a conftest.b 2>&5 || hard_links=no
  15521. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15522. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15523. echo "${ECHO_T}$hard_links" >&6; }
  15524. if test "$hard_links" = no; then
  15525. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15526. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15527. need_locks=warn
  15528. fi
  15529. else
  15530. need_locks=no
  15531. fi
  15532. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15533. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15534. runpath_var=
  15535. allow_undefined_flag_GCJ=
  15536. enable_shared_with_static_runtimes_GCJ=no
  15537. archive_cmds_GCJ=
  15538. archive_expsym_cmds_GCJ=
  15539. old_archive_From_new_cmds_GCJ=
  15540. old_archive_from_expsyms_cmds_GCJ=
  15541. export_dynamic_flag_spec_GCJ=
  15542. whole_archive_flag_spec_GCJ=
  15543. thread_safe_flag_spec_GCJ=
  15544. hardcode_libdir_flag_spec_GCJ=
  15545. hardcode_libdir_flag_spec_ld_GCJ=
  15546. hardcode_libdir_separator_GCJ=
  15547. hardcode_direct_GCJ=no
  15548. hardcode_minus_L_GCJ=no
  15549. hardcode_shlibpath_var_GCJ=unsupported
  15550. link_all_deplibs_GCJ=unknown
  15551. hardcode_automatic_GCJ=no
  15552. module_cmds_GCJ=
  15553. module_expsym_cmds_GCJ=
  15554. always_export_symbols_GCJ=no
  15555. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15556. # include_expsyms should be a list of space-separated symbols to be *always*
  15557. # included in the symbol list
  15558. include_expsyms_GCJ=
  15559. # exclude_expsyms can be an extended regexp of symbols to exclude
  15560. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15561. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15562. # as well as any symbol that contains `d'.
  15563. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15564. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15565. # platforms (ab)use it in PIC code, but their linkers get confused if
  15566. # the symbol is explicitly referenced. Since portable code cannot
  15567. # rely on this symbol name, it's probably fine to never include it in
  15568. # preloaded symbol tables.
  15569. # Exclude shared library initialization/finalization symbols.
  15570. extract_expsyms_cmds=
  15571. # Just being paranoid about ensuring that cc_basename is set.
  15572. for cc_temp in $compiler""; do
  15573. case $cc_temp in
  15574. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15575. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15576. \-*) ;;
  15577. *) break;;
  15578. esac
  15579. done
  15580. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15581. case $host_os in
  15582. cygwin* | mingw* | pw32*)
  15583. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15584. # When not using gcc, we currently assume that we are using
  15585. # Microsoft Visual C++.
  15586. if test "$GCC" != yes; then
  15587. with_gnu_ld=no
  15588. fi
  15589. ;;
  15590. interix*)
  15591. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15592. with_gnu_ld=yes
  15593. ;;
  15594. openbsd*)
  15595. with_gnu_ld=no
  15596. ;;
  15597. esac
  15598. ld_shlibs_GCJ=yes
  15599. if test "$with_gnu_ld" = yes; then
  15600. # If archive_cmds runs LD, not CC, wlarc should be empty
  15601. wlarc='${wl}'
  15602. # Set some defaults for GNU ld with shared library support. These
  15603. # are reset later if shared libraries are not supported. Putting them
  15604. # here allows them to be overridden if necessary.
  15605. runpath_var=LD_RUN_PATH
  15606. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15607. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15608. # ancient GNU ld didn't support --whole-archive et. al.
  15609. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15610. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15611. else
  15612. whole_archive_flag_spec_GCJ=
  15613. fi
  15614. supports_anon_versioning=no
  15615. case `$LD -v 2>/dev/null` in
  15616. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15617. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15618. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15619. *\ 2.11.*) ;; # other 2.11 versions
  15620. *) supports_anon_versioning=yes ;;
  15621. esac
  15622. # See if GNU ld supports shared libraries.
  15623. case $host_os in
  15624. aix[3-9]*)
  15625. # On AIX/PPC, the GNU linker is very broken
  15626. if test "$host_cpu" != ia64; then
  15627. ld_shlibs_GCJ=no
  15628. cat <<EOF 1>&2
  15629. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15630. *** to be unable to reliably create shared libraries on AIX.
  15631. *** Therefore, libtool is disabling shared libraries support. If you
  15632. *** really care for shared libraries, you may want to modify your PATH
  15633. *** so that a non-GNU linker is found, and then restart.
  15634. EOF
  15635. fi
  15636. ;;
  15637. amigaos*)
  15638. 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)'
  15639. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15640. hardcode_minus_L_GCJ=yes
  15641. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15642. # that the semantics of dynamic libraries on AmigaOS, at least up
  15643. # to version 4, is to share data among multiple programs linked
  15644. # with the same dynamic library. Since this doesn't match the
  15645. # behavior of shared libraries on other platforms, we can't use
  15646. # them.
  15647. ld_shlibs_GCJ=no
  15648. ;;
  15649. beos*)
  15650. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15651. allow_undefined_flag_GCJ=unsupported
  15652. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15653. # support --undefined. This deserves some investigation. FIXME
  15654. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15655. else
  15656. ld_shlibs_GCJ=no
  15657. fi
  15658. ;;
  15659. cygwin* | mingw* | pw32*)
  15660. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15661. # as there is no search path for DLLs.
  15662. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15663. allow_undefined_flag_GCJ=unsupported
  15664. always_export_symbols_GCJ=no
  15665. enable_shared_with_static_runtimes_GCJ=yes
  15666. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15667. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15668. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15669. # If the export-symbols file already is a .def file (1st line
  15670. # is EXPORTS), use it as is; otherwise, prepend...
  15671. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15672. cp $export_symbols $output_objdir/$soname.def;
  15673. else
  15674. echo EXPORTS > $output_objdir/$soname.def;
  15675. cat $export_symbols >> $output_objdir/$soname.def;
  15676. fi~
  15677. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15678. else
  15679. ld_shlibs_GCJ=no
  15680. fi
  15681. ;;
  15682. interix[3-9]*)
  15683. hardcode_direct_GCJ=no
  15684. hardcode_shlibpath_var_GCJ=no
  15685. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15686. export_dynamic_flag_spec_GCJ='${wl}-E'
  15687. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15688. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15689. # default) and relocated if they conflict, which is a slow very memory
  15690. # consuming and fragmenting process. To avoid this, we pick a random,
  15691. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15692. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15693. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15694. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15695. ;;
  15696. gnu* | linux* | k*bsd*-gnu)
  15697. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15698. tmp_addflag=
  15699. case $cc_basename,$host_cpu in
  15700. pgcc*) # Portland Group C compiler
  15701. 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'
  15702. tmp_addflag=' $pic_flag'
  15703. ;;
  15704. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15705. 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'
  15706. tmp_addflag=' $pic_flag -Mnomain' ;;
  15707. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15708. tmp_addflag=' -i_dynamic' ;;
  15709. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15710. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15711. ifc* | ifort*) # Intel Fortran compiler
  15712. tmp_addflag=' -nofor_main' ;;
  15713. esac
  15714. case `$CC -V 2>&1 | sed 5q` in
  15715. *Sun\ C*) # Sun C 5.9
  15716. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15717. tmp_sharedflag='-G' ;;
  15718. *Sun\ F*) # Sun Fortran 8.3
  15719. tmp_sharedflag='-G' ;;
  15720. *)
  15721. tmp_sharedflag='-shared' ;;
  15722. esac
  15723. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15724. if test $supports_anon_versioning = yes; then
  15725. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15726. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15727. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15728. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15729. fi
  15730. else
  15731. ld_shlibs_GCJ=no
  15732. fi
  15733. ;;
  15734. netbsd*)
  15735. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15736. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15737. wlarc=
  15738. else
  15739. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15740. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15741. fi
  15742. ;;
  15743. solaris*)
  15744. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15745. ld_shlibs_GCJ=no
  15746. cat <<EOF 1>&2
  15747. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15748. *** create shared libraries on Solaris systems. Therefore, libtool
  15749. *** is disabling shared libraries support. We urge you to upgrade GNU
  15750. *** binutils to release 2.9.1 or newer. Another option is to modify
  15751. *** your PATH or compiler configuration so that the native linker is
  15752. *** used, and then restart.
  15753. EOF
  15754. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15755. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15756. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15757. else
  15758. ld_shlibs_GCJ=no
  15759. fi
  15760. ;;
  15761. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15762. case `$LD -v 2>&1` in
  15763. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15764. ld_shlibs_GCJ=no
  15765. cat <<_LT_EOF 1>&2
  15766. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15767. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15768. *** is disabling shared libraries support. We urge you to upgrade GNU
  15769. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15770. *** your PATH or compiler configuration so that the native linker is
  15771. *** used, and then restart.
  15772. _LT_EOF
  15773. ;;
  15774. *)
  15775. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15776. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15777. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15778. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15779. else
  15780. ld_shlibs_GCJ=no
  15781. fi
  15782. ;;
  15783. esac
  15784. ;;
  15785. sunos4*)
  15786. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15787. wlarc=
  15788. hardcode_direct_GCJ=yes
  15789. hardcode_shlibpath_var_GCJ=no
  15790. ;;
  15791. *)
  15792. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15793. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15794. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15795. else
  15796. ld_shlibs_GCJ=no
  15797. fi
  15798. ;;
  15799. esac
  15800. if test "$ld_shlibs_GCJ" = no; then
  15801. runpath_var=
  15802. hardcode_libdir_flag_spec_GCJ=
  15803. export_dynamic_flag_spec_GCJ=
  15804. whole_archive_flag_spec_GCJ=
  15805. fi
  15806. else
  15807. # PORTME fill in a description of your system's linker (not GNU ld)
  15808. case $host_os in
  15809. aix3*)
  15810. allow_undefined_flag_GCJ=unsupported
  15811. always_export_symbols_GCJ=yes
  15812. 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'
  15813. # Note: this linker hardcodes the directories in LIBPATH if there
  15814. # are no directories specified by -L.
  15815. hardcode_minus_L_GCJ=yes
  15816. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15817. # Neither direct hardcoding nor static linking is supported with a
  15818. # broken collect2.
  15819. hardcode_direct_GCJ=unsupported
  15820. fi
  15821. ;;
  15822. aix[4-9]*)
  15823. if test "$host_cpu" = ia64; then
  15824. # On IA64, the linker does run time linking by default, so we don't
  15825. # have to do anything special.
  15826. aix_use_runtimelinking=no
  15827. exp_sym_flag='-Bexport'
  15828. no_entry_flag=""
  15829. else
  15830. # If we're using GNU nm, then we don't want the "-C" option.
  15831. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15832. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15833. 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'
  15834. else
  15835. 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'
  15836. fi
  15837. aix_use_runtimelinking=no
  15838. # Test if we are trying to use run time linking or normal
  15839. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15840. # need to do runtime linking.
  15841. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  15842. for ld_flag in $LDFLAGS; do
  15843. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15844. aix_use_runtimelinking=yes
  15845. break
  15846. fi
  15847. done
  15848. ;;
  15849. esac
  15850. exp_sym_flag='-bexport'
  15851. no_entry_flag='-bnoentry'
  15852. fi
  15853. # When large executables or shared objects are built, AIX ld can
  15854. # have problems creating the table of contents. If linking a library
  15855. # or program results in "error TOC overflow" add -mminimal-toc to
  15856. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15857. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15858. archive_cmds_GCJ=''
  15859. hardcode_direct_GCJ=yes
  15860. hardcode_libdir_separator_GCJ=':'
  15861. link_all_deplibs_GCJ=yes
  15862. if test "$GCC" = yes; then
  15863. case $host_os in aix4.[012]|aix4.[012].*)
  15864. # We only want to do this on AIX 4.2 and lower, the check
  15865. # below for broken collect2 doesn't work under 4.3+
  15866. collect2name=`${CC} -print-prog-name=collect2`
  15867. if test -f "$collect2name" && \
  15868. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15869. then
  15870. # We have reworked collect2
  15871. :
  15872. else
  15873. # We have old collect2
  15874. hardcode_direct_GCJ=unsupported
  15875. # It fails to find uninstalled libraries when the uninstalled
  15876. # path is not listed in the libpath. Setting hardcode_minus_L
  15877. # to unsupported forces relinking
  15878. hardcode_minus_L_GCJ=yes
  15879. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15880. hardcode_libdir_separator_GCJ=
  15881. fi
  15882. ;;
  15883. esac
  15884. shared_flag='-shared'
  15885. if test "$aix_use_runtimelinking" = yes; then
  15886. shared_flag="$shared_flag "'${wl}-G'
  15887. fi
  15888. else
  15889. # not using gcc
  15890. if test "$host_cpu" = ia64; then
  15891. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15892. # chokes on -Wl,-G. The following line is correct:
  15893. shared_flag='-G'
  15894. else
  15895. if test "$aix_use_runtimelinking" = yes; then
  15896. shared_flag='${wl}-G'
  15897. else
  15898. shared_flag='${wl}-bM:SRE'
  15899. fi
  15900. fi
  15901. fi
  15902. # It seems that -bexpall does not export symbols beginning with
  15903. # underscore (_), so it is better to generate a list of symbols to export.
  15904. always_export_symbols_GCJ=yes
  15905. if test "$aix_use_runtimelinking" = yes; then
  15906. # Warning - without using the other runtime loading flags (-brtl),
  15907. # -berok will link without error, but may produce a broken library.
  15908. allow_undefined_flag_GCJ='-berok'
  15909. # Determine the default libpath from the value encoded in an empty executable.
  15910. cat >conftest.$ac_ext <<_ACEOF
  15911. /* confdefs.h. */
  15912. _ACEOF
  15913. cat confdefs.h >>conftest.$ac_ext
  15914. cat >>conftest.$ac_ext <<_ACEOF
  15915. /* end confdefs.h. */
  15916. int
  15917. main ()
  15918. {
  15919. ;
  15920. return 0;
  15921. }
  15922. _ACEOF
  15923. rm -f conftest.$ac_objext conftest$ac_exeext
  15924. if { (ac_try="$ac_link"
  15925. case "(($ac_try" in
  15926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15927. *) ac_try_echo=$ac_try;;
  15928. esac
  15929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15930. (eval "$ac_link") 2>conftest.er1
  15931. ac_status=$?
  15932. grep -v '^ *+' conftest.er1 >conftest.err
  15933. rm -f conftest.er1
  15934. cat conftest.err >&5
  15935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15936. (exit $ac_status); } && {
  15937. test -z "$ac_c_werror_flag" ||
  15938. test ! -s conftest.err
  15939. } && test -s conftest$ac_exeext &&
  15940. $as_test_x conftest$ac_exeext; then
  15941. lt_aix_libpath_sed='
  15942. /Import File Strings/,/^$/ {
  15943. /^0/ {
  15944. s/^0 *\(.*\)$/\1/
  15945. p
  15946. }
  15947. }'
  15948. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15949. # Check for a 64-bit object if we didn't find anything.
  15950. if test -z "$aix_libpath"; then
  15951. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15952. fi
  15953. else
  15954. echo "$as_me: failed program was:" >&5
  15955. sed 's/^/| /' conftest.$ac_ext >&5
  15956. fi
  15957. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15958. conftest$ac_exeext conftest.$ac_ext
  15959. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15960. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15961. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15962. else
  15963. if test "$host_cpu" = ia64; then
  15964. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15965. allow_undefined_flag_GCJ="-z nodefs"
  15966. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  15967. else
  15968. # Determine the default libpath from the value encoded in an empty executable.
  15969. cat >conftest.$ac_ext <<_ACEOF
  15970. /* confdefs.h. */
  15971. _ACEOF
  15972. cat confdefs.h >>conftest.$ac_ext
  15973. cat >>conftest.$ac_ext <<_ACEOF
  15974. /* end confdefs.h. */
  15975. int
  15976. main ()
  15977. {
  15978. ;
  15979. return 0;
  15980. }
  15981. _ACEOF
  15982. rm -f conftest.$ac_objext conftest$ac_exeext
  15983. if { (ac_try="$ac_link"
  15984. case "(($ac_try" in
  15985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15986. *) ac_try_echo=$ac_try;;
  15987. esac
  15988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15989. (eval "$ac_link") 2>conftest.er1
  15990. ac_status=$?
  15991. grep -v '^ *+' conftest.er1 >conftest.err
  15992. rm -f conftest.er1
  15993. cat conftest.err >&5
  15994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15995. (exit $ac_status); } && {
  15996. test -z "$ac_c_werror_flag" ||
  15997. test ! -s conftest.err
  15998. } && test -s conftest$ac_exeext &&
  15999. $as_test_x conftest$ac_exeext; then
  16000. lt_aix_libpath_sed='
  16001. /Import File Strings/,/^$/ {
  16002. /^0/ {
  16003. s/^0 *\(.*\)$/\1/
  16004. p
  16005. }
  16006. }'
  16007. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16008. # Check for a 64-bit object if we didn't find anything.
  16009. if test -z "$aix_libpath"; then
  16010. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16011. fi
  16012. else
  16013. echo "$as_me: failed program was:" >&5
  16014. sed 's/^/| /' conftest.$ac_ext >&5
  16015. fi
  16016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16017. conftest$ac_exeext conftest.$ac_ext
  16018. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16019. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16020. # Warning - without using the other run time loading flags,
  16021. # -berok will link without error, but may produce a broken library.
  16022. no_undefined_flag_GCJ=' ${wl}-bernotok'
  16023. allow_undefined_flag_GCJ=' ${wl}-berok'
  16024. # Exported symbols can be pulled into shared objects from archives
  16025. whole_archive_flag_spec_GCJ='$convenience'
  16026. archive_cmds_need_lc_GCJ=yes
  16027. # This is similar to how AIX traditionally builds its shared libraries.
  16028. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  16029. fi
  16030. fi
  16031. ;;
  16032. amigaos*)
  16033. 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)'
  16034. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16035. hardcode_minus_L_GCJ=yes
  16036. # see comment about different semantics on the GNU ld section
  16037. ld_shlibs_GCJ=no
  16038. ;;
  16039. bsdi[45]*)
  16040. export_dynamic_flag_spec_GCJ=-rdynamic
  16041. ;;
  16042. cygwin* | mingw* | pw32*)
  16043. # When not using gcc, we currently assume that we are using
  16044. # Microsoft Visual C++.
  16045. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16046. # no search path for DLLs.
  16047. hardcode_libdir_flag_spec_GCJ=' '
  16048. allow_undefined_flag_GCJ=unsupported
  16049. # Tell ltmain to make .lib files, not .a files.
  16050. libext=lib
  16051. # Tell ltmain to make .dll files, not .so files.
  16052. shrext_cmds=".dll"
  16053. # FIXME: Setting linknames here is a bad hack.
  16054. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16055. # The linker will automatically build a .lib file if we build a DLL.
  16056. old_archive_From_new_cmds_GCJ='true'
  16057. # FIXME: Should let the user specify the lib program.
  16058. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16059. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  16060. enable_shared_with_static_runtimes_GCJ=yes
  16061. ;;
  16062. darwin* | rhapsody*)
  16063. case $host_os in
  16064. rhapsody* | darwin1.[012])
  16065. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  16066. ;;
  16067. *) # Darwin 1.3 on
  16068. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16069. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16070. else
  16071. case ${MACOSX_DEPLOYMENT_TARGET} in
  16072. 10.[012])
  16073. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16074. ;;
  16075. 10.*)
  16076. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  16077. ;;
  16078. esac
  16079. fi
  16080. ;;
  16081. esac
  16082. archive_cmds_need_lc_GCJ=no
  16083. hardcode_direct_GCJ=no
  16084. hardcode_automatic_GCJ=yes
  16085. hardcode_shlibpath_var_GCJ=unsupported
  16086. whole_archive_flag_spec_GCJ=''
  16087. link_all_deplibs_GCJ=yes
  16088. if test "$GCC" = yes ; then
  16089. output_verbose_link_cmd='echo'
  16090. archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  16091. module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16092. archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  16093. module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  16094. else
  16095. case $cc_basename in
  16096. xlc*)
  16097. output_verbose_link_cmd='echo'
  16098. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  16099. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16100. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16101. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16102. 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}'
  16103. ;;
  16104. *)
  16105. ld_shlibs_GCJ=no
  16106. ;;
  16107. esac
  16108. fi
  16109. ;;
  16110. dgux*)
  16111. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16112. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16113. hardcode_shlibpath_var_GCJ=no
  16114. ;;
  16115. freebsd1*)
  16116. ld_shlibs_GCJ=no
  16117. ;;
  16118. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16119. # support. Future versions do this automatically, but an explicit c++rt0.o
  16120. # does not break anything, and helps significantly (at the cost of a little
  16121. # extra space).
  16122. freebsd2.2*)
  16123. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16124. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16125. hardcode_direct_GCJ=yes
  16126. hardcode_shlibpath_var_GCJ=no
  16127. ;;
  16128. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16129. freebsd2*)
  16130. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16131. hardcode_direct_GCJ=yes
  16132. hardcode_minus_L_GCJ=yes
  16133. hardcode_shlibpath_var_GCJ=no
  16134. ;;
  16135. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16136. freebsd* | dragonfly*)
  16137. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16138. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16139. hardcode_direct_GCJ=yes
  16140. hardcode_shlibpath_var_GCJ=no
  16141. ;;
  16142. hpux9*)
  16143. if test "$GCC" = yes; then
  16144. 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'
  16145. else
  16146. 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'
  16147. fi
  16148. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16149. hardcode_libdir_separator_GCJ=:
  16150. hardcode_direct_GCJ=yes
  16151. # hardcode_minus_L: Not really in the search PATH,
  16152. # but as the default location of the library.
  16153. hardcode_minus_L_GCJ=yes
  16154. export_dynamic_flag_spec_GCJ='${wl}-E'
  16155. ;;
  16156. hpux10*)
  16157. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16158. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16159. else
  16160. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16161. fi
  16162. if test "$with_gnu_ld" = no; then
  16163. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16164. hardcode_libdir_separator_GCJ=:
  16165. hardcode_direct_GCJ=yes
  16166. export_dynamic_flag_spec_GCJ='${wl}-E'
  16167. # hardcode_minus_L: Not really in the search PATH,
  16168. # but as the default location of the library.
  16169. hardcode_minus_L_GCJ=yes
  16170. fi
  16171. ;;
  16172. hpux11*)
  16173. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16174. case $host_cpu in
  16175. hppa*64*)
  16176. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16177. ;;
  16178. ia64*)
  16179. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16180. ;;
  16181. *)
  16182. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16183. ;;
  16184. esac
  16185. else
  16186. case $host_cpu in
  16187. hppa*64*)
  16188. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16189. ;;
  16190. ia64*)
  16191. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16192. ;;
  16193. *)
  16194. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16195. ;;
  16196. esac
  16197. fi
  16198. if test "$with_gnu_ld" = no; then
  16199. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16200. hardcode_libdir_separator_GCJ=:
  16201. case $host_cpu in
  16202. hppa*64*|ia64*)
  16203. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16204. hardcode_direct_GCJ=no
  16205. hardcode_shlibpath_var_GCJ=no
  16206. ;;
  16207. *)
  16208. hardcode_direct_GCJ=yes
  16209. export_dynamic_flag_spec_GCJ='${wl}-E'
  16210. # hardcode_minus_L: Not really in the search PATH,
  16211. # but as the default location of the library.
  16212. hardcode_minus_L_GCJ=yes
  16213. ;;
  16214. esac
  16215. fi
  16216. ;;
  16217. irix5* | irix6* | nonstopux*)
  16218. if test "$GCC" = yes; then
  16219. 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'
  16220. else
  16221. 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'
  16222. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16223. fi
  16224. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16225. hardcode_libdir_separator_GCJ=:
  16226. link_all_deplibs_GCJ=yes
  16227. ;;
  16228. netbsd*)
  16229. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16230. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16231. else
  16232. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16233. fi
  16234. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16235. hardcode_direct_GCJ=yes
  16236. hardcode_shlibpath_var_GCJ=no
  16237. ;;
  16238. newsos6)
  16239. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16240. hardcode_direct_GCJ=yes
  16241. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16242. hardcode_libdir_separator_GCJ=:
  16243. hardcode_shlibpath_var_GCJ=no
  16244. ;;
  16245. openbsd*)
  16246. if test -f /usr/libexec/ld.so; then
  16247. hardcode_direct_GCJ=yes
  16248. hardcode_shlibpath_var_GCJ=no
  16249. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16250. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16251. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16252. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16253. export_dynamic_flag_spec_GCJ='${wl}-E'
  16254. else
  16255. case $host_os in
  16256. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16257. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16258. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16259. ;;
  16260. *)
  16261. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16262. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16263. ;;
  16264. esac
  16265. fi
  16266. else
  16267. ld_shlibs_GCJ=no
  16268. fi
  16269. ;;
  16270. os2*)
  16271. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16272. hardcode_minus_L_GCJ=yes
  16273. allow_undefined_flag_GCJ=unsupported
  16274. 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'
  16275. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16276. ;;
  16277. osf3*)
  16278. if test "$GCC" = yes; then
  16279. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16280. 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'
  16281. else
  16282. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16283. 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'
  16284. fi
  16285. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16286. hardcode_libdir_separator_GCJ=:
  16287. ;;
  16288. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16289. if test "$GCC" = yes; then
  16290. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16291. 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'
  16292. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16293. else
  16294. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16295. 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'
  16296. 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~
  16297. $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'
  16298. # Both c and cxx compiler support -rpath directly
  16299. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16300. fi
  16301. hardcode_libdir_separator_GCJ=:
  16302. ;;
  16303. solaris*)
  16304. no_undefined_flag_GCJ=' -z text'
  16305. if test "$GCC" = yes; then
  16306. wlarc='${wl}'
  16307. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16308. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16309. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16310. else
  16311. wlarc=''
  16312. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16313. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16314. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16315. fi
  16316. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16317. hardcode_shlibpath_var_GCJ=no
  16318. case $host_os in
  16319. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16320. *)
  16321. # The compiler driver will combine and reorder linker options,
  16322. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16323. # but is careful enough not to reorder.
  16324. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16325. if test "$GCC" = yes; then
  16326. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16327. else
  16328. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  16329. fi
  16330. ;;
  16331. esac
  16332. link_all_deplibs_GCJ=yes
  16333. ;;
  16334. sunos4*)
  16335. if test "x$host_vendor" = xsequent; then
  16336. # Use $CC to link under sequent, because it throws in some extra .o
  16337. # files that make .init and .fini sections work.
  16338. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16339. else
  16340. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16341. fi
  16342. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16343. hardcode_direct_GCJ=yes
  16344. hardcode_minus_L_GCJ=yes
  16345. hardcode_shlibpath_var_GCJ=no
  16346. ;;
  16347. sysv4)
  16348. case $host_vendor in
  16349. sni)
  16350. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16351. hardcode_direct_GCJ=yes # is this really true???
  16352. ;;
  16353. siemens)
  16354. ## LD is ld it makes a PLAMLIB
  16355. ## CC just makes a GrossModule.
  16356. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16357. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16358. hardcode_direct_GCJ=no
  16359. ;;
  16360. motorola)
  16361. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16362. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16363. ;;
  16364. esac
  16365. runpath_var='LD_RUN_PATH'
  16366. hardcode_shlibpath_var_GCJ=no
  16367. ;;
  16368. sysv4.3*)
  16369. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16370. hardcode_shlibpath_var_GCJ=no
  16371. export_dynamic_flag_spec_GCJ='-Bexport'
  16372. ;;
  16373. sysv4*MP*)
  16374. if test -d /usr/nec; then
  16375. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16376. hardcode_shlibpath_var_GCJ=no
  16377. runpath_var=LD_RUN_PATH
  16378. hardcode_runpath_var=yes
  16379. ld_shlibs_GCJ=yes
  16380. fi
  16381. ;;
  16382. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16383. no_undefined_flag_GCJ='${wl}-z,text'
  16384. archive_cmds_need_lc_GCJ=no
  16385. hardcode_shlibpath_var_GCJ=no
  16386. runpath_var='LD_RUN_PATH'
  16387. if test "$GCC" = yes; then
  16388. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16389. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16390. else
  16391. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16392. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16393. fi
  16394. ;;
  16395. sysv5* | sco3.2v5* | sco5v6*)
  16396. # Note: We can NOT use -z defs as we might desire, because we do not
  16397. # link with -lc, and that would cause any symbols used from libc to
  16398. # always be unresolved, which means just about no library would
  16399. # ever link correctly. If we're not using GNU ld we use -z text
  16400. # though, which does catch some bad symbols but isn't as heavy-handed
  16401. # as -z defs.
  16402. no_undefined_flag_GCJ='${wl}-z,text'
  16403. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16404. archive_cmds_need_lc_GCJ=no
  16405. hardcode_shlibpath_var_GCJ=no
  16406. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16407. hardcode_libdir_separator_GCJ=':'
  16408. link_all_deplibs_GCJ=yes
  16409. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16410. runpath_var='LD_RUN_PATH'
  16411. if test "$GCC" = yes; then
  16412. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16413. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16414. else
  16415. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16416. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16417. fi
  16418. ;;
  16419. uts4*)
  16420. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16421. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16422. hardcode_shlibpath_var_GCJ=no
  16423. ;;
  16424. *)
  16425. ld_shlibs_GCJ=no
  16426. ;;
  16427. esac
  16428. fi
  16429. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16430. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16431. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16432. #
  16433. # Do we need to explicitly link libc?
  16434. #
  16435. case "x$archive_cmds_need_lc_GCJ" in
  16436. x|xyes)
  16437. # Assume -lc should be added
  16438. archive_cmds_need_lc_GCJ=yes
  16439. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16440. case $archive_cmds_GCJ in
  16441. *'~'*)
  16442. # FIXME: we may have to deal with multi-command sequences.
  16443. ;;
  16444. '$CC '*)
  16445. # Test whether the compiler implicitly links with -lc since on some
  16446. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16447. # to ld, don't add -lc before -lgcc.
  16448. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16449. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16450. $rm conftest*
  16451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16452. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16453. (eval $ac_compile) 2>&5
  16454. ac_status=$?
  16455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16456. (exit $ac_status); } 2>conftest.err; then
  16457. soname=conftest
  16458. lib=conftest
  16459. libobjs=conftest.$ac_objext
  16460. deplibs=
  16461. wl=$lt_prog_compiler_wl_GCJ
  16462. pic_flag=$lt_prog_compiler_pic_GCJ
  16463. compiler_flags=-v
  16464. linker_flags=-v
  16465. verstring=
  16466. output_objdir=.
  16467. libname=conftest
  16468. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16469. allow_undefined_flag_GCJ=
  16470. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16471. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16472. ac_status=$?
  16473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16474. (exit $ac_status); }
  16475. then
  16476. archive_cmds_need_lc_GCJ=no
  16477. else
  16478. archive_cmds_need_lc_GCJ=yes
  16479. fi
  16480. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16481. else
  16482. cat conftest.err 1>&5
  16483. fi
  16484. $rm conftest*
  16485. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16486. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16487. ;;
  16488. esac
  16489. fi
  16490. ;;
  16491. esac
  16492. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16493. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16494. library_names_spec=
  16495. libname_spec='lib$name'
  16496. soname_spec=
  16497. shrext_cmds=".so"
  16498. postinstall_cmds=
  16499. postuninstall_cmds=
  16500. finish_cmds=
  16501. finish_eval=
  16502. shlibpath_var=
  16503. shlibpath_overrides_runpath=unknown
  16504. version_type=none
  16505. dynamic_linker="$host_os ld.so"
  16506. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16507. need_lib_prefix=unknown
  16508. hardcode_into_libs=no
  16509. # when you set need_version to no, make sure it does not cause -set_version
  16510. # flags to be left without arguments
  16511. need_version=unknown
  16512. case $host_os in
  16513. aix3*)
  16514. version_type=linux
  16515. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16516. shlibpath_var=LIBPATH
  16517. # AIX 3 has no versioning support, so we append a major version to the name.
  16518. soname_spec='${libname}${release}${shared_ext}$major'
  16519. ;;
  16520. aix[4-9]*)
  16521. version_type=linux
  16522. need_lib_prefix=no
  16523. need_version=no
  16524. hardcode_into_libs=yes
  16525. if test "$host_cpu" = ia64; then
  16526. # AIX 5 supports IA64
  16527. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16528. shlibpath_var=LD_LIBRARY_PATH
  16529. else
  16530. # With GCC up to 2.95.x, collect2 would create an import file
  16531. # for dependence libraries. The import file would start with
  16532. # the line `#! .'. This would cause the generated library to
  16533. # depend on `.', always an invalid library. This was fixed in
  16534. # development snapshots of GCC prior to 3.0.
  16535. case $host_os in
  16536. aix4 | aix4.[01] | aix4.[01].*)
  16537. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16538. echo ' yes '
  16539. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16540. :
  16541. else
  16542. can_build_shared=no
  16543. fi
  16544. ;;
  16545. esac
  16546. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16547. # soname into executable. Probably we can add versioning support to
  16548. # collect2, so additional links can be useful in future.
  16549. if test "$aix_use_runtimelinking" = yes; then
  16550. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16551. # instead of lib<name>.a to let people know that these are not
  16552. # typical AIX shared libraries.
  16553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16554. else
  16555. # We preserve .a as extension for shared libraries through AIX4.2
  16556. # and later when we are not doing run time linking.
  16557. library_names_spec='${libname}${release}.a $libname.a'
  16558. soname_spec='${libname}${release}${shared_ext}$major'
  16559. fi
  16560. shlibpath_var=LIBPATH
  16561. fi
  16562. ;;
  16563. amigaos*)
  16564. library_names_spec='$libname.ixlibrary $libname.a'
  16565. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16566. 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'
  16567. ;;
  16568. beos*)
  16569. library_names_spec='${libname}${shared_ext}'
  16570. dynamic_linker="$host_os ld.so"
  16571. shlibpath_var=LIBRARY_PATH
  16572. ;;
  16573. bsdi[45]*)
  16574. version_type=linux
  16575. need_version=no
  16576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16577. soname_spec='${libname}${release}${shared_ext}$major'
  16578. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16579. shlibpath_var=LD_LIBRARY_PATH
  16580. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16581. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16582. # the default ld.so.conf also contains /usr/contrib/lib and
  16583. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16584. # libtool to hard-code these into programs
  16585. ;;
  16586. cygwin* | mingw* | pw32*)
  16587. version_type=windows
  16588. shrext_cmds=".dll"
  16589. need_version=no
  16590. need_lib_prefix=no
  16591. case $GCC,$host_os in
  16592. yes,cygwin* | yes,mingw* | yes,pw32*)
  16593. library_names_spec='$libname.dll.a'
  16594. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16595. postinstall_cmds='base_file=`basename \${file}`~
  16596. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16597. dldir=$destdir/`dirname \$dlpath`~
  16598. test -d \$dldir || mkdir -p \$dldir~
  16599. $install_prog $dir/$dlname \$dldir/$dlname~
  16600. chmod a+x \$dldir/$dlname'
  16601. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16602. dlpath=$dir/\$dldll~
  16603. $rm \$dlpath'
  16604. shlibpath_overrides_runpath=yes
  16605. case $host_os in
  16606. cygwin*)
  16607. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16608. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16609. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16610. ;;
  16611. mingw*)
  16612. # MinGW DLLs use traditional 'lib' prefix
  16613. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16614. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16615. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16616. # It is most probably a Windows format PATH printed by
  16617. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16618. # path with ; separators, and with drive letters. We can handle the
  16619. # drive letters (cygwin fileutils understands them), so leave them,
  16620. # especially as we might pass files found there to a mingw objdump,
  16621. # which wouldn't understand a cygwinified path. Ahh.
  16622. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16623. else
  16624. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16625. fi
  16626. ;;
  16627. pw32*)
  16628. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16629. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16630. ;;
  16631. esac
  16632. ;;
  16633. *)
  16634. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16635. ;;
  16636. esac
  16637. dynamic_linker='Win32 ld.exe'
  16638. # FIXME: first we should search . and the directory the executable is in
  16639. shlibpath_var=PATH
  16640. ;;
  16641. darwin* | rhapsody*)
  16642. dynamic_linker="$host_os dyld"
  16643. version_type=darwin
  16644. need_lib_prefix=no
  16645. need_version=no
  16646. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16647. soname_spec='${libname}${release}${major}$shared_ext'
  16648. shlibpath_overrides_runpath=yes
  16649. shlibpath_var=DYLD_LIBRARY_PATH
  16650. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16651. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16652. ;;
  16653. dgux*)
  16654. version_type=linux
  16655. need_lib_prefix=no
  16656. need_version=no
  16657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16658. soname_spec='${libname}${release}${shared_ext}$major'
  16659. shlibpath_var=LD_LIBRARY_PATH
  16660. ;;
  16661. freebsd1*)
  16662. dynamic_linker=no
  16663. ;;
  16664. freebsd* | dragonfly*)
  16665. # DragonFly does not have aout. When/if they implement a new
  16666. # versioning mechanism, adjust this.
  16667. if test -x /usr/bin/objformat; then
  16668. objformat=`/usr/bin/objformat`
  16669. else
  16670. case $host_os in
  16671. freebsd[123]*) objformat=aout ;;
  16672. *) objformat=elf ;;
  16673. esac
  16674. fi
  16675. version_type=freebsd-$objformat
  16676. case $version_type in
  16677. freebsd-elf*)
  16678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16679. need_version=no
  16680. need_lib_prefix=no
  16681. ;;
  16682. freebsd-*)
  16683. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16684. need_version=yes
  16685. ;;
  16686. esac
  16687. shlibpath_var=LD_LIBRARY_PATH
  16688. case $host_os in
  16689. freebsd2*)
  16690. shlibpath_overrides_runpath=yes
  16691. ;;
  16692. freebsd3.[01]* | freebsdelf3.[01]*)
  16693. shlibpath_overrides_runpath=yes
  16694. hardcode_into_libs=yes
  16695. ;;
  16696. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16697. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16698. shlibpath_overrides_runpath=no
  16699. hardcode_into_libs=yes
  16700. ;;
  16701. *) # from 4.6 on, and DragonFly
  16702. shlibpath_overrides_runpath=yes
  16703. hardcode_into_libs=yes
  16704. ;;
  16705. esac
  16706. ;;
  16707. gnu*)
  16708. version_type=linux
  16709. need_lib_prefix=no
  16710. need_version=no
  16711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16712. soname_spec='${libname}${release}${shared_ext}$major'
  16713. shlibpath_var=LD_LIBRARY_PATH
  16714. hardcode_into_libs=yes
  16715. ;;
  16716. hpux9* | hpux10* | hpux11*)
  16717. # Give a soname corresponding to the major version so that dld.sl refuses to
  16718. # link against other versions.
  16719. version_type=sunos
  16720. need_lib_prefix=no
  16721. need_version=no
  16722. case $host_cpu in
  16723. ia64*)
  16724. shrext_cmds='.so'
  16725. hardcode_into_libs=yes
  16726. dynamic_linker="$host_os dld.so"
  16727. shlibpath_var=LD_LIBRARY_PATH
  16728. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16730. soname_spec='${libname}${release}${shared_ext}$major'
  16731. if test "X$HPUX_IA64_MODE" = X32; then
  16732. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16733. else
  16734. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16735. fi
  16736. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16737. ;;
  16738. hppa*64*)
  16739. shrext_cmds='.sl'
  16740. hardcode_into_libs=yes
  16741. dynamic_linker="$host_os dld.sl"
  16742. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16743. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16745. soname_spec='${libname}${release}${shared_ext}$major'
  16746. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16747. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16748. ;;
  16749. *)
  16750. shrext_cmds='.sl'
  16751. dynamic_linker="$host_os dld.sl"
  16752. shlibpath_var=SHLIB_PATH
  16753. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16755. soname_spec='${libname}${release}${shared_ext}$major'
  16756. ;;
  16757. esac
  16758. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16759. postinstall_cmds='chmod 555 $lib'
  16760. ;;
  16761. interix[3-9]*)
  16762. version_type=linux
  16763. need_lib_prefix=no
  16764. need_version=no
  16765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16766. soname_spec='${libname}${release}${shared_ext}$major'
  16767. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16768. shlibpath_var=LD_LIBRARY_PATH
  16769. shlibpath_overrides_runpath=no
  16770. hardcode_into_libs=yes
  16771. ;;
  16772. irix5* | irix6* | nonstopux*)
  16773. case $host_os in
  16774. nonstopux*) version_type=nonstopux ;;
  16775. *)
  16776. if test "$lt_cv_prog_gnu_ld" = yes; then
  16777. version_type=linux
  16778. else
  16779. version_type=irix
  16780. fi ;;
  16781. esac
  16782. need_lib_prefix=no
  16783. need_version=no
  16784. soname_spec='${libname}${release}${shared_ext}$major'
  16785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16786. case $host_os in
  16787. irix5* | nonstopux*)
  16788. libsuff= shlibsuff=
  16789. ;;
  16790. *)
  16791. case $LD in # libtool.m4 will add one of these switches to LD
  16792. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16793. libsuff= shlibsuff= libmagic=32-bit;;
  16794. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16795. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16796. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16797. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16798. *) libsuff= shlibsuff= libmagic=never-match;;
  16799. esac
  16800. ;;
  16801. esac
  16802. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16803. shlibpath_overrides_runpath=no
  16804. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16805. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16806. hardcode_into_libs=yes
  16807. ;;
  16808. # No shared lib support for Linux oldld, aout, or coff.
  16809. linux*oldld* | linux*aout* | linux*coff*)
  16810. dynamic_linker=no
  16811. ;;
  16812. # This must be Linux ELF.
  16813. linux* | k*bsd*-gnu)
  16814. version_type=linux
  16815. need_lib_prefix=no
  16816. need_version=no
  16817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16818. soname_spec='${libname}${release}${shared_ext}$major'
  16819. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16820. shlibpath_var=LD_LIBRARY_PATH
  16821. shlibpath_overrides_runpath=no
  16822. # This implies no fast_install, which is unacceptable.
  16823. # Some rework will be needed to allow for fast_install
  16824. # before this can be enabled.
  16825. hardcode_into_libs=yes
  16826. # Append ld.so.conf contents to the search path
  16827. if test -f /etc/ld.so.conf; then
  16828. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16829. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16830. fi
  16831. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16832. # powerpc, because MkLinux only supported shared libraries with the
  16833. # GNU dynamic linker. Since this was broken with cross compilers,
  16834. # most powerpc-linux boxes support dynamic linking these days and
  16835. # people can always --disable-shared, the test was removed, and we
  16836. # assume the GNU/Linux dynamic linker is in use.
  16837. dynamic_linker='GNU/Linux ld.so'
  16838. ;;
  16839. netbsd*)
  16840. version_type=sunos
  16841. need_lib_prefix=no
  16842. need_version=no
  16843. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16845. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16846. dynamic_linker='NetBSD (a.out) ld.so'
  16847. else
  16848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16849. soname_spec='${libname}${release}${shared_ext}$major'
  16850. dynamic_linker='NetBSD ld.elf_so'
  16851. fi
  16852. shlibpath_var=LD_LIBRARY_PATH
  16853. shlibpath_overrides_runpath=yes
  16854. hardcode_into_libs=yes
  16855. ;;
  16856. newsos6)
  16857. version_type=linux
  16858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16859. shlibpath_var=LD_LIBRARY_PATH
  16860. shlibpath_overrides_runpath=yes
  16861. ;;
  16862. nto-qnx*)
  16863. version_type=linux
  16864. need_lib_prefix=no
  16865. need_version=no
  16866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16867. soname_spec='${libname}${release}${shared_ext}$major'
  16868. shlibpath_var=LD_LIBRARY_PATH
  16869. shlibpath_overrides_runpath=yes
  16870. ;;
  16871. openbsd*)
  16872. version_type=sunos
  16873. sys_lib_dlsearch_path_spec="/usr/lib"
  16874. need_lib_prefix=no
  16875. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16876. case $host_os in
  16877. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16878. *) need_version=no ;;
  16879. esac
  16880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16881. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16882. shlibpath_var=LD_LIBRARY_PATH
  16883. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16884. case $host_os in
  16885. openbsd2.[89] | openbsd2.[89].*)
  16886. shlibpath_overrides_runpath=no
  16887. ;;
  16888. *)
  16889. shlibpath_overrides_runpath=yes
  16890. ;;
  16891. esac
  16892. else
  16893. shlibpath_overrides_runpath=yes
  16894. fi
  16895. ;;
  16896. os2*)
  16897. libname_spec='$name'
  16898. shrext_cmds=".dll"
  16899. need_lib_prefix=no
  16900. library_names_spec='$libname${shared_ext} $libname.a'
  16901. dynamic_linker='OS/2 ld.exe'
  16902. shlibpath_var=LIBPATH
  16903. ;;
  16904. osf3* | osf4* | osf5*)
  16905. version_type=osf
  16906. need_lib_prefix=no
  16907. need_version=no
  16908. soname_spec='${libname}${release}${shared_ext}$major'
  16909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16910. shlibpath_var=LD_LIBRARY_PATH
  16911. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16912. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16913. ;;
  16914. rdos*)
  16915. dynamic_linker=no
  16916. ;;
  16917. solaris*)
  16918. version_type=linux
  16919. need_lib_prefix=no
  16920. need_version=no
  16921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16922. soname_spec='${libname}${release}${shared_ext}$major'
  16923. shlibpath_var=LD_LIBRARY_PATH
  16924. shlibpath_overrides_runpath=yes
  16925. hardcode_into_libs=yes
  16926. # ldd complains unless libraries are executable
  16927. postinstall_cmds='chmod +x $lib'
  16928. ;;
  16929. sunos4*)
  16930. version_type=sunos
  16931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16932. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16933. shlibpath_var=LD_LIBRARY_PATH
  16934. shlibpath_overrides_runpath=yes
  16935. if test "$with_gnu_ld" = yes; then
  16936. need_lib_prefix=no
  16937. fi
  16938. need_version=yes
  16939. ;;
  16940. sysv4 | sysv4.3*)
  16941. version_type=linux
  16942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16943. soname_spec='${libname}${release}${shared_ext}$major'
  16944. shlibpath_var=LD_LIBRARY_PATH
  16945. case $host_vendor in
  16946. sni)
  16947. shlibpath_overrides_runpath=no
  16948. need_lib_prefix=no
  16949. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16950. runpath_var=LD_RUN_PATH
  16951. ;;
  16952. siemens)
  16953. need_lib_prefix=no
  16954. ;;
  16955. motorola)
  16956. need_lib_prefix=no
  16957. need_version=no
  16958. shlibpath_overrides_runpath=no
  16959. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16960. ;;
  16961. esac
  16962. ;;
  16963. sysv4*MP*)
  16964. if test -d /usr/nec ;then
  16965. version_type=linux
  16966. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16967. soname_spec='$libname${shared_ext}.$major'
  16968. shlibpath_var=LD_LIBRARY_PATH
  16969. fi
  16970. ;;
  16971. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16972. version_type=freebsd-elf
  16973. need_lib_prefix=no
  16974. need_version=no
  16975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16976. soname_spec='${libname}${release}${shared_ext}$major'
  16977. shlibpath_var=LD_LIBRARY_PATH
  16978. hardcode_into_libs=yes
  16979. if test "$with_gnu_ld" = yes; then
  16980. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16981. shlibpath_overrides_runpath=no
  16982. else
  16983. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16984. shlibpath_overrides_runpath=yes
  16985. case $host_os in
  16986. sco3.2v5*)
  16987. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16988. ;;
  16989. esac
  16990. fi
  16991. sys_lib_dlsearch_path_spec='/usr/lib'
  16992. ;;
  16993. uts4*)
  16994. version_type=linux
  16995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16996. soname_spec='${libname}${release}${shared_ext}$major'
  16997. shlibpath_var=LD_LIBRARY_PATH
  16998. ;;
  16999. *)
  17000. dynamic_linker=no
  17001. ;;
  17002. esac
  17003. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17004. echo "${ECHO_T}$dynamic_linker" >&6; }
  17005. test "$dynamic_linker" = no && can_build_shared=no
  17006. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  17007. echo $ECHO_N "(cached) $ECHO_C" >&6
  17008. else
  17009. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  17010. fi
  17011. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  17012. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  17013. echo $ECHO_N "(cached) $ECHO_C" >&6
  17014. else
  17015. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  17016. fi
  17017. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  17018. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17019. if test "$GCC" = yes; then
  17020. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17021. fi
  17022. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17023. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  17024. hardcode_action_GCJ=
  17025. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  17026. test -n "$runpath_var_GCJ" || \
  17027. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  17028. # We can hardcode non-existant directories.
  17029. if test "$hardcode_direct_GCJ" != no &&
  17030. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17031. # have to relink, otherwise we might link with an installed library
  17032. # when we should be linking with a yet-to-be-installed one
  17033. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  17034. test "$hardcode_minus_L_GCJ" != no; then
  17035. # Linking always hardcodes the temporary library directory.
  17036. hardcode_action_GCJ=relink
  17037. else
  17038. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17039. hardcode_action_GCJ=immediate
  17040. fi
  17041. else
  17042. # We cannot hardcode anything, or else we can only hardcode existing
  17043. # directories.
  17044. hardcode_action_GCJ=unsupported
  17045. fi
  17046. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  17047. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  17048. if test "$hardcode_action_GCJ" = relink; then
  17049. # Fast installation is not supported
  17050. enable_fast_install=no
  17051. elif test "$shlibpath_overrides_runpath" = yes ||
  17052. test "$enable_shared" = no; then
  17053. # Fast installation is not necessary
  17054. enable_fast_install=needless
  17055. fi
  17056. # The else clause should only fire when bootstrapping the
  17057. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17058. # with your package, and you will get complaints that there are
  17059. # no rules to generate ltmain.sh.
  17060. if test -f "$ltmain"; then
  17061. # See if we are running on zsh, and set the options which allow our commands through
  17062. # without removal of \ escapes.
  17063. if test -n "${ZSH_VERSION+set}" ; then
  17064. setopt NO_GLOB_SUBST
  17065. fi
  17066. # Now quote all the things that may contain metacharacters while being
  17067. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17068. # variables and quote the copies for generation of the libtool script.
  17069. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17070. SED SHELL STRIP \
  17071. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17072. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17073. deplibs_check_method reload_flag reload_cmds need_locks \
  17074. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17075. lt_cv_sys_global_symbol_to_c_name_address \
  17076. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17077. old_postinstall_cmds old_postuninstall_cmds \
  17078. compiler_GCJ \
  17079. CC_GCJ \
  17080. LD_GCJ \
  17081. lt_prog_compiler_wl_GCJ \
  17082. lt_prog_compiler_pic_GCJ \
  17083. lt_prog_compiler_static_GCJ \
  17084. lt_prog_compiler_no_builtin_flag_GCJ \
  17085. export_dynamic_flag_spec_GCJ \
  17086. thread_safe_flag_spec_GCJ \
  17087. whole_archive_flag_spec_GCJ \
  17088. enable_shared_with_static_runtimes_GCJ \
  17089. old_archive_cmds_GCJ \
  17090. old_archive_from_new_cmds_GCJ \
  17091. predep_objects_GCJ \
  17092. postdep_objects_GCJ \
  17093. predeps_GCJ \
  17094. postdeps_GCJ \
  17095. compiler_lib_search_path_GCJ \
  17096. compiler_lib_search_dirs_GCJ \
  17097. archive_cmds_GCJ \
  17098. archive_expsym_cmds_GCJ \
  17099. postinstall_cmds_GCJ \
  17100. postuninstall_cmds_GCJ \
  17101. old_archive_from_expsyms_cmds_GCJ \
  17102. allow_undefined_flag_GCJ \
  17103. no_undefined_flag_GCJ \
  17104. export_symbols_cmds_GCJ \
  17105. hardcode_libdir_flag_spec_GCJ \
  17106. hardcode_libdir_flag_spec_ld_GCJ \
  17107. hardcode_libdir_separator_GCJ \
  17108. hardcode_automatic_GCJ \
  17109. module_cmds_GCJ \
  17110. module_expsym_cmds_GCJ \
  17111. lt_cv_prog_compiler_c_o_GCJ \
  17112. fix_srcfile_path_GCJ \
  17113. exclude_expsyms_GCJ \
  17114. include_expsyms_GCJ; do
  17115. case $var in
  17116. old_archive_cmds_GCJ | \
  17117. old_archive_from_new_cmds_GCJ | \
  17118. archive_cmds_GCJ | \
  17119. archive_expsym_cmds_GCJ | \
  17120. module_cmds_GCJ | \
  17121. module_expsym_cmds_GCJ | \
  17122. old_archive_from_expsyms_cmds_GCJ | \
  17123. export_symbols_cmds_GCJ | \
  17124. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17125. postinstall_cmds | postuninstall_cmds | \
  17126. old_postinstall_cmds | old_postuninstall_cmds | \
  17127. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17128. # Double-quote double-evaled strings.
  17129. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17130. ;;
  17131. *)
  17132. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17133. ;;
  17134. esac
  17135. done
  17136. case $lt_echo in
  17137. *'\$0 --fallback-echo"')
  17138. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17139. ;;
  17140. esac
  17141. cfgfile="$ofile"
  17142. cat <<__EOF__ >> "$cfgfile"
  17143. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17144. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17145. # Shell to use when invoking shell scripts.
  17146. SHELL=$lt_SHELL
  17147. # Whether or not to build shared libraries.
  17148. build_libtool_libs=$enable_shared
  17149. # Whether or not to build static libraries.
  17150. build_old_libs=$enable_static
  17151. # Whether or not to add -lc for building shared libraries.
  17152. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17153. # Whether or not to disallow shared libs when runtime libs are static
  17154. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17155. # Whether or not to optimize for fast installation.
  17156. fast_install=$enable_fast_install
  17157. # The host system.
  17158. host_alias=$host_alias
  17159. host=$host
  17160. host_os=$host_os
  17161. # The build system.
  17162. build_alias=$build_alias
  17163. build=$build
  17164. build_os=$build_os
  17165. # An echo program that does not interpret backslashes.
  17166. echo=$lt_echo
  17167. # The archiver.
  17168. AR=$lt_AR
  17169. AR_FLAGS=$lt_AR_FLAGS
  17170. # A C compiler.
  17171. LTCC=$lt_LTCC
  17172. # LTCC compiler flags.
  17173. LTCFLAGS=$lt_LTCFLAGS
  17174. # A language-specific compiler.
  17175. CC=$lt_compiler_GCJ
  17176. # Is the compiler the GNU C compiler?
  17177. with_gcc=$GCC_GCJ
  17178. # An ERE matcher.
  17179. EGREP=$lt_EGREP
  17180. # The linker used to build libraries.
  17181. LD=$lt_LD_GCJ
  17182. # Whether we need hard or soft links.
  17183. LN_S=$lt_LN_S
  17184. # A BSD-compatible nm program.
  17185. NM=$lt_NM
  17186. # A symbol stripping program
  17187. STRIP=$lt_STRIP
  17188. # Used to examine libraries when file_magic_cmd begins "file"
  17189. MAGIC_CMD=$MAGIC_CMD
  17190. # Used on cygwin: DLL creation program.
  17191. DLLTOOL="$DLLTOOL"
  17192. # Used on cygwin: object dumper.
  17193. OBJDUMP="$OBJDUMP"
  17194. # Used on cygwin: assembler.
  17195. AS="$AS"
  17196. # The name of the directory that contains temporary libtool files.
  17197. objdir=$objdir
  17198. # How to create reloadable object files.
  17199. reload_flag=$lt_reload_flag
  17200. reload_cmds=$lt_reload_cmds
  17201. # How to pass a linker flag through the compiler.
  17202. wl=$lt_lt_prog_compiler_wl_GCJ
  17203. # Object file suffix (normally "o").
  17204. objext="$ac_objext"
  17205. # Old archive suffix (normally "a").
  17206. libext="$libext"
  17207. # Shared library suffix (normally ".so").
  17208. shrext_cmds='$shrext_cmds'
  17209. # Executable file suffix (normally "").
  17210. exeext="$exeext"
  17211. # Additional compiler flags for building library objects.
  17212. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17213. pic_mode=$pic_mode
  17214. # What is the maximum length of a command?
  17215. max_cmd_len=$lt_cv_sys_max_cmd_len
  17216. # Does compiler simultaneously support -c and -o options?
  17217. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17218. # Must we lock files when doing compilation?
  17219. need_locks=$lt_need_locks
  17220. # Do we need the lib prefix for modules?
  17221. need_lib_prefix=$need_lib_prefix
  17222. # Do we need a version for libraries?
  17223. need_version=$need_version
  17224. # Whether dlopen is supported.
  17225. dlopen_support=$enable_dlopen
  17226. # Whether dlopen of programs is supported.
  17227. dlopen_self=$enable_dlopen_self
  17228. # Whether dlopen of statically linked programs is supported.
  17229. dlopen_self_static=$enable_dlopen_self_static
  17230. # Compiler flag to prevent dynamic linking.
  17231. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17232. # Compiler flag to turn off builtin functions.
  17233. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17234. # Compiler flag to allow reflexive dlopens.
  17235. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17236. # Compiler flag to generate shared objects directly from archives.
  17237. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17238. # Compiler flag to generate thread-safe objects.
  17239. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17240. # Library versioning type.
  17241. version_type=$version_type
  17242. # Format of library name prefix.
  17243. libname_spec=$lt_libname_spec
  17244. # List of archive names. First name is the real one, the rest are links.
  17245. # The last name is the one that the linker finds with -lNAME.
  17246. library_names_spec=$lt_library_names_spec
  17247. # The coded name of the library, if different from the real name.
  17248. soname_spec=$lt_soname_spec
  17249. # Commands used to build and install an old-style archive.
  17250. RANLIB=$lt_RANLIB
  17251. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17252. old_postinstall_cmds=$lt_old_postinstall_cmds
  17253. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17254. # Create an old-style archive from a shared archive.
  17255. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17256. # Create a temporary old-style archive to link instead of a shared archive.
  17257. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17258. # Commands used to build and install a shared archive.
  17259. archive_cmds=$lt_archive_cmds_GCJ
  17260. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17261. postinstall_cmds=$lt_postinstall_cmds
  17262. postuninstall_cmds=$lt_postuninstall_cmds
  17263. # Commands used to build a loadable module (assumed same as above if empty)
  17264. module_cmds=$lt_module_cmds_GCJ
  17265. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17266. # Commands to strip libraries.
  17267. old_striplib=$lt_old_striplib
  17268. striplib=$lt_striplib
  17269. # Dependencies to place before the objects being linked to create a
  17270. # shared library.
  17271. predep_objects=$lt_predep_objects_GCJ
  17272. # Dependencies to place after the objects being linked to create a
  17273. # shared library.
  17274. postdep_objects=$lt_postdep_objects_GCJ
  17275. # Dependencies to place before the objects being linked to create a
  17276. # shared library.
  17277. predeps=$lt_predeps_GCJ
  17278. # Dependencies to place after the objects being linked to create a
  17279. # shared library.
  17280. postdeps=$lt_postdeps_GCJ
  17281. # The directories searched by this compiler when creating a shared
  17282. # library
  17283. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  17284. # The library search path used internally by the compiler when linking
  17285. # a shared library.
  17286. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17287. # Method to check whether dependent libraries are shared objects.
  17288. deplibs_check_method=$lt_deplibs_check_method
  17289. # Command to use when deplibs_check_method == file_magic.
  17290. file_magic_cmd=$lt_file_magic_cmd
  17291. # Flag that allows shared libraries with undefined symbols to be built.
  17292. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17293. # Flag that forces no undefined symbols.
  17294. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17295. # Commands used to finish a libtool library installation in a directory.
  17296. finish_cmds=$lt_finish_cmds
  17297. # Same as above, but a single script fragment to be evaled but not shown.
  17298. finish_eval=$lt_finish_eval
  17299. # Take the output of nm and produce a listing of raw symbols and C names.
  17300. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17301. # Transform the output of nm in a proper C declaration
  17302. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17303. # Transform the output of nm in a C name address pair
  17304. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17305. # This is the shared library runtime path variable.
  17306. runpath_var=$runpath_var
  17307. # This is the shared library path variable.
  17308. shlibpath_var=$shlibpath_var
  17309. # Is shlibpath searched before the hard-coded library search path?
  17310. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17311. # How to hardcode a shared library path into an executable.
  17312. hardcode_action=$hardcode_action_GCJ
  17313. # Whether we should hardcode library paths into libraries.
  17314. hardcode_into_libs=$hardcode_into_libs
  17315. # Flag to hardcode \$libdir into a binary during linking.
  17316. # This must work even if \$libdir does not exist.
  17317. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17318. # If ld is used when linking, flag to hardcode \$libdir into
  17319. # a binary during linking. This must work even if \$libdir does
  17320. # not exist.
  17321. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17322. # Whether we need a single -rpath flag with a separated argument.
  17323. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17324. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17325. # resulting binary.
  17326. hardcode_direct=$hardcode_direct_GCJ
  17327. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17328. # resulting binary.
  17329. hardcode_minus_L=$hardcode_minus_L_GCJ
  17330. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17331. # the resulting binary.
  17332. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17333. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17334. # and all subsequent libraries and executables linked against it.
  17335. hardcode_automatic=$hardcode_automatic_GCJ
  17336. # Variables whose values should be saved in libtool wrapper scripts and
  17337. # restored at relink time.
  17338. variables_saved_for_relink="$variables_saved_for_relink"
  17339. # Whether libtool must link a program against all its dependency libraries.
  17340. link_all_deplibs=$link_all_deplibs_GCJ
  17341. # Compile-time system search path for libraries
  17342. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17343. # Run-time system search path for libraries
  17344. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17345. # Fix the shell variable \$srcfile for the compiler.
  17346. fix_srcfile_path=$lt_fix_srcfile_path
  17347. # Set to yes if exported symbols are required.
  17348. always_export_symbols=$always_export_symbols_GCJ
  17349. # The commands to list exported symbols.
  17350. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17351. # The commands to extract the exported symbol list from a shared archive.
  17352. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17353. # Symbols that should not be listed in the preloaded symbols.
  17354. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17355. # Symbols that must always be exported.
  17356. include_expsyms=$lt_include_expsyms_GCJ
  17357. # ### END LIBTOOL TAG CONFIG: $tagname
  17358. __EOF__
  17359. else
  17360. # If there is no Makefile yet, we rely on a make rule to execute
  17361. # `config.status --recheck' to rerun these tests and create the
  17362. # libtool script then.
  17363. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17364. if test -f "$ltmain_in"; then
  17365. test -f Makefile && make "$ltmain"
  17366. fi
  17367. fi
  17368. ac_ext=c
  17369. ac_cpp='$CPP $CPPFLAGS'
  17370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17373. CC="$lt_save_CC"
  17374. else
  17375. tagname=""
  17376. fi
  17377. ;;
  17378. RC)
  17379. # Source file extension for RC test sources.
  17380. ac_ext=rc
  17381. # Object file extension for compiled RC test sources.
  17382. objext=o
  17383. objext_RC=$objext
  17384. # Code to be used in simple compile tests
  17385. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17386. # Code to be used in simple link tests
  17387. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17388. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17389. # If no C compiler was specified, use CC.
  17390. LTCC=${LTCC-"$CC"}
  17391. # If no C compiler flags were specified, use CFLAGS.
  17392. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17393. # Allow CC to be a program name with arguments.
  17394. compiler=$CC
  17395. # save warnings/boilerplate of simple test code
  17396. ac_outfile=conftest.$ac_objext
  17397. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17398. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17399. _lt_compiler_boilerplate=`cat conftest.err`
  17400. $rm conftest*
  17401. ac_outfile=conftest.$ac_objext
  17402. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17403. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17404. _lt_linker_boilerplate=`cat conftest.err`
  17405. $rm -r conftest*
  17406. # Allow CC to be a program name with arguments.
  17407. lt_save_CC="$CC"
  17408. CC=${RC-"windres"}
  17409. compiler=$CC
  17410. compiler_RC=$CC
  17411. for cc_temp in $compiler""; do
  17412. case $cc_temp in
  17413. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17414. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17415. \-*) ;;
  17416. *) break;;
  17417. esac
  17418. done
  17419. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17420. lt_cv_prog_compiler_c_o_RC=yes
  17421. # The else clause should only fire when bootstrapping the
  17422. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17423. # with your package, and you will get complaints that there are
  17424. # no rules to generate ltmain.sh.
  17425. if test -f "$ltmain"; then
  17426. # See if we are running on zsh, and set the options which allow our commands through
  17427. # without removal of \ escapes.
  17428. if test -n "${ZSH_VERSION+set}" ; then
  17429. setopt NO_GLOB_SUBST
  17430. fi
  17431. # Now quote all the things that may contain metacharacters while being
  17432. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17433. # variables and quote the copies for generation of the libtool script.
  17434. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17435. SED SHELL STRIP \
  17436. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17437. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17438. deplibs_check_method reload_flag reload_cmds need_locks \
  17439. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17440. lt_cv_sys_global_symbol_to_c_name_address \
  17441. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17442. old_postinstall_cmds old_postuninstall_cmds \
  17443. compiler_RC \
  17444. CC_RC \
  17445. LD_RC \
  17446. lt_prog_compiler_wl_RC \
  17447. lt_prog_compiler_pic_RC \
  17448. lt_prog_compiler_static_RC \
  17449. lt_prog_compiler_no_builtin_flag_RC \
  17450. export_dynamic_flag_spec_RC \
  17451. thread_safe_flag_spec_RC \
  17452. whole_archive_flag_spec_RC \
  17453. enable_shared_with_static_runtimes_RC \
  17454. old_archive_cmds_RC \
  17455. old_archive_from_new_cmds_RC \
  17456. predep_objects_RC \
  17457. postdep_objects_RC \
  17458. predeps_RC \
  17459. postdeps_RC \
  17460. compiler_lib_search_path_RC \
  17461. compiler_lib_search_dirs_RC \
  17462. archive_cmds_RC \
  17463. archive_expsym_cmds_RC \
  17464. postinstall_cmds_RC \
  17465. postuninstall_cmds_RC \
  17466. old_archive_from_expsyms_cmds_RC \
  17467. allow_undefined_flag_RC \
  17468. no_undefined_flag_RC \
  17469. export_symbols_cmds_RC \
  17470. hardcode_libdir_flag_spec_RC \
  17471. hardcode_libdir_flag_spec_ld_RC \
  17472. hardcode_libdir_separator_RC \
  17473. hardcode_automatic_RC \
  17474. module_cmds_RC \
  17475. module_expsym_cmds_RC \
  17476. lt_cv_prog_compiler_c_o_RC \
  17477. fix_srcfile_path_RC \
  17478. exclude_expsyms_RC \
  17479. include_expsyms_RC; do
  17480. case $var in
  17481. old_archive_cmds_RC | \
  17482. old_archive_from_new_cmds_RC | \
  17483. archive_cmds_RC | \
  17484. archive_expsym_cmds_RC | \
  17485. module_cmds_RC | \
  17486. module_expsym_cmds_RC | \
  17487. old_archive_from_expsyms_cmds_RC | \
  17488. export_symbols_cmds_RC | \
  17489. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17490. postinstall_cmds | postuninstall_cmds | \
  17491. old_postinstall_cmds | old_postuninstall_cmds | \
  17492. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17493. # Double-quote double-evaled strings.
  17494. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17495. ;;
  17496. *)
  17497. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17498. ;;
  17499. esac
  17500. done
  17501. case $lt_echo in
  17502. *'\$0 --fallback-echo"')
  17503. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17504. ;;
  17505. esac
  17506. cfgfile="$ofile"
  17507. cat <<__EOF__ >> "$cfgfile"
  17508. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17509. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17510. # Shell to use when invoking shell scripts.
  17511. SHELL=$lt_SHELL
  17512. # Whether or not to build shared libraries.
  17513. build_libtool_libs=$enable_shared
  17514. # Whether or not to build static libraries.
  17515. build_old_libs=$enable_static
  17516. # Whether or not to add -lc for building shared libraries.
  17517. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17518. # Whether or not to disallow shared libs when runtime libs are static
  17519. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17520. # Whether or not to optimize for fast installation.
  17521. fast_install=$enable_fast_install
  17522. # The host system.
  17523. host_alias=$host_alias
  17524. host=$host
  17525. host_os=$host_os
  17526. # The build system.
  17527. build_alias=$build_alias
  17528. build=$build
  17529. build_os=$build_os
  17530. # An echo program that does not interpret backslashes.
  17531. echo=$lt_echo
  17532. # The archiver.
  17533. AR=$lt_AR
  17534. AR_FLAGS=$lt_AR_FLAGS
  17535. # A C compiler.
  17536. LTCC=$lt_LTCC
  17537. # LTCC compiler flags.
  17538. LTCFLAGS=$lt_LTCFLAGS
  17539. # A language-specific compiler.
  17540. CC=$lt_compiler_RC
  17541. # Is the compiler the GNU C compiler?
  17542. with_gcc=$GCC_RC
  17543. # An ERE matcher.
  17544. EGREP=$lt_EGREP
  17545. # The linker used to build libraries.
  17546. LD=$lt_LD_RC
  17547. # Whether we need hard or soft links.
  17548. LN_S=$lt_LN_S
  17549. # A BSD-compatible nm program.
  17550. NM=$lt_NM
  17551. # A symbol stripping program
  17552. STRIP=$lt_STRIP
  17553. # Used to examine libraries when file_magic_cmd begins "file"
  17554. MAGIC_CMD=$MAGIC_CMD
  17555. # Used on cygwin: DLL creation program.
  17556. DLLTOOL="$DLLTOOL"
  17557. # Used on cygwin: object dumper.
  17558. OBJDUMP="$OBJDUMP"
  17559. # Used on cygwin: assembler.
  17560. AS="$AS"
  17561. # The name of the directory that contains temporary libtool files.
  17562. objdir=$objdir
  17563. # How to create reloadable object files.
  17564. reload_flag=$lt_reload_flag
  17565. reload_cmds=$lt_reload_cmds
  17566. # How to pass a linker flag through the compiler.
  17567. wl=$lt_lt_prog_compiler_wl_RC
  17568. # Object file suffix (normally "o").
  17569. objext="$ac_objext"
  17570. # Old archive suffix (normally "a").
  17571. libext="$libext"
  17572. # Shared library suffix (normally ".so").
  17573. shrext_cmds='$shrext_cmds'
  17574. # Executable file suffix (normally "").
  17575. exeext="$exeext"
  17576. # Additional compiler flags for building library objects.
  17577. pic_flag=$lt_lt_prog_compiler_pic_RC
  17578. pic_mode=$pic_mode
  17579. # What is the maximum length of a command?
  17580. max_cmd_len=$lt_cv_sys_max_cmd_len
  17581. # Does compiler simultaneously support -c and -o options?
  17582. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17583. # Must we lock files when doing compilation?
  17584. need_locks=$lt_need_locks
  17585. # Do we need the lib prefix for modules?
  17586. need_lib_prefix=$need_lib_prefix
  17587. # Do we need a version for libraries?
  17588. need_version=$need_version
  17589. # Whether dlopen is supported.
  17590. dlopen_support=$enable_dlopen
  17591. # Whether dlopen of programs is supported.
  17592. dlopen_self=$enable_dlopen_self
  17593. # Whether dlopen of statically linked programs is supported.
  17594. dlopen_self_static=$enable_dlopen_self_static
  17595. # Compiler flag to prevent dynamic linking.
  17596. link_static_flag=$lt_lt_prog_compiler_static_RC
  17597. # Compiler flag to turn off builtin functions.
  17598. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17599. # Compiler flag to allow reflexive dlopens.
  17600. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17601. # Compiler flag to generate shared objects directly from archives.
  17602. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17603. # Compiler flag to generate thread-safe objects.
  17604. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17605. # Library versioning type.
  17606. version_type=$version_type
  17607. # Format of library name prefix.
  17608. libname_spec=$lt_libname_spec
  17609. # List of archive names. First name is the real one, the rest are links.
  17610. # The last name is the one that the linker finds with -lNAME.
  17611. library_names_spec=$lt_library_names_spec
  17612. # The coded name of the library, if different from the real name.
  17613. soname_spec=$lt_soname_spec
  17614. # Commands used to build and install an old-style archive.
  17615. RANLIB=$lt_RANLIB
  17616. old_archive_cmds=$lt_old_archive_cmds_RC
  17617. old_postinstall_cmds=$lt_old_postinstall_cmds
  17618. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17619. # Create an old-style archive from a shared archive.
  17620. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17621. # Create a temporary old-style archive to link instead of a shared archive.
  17622. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17623. # Commands used to build and install a shared archive.
  17624. archive_cmds=$lt_archive_cmds_RC
  17625. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17626. postinstall_cmds=$lt_postinstall_cmds
  17627. postuninstall_cmds=$lt_postuninstall_cmds
  17628. # Commands used to build a loadable module (assumed same as above if empty)
  17629. module_cmds=$lt_module_cmds_RC
  17630. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17631. # Commands to strip libraries.
  17632. old_striplib=$lt_old_striplib
  17633. striplib=$lt_striplib
  17634. # Dependencies to place before the objects being linked to create a
  17635. # shared library.
  17636. predep_objects=$lt_predep_objects_RC
  17637. # Dependencies to place after the objects being linked to create a
  17638. # shared library.
  17639. postdep_objects=$lt_postdep_objects_RC
  17640. # Dependencies to place before the objects being linked to create a
  17641. # shared library.
  17642. predeps=$lt_predeps_RC
  17643. # Dependencies to place after the objects being linked to create a
  17644. # shared library.
  17645. postdeps=$lt_postdeps_RC
  17646. # The directories searched by this compiler when creating a shared
  17647. # library
  17648. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  17649. # The library search path used internally by the compiler when linking
  17650. # a shared library.
  17651. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17652. # Method to check whether dependent libraries are shared objects.
  17653. deplibs_check_method=$lt_deplibs_check_method
  17654. # Command to use when deplibs_check_method == file_magic.
  17655. file_magic_cmd=$lt_file_magic_cmd
  17656. # Flag that allows shared libraries with undefined symbols to be built.
  17657. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17658. # Flag that forces no undefined symbols.
  17659. no_undefined_flag=$lt_no_undefined_flag_RC
  17660. # Commands used to finish a libtool library installation in a directory.
  17661. finish_cmds=$lt_finish_cmds
  17662. # Same as above, but a single script fragment to be evaled but not shown.
  17663. finish_eval=$lt_finish_eval
  17664. # Take the output of nm and produce a listing of raw symbols and C names.
  17665. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17666. # Transform the output of nm in a proper C declaration
  17667. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17668. # Transform the output of nm in a C name address pair
  17669. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17670. # This is the shared library runtime path variable.
  17671. runpath_var=$runpath_var
  17672. # This is the shared library path variable.
  17673. shlibpath_var=$shlibpath_var
  17674. # Is shlibpath searched before the hard-coded library search path?
  17675. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17676. # How to hardcode a shared library path into an executable.
  17677. hardcode_action=$hardcode_action_RC
  17678. # Whether we should hardcode library paths into libraries.
  17679. hardcode_into_libs=$hardcode_into_libs
  17680. # Flag to hardcode \$libdir into a binary during linking.
  17681. # This must work even if \$libdir does not exist.
  17682. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17683. # If ld is used when linking, flag to hardcode \$libdir into
  17684. # a binary during linking. This must work even if \$libdir does
  17685. # not exist.
  17686. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17687. # Whether we need a single -rpath flag with a separated argument.
  17688. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17689. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17690. # resulting binary.
  17691. hardcode_direct=$hardcode_direct_RC
  17692. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17693. # resulting binary.
  17694. hardcode_minus_L=$hardcode_minus_L_RC
  17695. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17696. # the resulting binary.
  17697. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17698. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17699. # and all subsequent libraries and executables linked against it.
  17700. hardcode_automatic=$hardcode_automatic_RC
  17701. # Variables whose values should be saved in libtool wrapper scripts and
  17702. # restored at relink time.
  17703. variables_saved_for_relink="$variables_saved_for_relink"
  17704. # Whether libtool must link a program against all its dependency libraries.
  17705. link_all_deplibs=$link_all_deplibs_RC
  17706. # Compile-time system search path for libraries
  17707. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17708. # Run-time system search path for libraries
  17709. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17710. # Fix the shell variable \$srcfile for the compiler.
  17711. fix_srcfile_path=$lt_fix_srcfile_path
  17712. # Set to yes if exported symbols are required.
  17713. always_export_symbols=$always_export_symbols_RC
  17714. # The commands to list exported symbols.
  17715. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17716. # The commands to extract the exported symbol list from a shared archive.
  17717. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17718. # Symbols that should not be listed in the preloaded symbols.
  17719. exclude_expsyms=$lt_exclude_expsyms_RC
  17720. # Symbols that must always be exported.
  17721. include_expsyms=$lt_include_expsyms_RC
  17722. # ### END LIBTOOL TAG CONFIG: $tagname
  17723. __EOF__
  17724. else
  17725. # If there is no Makefile yet, we rely on a make rule to execute
  17726. # `config.status --recheck' to rerun these tests and create the
  17727. # libtool script then.
  17728. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17729. if test -f "$ltmain_in"; then
  17730. test -f Makefile && make "$ltmain"
  17731. fi
  17732. fi
  17733. ac_ext=c
  17734. ac_cpp='$CPP $CPPFLAGS'
  17735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17738. CC="$lt_save_CC"
  17739. ;;
  17740. *)
  17741. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17742. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17743. { (exit 1); exit 1; }; }
  17744. ;;
  17745. esac
  17746. # Append the new tag name to the list of available tags.
  17747. if test -n "$tagname" ; then
  17748. available_tags="$available_tags $tagname"
  17749. fi
  17750. fi
  17751. done
  17752. IFS="$lt_save_ifs"
  17753. # Now substitute the updated list of available tags.
  17754. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17755. mv "${ofile}T" "$ofile"
  17756. chmod +x "$ofile"
  17757. else
  17758. rm -f "${ofile}T"
  17759. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17760. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17761. { (exit 1); exit 1; }; }
  17762. fi
  17763. fi
  17764. # This can be used to rebuild libtool when needed
  17765. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17766. # Always use our own libtool.
  17767. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17768. # Prevent multiple expansion
  17769. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17770. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17771. if test "${ac_cv_header_stdc+set}" = set; then
  17772. echo $ECHO_N "(cached) $ECHO_C" >&6
  17773. else
  17774. cat >conftest.$ac_ext <<_ACEOF
  17775. /* confdefs.h. */
  17776. _ACEOF
  17777. cat confdefs.h >>conftest.$ac_ext
  17778. cat >>conftest.$ac_ext <<_ACEOF
  17779. /* end confdefs.h. */
  17780. #include <stdlib.h>
  17781. #include <stdarg.h>
  17782. #include <string.h>
  17783. #include <float.h>
  17784. int
  17785. main ()
  17786. {
  17787. ;
  17788. return 0;
  17789. }
  17790. _ACEOF
  17791. rm -f conftest.$ac_objext
  17792. if { (ac_try="$ac_compile"
  17793. case "(($ac_try" in
  17794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17795. *) ac_try_echo=$ac_try;;
  17796. esac
  17797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17798. (eval "$ac_compile") 2>conftest.er1
  17799. ac_status=$?
  17800. grep -v '^ *+' conftest.er1 >conftest.err
  17801. rm -f conftest.er1
  17802. cat conftest.err >&5
  17803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17804. (exit $ac_status); } && {
  17805. test -z "$ac_c_werror_flag" ||
  17806. test ! -s conftest.err
  17807. } && test -s conftest.$ac_objext; then
  17808. ac_cv_header_stdc=yes
  17809. else
  17810. echo "$as_me: failed program was:" >&5
  17811. sed 's/^/| /' conftest.$ac_ext >&5
  17812. ac_cv_header_stdc=no
  17813. fi
  17814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17815. if test $ac_cv_header_stdc = yes; then
  17816. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17817. cat >conftest.$ac_ext <<_ACEOF
  17818. /* confdefs.h. */
  17819. _ACEOF
  17820. cat confdefs.h >>conftest.$ac_ext
  17821. cat >>conftest.$ac_ext <<_ACEOF
  17822. /* end confdefs.h. */
  17823. #include <string.h>
  17824. _ACEOF
  17825. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17826. $EGREP "memchr" >/dev/null 2>&1; then
  17827. :
  17828. else
  17829. ac_cv_header_stdc=no
  17830. fi
  17831. rm -f conftest*
  17832. fi
  17833. if test $ac_cv_header_stdc = yes; then
  17834. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17835. cat >conftest.$ac_ext <<_ACEOF
  17836. /* confdefs.h. */
  17837. _ACEOF
  17838. cat confdefs.h >>conftest.$ac_ext
  17839. cat >>conftest.$ac_ext <<_ACEOF
  17840. /* end confdefs.h. */
  17841. #include <stdlib.h>
  17842. _ACEOF
  17843. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17844. $EGREP "free" >/dev/null 2>&1; then
  17845. :
  17846. else
  17847. ac_cv_header_stdc=no
  17848. fi
  17849. rm -f conftest*
  17850. fi
  17851. if test $ac_cv_header_stdc = yes; then
  17852. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17853. if test "$cross_compiling" = yes; then
  17854. :
  17855. else
  17856. cat >conftest.$ac_ext <<_ACEOF
  17857. /* confdefs.h. */
  17858. _ACEOF
  17859. cat confdefs.h >>conftest.$ac_ext
  17860. cat >>conftest.$ac_ext <<_ACEOF
  17861. /* end confdefs.h. */
  17862. #include <ctype.h>
  17863. #include <stdlib.h>
  17864. #if ((' ' & 0x0FF) == 0x020)
  17865. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17866. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17867. #else
  17868. # define ISLOWER(c) \
  17869. (('a' <= (c) && (c) <= 'i') \
  17870. || ('j' <= (c) && (c) <= 'r') \
  17871. || ('s' <= (c) && (c) <= 'z'))
  17872. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17873. #endif
  17874. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17875. int
  17876. main ()
  17877. {
  17878. int i;
  17879. for (i = 0; i < 256; i++)
  17880. if (XOR (islower (i), ISLOWER (i))
  17881. || toupper (i) != TOUPPER (i))
  17882. return 2;
  17883. return 0;
  17884. }
  17885. _ACEOF
  17886. rm -f conftest$ac_exeext
  17887. if { (ac_try="$ac_link"
  17888. case "(($ac_try" in
  17889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17890. *) ac_try_echo=$ac_try;;
  17891. esac
  17892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17893. (eval "$ac_link") 2>&5
  17894. ac_status=$?
  17895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17896. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17897. { (case "(($ac_try" in
  17898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17899. *) ac_try_echo=$ac_try;;
  17900. esac
  17901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17902. (eval "$ac_try") 2>&5
  17903. ac_status=$?
  17904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17905. (exit $ac_status); }; }; then
  17906. :
  17907. else
  17908. echo "$as_me: program exited with status $ac_status" >&5
  17909. echo "$as_me: failed program was:" >&5
  17910. sed 's/^/| /' conftest.$ac_ext >&5
  17911. ( exit $ac_status )
  17912. ac_cv_header_stdc=no
  17913. fi
  17914. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17915. fi
  17916. fi
  17917. fi
  17918. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17919. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  17920. if test $ac_cv_header_stdc = yes; then
  17921. cat >>confdefs.h <<\_ACEOF
  17922. #define STDC_HEADERS 1
  17923. _ACEOF
  17924. fi
  17925. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  17926. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  17927. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  17928. echo $ECHO_N "(cached) $ECHO_C" >&6
  17929. else
  17930. cat >conftest.$ac_ext <<_ACEOF
  17931. /* confdefs.h. */
  17932. _ACEOF
  17933. cat confdefs.h >>conftest.$ac_ext
  17934. cat >>conftest.$ac_ext <<_ACEOF
  17935. /* end confdefs.h. */
  17936. #include <sys/types.h>
  17937. int
  17938. main ()
  17939. {
  17940. return makedev(0, 0);
  17941. ;
  17942. return 0;
  17943. }
  17944. _ACEOF
  17945. rm -f conftest.$ac_objext conftest$ac_exeext
  17946. if { (ac_try="$ac_link"
  17947. case "(($ac_try" in
  17948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17949. *) ac_try_echo=$ac_try;;
  17950. esac
  17951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17952. (eval "$ac_link") 2>conftest.er1
  17953. ac_status=$?
  17954. grep -v '^ *+' conftest.er1 >conftest.err
  17955. rm -f conftest.er1
  17956. cat conftest.err >&5
  17957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17958. (exit $ac_status); } && {
  17959. test -z "$ac_c_werror_flag" ||
  17960. test ! -s conftest.err
  17961. } && test -s conftest$ac_exeext &&
  17962. $as_test_x conftest$ac_exeext; then
  17963. ac_cv_header_sys_types_h_makedev=yes
  17964. else
  17965. echo "$as_me: failed program was:" >&5
  17966. sed 's/^/| /' conftest.$ac_ext >&5
  17967. ac_cv_header_sys_types_h_makedev=no
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17970. conftest$ac_exeext conftest.$ac_ext
  17971. fi
  17972. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  17973. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  17974. if test $ac_cv_header_sys_types_h_makedev = no; then
  17975. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  17976. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  17977. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  17978. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  17979. echo $ECHO_N "(cached) $ECHO_C" >&6
  17980. fi
  17981. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  17982. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  17983. else
  17984. # Is the header compilable?
  17985. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  17986. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  17987. cat >conftest.$ac_ext <<_ACEOF
  17988. /* confdefs.h. */
  17989. _ACEOF
  17990. cat confdefs.h >>conftest.$ac_ext
  17991. cat >>conftest.$ac_ext <<_ACEOF
  17992. /* end confdefs.h. */
  17993. $ac_includes_default
  17994. #include <sys/mkdev.h>
  17995. _ACEOF
  17996. rm -f conftest.$ac_objext
  17997. if { (ac_try="$ac_compile"
  17998. case "(($ac_try" in
  17999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18000. *) ac_try_echo=$ac_try;;
  18001. esac
  18002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18003. (eval "$ac_compile") 2>conftest.er1
  18004. ac_status=$?
  18005. grep -v '^ *+' conftest.er1 >conftest.err
  18006. rm -f conftest.er1
  18007. cat conftest.err >&5
  18008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18009. (exit $ac_status); } && {
  18010. test -z "$ac_c_werror_flag" ||
  18011. test ! -s conftest.err
  18012. } && test -s conftest.$ac_objext; then
  18013. ac_header_compiler=yes
  18014. else
  18015. echo "$as_me: failed program was:" >&5
  18016. sed 's/^/| /' conftest.$ac_ext >&5
  18017. ac_header_compiler=no
  18018. fi
  18019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18020. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18021. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18022. # Is the header present?
  18023. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18024. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  18025. cat >conftest.$ac_ext <<_ACEOF
  18026. /* confdefs.h. */
  18027. _ACEOF
  18028. cat confdefs.h >>conftest.$ac_ext
  18029. cat >>conftest.$ac_ext <<_ACEOF
  18030. /* end confdefs.h. */
  18031. #include <sys/mkdev.h>
  18032. _ACEOF
  18033. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18034. case "(($ac_try" in
  18035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18036. *) ac_try_echo=$ac_try;;
  18037. esac
  18038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18039. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18040. ac_status=$?
  18041. grep -v '^ *+' conftest.er1 >conftest.err
  18042. rm -f conftest.er1
  18043. cat conftest.err >&5
  18044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18045. (exit $ac_status); } >/dev/null && {
  18046. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18047. test ! -s conftest.err
  18048. }; then
  18049. ac_header_preproc=yes
  18050. else
  18051. echo "$as_me: failed program was:" >&5
  18052. sed 's/^/| /' conftest.$ac_ext >&5
  18053. ac_header_preproc=no
  18054. fi
  18055. rm -f conftest.err conftest.$ac_ext
  18056. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18057. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18058. # So? What about this header?
  18059. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18060. yes:no: )
  18061. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18062. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18063. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18064. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18065. ac_header_preproc=yes
  18066. ;;
  18067. no:yes:* )
  18068. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18069. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18070. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18071. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18072. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18073. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18074. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18075. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18076. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18077. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18078. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18079. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18080. ( cat <<\_ASBOX
  18081. ## ---------------------------------- ##
  18082. ## Report this to christos@astron.com ##
  18083. ## ---------------------------------- ##
  18084. _ASBOX
  18085. ) | sed "s/^/$as_me: WARNING: /" >&2
  18086. ;;
  18087. esac
  18088. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18089. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  18090. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18091. echo $ECHO_N "(cached) $ECHO_C" >&6
  18092. else
  18093. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18094. fi
  18095. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18096. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  18097. fi
  18098. if test $ac_cv_header_sys_mkdev_h = yes; then
  18099. cat >>confdefs.h <<\_ACEOF
  18100. #define MAJOR_IN_MKDEV 1
  18101. _ACEOF
  18102. fi
  18103. if test $ac_cv_header_sys_mkdev_h = no; then
  18104. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18105. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18106. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18107. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18108. echo $ECHO_N "(cached) $ECHO_C" >&6
  18109. fi
  18110. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18111. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18112. else
  18113. # Is the header compilable?
  18114. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18115. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  18116. cat >conftest.$ac_ext <<_ACEOF
  18117. /* confdefs.h. */
  18118. _ACEOF
  18119. cat confdefs.h >>conftest.$ac_ext
  18120. cat >>conftest.$ac_ext <<_ACEOF
  18121. /* end confdefs.h. */
  18122. $ac_includes_default
  18123. #include <sys/sysmacros.h>
  18124. _ACEOF
  18125. rm -f conftest.$ac_objext
  18126. if { (ac_try="$ac_compile"
  18127. case "(($ac_try" in
  18128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18129. *) ac_try_echo=$ac_try;;
  18130. esac
  18131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18132. (eval "$ac_compile") 2>conftest.er1
  18133. ac_status=$?
  18134. grep -v '^ *+' conftest.er1 >conftest.err
  18135. rm -f conftest.er1
  18136. cat conftest.err >&5
  18137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18138. (exit $ac_status); } && {
  18139. test -z "$ac_c_werror_flag" ||
  18140. test ! -s conftest.err
  18141. } && test -s conftest.$ac_objext; then
  18142. ac_header_compiler=yes
  18143. else
  18144. echo "$as_me: failed program was:" >&5
  18145. sed 's/^/| /' conftest.$ac_ext >&5
  18146. ac_header_compiler=no
  18147. fi
  18148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18149. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18150. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18151. # Is the header present?
  18152. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18153. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  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 <sys/sysmacros.h>
  18161. _ACEOF
  18162. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18163. case "(($ac_try" in
  18164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18165. *) ac_try_echo=$ac_try;;
  18166. esac
  18167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18168. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18169. ac_status=$?
  18170. grep -v '^ *+' conftest.er1 >conftest.err
  18171. rm -f conftest.er1
  18172. cat conftest.err >&5
  18173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18174. (exit $ac_status); } >/dev/null && {
  18175. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18176. test ! -s conftest.err
  18177. }; then
  18178. ac_header_preproc=yes
  18179. else
  18180. echo "$as_me: failed program was:" >&5
  18181. sed 's/^/| /' conftest.$ac_ext >&5
  18182. ac_header_preproc=no
  18183. fi
  18184. rm -f conftest.err conftest.$ac_ext
  18185. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18186. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18187. # So? What about this header?
  18188. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18189. yes:no: )
  18190. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18191. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18192. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18193. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18194. ac_header_preproc=yes
  18195. ;;
  18196. no:yes:* )
  18197. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18198. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18199. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18200. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18201. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18202. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18203. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18204. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18205. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18206. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18207. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18208. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18209. ( cat <<\_ASBOX
  18210. ## ---------------------------------- ##
  18211. ## Report this to christos@astron.com ##
  18212. ## ---------------------------------- ##
  18213. _ASBOX
  18214. ) | sed "s/^/$as_me: WARNING: /" >&2
  18215. ;;
  18216. esac
  18217. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18218. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  18219. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18220. echo $ECHO_N "(cached) $ECHO_C" >&6
  18221. else
  18222. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18223. fi
  18224. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18225. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  18226. fi
  18227. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18228. cat >>confdefs.h <<\_ACEOF
  18229. #define MAJOR_IN_SYSMACROS 1
  18230. _ACEOF
  18231. fi
  18232. fi
  18233. fi
  18234. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18235. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  18236. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18237. echo $ECHO_N "(cached) $ECHO_C" >&6
  18238. else
  18239. cat >conftest.$ac_ext <<_ACEOF
  18240. /* confdefs.h. */
  18241. _ACEOF
  18242. cat confdefs.h >>conftest.$ac_ext
  18243. cat >>conftest.$ac_ext <<_ACEOF
  18244. /* end confdefs.h. */
  18245. #include <sys/types.h>
  18246. #include <sys/wait.h>
  18247. #ifndef WEXITSTATUS
  18248. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18249. #endif
  18250. #ifndef WIFEXITED
  18251. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18252. #endif
  18253. int
  18254. main ()
  18255. {
  18256. int s;
  18257. wait (&s);
  18258. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18259. ;
  18260. return 0;
  18261. }
  18262. _ACEOF
  18263. rm -f conftest.$ac_objext
  18264. if { (ac_try="$ac_compile"
  18265. case "(($ac_try" in
  18266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18267. *) ac_try_echo=$ac_try;;
  18268. esac
  18269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18270. (eval "$ac_compile") 2>conftest.er1
  18271. ac_status=$?
  18272. grep -v '^ *+' conftest.er1 >conftest.err
  18273. rm -f conftest.er1
  18274. cat conftest.err >&5
  18275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18276. (exit $ac_status); } && {
  18277. test -z "$ac_c_werror_flag" ||
  18278. test ! -s conftest.err
  18279. } && test -s conftest.$ac_objext; then
  18280. ac_cv_header_sys_wait_h=yes
  18281. else
  18282. echo "$as_me: failed program was:" >&5
  18283. sed 's/^/| /' conftest.$ac_ext >&5
  18284. ac_cv_header_sys_wait_h=no
  18285. fi
  18286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18287. fi
  18288. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18289. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  18290. if test $ac_cv_header_sys_wait_h = yes; then
  18291. cat >>confdefs.h <<\_ACEOF
  18292. #define HAVE_SYS_WAIT_H 1
  18293. _ACEOF
  18294. fi
  18295. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  18296. do
  18297. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18298. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18299. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18300. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18301. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18302. echo $ECHO_N "(cached) $ECHO_C" >&6
  18303. fi
  18304. ac_res=`eval echo '${'$as_ac_Header'}'`
  18305. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18306. echo "${ECHO_T}$ac_res" >&6; }
  18307. else
  18308. # Is the header compilable?
  18309. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18310. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18311. cat >conftest.$ac_ext <<_ACEOF
  18312. /* confdefs.h. */
  18313. _ACEOF
  18314. cat confdefs.h >>conftest.$ac_ext
  18315. cat >>conftest.$ac_ext <<_ACEOF
  18316. /* end confdefs.h. */
  18317. $ac_includes_default
  18318. #include <$ac_header>
  18319. _ACEOF
  18320. rm -f conftest.$ac_objext
  18321. if { (ac_try="$ac_compile"
  18322. case "(($ac_try" in
  18323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18324. *) ac_try_echo=$ac_try;;
  18325. esac
  18326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18327. (eval "$ac_compile") 2>conftest.er1
  18328. ac_status=$?
  18329. grep -v '^ *+' conftest.er1 >conftest.err
  18330. rm -f conftest.er1
  18331. cat conftest.err >&5
  18332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18333. (exit $ac_status); } && {
  18334. test -z "$ac_c_werror_flag" ||
  18335. test ! -s conftest.err
  18336. } && test -s conftest.$ac_objext; then
  18337. ac_header_compiler=yes
  18338. else
  18339. echo "$as_me: failed program was:" >&5
  18340. sed 's/^/| /' conftest.$ac_ext >&5
  18341. ac_header_compiler=no
  18342. fi
  18343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18344. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18345. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18346. # Is the header present?
  18347. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18348. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18349. cat >conftest.$ac_ext <<_ACEOF
  18350. /* confdefs.h. */
  18351. _ACEOF
  18352. cat confdefs.h >>conftest.$ac_ext
  18353. cat >>conftest.$ac_ext <<_ACEOF
  18354. /* end confdefs.h. */
  18355. #include <$ac_header>
  18356. _ACEOF
  18357. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18358. case "(($ac_try" in
  18359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18360. *) ac_try_echo=$ac_try;;
  18361. esac
  18362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18363. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18364. ac_status=$?
  18365. grep -v '^ *+' conftest.er1 >conftest.err
  18366. rm -f conftest.er1
  18367. cat conftest.err >&5
  18368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18369. (exit $ac_status); } >/dev/null && {
  18370. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18371. test ! -s conftest.err
  18372. }; then
  18373. ac_header_preproc=yes
  18374. else
  18375. echo "$as_me: failed program was:" >&5
  18376. sed 's/^/| /' conftest.$ac_ext >&5
  18377. ac_header_preproc=no
  18378. fi
  18379. rm -f conftest.err conftest.$ac_ext
  18380. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18381. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18382. # So? What about this header?
  18383. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18384. yes:no: )
  18385. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18386. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18387. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18388. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18389. ac_header_preproc=yes
  18390. ;;
  18391. no:yes:* )
  18392. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18393. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18394. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18395. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18396. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18397. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18398. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18399. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18400. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18401. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18402. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18403. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18404. ( cat <<\_ASBOX
  18405. ## ---------------------------------- ##
  18406. ## Report this to christos@astron.com ##
  18407. ## ---------------------------------- ##
  18408. _ASBOX
  18409. ) | sed "s/^/$as_me: WARNING: /" >&2
  18410. ;;
  18411. esac
  18412. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18413. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18414. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18415. echo $ECHO_N "(cached) $ECHO_C" >&6
  18416. else
  18417. eval "$as_ac_Header=\$ac_header_preproc"
  18418. fi
  18419. ac_res=`eval echo '${'$as_ac_Header'}'`
  18420. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18421. echo "${ECHO_T}$ac_res" >&6; }
  18422. fi
  18423. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18424. cat >>confdefs.h <<_ACEOF
  18425. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18426. _ACEOF
  18427. fi
  18428. done
  18429. for ac_header in utime.h wchar.h wctype.h limits.h
  18430. do
  18431. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18432. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18433. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18434. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18435. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18436. echo $ECHO_N "(cached) $ECHO_C" >&6
  18437. fi
  18438. ac_res=`eval echo '${'$as_ac_Header'}'`
  18439. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18440. echo "${ECHO_T}$ac_res" >&6; }
  18441. else
  18442. # Is the header compilable?
  18443. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18444. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18445. cat >conftest.$ac_ext <<_ACEOF
  18446. /* confdefs.h. */
  18447. _ACEOF
  18448. cat confdefs.h >>conftest.$ac_ext
  18449. cat >>conftest.$ac_ext <<_ACEOF
  18450. /* end confdefs.h. */
  18451. $ac_includes_default
  18452. #include <$ac_header>
  18453. _ACEOF
  18454. rm -f conftest.$ac_objext
  18455. if { (ac_try="$ac_compile"
  18456. case "(($ac_try" in
  18457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18458. *) ac_try_echo=$ac_try;;
  18459. esac
  18460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18461. (eval "$ac_compile") 2>conftest.er1
  18462. ac_status=$?
  18463. grep -v '^ *+' conftest.er1 >conftest.err
  18464. rm -f conftest.er1
  18465. cat conftest.err >&5
  18466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18467. (exit $ac_status); } && {
  18468. test -z "$ac_c_werror_flag" ||
  18469. test ! -s conftest.err
  18470. } && test -s conftest.$ac_objext; then
  18471. ac_header_compiler=yes
  18472. else
  18473. echo "$as_me: failed program was:" >&5
  18474. sed 's/^/| /' conftest.$ac_ext >&5
  18475. ac_header_compiler=no
  18476. fi
  18477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18478. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18479. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18480. # Is the header present?
  18481. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18482. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18483. cat >conftest.$ac_ext <<_ACEOF
  18484. /* confdefs.h. */
  18485. _ACEOF
  18486. cat confdefs.h >>conftest.$ac_ext
  18487. cat >>conftest.$ac_ext <<_ACEOF
  18488. /* end confdefs.h. */
  18489. #include <$ac_header>
  18490. _ACEOF
  18491. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18492. case "(($ac_try" in
  18493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18494. *) ac_try_echo=$ac_try;;
  18495. esac
  18496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18497. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18498. ac_status=$?
  18499. grep -v '^ *+' conftest.er1 >conftest.err
  18500. rm -f conftest.er1
  18501. cat conftest.err >&5
  18502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18503. (exit $ac_status); } >/dev/null && {
  18504. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18505. test ! -s conftest.err
  18506. }; then
  18507. ac_header_preproc=yes
  18508. else
  18509. echo "$as_me: failed program was:" >&5
  18510. sed 's/^/| /' conftest.$ac_ext >&5
  18511. ac_header_preproc=no
  18512. fi
  18513. rm -f conftest.err conftest.$ac_ext
  18514. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18515. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18516. # So? What about this header?
  18517. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18518. yes:no: )
  18519. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18520. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18521. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18522. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18523. ac_header_preproc=yes
  18524. ;;
  18525. no:yes:* )
  18526. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18527. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18528. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18529. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18530. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18531. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18532. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18533. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18534. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18535. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18536. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18537. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18538. ( cat <<\_ASBOX
  18539. ## ---------------------------------- ##
  18540. ## Report this to christos@astron.com ##
  18541. ## ---------------------------------- ##
  18542. _ASBOX
  18543. ) | sed "s/^/$as_me: WARNING: /" >&2
  18544. ;;
  18545. esac
  18546. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18547. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18548. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18549. echo $ECHO_N "(cached) $ECHO_C" >&6
  18550. else
  18551. eval "$as_ac_Header=\$ac_header_preproc"
  18552. fi
  18553. ac_res=`eval echo '${'$as_ac_Header'}'`
  18554. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18555. echo "${ECHO_T}$ac_res" >&6; }
  18556. fi
  18557. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18558. cat >>confdefs.h <<_ACEOF
  18559. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18560. _ACEOF
  18561. fi
  18562. done
  18563. for ac_header in getopt.h err.h
  18564. do
  18565. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18566. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18567. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18568. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18569. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18570. echo $ECHO_N "(cached) $ECHO_C" >&6
  18571. fi
  18572. ac_res=`eval echo '${'$as_ac_Header'}'`
  18573. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18574. echo "${ECHO_T}$ac_res" >&6; }
  18575. else
  18576. # Is the header compilable?
  18577. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18578. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18579. cat >conftest.$ac_ext <<_ACEOF
  18580. /* confdefs.h. */
  18581. _ACEOF
  18582. cat confdefs.h >>conftest.$ac_ext
  18583. cat >>conftest.$ac_ext <<_ACEOF
  18584. /* end confdefs.h. */
  18585. $ac_includes_default
  18586. #include <$ac_header>
  18587. _ACEOF
  18588. rm -f conftest.$ac_objext
  18589. if { (ac_try="$ac_compile"
  18590. case "(($ac_try" in
  18591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18592. *) ac_try_echo=$ac_try;;
  18593. esac
  18594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18595. (eval "$ac_compile") 2>conftest.er1
  18596. ac_status=$?
  18597. grep -v '^ *+' conftest.er1 >conftest.err
  18598. rm -f conftest.er1
  18599. cat conftest.err >&5
  18600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18601. (exit $ac_status); } && {
  18602. test -z "$ac_c_werror_flag" ||
  18603. test ! -s conftest.err
  18604. } && test -s conftest.$ac_objext; then
  18605. ac_header_compiler=yes
  18606. else
  18607. echo "$as_me: failed program was:" >&5
  18608. sed 's/^/| /' conftest.$ac_ext >&5
  18609. ac_header_compiler=no
  18610. fi
  18611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18612. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18613. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18614. # Is the header present?
  18615. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18616. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18617. cat >conftest.$ac_ext <<_ACEOF
  18618. /* confdefs.h. */
  18619. _ACEOF
  18620. cat confdefs.h >>conftest.$ac_ext
  18621. cat >>conftest.$ac_ext <<_ACEOF
  18622. /* end confdefs.h. */
  18623. #include <$ac_header>
  18624. _ACEOF
  18625. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18626. case "(($ac_try" in
  18627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18628. *) ac_try_echo=$ac_try;;
  18629. esac
  18630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18631. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18632. ac_status=$?
  18633. grep -v '^ *+' conftest.er1 >conftest.err
  18634. rm -f conftest.er1
  18635. cat conftest.err >&5
  18636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18637. (exit $ac_status); } >/dev/null && {
  18638. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18639. test ! -s conftest.err
  18640. }; then
  18641. ac_header_preproc=yes
  18642. else
  18643. echo "$as_me: failed program was:" >&5
  18644. sed 's/^/| /' conftest.$ac_ext >&5
  18645. ac_header_preproc=no
  18646. fi
  18647. rm -f conftest.err conftest.$ac_ext
  18648. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18649. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18650. # So? What about this header?
  18651. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18652. yes:no: )
  18653. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18654. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18655. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18656. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18657. ac_header_preproc=yes
  18658. ;;
  18659. no:yes:* )
  18660. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18661. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18662. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18663. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18664. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18665. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18666. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18667. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18668. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18669. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18670. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18671. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18672. ( cat <<\_ASBOX
  18673. ## ---------------------------------- ##
  18674. ## Report this to christos@astron.com ##
  18675. ## ---------------------------------- ##
  18676. _ASBOX
  18677. ) | sed "s/^/$as_me: WARNING: /" >&2
  18678. ;;
  18679. esac
  18680. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18681. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18683. echo $ECHO_N "(cached) $ECHO_C" >&6
  18684. else
  18685. eval "$as_ac_Header=\$ac_header_preproc"
  18686. fi
  18687. ac_res=`eval echo '${'$as_ac_Header'}'`
  18688. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18689. echo "${ECHO_T}$ac_res" >&6; }
  18690. fi
  18691. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18692. cat >>confdefs.h <<_ACEOF
  18693. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18694. _ACEOF
  18695. fi
  18696. done
  18697. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  18698. do
  18699. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18700. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18701. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18702. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18703. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18704. echo $ECHO_N "(cached) $ECHO_C" >&6
  18705. fi
  18706. ac_res=`eval echo '${'$as_ac_Header'}'`
  18707. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18708. echo "${ECHO_T}$ac_res" >&6; }
  18709. else
  18710. # Is the header compilable?
  18711. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18712. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18713. cat >conftest.$ac_ext <<_ACEOF
  18714. /* confdefs.h. */
  18715. _ACEOF
  18716. cat confdefs.h >>conftest.$ac_ext
  18717. cat >>conftest.$ac_ext <<_ACEOF
  18718. /* end confdefs.h. */
  18719. $ac_includes_default
  18720. #include <$ac_header>
  18721. _ACEOF
  18722. rm -f conftest.$ac_objext
  18723. if { (ac_try="$ac_compile"
  18724. case "(($ac_try" in
  18725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18726. *) ac_try_echo=$ac_try;;
  18727. esac
  18728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18729. (eval "$ac_compile") 2>conftest.er1
  18730. ac_status=$?
  18731. grep -v '^ *+' conftest.er1 >conftest.err
  18732. rm -f conftest.er1
  18733. cat conftest.err >&5
  18734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18735. (exit $ac_status); } && {
  18736. test -z "$ac_c_werror_flag" ||
  18737. test ! -s conftest.err
  18738. } && test -s conftest.$ac_objext; then
  18739. ac_header_compiler=yes
  18740. else
  18741. echo "$as_me: failed program was:" >&5
  18742. sed 's/^/| /' conftest.$ac_ext >&5
  18743. ac_header_compiler=no
  18744. fi
  18745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18746. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18747. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18748. # Is the header present?
  18749. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18750. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18751. cat >conftest.$ac_ext <<_ACEOF
  18752. /* confdefs.h. */
  18753. _ACEOF
  18754. cat confdefs.h >>conftest.$ac_ext
  18755. cat >>conftest.$ac_ext <<_ACEOF
  18756. /* end confdefs.h. */
  18757. #include <$ac_header>
  18758. _ACEOF
  18759. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18760. case "(($ac_try" in
  18761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18762. *) ac_try_echo=$ac_try;;
  18763. esac
  18764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18765. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18766. ac_status=$?
  18767. grep -v '^ *+' conftest.er1 >conftest.err
  18768. rm -f conftest.er1
  18769. cat conftest.err >&5
  18770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18771. (exit $ac_status); } >/dev/null && {
  18772. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18773. test ! -s conftest.err
  18774. }; then
  18775. ac_header_preproc=yes
  18776. else
  18777. echo "$as_me: failed program was:" >&5
  18778. sed 's/^/| /' conftest.$ac_ext >&5
  18779. ac_header_preproc=no
  18780. fi
  18781. rm -f conftest.err conftest.$ac_ext
  18782. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18783. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18784. # So? What about this header?
  18785. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18786. yes:no: )
  18787. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18788. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18789. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18790. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18791. ac_header_preproc=yes
  18792. ;;
  18793. no:yes:* )
  18794. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18795. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18796. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18797. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18798. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18799. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18800. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18801. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18802. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18803. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18804. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18805. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18806. ( cat <<\_ASBOX
  18807. ## ---------------------------------- ##
  18808. ## Report this to christos@astron.com ##
  18809. ## ---------------------------------- ##
  18810. _ASBOX
  18811. ) | sed "s/^/$as_me: WARNING: /" >&2
  18812. ;;
  18813. esac
  18814. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18815. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18817. echo $ECHO_N "(cached) $ECHO_C" >&6
  18818. else
  18819. eval "$as_ac_Header=\$ac_header_preproc"
  18820. fi
  18821. ac_res=`eval echo '${'$as_ac_Header'}'`
  18822. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18823. echo "${ECHO_T}$ac_res" >&6; }
  18824. fi
  18825. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18826. cat >>confdefs.h <<_ACEOF
  18827. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18828. _ACEOF
  18829. fi
  18830. done
  18831. for ac_header in zlib.h
  18832. do
  18833. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18834. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18835. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18836. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18837. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18838. echo $ECHO_N "(cached) $ECHO_C" >&6
  18839. fi
  18840. ac_res=`eval echo '${'$as_ac_Header'}'`
  18841. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18842. echo "${ECHO_T}$ac_res" >&6; }
  18843. else
  18844. # Is the header compilable?
  18845. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18846. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18847. cat >conftest.$ac_ext <<_ACEOF
  18848. /* confdefs.h. */
  18849. _ACEOF
  18850. cat confdefs.h >>conftest.$ac_ext
  18851. cat >>conftest.$ac_ext <<_ACEOF
  18852. /* end confdefs.h. */
  18853. $ac_includes_default
  18854. #include <$ac_header>
  18855. _ACEOF
  18856. rm -f conftest.$ac_objext
  18857. if { (ac_try="$ac_compile"
  18858. case "(($ac_try" in
  18859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18860. *) ac_try_echo=$ac_try;;
  18861. esac
  18862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18863. (eval "$ac_compile") 2>conftest.er1
  18864. ac_status=$?
  18865. grep -v '^ *+' conftest.er1 >conftest.err
  18866. rm -f conftest.er1
  18867. cat conftest.err >&5
  18868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18869. (exit $ac_status); } && {
  18870. test -z "$ac_c_werror_flag" ||
  18871. test ! -s conftest.err
  18872. } && test -s conftest.$ac_objext; then
  18873. ac_header_compiler=yes
  18874. else
  18875. echo "$as_me: failed program was:" >&5
  18876. sed 's/^/| /' conftest.$ac_ext >&5
  18877. ac_header_compiler=no
  18878. fi
  18879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18880. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18881. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18882. # Is the header present?
  18883. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18884. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18885. cat >conftest.$ac_ext <<_ACEOF
  18886. /* confdefs.h. */
  18887. _ACEOF
  18888. cat confdefs.h >>conftest.$ac_ext
  18889. cat >>conftest.$ac_ext <<_ACEOF
  18890. /* end confdefs.h. */
  18891. #include <$ac_header>
  18892. _ACEOF
  18893. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18894. case "(($ac_try" in
  18895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18896. *) ac_try_echo=$ac_try;;
  18897. esac
  18898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18899. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18900. ac_status=$?
  18901. grep -v '^ *+' conftest.er1 >conftest.err
  18902. rm -f conftest.er1
  18903. cat conftest.err >&5
  18904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18905. (exit $ac_status); } >/dev/null && {
  18906. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18907. test ! -s conftest.err
  18908. }; then
  18909. ac_header_preproc=yes
  18910. else
  18911. echo "$as_me: failed program was:" >&5
  18912. sed 's/^/| /' conftest.$ac_ext >&5
  18913. ac_header_preproc=no
  18914. fi
  18915. rm -f conftest.err conftest.$ac_ext
  18916. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18917. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18918. # So? What about this header?
  18919. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18920. yes:no: )
  18921. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18922. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18923. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18924. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18925. ac_header_preproc=yes
  18926. ;;
  18927. no:yes:* )
  18928. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18929. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18930. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18931. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18932. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18933. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18934. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18935. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18937. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18938. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18939. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18940. ( cat <<\_ASBOX
  18941. ## ---------------------------------- ##
  18942. ## Report this to christos@astron.com ##
  18943. ## ---------------------------------- ##
  18944. _ASBOX
  18945. ) | sed "s/^/$as_me: WARNING: /" >&2
  18946. ;;
  18947. esac
  18948. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18949. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18950. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18951. echo $ECHO_N "(cached) $ECHO_C" >&6
  18952. else
  18953. eval "$as_ac_Header=\$ac_header_preproc"
  18954. fi
  18955. ac_res=`eval echo '${'$as_ac_Header'}'`
  18956. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18957. echo "${ECHO_T}$ac_res" >&6; }
  18958. fi
  18959. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18960. cat >>confdefs.h <<_ACEOF
  18961. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18962. _ACEOF
  18963. fi
  18964. done
  18965. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  18966. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  18967. if test "${ac_cv_c_const+set}" = set; then
  18968. echo $ECHO_N "(cached) $ECHO_C" >&6
  18969. else
  18970. cat >conftest.$ac_ext <<_ACEOF
  18971. /* confdefs.h. */
  18972. _ACEOF
  18973. cat confdefs.h >>conftest.$ac_ext
  18974. cat >>conftest.$ac_ext <<_ACEOF
  18975. /* end confdefs.h. */
  18976. int
  18977. main ()
  18978. {
  18979. /* FIXME: Include the comments suggested by Paul. */
  18980. #ifndef __cplusplus
  18981. /* Ultrix mips cc rejects this. */
  18982. typedef int charset[2];
  18983. const charset cs;
  18984. /* SunOS 4.1.1 cc rejects this. */
  18985. char const *const *pcpcc;
  18986. char **ppc;
  18987. /* NEC SVR4.0.2 mips cc rejects this. */
  18988. struct point {int x, y;};
  18989. static struct point const zero = {0,0};
  18990. /* AIX XL C 1.02.0.0 rejects this.
  18991. It does not let you subtract one const X* pointer from another in
  18992. an arm of an if-expression whose if-part is not a constant
  18993. expression */
  18994. const char *g = "string";
  18995. pcpcc = &g + (g ? g-g : 0);
  18996. /* HPUX 7.0 cc rejects these. */
  18997. ++pcpcc;
  18998. ppc = (char**) pcpcc;
  18999. pcpcc = (char const *const *) ppc;
  19000. { /* SCO 3.2v4 cc rejects this. */
  19001. char *t;
  19002. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19003. *t++ = 0;
  19004. if (s) return 0;
  19005. }
  19006. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19007. int x[] = {25, 17};
  19008. const int *foo = &x[0];
  19009. ++foo;
  19010. }
  19011. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19012. typedef const int *iptr;
  19013. iptr p = 0;
  19014. ++p;
  19015. }
  19016. { /* AIX XL C 1.02.0.0 rejects this saying
  19017. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19018. struct s { int j; const int *ap[3]; };
  19019. struct s *b; b->j = 5;
  19020. }
  19021. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19022. const int foo = 10;
  19023. if (!foo) return 0;
  19024. }
  19025. return !cs[0] && !zero.x;
  19026. #endif
  19027. ;
  19028. return 0;
  19029. }
  19030. _ACEOF
  19031. rm -f conftest.$ac_objext
  19032. if { (ac_try="$ac_compile"
  19033. case "(($ac_try" in
  19034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19035. *) ac_try_echo=$ac_try;;
  19036. esac
  19037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19038. (eval "$ac_compile") 2>conftest.er1
  19039. ac_status=$?
  19040. grep -v '^ *+' conftest.er1 >conftest.err
  19041. rm -f conftest.er1
  19042. cat conftest.err >&5
  19043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19044. (exit $ac_status); } && {
  19045. test -z "$ac_c_werror_flag" ||
  19046. test ! -s conftest.err
  19047. } && test -s conftest.$ac_objext; then
  19048. ac_cv_c_const=yes
  19049. else
  19050. echo "$as_me: failed program was:" >&5
  19051. sed 's/^/| /' conftest.$ac_ext >&5
  19052. ac_cv_c_const=no
  19053. fi
  19054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19055. fi
  19056. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19057. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19058. if test $ac_cv_c_const = no; then
  19059. cat >>confdefs.h <<\_ACEOF
  19060. #define const
  19061. _ACEOF
  19062. fi
  19063. { echo "$as_me:$LINENO: checking for off_t" >&5
  19064. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  19065. if test "${ac_cv_type_off_t+set}" = set; then
  19066. echo $ECHO_N "(cached) $ECHO_C" >&6
  19067. else
  19068. cat >conftest.$ac_ext <<_ACEOF
  19069. /* confdefs.h. */
  19070. _ACEOF
  19071. cat confdefs.h >>conftest.$ac_ext
  19072. cat >>conftest.$ac_ext <<_ACEOF
  19073. /* end confdefs.h. */
  19074. $ac_includes_default
  19075. typedef off_t ac__type_new_;
  19076. int
  19077. main ()
  19078. {
  19079. if ((ac__type_new_ *) 0)
  19080. return 0;
  19081. if (sizeof (ac__type_new_))
  19082. return 0;
  19083. ;
  19084. return 0;
  19085. }
  19086. _ACEOF
  19087. rm -f conftest.$ac_objext
  19088. if { (ac_try="$ac_compile"
  19089. case "(($ac_try" in
  19090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19091. *) ac_try_echo=$ac_try;;
  19092. esac
  19093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19094. (eval "$ac_compile") 2>conftest.er1
  19095. ac_status=$?
  19096. grep -v '^ *+' conftest.er1 >conftest.err
  19097. rm -f conftest.er1
  19098. cat conftest.err >&5
  19099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19100. (exit $ac_status); } && {
  19101. test -z "$ac_c_werror_flag" ||
  19102. test ! -s conftest.err
  19103. } && test -s conftest.$ac_objext; then
  19104. ac_cv_type_off_t=yes
  19105. else
  19106. echo "$as_me: failed program was:" >&5
  19107. sed 's/^/| /' conftest.$ac_ext >&5
  19108. ac_cv_type_off_t=no
  19109. fi
  19110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19111. fi
  19112. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  19113. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  19114. if test $ac_cv_type_off_t = yes; then
  19115. :
  19116. else
  19117. cat >>confdefs.h <<_ACEOF
  19118. #define off_t long int
  19119. _ACEOF
  19120. fi
  19121. { echo "$as_me:$LINENO: checking for size_t" >&5
  19122. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19123. if test "${ac_cv_type_size_t+set}" = set; then
  19124. echo $ECHO_N "(cached) $ECHO_C" >&6
  19125. else
  19126. cat >conftest.$ac_ext <<_ACEOF
  19127. /* confdefs.h. */
  19128. _ACEOF
  19129. cat confdefs.h >>conftest.$ac_ext
  19130. cat >>conftest.$ac_ext <<_ACEOF
  19131. /* end confdefs.h. */
  19132. $ac_includes_default
  19133. typedef size_t ac__type_new_;
  19134. int
  19135. main ()
  19136. {
  19137. if ((ac__type_new_ *) 0)
  19138. return 0;
  19139. if (sizeof (ac__type_new_))
  19140. return 0;
  19141. ;
  19142. return 0;
  19143. }
  19144. _ACEOF
  19145. rm -f conftest.$ac_objext
  19146. if { (ac_try="$ac_compile"
  19147. case "(($ac_try" in
  19148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19149. *) ac_try_echo=$ac_try;;
  19150. esac
  19151. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19152. (eval "$ac_compile") 2>conftest.er1
  19153. ac_status=$?
  19154. grep -v '^ *+' conftest.er1 >conftest.err
  19155. rm -f conftest.er1
  19156. cat conftest.err >&5
  19157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19158. (exit $ac_status); } && {
  19159. test -z "$ac_c_werror_flag" ||
  19160. test ! -s conftest.err
  19161. } && test -s conftest.$ac_objext; then
  19162. ac_cv_type_size_t=yes
  19163. else
  19164. echo "$as_me: failed program was:" >&5
  19165. sed 's/^/| /' conftest.$ac_ext >&5
  19166. ac_cv_type_size_t=no
  19167. fi
  19168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19169. fi
  19170. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19171. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19172. if test $ac_cv_type_size_t = yes; then
  19173. :
  19174. else
  19175. cat >>confdefs.h <<_ACEOF
  19176. #define size_t unsigned int
  19177. _ACEOF
  19178. fi
  19179. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  19180. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  19181. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  19182. echo $ECHO_N "(cached) $ECHO_C" >&6
  19183. else
  19184. cat >conftest.$ac_ext <<_ACEOF
  19185. /* confdefs.h. */
  19186. _ACEOF
  19187. cat confdefs.h >>conftest.$ac_ext
  19188. cat >>conftest.$ac_ext <<_ACEOF
  19189. /* end confdefs.h. */
  19190. $ac_includes_default
  19191. int
  19192. main ()
  19193. {
  19194. static struct stat ac_aggr;
  19195. if (ac_aggr.st_rdev)
  19196. return 0;
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. rm -f conftest.$ac_objext
  19202. if { (ac_try="$ac_compile"
  19203. case "(($ac_try" in
  19204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19205. *) ac_try_echo=$ac_try;;
  19206. esac
  19207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19208. (eval "$ac_compile") 2>conftest.er1
  19209. ac_status=$?
  19210. grep -v '^ *+' conftest.er1 >conftest.err
  19211. rm -f conftest.er1
  19212. cat conftest.err >&5
  19213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19214. (exit $ac_status); } && {
  19215. test -z "$ac_c_werror_flag" ||
  19216. test ! -s conftest.err
  19217. } && test -s conftest.$ac_objext; then
  19218. ac_cv_member_struct_stat_st_rdev=yes
  19219. else
  19220. echo "$as_me: failed program was:" >&5
  19221. sed 's/^/| /' conftest.$ac_ext >&5
  19222. cat >conftest.$ac_ext <<_ACEOF
  19223. /* confdefs.h. */
  19224. _ACEOF
  19225. cat confdefs.h >>conftest.$ac_ext
  19226. cat >>conftest.$ac_ext <<_ACEOF
  19227. /* end confdefs.h. */
  19228. $ac_includes_default
  19229. int
  19230. main ()
  19231. {
  19232. static struct stat ac_aggr;
  19233. if (sizeof ac_aggr.st_rdev)
  19234. return 0;
  19235. ;
  19236. return 0;
  19237. }
  19238. _ACEOF
  19239. rm -f conftest.$ac_objext
  19240. if { (ac_try="$ac_compile"
  19241. case "(($ac_try" in
  19242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19243. *) ac_try_echo=$ac_try;;
  19244. esac
  19245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19246. (eval "$ac_compile") 2>conftest.er1
  19247. ac_status=$?
  19248. grep -v '^ *+' conftest.er1 >conftest.err
  19249. rm -f conftest.er1
  19250. cat conftest.err >&5
  19251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19252. (exit $ac_status); } && {
  19253. test -z "$ac_c_werror_flag" ||
  19254. test ! -s conftest.err
  19255. } && test -s conftest.$ac_objext; then
  19256. ac_cv_member_struct_stat_st_rdev=yes
  19257. else
  19258. echo "$as_me: failed program was:" >&5
  19259. sed 's/^/| /' conftest.$ac_ext >&5
  19260. ac_cv_member_struct_stat_st_rdev=no
  19261. fi
  19262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19263. fi
  19264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19265. fi
  19266. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  19267. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  19268. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  19269. cat >>confdefs.h <<_ACEOF
  19270. #define HAVE_STRUCT_STAT_ST_RDEV 1
  19271. _ACEOF
  19272. fi
  19273. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19274. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  19275. if test "${ac_cv_struct_tm+set}" = set; then
  19276. echo $ECHO_N "(cached) $ECHO_C" >&6
  19277. else
  19278. cat >conftest.$ac_ext <<_ACEOF
  19279. /* confdefs.h. */
  19280. _ACEOF
  19281. cat confdefs.h >>conftest.$ac_ext
  19282. cat >>conftest.$ac_ext <<_ACEOF
  19283. /* end confdefs.h. */
  19284. #include <sys/types.h>
  19285. #include <time.h>
  19286. int
  19287. main ()
  19288. {
  19289. struct tm tm;
  19290. int *p = &tm.tm_sec;
  19291. return !p;
  19292. ;
  19293. return 0;
  19294. }
  19295. _ACEOF
  19296. rm -f conftest.$ac_objext
  19297. if { (ac_try="$ac_compile"
  19298. case "(($ac_try" in
  19299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19300. *) ac_try_echo=$ac_try;;
  19301. esac
  19302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19303. (eval "$ac_compile") 2>conftest.er1
  19304. ac_status=$?
  19305. grep -v '^ *+' conftest.er1 >conftest.err
  19306. rm -f conftest.er1
  19307. cat conftest.err >&5
  19308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19309. (exit $ac_status); } && {
  19310. test -z "$ac_c_werror_flag" ||
  19311. test ! -s conftest.err
  19312. } && test -s conftest.$ac_objext; then
  19313. ac_cv_struct_tm=time.h
  19314. else
  19315. echo "$as_me: failed program was:" >&5
  19316. sed 's/^/| /' conftest.$ac_ext >&5
  19317. ac_cv_struct_tm=sys/time.h
  19318. fi
  19319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19320. fi
  19321. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19322. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  19323. if test $ac_cv_struct_tm = sys/time.h; then
  19324. cat >>confdefs.h <<\_ACEOF
  19325. #define TM_IN_SYS_TIME 1
  19326. _ACEOF
  19327. fi
  19328. { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
  19329. echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
  19330. if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
  19331. echo $ECHO_N "(cached) $ECHO_C" >&6
  19332. else
  19333. cat >conftest.$ac_ext <<_ACEOF
  19334. /* confdefs.h. */
  19335. _ACEOF
  19336. cat confdefs.h >>conftest.$ac_ext
  19337. cat >>conftest.$ac_ext <<_ACEOF
  19338. /* end confdefs.h. */
  19339. $ac_includes_default
  19340. int
  19341. main ()
  19342. {
  19343. static struct tm ac_aggr;
  19344. if (ac_aggr.tm_gmtoff)
  19345. return 0;
  19346. ;
  19347. return 0;
  19348. }
  19349. _ACEOF
  19350. rm -f conftest.$ac_objext
  19351. if { (ac_try="$ac_compile"
  19352. case "(($ac_try" in
  19353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19354. *) ac_try_echo=$ac_try;;
  19355. esac
  19356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19357. (eval "$ac_compile") 2>conftest.er1
  19358. ac_status=$?
  19359. grep -v '^ *+' conftest.er1 >conftest.err
  19360. rm -f conftest.er1
  19361. cat conftest.err >&5
  19362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19363. (exit $ac_status); } && {
  19364. test -z "$ac_c_werror_flag" ||
  19365. test ! -s conftest.err
  19366. } && test -s conftest.$ac_objext; then
  19367. ac_cv_member_struct_tm_tm_gmtoff=yes
  19368. else
  19369. echo "$as_me: failed program was:" >&5
  19370. sed 's/^/| /' conftest.$ac_ext >&5
  19371. cat >conftest.$ac_ext <<_ACEOF
  19372. /* confdefs.h. */
  19373. _ACEOF
  19374. cat confdefs.h >>conftest.$ac_ext
  19375. cat >>conftest.$ac_ext <<_ACEOF
  19376. /* end confdefs.h. */
  19377. $ac_includes_default
  19378. int
  19379. main ()
  19380. {
  19381. static struct tm ac_aggr;
  19382. if (sizeof ac_aggr.tm_gmtoff)
  19383. return 0;
  19384. ;
  19385. return 0;
  19386. }
  19387. _ACEOF
  19388. rm -f conftest.$ac_objext
  19389. if { (ac_try="$ac_compile"
  19390. case "(($ac_try" in
  19391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19392. *) ac_try_echo=$ac_try;;
  19393. esac
  19394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19395. (eval "$ac_compile") 2>conftest.er1
  19396. ac_status=$?
  19397. grep -v '^ *+' conftest.er1 >conftest.err
  19398. rm -f conftest.er1
  19399. cat conftest.err >&5
  19400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19401. (exit $ac_status); } && {
  19402. test -z "$ac_c_werror_flag" ||
  19403. test ! -s conftest.err
  19404. } && test -s conftest.$ac_objext; then
  19405. ac_cv_member_struct_tm_tm_gmtoff=yes
  19406. else
  19407. echo "$as_me: failed program was:" >&5
  19408. sed 's/^/| /' conftest.$ac_ext >&5
  19409. ac_cv_member_struct_tm_tm_gmtoff=no
  19410. fi
  19411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19412. fi
  19413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19414. fi
  19415. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
  19416. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
  19417. if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
  19418. cat >>confdefs.h <<_ACEOF
  19419. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  19420. _ACEOF
  19421. fi
  19422. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  19423. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  19424. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  19425. echo $ECHO_N "(cached) $ECHO_C" >&6
  19426. else
  19427. cat >conftest.$ac_ext <<_ACEOF
  19428. /* confdefs.h. */
  19429. _ACEOF
  19430. cat confdefs.h >>conftest.$ac_ext
  19431. cat >>conftest.$ac_ext <<_ACEOF
  19432. /* end confdefs.h. */
  19433. $ac_includes_default
  19434. int
  19435. main ()
  19436. {
  19437. static struct tm ac_aggr;
  19438. if (ac_aggr.tm_zone)
  19439. return 0;
  19440. ;
  19441. return 0;
  19442. }
  19443. _ACEOF
  19444. rm -f conftest.$ac_objext
  19445. if { (ac_try="$ac_compile"
  19446. case "(($ac_try" in
  19447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19448. *) ac_try_echo=$ac_try;;
  19449. esac
  19450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19451. (eval "$ac_compile") 2>conftest.er1
  19452. ac_status=$?
  19453. grep -v '^ *+' conftest.er1 >conftest.err
  19454. rm -f conftest.er1
  19455. cat conftest.err >&5
  19456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19457. (exit $ac_status); } && {
  19458. test -z "$ac_c_werror_flag" ||
  19459. test ! -s conftest.err
  19460. } && test -s conftest.$ac_objext; then
  19461. ac_cv_member_struct_tm_tm_zone=yes
  19462. else
  19463. echo "$as_me: failed program was:" >&5
  19464. sed 's/^/| /' conftest.$ac_ext >&5
  19465. cat >conftest.$ac_ext <<_ACEOF
  19466. /* confdefs.h. */
  19467. _ACEOF
  19468. cat confdefs.h >>conftest.$ac_ext
  19469. cat >>conftest.$ac_ext <<_ACEOF
  19470. /* end confdefs.h. */
  19471. $ac_includes_default
  19472. int
  19473. main ()
  19474. {
  19475. static struct tm ac_aggr;
  19476. if (sizeof ac_aggr.tm_zone)
  19477. return 0;
  19478. ;
  19479. return 0;
  19480. }
  19481. _ACEOF
  19482. rm -f conftest.$ac_objext
  19483. if { (ac_try="$ac_compile"
  19484. case "(($ac_try" in
  19485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19486. *) ac_try_echo=$ac_try;;
  19487. esac
  19488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19489. (eval "$ac_compile") 2>conftest.er1
  19490. ac_status=$?
  19491. grep -v '^ *+' conftest.er1 >conftest.err
  19492. rm -f conftest.er1
  19493. cat conftest.err >&5
  19494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19495. (exit $ac_status); } && {
  19496. test -z "$ac_c_werror_flag" ||
  19497. test ! -s conftest.err
  19498. } && test -s conftest.$ac_objext; then
  19499. ac_cv_member_struct_tm_tm_zone=yes
  19500. else
  19501. echo "$as_me: failed program was:" >&5
  19502. sed 's/^/| /' conftest.$ac_ext >&5
  19503. ac_cv_member_struct_tm_tm_zone=no
  19504. fi
  19505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19506. fi
  19507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19508. fi
  19509. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  19510. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  19511. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  19512. cat >>confdefs.h <<_ACEOF
  19513. #define HAVE_STRUCT_TM_TM_ZONE 1
  19514. _ACEOF
  19515. fi
  19516. { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  19517. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  19518. if test "${ac_cv_struct_tm_zone+set}" = set; then
  19519. echo $ECHO_N "(cached) $ECHO_C" >&6
  19520. else
  19521. cat >conftest.$ac_ext <<_ACEOF
  19522. /* confdefs.h. */
  19523. _ACEOF
  19524. cat confdefs.h >>conftest.$ac_ext
  19525. cat >>conftest.$ac_ext <<_ACEOF
  19526. /* end confdefs.h. */
  19527. #include <sys/types.h>
  19528. #include <$ac_cv_struct_tm>
  19529. int
  19530. main ()
  19531. {
  19532. struct tm tm; tm.tm_zone;
  19533. ;
  19534. return 0;
  19535. }
  19536. _ACEOF
  19537. rm -f conftest.$ac_objext
  19538. if { (ac_try="$ac_compile"
  19539. case "(($ac_try" in
  19540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19541. *) ac_try_echo=$ac_try;;
  19542. esac
  19543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19544. (eval "$ac_compile") 2>conftest.er1
  19545. ac_status=$?
  19546. grep -v '^ *+' conftest.er1 >conftest.err
  19547. rm -f conftest.er1
  19548. cat conftest.err >&5
  19549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19550. (exit $ac_status); } && {
  19551. test -z "$ac_c_werror_flag" ||
  19552. test ! -s conftest.err
  19553. } && test -s conftest.$ac_objext; then
  19554. ac_cv_struct_tm_zone=yes
  19555. else
  19556. echo "$as_me: failed program was:" >&5
  19557. sed 's/^/| /' conftest.$ac_ext >&5
  19558. ac_cv_struct_tm_zone=no
  19559. fi
  19560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19561. fi
  19562. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  19563. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  19564. if test "$ac_cv_struct_tm_zone" = yes; then
  19565. cat >>confdefs.h <<\_ACEOF
  19566. #define HAVE_TM_ZONE 1
  19567. _ACEOF
  19568. fi
  19569. { echo "$as_me:$LINENO: checking for tzname" >&5
  19570. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  19571. if test "${ac_cv_var_tzname+set}" = set; then
  19572. echo $ECHO_N "(cached) $ECHO_C" >&6
  19573. else
  19574. cat >conftest.$ac_ext <<_ACEOF
  19575. /* confdefs.h. */
  19576. _ACEOF
  19577. cat confdefs.h >>conftest.$ac_ext
  19578. cat >>conftest.$ac_ext <<_ACEOF
  19579. /* end confdefs.h. */
  19580. #include <time.h>
  19581. #ifndef tzname /* For SGI. */
  19582. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  19583. #endif
  19584. int
  19585. main ()
  19586. {
  19587. atoi(*tzname);
  19588. ;
  19589. return 0;
  19590. }
  19591. _ACEOF
  19592. rm -f conftest.$ac_objext conftest$ac_exeext
  19593. if { (ac_try="$ac_link"
  19594. case "(($ac_try" in
  19595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19596. *) ac_try_echo=$ac_try;;
  19597. esac
  19598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19599. (eval "$ac_link") 2>conftest.er1
  19600. ac_status=$?
  19601. grep -v '^ *+' conftest.er1 >conftest.err
  19602. rm -f conftest.er1
  19603. cat conftest.err >&5
  19604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19605. (exit $ac_status); } && {
  19606. test -z "$ac_c_werror_flag" ||
  19607. test ! -s conftest.err
  19608. } && test -s conftest$ac_exeext &&
  19609. $as_test_x conftest$ac_exeext; then
  19610. ac_cv_var_tzname=yes
  19611. else
  19612. echo "$as_me: failed program was:" >&5
  19613. sed 's/^/| /' conftest.$ac_ext >&5
  19614. ac_cv_var_tzname=no
  19615. fi
  19616. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19617. conftest$ac_exeext conftest.$ac_ext
  19618. fi
  19619. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  19620. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  19621. if test $ac_cv_var_tzname = yes; then
  19622. cat >>confdefs.h <<\_ACEOF
  19623. #define HAVE_TZNAME 1
  19624. _ACEOF
  19625. fi
  19626. { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  19627. echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  19628. if test "${ac_cv_struct_tm_isdst+set}" = set; then
  19629. echo $ECHO_N "(cached) $ECHO_C" >&6
  19630. else
  19631. cat >conftest.$ac_ext <<_ACEOF
  19632. /* confdefs.h. */
  19633. _ACEOF
  19634. cat confdefs.h >>conftest.$ac_ext
  19635. cat >>conftest.$ac_ext <<_ACEOF
  19636. /* end confdefs.h. */
  19637. #include <sys/types.h>
  19638. #include <$ac_cv_struct_tm>
  19639. int
  19640. main ()
  19641. {
  19642. struct tm tm; tm.tm_isdst;
  19643. ;
  19644. return 0;
  19645. }
  19646. _ACEOF
  19647. rm -f conftest.$ac_objext
  19648. if { (ac_try="$ac_compile"
  19649. case "(($ac_try" in
  19650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19651. *) ac_try_echo=$ac_try;;
  19652. esac
  19653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19654. (eval "$ac_compile") 2>conftest.er1
  19655. ac_status=$?
  19656. grep -v '^ *+' conftest.er1 >conftest.err
  19657. rm -f conftest.er1
  19658. cat conftest.err >&5
  19659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19660. (exit $ac_status); } && {
  19661. test -z "$ac_c_werror_flag" ||
  19662. test ! -s conftest.err
  19663. } && test -s conftest.$ac_objext; then
  19664. ac_cv_struct_tm_isdst=yes
  19665. else
  19666. echo "$as_me: failed program was:" >&5
  19667. sed 's/^/| /' conftest.$ac_ext >&5
  19668. ac_cv_struct_tm_isdst=no
  19669. fi
  19670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19671. fi
  19672. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  19673. echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  19674. if test "$ac_cv_struct_tm_isdst" = yes; then
  19675. cat >>confdefs.h <<\_ACEOF
  19676. #define HAVE_TM_ISDST 1
  19677. _ACEOF
  19678. fi
  19679. { echo "$as_me:$LINENO: checking for daylight" >&5
  19680. echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  19681. if test "${ac_cv_var_daylight+set}" = set; then
  19682. echo $ECHO_N "(cached) $ECHO_C" >&6
  19683. else
  19684. cat >conftest.$ac_ext <<_ACEOF
  19685. /* confdefs.h. */
  19686. _ACEOF
  19687. cat confdefs.h >>conftest.$ac_ext
  19688. cat >>conftest.$ac_ext <<_ACEOF
  19689. /* end confdefs.h. */
  19690. #include <time.h>
  19691. #ifndef daylight /* In case IRIX #defines this, too */
  19692. extern int daylight;
  19693. #endif
  19694. int
  19695. main ()
  19696. {
  19697. atoi(daylight);
  19698. ;
  19699. return 0;
  19700. }
  19701. _ACEOF
  19702. rm -f conftest.$ac_objext conftest$ac_exeext
  19703. if { (ac_try="$ac_link"
  19704. case "(($ac_try" in
  19705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19706. *) ac_try_echo=$ac_try;;
  19707. esac
  19708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19709. (eval "$ac_link") 2>conftest.er1
  19710. ac_status=$?
  19711. grep -v '^ *+' conftest.er1 >conftest.err
  19712. rm -f conftest.er1
  19713. cat conftest.err >&5
  19714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19715. (exit $ac_status); } && {
  19716. test -z "$ac_c_werror_flag" ||
  19717. test ! -s conftest.err
  19718. } && test -s conftest$ac_exeext &&
  19719. $as_test_x conftest$ac_exeext; then
  19720. ac_cv_var_daylight=yes
  19721. else
  19722. echo "$as_me: failed program was:" >&5
  19723. sed 's/^/| /' conftest.$ac_ext >&5
  19724. ac_cv_var_daylight=no
  19725. fi
  19726. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19727. conftest$ac_exeext conftest.$ac_ext
  19728. fi
  19729. { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  19730. echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  19731. if test $ac_cv_var_daylight = yes; then
  19732. cat >>confdefs.h <<\_ACEOF
  19733. #define HAVE_DAYLIGHT 1
  19734. _ACEOF
  19735. fi
  19736. # Check whether --enable-largefile was given.
  19737. if test "${enable_largefile+set}" = set; then
  19738. enableval=$enable_largefile;
  19739. fi
  19740. if test "$enable_largefile" != no; then
  19741. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19742. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  19743. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19744. echo $ECHO_N "(cached) $ECHO_C" >&6
  19745. else
  19746. ac_cv_sys_largefile_CC=no
  19747. if test "$GCC" != yes; then
  19748. ac_save_CC=$CC
  19749. while :; do
  19750. # IRIX 6.2 and later do not support large files by default,
  19751. # so use the C compiler's -n32 option if that helps.
  19752. cat >conftest.$ac_ext <<_ACEOF
  19753. /* confdefs.h. */
  19754. _ACEOF
  19755. cat confdefs.h >>conftest.$ac_ext
  19756. cat >>conftest.$ac_ext <<_ACEOF
  19757. /* end confdefs.h. */
  19758. #include <sys/types.h>
  19759. /* Check that off_t can represent 2**63 - 1 correctly.
  19760. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19761. since some C++ compilers masquerading as C compilers
  19762. incorrectly reject 9223372036854775807. */
  19763. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19764. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19765. && LARGE_OFF_T % 2147483647 == 1)
  19766. ? 1 : -1];
  19767. int
  19768. main ()
  19769. {
  19770. ;
  19771. return 0;
  19772. }
  19773. _ACEOF
  19774. rm -f conftest.$ac_objext
  19775. if { (ac_try="$ac_compile"
  19776. case "(($ac_try" in
  19777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19778. *) ac_try_echo=$ac_try;;
  19779. esac
  19780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19781. (eval "$ac_compile") 2>conftest.er1
  19782. ac_status=$?
  19783. grep -v '^ *+' conftest.er1 >conftest.err
  19784. rm -f conftest.er1
  19785. cat conftest.err >&5
  19786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19787. (exit $ac_status); } && {
  19788. test -z "$ac_c_werror_flag" ||
  19789. test ! -s conftest.err
  19790. } && test -s conftest.$ac_objext; then
  19791. break
  19792. else
  19793. echo "$as_me: failed program was:" >&5
  19794. sed 's/^/| /' conftest.$ac_ext >&5
  19795. fi
  19796. rm -f core conftest.err conftest.$ac_objext
  19797. CC="$CC -n32"
  19798. rm -f conftest.$ac_objext
  19799. if { (ac_try="$ac_compile"
  19800. case "(($ac_try" in
  19801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19802. *) ac_try_echo=$ac_try;;
  19803. esac
  19804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19805. (eval "$ac_compile") 2>conftest.er1
  19806. ac_status=$?
  19807. grep -v '^ *+' conftest.er1 >conftest.err
  19808. rm -f conftest.er1
  19809. cat conftest.err >&5
  19810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19811. (exit $ac_status); } && {
  19812. test -z "$ac_c_werror_flag" ||
  19813. test ! -s conftest.err
  19814. } && test -s conftest.$ac_objext; then
  19815. ac_cv_sys_largefile_CC=' -n32'; break
  19816. else
  19817. echo "$as_me: failed program was:" >&5
  19818. sed 's/^/| /' conftest.$ac_ext >&5
  19819. fi
  19820. rm -f core conftest.err conftest.$ac_objext
  19821. break
  19822. done
  19823. CC=$ac_save_CC
  19824. rm -f conftest.$ac_ext
  19825. fi
  19826. fi
  19827. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19828. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  19829. if test "$ac_cv_sys_largefile_CC" != no; then
  19830. CC=$CC$ac_cv_sys_largefile_CC
  19831. fi
  19832. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19833. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  19834. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19835. echo $ECHO_N "(cached) $ECHO_C" >&6
  19836. else
  19837. while :; do
  19838. cat >conftest.$ac_ext <<_ACEOF
  19839. /* confdefs.h. */
  19840. _ACEOF
  19841. cat confdefs.h >>conftest.$ac_ext
  19842. cat >>conftest.$ac_ext <<_ACEOF
  19843. /* end confdefs.h. */
  19844. #include <sys/types.h>
  19845. /* Check that off_t can represent 2**63 - 1 correctly.
  19846. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19847. since some C++ compilers masquerading as C compilers
  19848. incorrectly reject 9223372036854775807. */
  19849. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19850. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19851. && LARGE_OFF_T % 2147483647 == 1)
  19852. ? 1 : -1];
  19853. int
  19854. main ()
  19855. {
  19856. ;
  19857. return 0;
  19858. }
  19859. _ACEOF
  19860. rm -f conftest.$ac_objext
  19861. if { (ac_try="$ac_compile"
  19862. case "(($ac_try" in
  19863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19864. *) ac_try_echo=$ac_try;;
  19865. esac
  19866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19867. (eval "$ac_compile") 2>conftest.er1
  19868. ac_status=$?
  19869. grep -v '^ *+' conftest.er1 >conftest.err
  19870. rm -f conftest.er1
  19871. cat conftest.err >&5
  19872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19873. (exit $ac_status); } && {
  19874. test -z "$ac_c_werror_flag" ||
  19875. test ! -s conftest.err
  19876. } && test -s conftest.$ac_objext; then
  19877. ac_cv_sys_file_offset_bits=no; break
  19878. else
  19879. echo "$as_me: failed program was:" >&5
  19880. sed 's/^/| /' conftest.$ac_ext >&5
  19881. fi
  19882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19883. cat >conftest.$ac_ext <<_ACEOF
  19884. /* confdefs.h. */
  19885. _ACEOF
  19886. cat confdefs.h >>conftest.$ac_ext
  19887. cat >>conftest.$ac_ext <<_ACEOF
  19888. /* end confdefs.h. */
  19889. #define _FILE_OFFSET_BITS 64
  19890. #include <sys/types.h>
  19891. /* Check that off_t can represent 2**63 - 1 correctly.
  19892. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19893. since some C++ compilers masquerading as C compilers
  19894. incorrectly reject 9223372036854775807. */
  19895. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19896. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19897. && LARGE_OFF_T % 2147483647 == 1)
  19898. ? 1 : -1];
  19899. int
  19900. main ()
  19901. {
  19902. ;
  19903. return 0;
  19904. }
  19905. _ACEOF
  19906. rm -f conftest.$ac_objext
  19907. if { (ac_try="$ac_compile"
  19908. case "(($ac_try" in
  19909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19910. *) ac_try_echo=$ac_try;;
  19911. esac
  19912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19913. (eval "$ac_compile") 2>conftest.er1
  19914. ac_status=$?
  19915. grep -v '^ *+' conftest.er1 >conftest.err
  19916. rm -f conftest.er1
  19917. cat conftest.err >&5
  19918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19919. (exit $ac_status); } && {
  19920. test -z "$ac_c_werror_flag" ||
  19921. test ! -s conftest.err
  19922. } && test -s conftest.$ac_objext; then
  19923. ac_cv_sys_file_offset_bits=64; break
  19924. else
  19925. echo "$as_me: failed program was:" >&5
  19926. sed 's/^/| /' conftest.$ac_ext >&5
  19927. fi
  19928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19929. ac_cv_sys_file_offset_bits=unknown
  19930. break
  19931. done
  19932. fi
  19933. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19934. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  19935. case $ac_cv_sys_file_offset_bits in #(
  19936. no | unknown) ;;
  19937. *)
  19938. cat >>confdefs.h <<_ACEOF
  19939. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19940. _ACEOF
  19941. ;;
  19942. esac
  19943. rm -f conftest*
  19944. if test $ac_cv_sys_file_offset_bits = unknown; then
  19945. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  19946. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  19947. if test "${ac_cv_sys_large_files+set}" = set; then
  19948. echo $ECHO_N "(cached) $ECHO_C" >&6
  19949. else
  19950. while :; do
  19951. cat >conftest.$ac_ext <<_ACEOF
  19952. /* confdefs.h. */
  19953. _ACEOF
  19954. cat confdefs.h >>conftest.$ac_ext
  19955. cat >>conftest.$ac_ext <<_ACEOF
  19956. /* end confdefs.h. */
  19957. #include <sys/types.h>
  19958. /* Check that off_t can represent 2**63 - 1 correctly.
  19959. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19960. since some C++ compilers masquerading as C compilers
  19961. incorrectly reject 9223372036854775807. */
  19962. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19963. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19964. && LARGE_OFF_T % 2147483647 == 1)
  19965. ? 1 : -1];
  19966. int
  19967. main ()
  19968. {
  19969. ;
  19970. return 0;
  19971. }
  19972. _ACEOF
  19973. rm -f conftest.$ac_objext
  19974. if { (ac_try="$ac_compile"
  19975. case "(($ac_try" in
  19976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19977. *) ac_try_echo=$ac_try;;
  19978. esac
  19979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19980. (eval "$ac_compile") 2>conftest.er1
  19981. ac_status=$?
  19982. grep -v '^ *+' conftest.er1 >conftest.err
  19983. rm -f conftest.er1
  19984. cat conftest.err >&5
  19985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19986. (exit $ac_status); } && {
  19987. test -z "$ac_c_werror_flag" ||
  19988. test ! -s conftest.err
  19989. } && test -s conftest.$ac_objext; then
  19990. ac_cv_sys_large_files=no; break
  19991. else
  19992. echo "$as_me: failed program was:" >&5
  19993. sed 's/^/| /' conftest.$ac_ext >&5
  19994. fi
  19995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19996. cat >conftest.$ac_ext <<_ACEOF
  19997. /* confdefs.h. */
  19998. _ACEOF
  19999. cat confdefs.h >>conftest.$ac_ext
  20000. cat >>conftest.$ac_ext <<_ACEOF
  20001. /* end confdefs.h. */
  20002. #define _LARGE_FILES 1
  20003. #include <sys/types.h>
  20004. /* Check that off_t can represent 2**63 - 1 correctly.
  20005. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20006. since some C++ compilers masquerading as C compilers
  20007. incorrectly reject 9223372036854775807. */
  20008. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20009. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20010. && LARGE_OFF_T % 2147483647 == 1)
  20011. ? 1 : -1];
  20012. int
  20013. main ()
  20014. {
  20015. ;
  20016. return 0;
  20017. }
  20018. _ACEOF
  20019. rm -f conftest.$ac_objext
  20020. if { (ac_try="$ac_compile"
  20021. case "(($ac_try" in
  20022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20023. *) ac_try_echo=$ac_try;;
  20024. esac
  20025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20026. (eval "$ac_compile") 2>conftest.er1
  20027. ac_status=$?
  20028. grep -v '^ *+' conftest.er1 >conftest.err
  20029. rm -f conftest.er1
  20030. cat conftest.err >&5
  20031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20032. (exit $ac_status); } && {
  20033. test -z "$ac_c_werror_flag" ||
  20034. test ! -s conftest.err
  20035. } && test -s conftest.$ac_objext; then
  20036. ac_cv_sys_large_files=1; break
  20037. else
  20038. echo "$as_me: failed program was:" >&5
  20039. sed 's/^/| /' conftest.$ac_ext >&5
  20040. fi
  20041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20042. ac_cv_sys_large_files=unknown
  20043. break
  20044. done
  20045. fi
  20046. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20047. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20048. case $ac_cv_sys_large_files in #(
  20049. no | unknown) ;;
  20050. *)
  20051. cat >>confdefs.h <<_ACEOF
  20052. #define _LARGE_FILES $ac_cv_sys_large_files
  20053. _ACEOF
  20054. ;;
  20055. esac
  20056. rm -f conftest*
  20057. fi
  20058. fi
  20059. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20060. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20061. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20062. echo $ECHO_N "(cached) $ECHO_C" >&6
  20063. else
  20064. while :; do
  20065. cat >conftest.$ac_ext <<_ACEOF
  20066. /* confdefs.h. */
  20067. _ACEOF
  20068. cat confdefs.h >>conftest.$ac_ext
  20069. cat >>conftest.$ac_ext <<_ACEOF
  20070. /* end confdefs.h. */
  20071. #include <stdio.h>
  20072. int
  20073. main ()
  20074. {
  20075. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20076. ;
  20077. return 0;
  20078. }
  20079. _ACEOF
  20080. rm -f conftest.$ac_objext conftest$ac_exeext
  20081. if { (ac_try="$ac_link"
  20082. case "(($ac_try" in
  20083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20084. *) ac_try_echo=$ac_try;;
  20085. esac
  20086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20087. (eval "$ac_link") 2>conftest.er1
  20088. ac_status=$?
  20089. grep -v '^ *+' conftest.er1 >conftest.err
  20090. rm -f conftest.er1
  20091. cat conftest.err >&5
  20092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20093. (exit $ac_status); } && {
  20094. test -z "$ac_c_werror_flag" ||
  20095. test ! -s conftest.err
  20096. } && test -s conftest$ac_exeext &&
  20097. $as_test_x conftest$ac_exeext; then
  20098. ac_cv_sys_largefile_source=no; break
  20099. else
  20100. echo "$as_me: failed program was:" >&5
  20101. sed 's/^/| /' conftest.$ac_ext >&5
  20102. fi
  20103. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20104. conftest$ac_exeext conftest.$ac_ext
  20105. cat >conftest.$ac_ext <<_ACEOF
  20106. /* confdefs.h. */
  20107. _ACEOF
  20108. cat confdefs.h >>conftest.$ac_ext
  20109. cat >>conftest.$ac_ext <<_ACEOF
  20110. /* end confdefs.h. */
  20111. #define _LARGEFILE_SOURCE 1
  20112. #include <stdio.h>
  20113. int
  20114. main ()
  20115. {
  20116. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20117. ;
  20118. return 0;
  20119. }
  20120. _ACEOF
  20121. rm -f conftest.$ac_objext conftest$ac_exeext
  20122. if { (ac_try="$ac_link"
  20123. case "(($ac_try" in
  20124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20125. *) ac_try_echo=$ac_try;;
  20126. esac
  20127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20128. (eval "$ac_link") 2>conftest.er1
  20129. ac_status=$?
  20130. grep -v '^ *+' conftest.er1 >conftest.err
  20131. rm -f conftest.er1
  20132. cat conftest.err >&5
  20133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20134. (exit $ac_status); } && {
  20135. test -z "$ac_c_werror_flag" ||
  20136. test ! -s conftest.err
  20137. } && test -s conftest$ac_exeext &&
  20138. $as_test_x conftest$ac_exeext; then
  20139. ac_cv_sys_largefile_source=1; break
  20140. else
  20141. echo "$as_me: failed program was:" >&5
  20142. sed 's/^/| /' conftest.$ac_ext >&5
  20143. fi
  20144. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20145. conftest$ac_exeext conftest.$ac_ext
  20146. ac_cv_sys_largefile_source=unknown
  20147. break
  20148. done
  20149. fi
  20150. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20151. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20152. case $ac_cv_sys_largefile_source in #(
  20153. no | unknown) ;;
  20154. *)
  20155. cat >>confdefs.h <<_ACEOF
  20156. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20157. _ACEOF
  20158. ;;
  20159. esac
  20160. rm -f conftest*
  20161. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20162. # in glibc 2.1.3, but that breaks too many other things.
  20163. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20164. if test $ac_cv_sys_largefile_source != unknown; then
  20165. cat >>confdefs.h <<\_ACEOF
  20166. #define HAVE_FSEEKO 1
  20167. _ACEOF
  20168. fi
  20169. { echo "$as_me:$LINENO: checking for mbstate_t" >&5
  20170. echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  20171. if test "${ac_cv_type_mbstate_t+set}" = set; then
  20172. echo $ECHO_N "(cached) $ECHO_C" >&6
  20173. else
  20174. cat >conftest.$ac_ext <<_ACEOF
  20175. /* confdefs.h. */
  20176. _ACEOF
  20177. cat confdefs.h >>conftest.$ac_ext
  20178. cat >>conftest.$ac_ext <<_ACEOF
  20179. /* end confdefs.h. */
  20180. $ac_includes_default
  20181. # include <wchar.h>
  20182. int
  20183. main ()
  20184. {
  20185. mbstate_t x; return sizeof x;
  20186. ;
  20187. return 0;
  20188. }
  20189. _ACEOF
  20190. rm -f conftest.$ac_objext
  20191. if { (ac_try="$ac_compile"
  20192. case "(($ac_try" in
  20193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20194. *) ac_try_echo=$ac_try;;
  20195. esac
  20196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20197. (eval "$ac_compile") 2>conftest.er1
  20198. ac_status=$?
  20199. grep -v '^ *+' conftest.er1 >conftest.err
  20200. rm -f conftest.er1
  20201. cat conftest.err >&5
  20202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20203. (exit $ac_status); } && {
  20204. test -z "$ac_c_werror_flag" ||
  20205. test ! -s conftest.err
  20206. } && test -s conftest.$ac_objext; then
  20207. ac_cv_type_mbstate_t=yes
  20208. else
  20209. echo "$as_me: failed program was:" >&5
  20210. sed 's/^/| /' conftest.$ac_ext >&5
  20211. ac_cv_type_mbstate_t=no
  20212. fi
  20213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20214. fi
  20215. { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  20216. echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  20217. if test $ac_cv_type_mbstate_t = yes; then
  20218. cat >>confdefs.h <<\_ACEOF
  20219. #define HAVE_MBSTATE_T 1
  20220. _ACEOF
  20221. else
  20222. cat >>confdefs.h <<\_ACEOF
  20223. #define mbstate_t int
  20224. _ACEOF
  20225. fi
  20226. { echo "$as_me:$LINENO: checking for struct option in getopt" >&5
  20227. echo $ECHO_N "checking for struct option in getopt... $ECHO_C" >&6; }
  20228. if test "${ac_cv_struct_option_getopt_h+set}" = set; then
  20229. echo $ECHO_N "(cached) $ECHO_C" >&6
  20230. else
  20231. cat >conftest.$ac_ext <<_ACEOF
  20232. /* confdefs.h. */
  20233. _ACEOF
  20234. cat confdefs.h >>conftest.$ac_ext
  20235. cat >>conftest.$ac_ext <<_ACEOF
  20236. /* end confdefs.h. */
  20237. #include <getopt.h>
  20238. int
  20239. main ()
  20240. {
  20241. struct option op; op.name;
  20242. ;
  20243. return 0;
  20244. }
  20245. _ACEOF
  20246. rm -f conftest.$ac_objext
  20247. if { (ac_try="$ac_compile"
  20248. case "(($ac_try" in
  20249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20250. *) ac_try_echo=$ac_try;;
  20251. esac
  20252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20253. (eval "$ac_compile") 2>conftest.er1
  20254. ac_status=$?
  20255. grep -v '^ *+' conftest.er1 >conftest.err
  20256. rm -f conftest.er1
  20257. cat conftest.err >&5
  20258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20259. (exit $ac_status); } && {
  20260. test -z "$ac_c_werror_flag" ||
  20261. test ! -s conftest.err
  20262. } && test -s conftest.$ac_objext; then
  20263. ac_cv_struct_option_getopt_h=yes
  20264. else
  20265. echo "$as_me: failed program was:" >&5
  20266. sed 's/^/| /' conftest.$ac_ext >&5
  20267. ac_cv_struct_option_getopt_h=no
  20268. fi
  20269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20270. fi
  20271. { echo "$as_me:$LINENO: result: $ac_cv_struct_option_getopt_h" >&5
  20272. echo "${ECHO_T}$ac_cv_struct_option_getopt_h" >&6; }
  20273. if test "$ac_cv_struct_option_getopt_h" = yes; then
  20274. cat >>confdefs.h <<\_ACEOF
  20275. #define HAVE_STRUCT_OPTION 1
  20276. _ACEOF
  20277. fi
  20278. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  20279. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  20280. if test "${ac_cv_type_uint8_t+set}" = set; then
  20281. echo $ECHO_N "(cached) $ECHO_C" >&6
  20282. else
  20283. cat >conftest.$ac_ext <<_ACEOF
  20284. /* confdefs.h. */
  20285. _ACEOF
  20286. cat confdefs.h >>conftest.$ac_ext
  20287. cat >>conftest.$ac_ext <<_ACEOF
  20288. /* end confdefs.h. */
  20289. $ac_includes_default
  20290. typedef uint8_t ac__type_new_;
  20291. int
  20292. main ()
  20293. {
  20294. if ((ac__type_new_ *) 0)
  20295. return 0;
  20296. if (sizeof (ac__type_new_))
  20297. return 0;
  20298. ;
  20299. return 0;
  20300. }
  20301. _ACEOF
  20302. rm -f conftest.$ac_objext
  20303. if { (ac_try="$ac_compile"
  20304. case "(($ac_try" in
  20305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20306. *) ac_try_echo=$ac_try;;
  20307. esac
  20308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20309. (eval "$ac_compile") 2>conftest.er1
  20310. ac_status=$?
  20311. grep -v '^ *+' conftest.er1 >conftest.err
  20312. rm -f conftest.er1
  20313. cat conftest.err >&5
  20314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20315. (exit $ac_status); } && {
  20316. test -z "$ac_c_werror_flag" ||
  20317. test ! -s conftest.err
  20318. } && test -s conftest.$ac_objext; then
  20319. ac_cv_type_uint8_t=yes
  20320. else
  20321. echo "$as_me: failed program was:" >&5
  20322. sed 's/^/| /' conftest.$ac_ext >&5
  20323. ac_cv_type_uint8_t=no
  20324. fi
  20325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20326. fi
  20327. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20328. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  20329. if test $ac_cv_type_uint8_t = yes; then
  20330. cat >>confdefs.h <<_ACEOF
  20331. #define HAVE_UINT8_T 1
  20332. _ACEOF
  20333. fi
  20334. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  20335. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  20336. if test "${ac_cv_type_uint16_t+set}" = set; then
  20337. echo $ECHO_N "(cached) $ECHO_C" >&6
  20338. else
  20339. cat >conftest.$ac_ext <<_ACEOF
  20340. /* confdefs.h. */
  20341. _ACEOF
  20342. cat confdefs.h >>conftest.$ac_ext
  20343. cat >>conftest.$ac_ext <<_ACEOF
  20344. /* end confdefs.h. */
  20345. $ac_includes_default
  20346. typedef uint16_t ac__type_new_;
  20347. int
  20348. main ()
  20349. {
  20350. if ((ac__type_new_ *) 0)
  20351. return 0;
  20352. if (sizeof (ac__type_new_))
  20353. return 0;
  20354. ;
  20355. return 0;
  20356. }
  20357. _ACEOF
  20358. rm -f conftest.$ac_objext
  20359. if { (ac_try="$ac_compile"
  20360. case "(($ac_try" in
  20361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20362. *) ac_try_echo=$ac_try;;
  20363. esac
  20364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20365. (eval "$ac_compile") 2>conftest.er1
  20366. ac_status=$?
  20367. grep -v '^ *+' conftest.er1 >conftest.err
  20368. rm -f conftest.er1
  20369. cat conftest.err >&5
  20370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20371. (exit $ac_status); } && {
  20372. test -z "$ac_c_werror_flag" ||
  20373. test ! -s conftest.err
  20374. } && test -s conftest.$ac_objext; then
  20375. ac_cv_type_uint16_t=yes
  20376. else
  20377. echo "$as_me: failed program was:" >&5
  20378. sed 's/^/| /' conftest.$ac_ext >&5
  20379. ac_cv_type_uint16_t=no
  20380. fi
  20381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20382. fi
  20383. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20384. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  20385. if test $ac_cv_type_uint16_t = yes; then
  20386. cat >>confdefs.h <<_ACEOF
  20387. #define HAVE_UINT16_T 1
  20388. _ACEOF
  20389. fi
  20390. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  20391. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  20392. if test "${ac_cv_type_uint32_t+set}" = set; then
  20393. echo $ECHO_N "(cached) $ECHO_C" >&6
  20394. else
  20395. cat >conftest.$ac_ext <<_ACEOF
  20396. /* confdefs.h. */
  20397. _ACEOF
  20398. cat confdefs.h >>conftest.$ac_ext
  20399. cat >>conftest.$ac_ext <<_ACEOF
  20400. /* end confdefs.h. */
  20401. $ac_includes_default
  20402. typedef uint32_t ac__type_new_;
  20403. int
  20404. main ()
  20405. {
  20406. if ((ac__type_new_ *) 0)
  20407. return 0;
  20408. if (sizeof (ac__type_new_))
  20409. return 0;
  20410. ;
  20411. return 0;
  20412. }
  20413. _ACEOF
  20414. rm -f conftest.$ac_objext
  20415. if { (ac_try="$ac_compile"
  20416. case "(($ac_try" in
  20417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20418. *) ac_try_echo=$ac_try;;
  20419. esac
  20420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20421. (eval "$ac_compile") 2>conftest.er1
  20422. ac_status=$?
  20423. grep -v '^ *+' conftest.er1 >conftest.err
  20424. rm -f conftest.er1
  20425. cat conftest.err >&5
  20426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20427. (exit $ac_status); } && {
  20428. test -z "$ac_c_werror_flag" ||
  20429. test ! -s conftest.err
  20430. } && test -s conftest.$ac_objext; then
  20431. ac_cv_type_uint32_t=yes
  20432. else
  20433. echo "$as_me: failed program was:" >&5
  20434. sed 's/^/| /' conftest.$ac_ext >&5
  20435. ac_cv_type_uint32_t=no
  20436. fi
  20437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20438. fi
  20439. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20440. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  20441. if test $ac_cv_type_uint32_t = yes; then
  20442. cat >>confdefs.h <<_ACEOF
  20443. #define HAVE_UINT32_T 1
  20444. _ACEOF
  20445. fi
  20446. { echo "$as_me:$LINENO: checking for int32_t" >&5
  20447. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  20448. if test "${ac_cv_type_int32_t+set}" = set; then
  20449. echo $ECHO_N "(cached) $ECHO_C" >&6
  20450. else
  20451. cat >conftest.$ac_ext <<_ACEOF
  20452. /* confdefs.h. */
  20453. _ACEOF
  20454. cat confdefs.h >>conftest.$ac_ext
  20455. cat >>conftest.$ac_ext <<_ACEOF
  20456. /* end confdefs.h. */
  20457. $ac_includes_default
  20458. typedef int32_t ac__type_new_;
  20459. int
  20460. main ()
  20461. {
  20462. if ((ac__type_new_ *) 0)
  20463. return 0;
  20464. if (sizeof (ac__type_new_))
  20465. return 0;
  20466. ;
  20467. return 0;
  20468. }
  20469. _ACEOF
  20470. rm -f conftest.$ac_objext
  20471. if { (ac_try="$ac_compile"
  20472. case "(($ac_try" in
  20473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20474. *) ac_try_echo=$ac_try;;
  20475. esac
  20476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20477. (eval "$ac_compile") 2>conftest.er1
  20478. ac_status=$?
  20479. grep -v '^ *+' conftest.er1 >conftest.err
  20480. rm -f conftest.er1
  20481. cat conftest.err >&5
  20482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20483. (exit $ac_status); } && {
  20484. test -z "$ac_c_werror_flag" ||
  20485. test ! -s conftest.err
  20486. } && test -s conftest.$ac_objext; then
  20487. ac_cv_type_int32_t=yes
  20488. else
  20489. echo "$as_me: failed program was:" >&5
  20490. sed 's/^/| /' conftest.$ac_ext >&5
  20491. ac_cv_type_int32_t=no
  20492. fi
  20493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20494. fi
  20495. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20496. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  20497. if test $ac_cv_type_int32_t = yes; then
  20498. cat >>confdefs.h <<_ACEOF
  20499. #define HAVE_INT32_T 1
  20500. _ACEOF
  20501. fi
  20502. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  20503. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  20504. if test "${ac_cv_type_uint64_t+set}" = set; then
  20505. echo $ECHO_N "(cached) $ECHO_C" >&6
  20506. else
  20507. cat >conftest.$ac_ext <<_ACEOF
  20508. /* confdefs.h. */
  20509. _ACEOF
  20510. cat confdefs.h >>conftest.$ac_ext
  20511. cat >>conftest.$ac_ext <<_ACEOF
  20512. /* end confdefs.h. */
  20513. $ac_includes_default
  20514. typedef uint64_t ac__type_new_;
  20515. int
  20516. main ()
  20517. {
  20518. if ((ac__type_new_ *) 0)
  20519. return 0;
  20520. if (sizeof (ac__type_new_))
  20521. return 0;
  20522. ;
  20523. return 0;
  20524. }
  20525. _ACEOF
  20526. rm -f conftest.$ac_objext
  20527. if { (ac_try="$ac_compile"
  20528. case "(($ac_try" in
  20529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20530. *) ac_try_echo=$ac_try;;
  20531. esac
  20532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20533. (eval "$ac_compile") 2>conftest.er1
  20534. ac_status=$?
  20535. grep -v '^ *+' conftest.er1 >conftest.err
  20536. rm -f conftest.er1
  20537. cat conftest.err >&5
  20538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20539. (exit $ac_status); } && {
  20540. test -z "$ac_c_werror_flag" ||
  20541. test ! -s conftest.err
  20542. } && test -s conftest.$ac_objext; then
  20543. ac_cv_type_uint64_t=yes
  20544. else
  20545. echo "$as_me: failed program was:" >&5
  20546. sed 's/^/| /' conftest.$ac_ext >&5
  20547. ac_cv_type_uint64_t=no
  20548. fi
  20549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20550. fi
  20551. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  20552. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  20553. if test $ac_cv_type_uint64_t = yes; then
  20554. cat >>confdefs.h <<_ACEOF
  20555. #define HAVE_UINT64_T 1
  20556. _ACEOF
  20557. fi
  20558. { echo "$as_me:$LINENO: checking for int64_t" >&5
  20559. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  20560. if test "${ac_cv_type_int64_t+set}" = set; then
  20561. echo $ECHO_N "(cached) $ECHO_C" >&6
  20562. else
  20563. cat >conftest.$ac_ext <<_ACEOF
  20564. /* confdefs.h. */
  20565. _ACEOF
  20566. cat confdefs.h >>conftest.$ac_ext
  20567. cat >>conftest.$ac_ext <<_ACEOF
  20568. /* end confdefs.h. */
  20569. $ac_includes_default
  20570. typedef int64_t ac__type_new_;
  20571. int
  20572. main ()
  20573. {
  20574. if ((ac__type_new_ *) 0)
  20575. return 0;
  20576. if (sizeof (ac__type_new_))
  20577. return 0;
  20578. ;
  20579. return 0;
  20580. }
  20581. _ACEOF
  20582. rm -f conftest.$ac_objext
  20583. if { (ac_try="$ac_compile"
  20584. case "(($ac_try" in
  20585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20586. *) ac_try_echo=$ac_try;;
  20587. esac
  20588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20589. (eval "$ac_compile") 2>conftest.er1
  20590. ac_status=$?
  20591. grep -v '^ *+' conftest.er1 >conftest.err
  20592. rm -f conftest.er1
  20593. cat conftest.err >&5
  20594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20595. (exit $ac_status); } && {
  20596. test -z "$ac_c_werror_flag" ||
  20597. test ! -s conftest.err
  20598. } && test -s conftest.$ac_objext; then
  20599. ac_cv_type_int64_t=yes
  20600. else
  20601. echo "$as_me: failed program was:" >&5
  20602. sed 's/^/| /' conftest.$ac_ext >&5
  20603. ac_cv_type_int64_t=no
  20604. fi
  20605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20606. fi
  20607. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  20608. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  20609. if test $ac_cv_type_int64_t = yes; then
  20610. cat >>confdefs.h <<_ACEOF
  20611. #define HAVE_INT64_T 1
  20612. _ACEOF
  20613. fi
  20614. { echo "$as_me:$LINENO: checking for long long" >&5
  20615. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  20616. if test "${ac_cv_type_long_long+set}" = set; then
  20617. echo $ECHO_N "(cached) $ECHO_C" >&6
  20618. else
  20619. cat >conftest.$ac_ext <<_ACEOF
  20620. /* confdefs.h. */
  20621. _ACEOF
  20622. cat confdefs.h >>conftest.$ac_ext
  20623. cat >>conftest.$ac_ext <<_ACEOF
  20624. /* end confdefs.h. */
  20625. $ac_includes_default
  20626. typedef long long ac__type_new_;
  20627. int
  20628. main ()
  20629. {
  20630. if ((ac__type_new_ *) 0)
  20631. return 0;
  20632. if (sizeof (ac__type_new_))
  20633. return 0;
  20634. ;
  20635. return 0;
  20636. }
  20637. _ACEOF
  20638. rm -f conftest.$ac_objext
  20639. if { (ac_try="$ac_compile"
  20640. case "(($ac_try" in
  20641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20642. *) ac_try_echo=$ac_try;;
  20643. esac
  20644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20645. (eval "$ac_compile") 2>conftest.er1
  20646. ac_status=$?
  20647. grep -v '^ *+' conftest.er1 >conftest.err
  20648. rm -f conftest.er1
  20649. cat conftest.err >&5
  20650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20651. (exit $ac_status); } && {
  20652. test -z "$ac_c_werror_flag" ||
  20653. test ! -s conftest.err
  20654. } && test -s conftest.$ac_objext; then
  20655. ac_cv_type_long_long=yes
  20656. else
  20657. echo "$as_me: failed program was:" >&5
  20658. sed 's/^/| /' conftest.$ac_ext >&5
  20659. ac_cv_type_long_long=no
  20660. fi
  20661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20662. fi
  20663. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  20664. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  20665. # The cast to long int works around a bug in the HP C Compiler
  20666. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20667. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20668. # This bug is HP SR number 8606223364.
  20669. { echo "$as_me:$LINENO: checking size of long long" >&5
  20670. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  20671. if test "${ac_cv_sizeof_long_long+set}" = set; then
  20672. echo $ECHO_N "(cached) $ECHO_C" >&6
  20673. else
  20674. if test "$cross_compiling" = yes; then
  20675. # Depending upon the size, compute the lo and hi bounds.
  20676. cat >conftest.$ac_ext <<_ACEOF
  20677. /* confdefs.h. */
  20678. _ACEOF
  20679. cat confdefs.h >>conftest.$ac_ext
  20680. cat >>conftest.$ac_ext <<_ACEOF
  20681. /* end confdefs.h. */
  20682. $ac_includes_default
  20683. typedef long long ac__type_sizeof_;
  20684. int
  20685. main ()
  20686. {
  20687. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  20688. test_array [0] = 0
  20689. ;
  20690. return 0;
  20691. }
  20692. _ACEOF
  20693. rm -f conftest.$ac_objext
  20694. if { (ac_try="$ac_compile"
  20695. case "(($ac_try" in
  20696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20697. *) ac_try_echo=$ac_try;;
  20698. esac
  20699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20700. (eval "$ac_compile") 2>conftest.er1
  20701. ac_status=$?
  20702. grep -v '^ *+' conftest.er1 >conftest.err
  20703. rm -f conftest.er1
  20704. cat conftest.err >&5
  20705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20706. (exit $ac_status); } && {
  20707. test -z "$ac_c_werror_flag" ||
  20708. test ! -s conftest.err
  20709. } && test -s conftest.$ac_objext; then
  20710. ac_lo=0 ac_mid=0
  20711. while :; do
  20712. cat >conftest.$ac_ext <<_ACEOF
  20713. /* confdefs.h. */
  20714. _ACEOF
  20715. cat confdefs.h >>conftest.$ac_ext
  20716. cat >>conftest.$ac_ext <<_ACEOF
  20717. /* end confdefs.h. */
  20718. $ac_includes_default
  20719. typedef long long ac__type_sizeof_;
  20720. int
  20721. main ()
  20722. {
  20723. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20724. test_array [0] = 0
  20725. ;
  20726. return 0;
  20727. }
  20728. _ACEOF
  20729. rm -f conftest.$ac_objext
  20730. if { (ac_try="$ac_compile"
  20731. case "(($ac_try" in
  20732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20733. *) ac_try_echo=$ac_try;;
  20734. esac
  20735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20736. (eval "$ac_compile") 2>conftest.er1
  20737. ac_status=$?
  20738. grep -v '^ *+' conftest.er1 >conftest.err
  20739. rm -f conftest.er1
  20740. cat conftest.err >&5
  20741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20742. (exit $ac_status); } && {
  20743. test -z "$ac_c_werror_flag" ||
  20744. test ! -s conftest.err
  20745. } && test -s conftest.$ac_objext; then
  20746. ac_hi=$ac_mid; break
  20747. else
  20748. echo "$as_me: failed program was:" >&5
  20749. sed 's/^/| /' conftest.$ac_ext >&5
  20750. ac_lo=`expr $ac_mid + 1`
  20751. if test $ac_lo -le $ac_mid; then
  20752. ac_lo= ac_hi=
  20753. break
  20754. fi
  20755. ac_mid=`expr 2 '*' $ac_mid + 1`
  20756. fi
  20757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20758. done
  20759. else
  20760. echo "$as_me: failed program was:" >&5
  20761. sed 's/^/| /' conftest.$ac_ext >&5
  20762. cat >conftest.$ac_ext <<_ACEOF
  20763. /* confdefs.h. */
  20764. _ACEOF
  20765. cat confdefs.h >>conftest.$ac_ext
  20766. cat >>conftest.$ac_ext <<_ACEOF
  20767. /* end confdefs.h. */
  20768. $ac_includes_default
  20769. typedef long long ac__type_sizeof_;
  20770. int
  20771. main ()
  20772. {
  20773. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  20774. test_array [0] = 0
  20775. ;
  20776. return 0;
  20777. }
  20778. _ACEOF
  20779. rm -f conftest.$ac_objext
  20780. if { (ac_try="$ac_compile"
  20781. case "(($ac_try" in
  20782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20783. *) ac_try_echo=$ac_try;;
  20784. esac
  20785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20786. (eval "$ac_compile") 2>conftest.er1
  20787. ac_status=$?
  20788. grep -v '^ *+' conftest.er1 >conftest.err
  20789. rm -f conftest.er1
  20790. cat conftest.err >&5
  20791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20792. (exit $ac_status); } && {
  20793. test -z "$ac_c_werror_flag" ||
  20794. test ! -s conftest.err
  20795. } && test -s conftest.$ac_objext; then
  20796. ac_hi=-1 ac_mid=-1
  20797. while :; do
  20798. cat >conftest.$ac_ext <<_ACEOF
  20799. /* confdefs.h. */
  20800. _ACEOF
  20801. cat confdefs.h >>conftest.$ac_ext
  20802. cat >>conftest.$ac_ext <<_ACEOF
  20803. /* end confdefs.h. */
  20804. $ac_includes_default
  20805. typedef long long ac__type_sizeof_;
  20806. int
  20807. main ()
  20808. {
  20809. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  20810. test_array [0] = 0
  20811. ;
  20812. return 0;
  20813. }
  20814. _ACEOF
  20815. rm -f conftest.$ac_objext
  20816. if { (ac_try="$ac_compile"
  20817. case "(($ac_try" in
  20818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20819. *) ac_try_echo=$ac_try;;
  20820. esac
  20821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20822. (eval "$ac_compile") 2>conftest.er1
  20823. ac_status=$?
  20824. grep -v '^ *+' conftest.er1 >conftest.err
  20825. rm -f conftest.er1
  20826. cat conftest.err >&5
  20827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20828. (exit $ac_status); } && {
  20829. test -z "$ac_c_werror_flag" ||
  20830. test ! -s conftest.err
  20831. } && test -s conftest.$ac_objext; then
  20832. ac_lo=$ac_mid; break
  20833. else
  20834. echo "$as_me: failed program was:" >&5
  20835. sed 's/^/| /' conftest.$ac_ext >&5
  20836. ac_hi=`expr '(' $ac_mid ')' - 1`
  20837. if test $ac_mid -le $ac_hi; then
  20838. ac_lo= ac_hi=
  20839. break
  20840. fi
  20841. ac_mid=`expr 2 '*' $ac_mid`
  20842. fi
  20843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20844. done
  20845. else
  20846. echo "$as_me: failed program was:" >&5
  20847. sed 's/^/| /' conftest.$ac_ext >&5
  20848. ac_lo= ac_hi=
  20849. fi
  20850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20851. fi
  20852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20853. # Binary search between lo and hi bounds.
  20854. while test "x$ac_lo" != "x$ac_hi"; do
  20855. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  20856. cat >conftest.$ac_ext <<_ACEOF
  20857. /* confdefs.h. */
  20858. _ACEOF
  20859. cat confdefs.h >>conftest.$ac_ext
  20860. cat >>conftest.$ac_ext <<_ACEOF
  20861. /* end confdefs.h. */
  20862. $ac_includes_default
  20863. typedef long long ac__type_sizeof_;
  20864. int
  20865. main ()
  20866. {
  20867. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  20868. test_array [0] = 0
  20869. ;
  20870. return 0;
  20871. }
  20872. _ACEOF
  20873. rm -f conftest.$ac_objext
  20874. if { (ac_try="$ac_compile"
  20875. case "(($ac_try" in
  20876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20877. *) ac_try_echo=$ac_try;;
  20878. esac
  20879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20880. (eval "$ac_compile") 2>conftest.er1
  20881. ac_status=$?
  20882. grep -v '^ *+' conftest.er1 >conftest.err
  20883. rm -f conftest.er1
  20884. cat conftest.err >&5
  20885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20886. (exit $ac_status); } && {
  20887. test -z "$ac_c_werror_flag" ||
  20888. test ! -s conftest.err
  20889. } && test -s conftest.$ac_objext; then
  20890. ac_hi=$ac_mid
  20891. else
  20892. echo "$as_me: failed program was:" >&5
  20893. sed 's/^/| /' conftest.$ac_ext >&5
  20894. ac_lo=`expr '(' $ac_mid ')' + 1`
  20895. fi
  20896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20897. done
  20898. case $ac_lo in
  20899. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  20900. '') if test "$ac_cv_type_long_long" = yes; then
  20901. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  20902. See \`config.log' for more details." >&5
  20903. echo "$as_me: error: cannot compute sizeof (long long)
  20904. See \`config.log' for more details." >&2;}
  20905. { (exit 77); exit 77; }; }
  20906. else
  20907. ac_cv_sizeof_long_long=0
  20908. fi ;;
  20909. esac
  20910. else
  20911. cat >conftest.$ac_ext <<_ACEOF
  20912. /* confdefs.h. */
  20913. _ACEOF
  20914. cat confdefs.h >>conftest.$ac_ext
  20915. cat >>conftest.$ac_ext <<_ACEOF
  20916. /* end confdefs.h. */
  20917. $ac_includes_default
  20918. typedef long long ac__type_sizeof_;
  20919. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20920. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  20921. #include <stdio.h>
  20922. #include <stdlib.h>
  20923. int
  20924. main ()
  20925. {
  20926. FILE *f = fopen ("conftest.val", "w");
  20927. if (! f)
  20928. return 1;
  20929. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  20930. {
  20931. long int i = longval ();
  20932. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20933. return 1;
  20934. fprintf (f, "%ld\n", i);
  20935. }
  20936. else
  20937. {
  20938. unsigned long int i = ulongval ();
  20939. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  20940. return 1;
  20941. fprintf (f, "%lu\n", i);
  20942. }
  20943. return ferror (f) || fclose (f) != 0;
  20944. ;
  20945. return 0;
  20946. }
  20947. _ACEOF
  20948. rm -f conftest$ac_exeext
  20949. if { (ac_try="$ac_link"
  20950. case "(($ac_try" in
  20951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20952. *) ac_try_echo=$ac_try;;
  20953. esac
  20954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20955. (eval "$ac_link") 2>&5
  20956. ac_status=$?
  20957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20958. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20959. { (case "(($ac_try" in
  20960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20961. *) ac_try_echo=$ac_try;;
  20962. esac
  20963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20964. (eval "$ac_try") 2>&5
  20965. ac_status=$?
  20966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20967. (exit $ac_status); }; }; then
  20968. ac_cv_sizeof_long_long=`cat conftest.val`
  20969. else
  20970. echo "$as_me: program exited with status $ac_status" >&5
  20971. echo "$as_me: failed program was:" >&5
  20972. sed 's/^/| /' conftest.$ac_ext >&5
  20973. ( exit $ac_status )
  20974. if test "$ac_cv_type_long_long" = yes; then
  20975. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  20976. See \`config.log' for more details." >&5
  20977. echo "$as_me: error: cannot compute sizeof (long long)
  20978. See \`config.log' for more details." >&2;}
  20979. { (exit 77); exit 77; }; }
  20980. else
  20981. ac_cv_sizeof_long_long=0
  20982. fi
  20983. fi
  20984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20985. fi
  20986. rm -f conftest.val
  20987. fi
  20988. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  20989. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  20990. cat >>confdefs.h <<_ACEOF
  20991. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  20992. _ACEOF
  20993. { echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
  20994. echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
  20995. # Check whether --enable-warnings was given.
  20996. if test "${enable_warnings+set}" = set; then
  20997. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  20998. { echo "$as_me:$LINENO: result: no" >&5
  20999. echo "${ECHO_T}no" >&6; }
  21000. WARNINGS=
  21001. else
  21002. { echo "$as_me:$LINENO: result: yes" >&5
  21003. echo "${ECHO_T}yes" >&6; }
  21004. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  21005. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  21006. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  21007. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  21008. fi
  21009. else
  21010. if test "$GCC" = yes; then
  21011. { echo "$as_me:$LINENO: result: yes" >&5
  21012. echo "${ECHO_T}yes" >&6; }
  21013. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  21014. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  21015. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  21016. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  21017. else
  21018. WARNINGS=
  21019. { echo "$as_me:$LINENO: result: no" >&5
  21020. echo "${ECHO_T}no" >&6; }
  21021. fi
  21022. fi
  21023. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  21024. do
  21025. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21026. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21027. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21028. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21029. echo $ECHO_N "(cached) $ECHO_C" >&6
  21030. else
  21031. cat >conftest.$ac_ext <<_ACEOF
  21032. /* confdefs.h. */
  21033. _ACEOF
  21034. cat confdefs.h >>conftest.$ac_ext
  21035. cat >>conftest.$ac_ext <<_ACEOF
  21036. /* end confdefs.h. */
  21037. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21038. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21039. #define $ac_func innocuous_$ac_func
  21040. /* System header to define __stub macros and hopefully few prototypes,
  21041. which can conflict with char $ac_func (); below.
  21042. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21043. <limits.h> exists even on freestanding compilers. */
  21044. #ifdef __STDC__
  21045. # include <limits.h>
  21046. #else
  21047. # include <assert.h>
  21048. #endif
  21049. #undef $ac_func
  21050. /* Override any GCC internal prototype to avoid an error.
  21051. Use char because int might match the return type of a GCC
  21052. builtin and then its argument prototype would still apply. */
  21053. #ifdef __cplusplus
  21054. extern "C"
  21055. #endif
  21056. char $ac_func ();
  21057. /* The GNU C library defines this for functions which it implements
  21058. to always fail with ENOSYS. Some functions are actually named
  21059. something starting with __ and the normal name is an alias. */
  21060. #if defined __stub_$ac_func || defined __stub___$ac_func
  21061. choke me
  21062. #endif
  21063. int
  21064. main ()
  21065. {
  21066. return $ac_func ();
  21067. ;
  21068. return 0;
  21069. }
  21070. _ACEOF
  21071. rm -f conftest.$ac_objext conftest$ac_exeext
  21072. if { (ac_try="$ac_link"
  21073. case "(($ac_try" in
  21074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21075. *) ac_try_echo=$ac_try;;
  21076. esac
  21077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21078. (eval "$ac_link") 2>conftest.er1
  21079. ac_status=$?
  21080. grep -v '^ *+' conftest.er1 >conftest.err
  21081. rm -f conftest.er1
  21082. cat conftest.err >&5
  21083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21084. (exit $ac_status); } && {
  21085. test -z "$ac_c_werror_flag" ||
  21086. test ! -s conftest.err
  21087. } && test -s conftest$ac_exeext &&
  21088. $as_test_x conftest$ac_exeext; then
  21089. eval "$as_ac_var=yes"
  21090. else
  21091. echo "$as_me: failed program was:" >&5
  21092. sed 's/^/| /' conftest.$ac_ext >&5
  21093. eval "$as_ac_var=no"
  21094. fi
  21095. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21096. conftest$ac_exeext conftest.$ac_ext
  21097. fi
  21098. ac_res=`eval echo '${'$as_ac_var'}'`
  21099. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21100. echo "${ECHO_T}$ac_res" >&6; }
  21101. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21102. cat >>confdefs.h <<_ACEOF
  21103. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21104. _ACEOF
  21105. fi
  21106. done
  21107. for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
  21108. do
  21109. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21110. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21111. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21112. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21113. echo $ECHO_N "(cached) $ECHO_C" >&6
  21114. else
  21115. cat >conftest.$ac_ext <<_ACEOF
  21116. /* confdefs.h. */
  21117. _ACEOF
  21118. cat confdefs.h >>conftest.$ac_ext
  21119. cat >>conftest.$ac_ext <<_ACEOF
  21120. /* end confdefs.h. */
  21121. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21122. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21123. #define $ac_func innocuous_$ac_func
  21124. /* System header to define __stub macros and hopefully few prototypes,
  21125. which can conflict with char $ac_func (); below.
  21126. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21127. <limits.h> exists even on freestanding compilers. */
  21128. #ifdef __STDC__
  21129. # include <limits.h>
  21130. #else
  21131. # include <assert.h>
  21132. #endif
  21133. #undef $ac_func
  21134. /* Override any GCC internal prototype to avoid an error.
  21135. Use char because int might match the return type of a GCC
  21136. builtin and then its argument prototype would still apply. */
  21137. #ifdef __cplusplus
  21138. extern "C"
  21139. #endif
  21140. char $ac_func ();
  21141. /* The GNU C library defines this for functions which it implements
  21142. to always fail with ENOSYS. Some functions are actually named
  21143. something starting with __ and the normal name is an alias. */
  21144. #if defined __stub_$ac_func || defined __stub___$ac_func
  21145. choke me
  21146. #endif
  21147. int
  21148. main ()
  21149. {
  21150. return $ac_func ();
  21151. ;
  21152. return 0;
  21153. }
  21154. _ACEOF
  21155. rm -f conftest.$ac_objext conftest$ac_exeext
  21156. if { (ac_try="$ac_link"
  21157. case "(($ac_try" in
  21158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21159. *) ac_try_echo=$ac_try;;
  21160. esac
  21161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21162. (eval "$ac_link") 2>conftest.er1
  21163. ac_status=$?
  21164. grep -v '^ *+' conftest.er1 >conftest.err
  21165. rm -f conftest.er1
  21166. cat conftest.err >&5
  21167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21168. (exit $ac_status); } && {
  21169. test -z "$ac_c_werror_flag" ||
  21170. test ! -s conftest.err
  21171. } && test -s conftest$ac_exeext &&
  21172. $as_test_x conftest$ac_exeext; then
  21173. eval "$as_ac_var=yes"
  21174. else
  21175. echo "$as_me: failed program was:" >&5
  21176. sed 's/^/| /' conftest.$ac_ext >&5
  21177. eval "$as_ac_var=no"
  21178. fi
  21179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21180. conftest$ac_exeext conftest.$ac_ext
  21181. fi
  21182. ac_res=`eval echo '${'$as_ac_var'}'`
  21183. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21184. echo "${ECHO_T}$ac_res" >&6; }
  21185. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21186. cat >>confdefs.h <<_ACEOF
  21187. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21188. _ACEOF
  21189. else
  21190. case " $LIBOBJS " in
  21191. *" $ac_func.$ac_objext "* ) ;;
  21192. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  21193. ;;
  21194. esac
  21195. fi
  21196. done
  21197. { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  21198. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  21199. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  21200. echo $ECHO_N "(cached) $ECHO_C" >&6
  21201. else
  21202. ac_check_lib_save_LIBS=$LIBS
  21203. LIBS="-lz $LIBS"
  21204. cat >conftest.$ac_ext <<_ACEOF
  21205. /* confdefs.h. */
  21206. _ACEOF
  21207. cat confdefs.h >>conftest.$ac_ext
  21208. cat >>conftest.$ac_ext <<_ACEOF
  21209. /* end confdefs.h. */
  21210. /* Override any GCC internal prototype to avoid an error.
  21211. Use char because int might match the return type of a GCC
  21212. builtin and then its argument prototype would still apply. */
  21213. #ifdef __cplusplus
  21214. extern "C"
  21215. #endif
  21216. char gzopen ();
  21217. int
  21218. main ()
  21219. {
  21220. return gzopen ();
  21221. ;
  21222. return 0;
  21223. }
  21224. _ACEOF
  21225. rm -f conftest.$ac_objext conftest$ac_exeext
  21226. if { (ac_try="$ac_link"
  21227. case "(($ac_try" in
  21228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21229. *) ac_try_echo=$ac_try;;
  21230. esac
  21231. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21232. (eval "$ac_link") 2>conftest.er1
  21233. ac_status=$?
  21234. grep -v '^ *+' conftest.er1 >conftest.err
  21235. rm -f conftest.er1
  21236. cat conftest.err >&5
  21237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21238. (exit $ac_status); } && {
  21239. test -z "$ac_c_werror_flag" ||
  21240. test ! -s conftest.err
  21241. } && test -s conftest$ac_exeext &&
  21242. $as_test_x conftest$ac_exeext; then
  21243. ac_cv_lib_z_gzopen=yes
  21244. else
  21245. echo "$as_me: failed program was:" >&5
  21246. sed 's/^/| /' conftest.$ac_ext >&5
  21247. ac_cv_lib_z_gzopen=no
  21248. fi
  21249. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21250. conftest$ac_exeext conftest.$ac_ext
  21251. LIBS=$ac_check_lib_save_LIBS
  21252. fi
  21253. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  21254. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  21255. if test $ac_cv_lib_z_gzopen = yes; then
  21256. cat >>confdefs.h <<_ACEOF
  21257. #define HAVE_LIBZ 1
  21258. _ACEOF
  21259. LIBS="-lz $LIBS"
  21260. fi
  21261. if test "$cross_compiling" = yes; then
  21262. IS_CROSS_COMPILE_TRUE=
  21263. IS_CROSS_COMPILE_FALSE='#'
  21264. else
  21265. IS_CROSS_COMPILE_TRUE='#'
  21266. IS_CROSS_COMPILE_FALSE=
  21267. fi
  21268. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  21269. cat >confcache <<\_ACEOF
  21270. # This file is a shell script that caches the results of configure
  21271. # tests run on this system so they can be shared between configure
  21272. # scripts and configure runs, see configure's option --config-cache.
  21273. # It is not useful on other systems. If it contains results you don't
  21274. # want to keep, you may remove or edit it.
  21275. #
  21276. # config.status only pays attention to the cache file if you give it
  21277. # the --recheck option to rerun configure.
  21278. #
  21279. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21280. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21281. # following values.
  21282. _ACEOF
  21283. # The following way of writing the cache mishandles newlines in values,
  21284. # but we know of no workaround that is simple, portable, and efficient.
  21285. # So, we kill variables containing newlines.
  21286. # Ultrix sh set writes to stderr and can't be redirected directly,
  21287. # and sets the high bit in the cache file unless we assign to the vars.
  21288. (
  21289. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21290. eval ac_val=\$$ac_var
  21291. case $ac_val in #(
  21292. *${as_nl}*)
  21293. case $ac_var in #(
  21294. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  21295. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  21296. esac
  21297. case $ac_var in #(
  21298. _ | IFS | as_nl) ;; #(
  21299. *) $as_unset $ac_var ;;
  21300. esac ;;
  21301. esac
  21302. done
  21303. (set) 2>&1 |
  21304. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21305. *${as_nl}ac_space=\ *)
  21306. # `set' does not quote correctly, so add quotes (double-quote
  21307. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21308. sed -n \
  21309. "s/'/'\\\\''/g;
  21310. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21311. ;; #(
  21312. *)
  21313. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21314. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21315. ;;
  21316. esac |
  21317. sort
  21318. ) |
  21319. sed '
  21320. /^ac_cv_env_/b end
  21321. t clear
  21322. :clear
  21323. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21324. t end
  21325. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21326. :end' >>confcache
  21327. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21328. if test -w "$cache_file"; then
  21329. test "x$cache_file" != "x/dev/null" &&
  21330. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21331. echo "$as_me: updating cache $cache_file" >&6;}
  21332. cat confcache >$cache_file
  21333. else
  21334. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21335. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21336. fi
  21337. fi
  21338. rm -f confcache
  21339. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21340. # Let make expand exec_prefix.
  21341. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21342. DEFS=-DHAVE_CONFIG_H
  21343. ac_libobjs=
  21344. ac_ltlibobjs=
  21345. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21346. # 1. Remove the extension, and $U if already installed.
  21347. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21348. ac_i=`echo "$ac_i" | sed "$ac_script"`
  21349. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21350. # will be set to the directory where LIBOBJS objects are built.
  21351. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21352. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21353. done
  21354. LIBOBJS=$ac_libobjs
  21355. LTLIBOBJS=$ac_ltlibobjs
  21356. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  21357. { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  21358. Usually this means the macro was only invoked conditionally." >&5
  21359. echo "$as_me: error: conditional \"FSECT5\" was never defined.
  21360. Usually this means the macro was only invoked conditionally." >&2;}
  21361. { (exit 1); exit 1; }; }
  21362. fi
  21363. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21364. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21365. Usually this means the macro was only invoked conditionally." >&5
  21366. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21367. Usually this means the macro was only invoked conditionally." >&2;}
  21368. { (exit 1); exit 1; }; }
  21369. fi
  21370. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21371. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21372. Usually this means the macro was only invoked conditionally." >&5
  21373. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21374. Usually this means the macro was only invoked conditionally." >&2;}
  21375. { (exit 1); exit 1; }; }
  21376. fi
  21377. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21378. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21379. Usually this means the macro was only invoked conditionally." >&5
  21380. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21381. Usually this means the macro was only invoked conditionally." >&2;}
  21382. { (exit 1); exit 1; }; }
  21383. fi
  21384. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  21385. { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21386. Usually this means the macro was only invoked conditionally." >&5
  21387. echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  21388. Usually this means the macro was only invoked conditionally." >&2;}
  21389. { (exit 1); exit 1; }; }
  21390. fi
  21391. : ${CONFIG_STATUS=./config.status}
  21392. ac_clean_files_save=$ac_clean_files
  21393. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21394. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21395. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21396. cat >$CONFIG_STATUS <<_ACEOF
  21397. #! $SHELL
  21398. # Generated by $as_me.
  21399. # Run this file to recreate the current configuration.
  21400. # Compiler output produced by configure, useful for debugging
  21401. # configure, is in config.log if it exists.
  21402. debug=false
  21403. ac_cs_recheck=false
  21404. ac_cs_silent=false
  21405. SHELL=\${CONFIG_SHELL-$SHELL}
  21406. _ACEOF
  21407. cat >>$CONFIG_STATUS <<\_ACEOF
  21408. ## --------------------- ##
  21409. ## M4sh Initialization. ##
  21410. ## --------------------- ##
  21411. # Be more Bourne compatible
  21412. DUALCASE=1; export DUALCASE # for MKS sh
  21413. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21414. emulate sh
  21415. NULLCMD=:
  21416. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21417. # is contrary to our usage. Disable this feature.
  21418. alias -g '${1+"$@"}'='"$@"'
  21419. setopt NO_GLOB_SUBST
  21420. else
  21421. case `(set -o) 2>/dev/null` in
  21422. *posix*) set -o posix ;;
  21423. esac
  21424. fi
  21425. # PATH needs CR
  21426. # Avoid depending upon Character Ranges.
  21427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21430. as_cr_digits='0123456789'
  21431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21432. # The user is always right.
  21433. if test "${PATH_SEPARATOR+set}" != set; then
  21434. echo "#! /bin/sh" >conf$$.sh
  21435. echo "exit 0" >>conf$$.sh
  21436. chmod +x conf$$.sh
  21437. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  21438. PATH_SEPARATOR=';'
  21439. else
  21440. PATH_SEPARATOR=:
  21441. fi
  21442. rm -f conf$$.sh
  21443. fi
  21444. # Support unset when possible.
  21445. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21446. as_unset=unset
  21447. else
  21448. as_unset=false
  21449. fi
  21450. # IFS
  21451. # We need space, tab and new line, in precisely that order. Quoting is
  21452. # there to prevent editors from complaining about space-tab.
  21453. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21454. # splitting by setting IFS to empty value.)
  21455. as_nl='
  21456. '
  21457. IFS=" "" $as_nl"
  21458. # Find who we are. Look in the path if we contain no directory separator.
  21459. case $0 in
  21460. *[\\/]* ) as_myself=$0 ;;
  21461. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21462. for as_dir in $PATH
  21463. do
  21464. IFS=$as_save_IFS
  21465. test -z "$as_dir" && as_dir=.
  21466. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21467. done
  21468. IFS=$as_save_IFS
  21469. ;;
  21470. esac
  21471. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21472. # in which case we are not to be found in the path.
  21473. if test "x$as_myself" = x; then
  21474. as_myself=$0
  21475. fi
  21476. if test ! -f "$as_myself"; then
  21477. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21478. { (exit 1); exit 1; }
  21479. fi
  21480. # Work around bugs in pre-3.0 UWIN ksh.
  21481. for as_var in ENV MAIL MAILPATH
  21482. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21483. done
  21484. PS1='$ '
  21485. PS2='> '
  21486. PS4='+ '
  21487. # NLS nuisances.
  21488. for as_var in \
  21489. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  21490. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21491. LC_TELEPHONE LC_TIME
  21492. do
  21493. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21494. eval $as_var=C; export $as_var
  21495. else
  21496. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21497. fi
  21498. done
  21499. # Required to use basename.
  21500. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21501. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21502. as_expr=expr
  21503. else
  21504. as_expr=false
  21505. fi
  21506. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21507. as_basename=basename
  21508. else
  21509. as_basename=false
  21510. fi
  21511. # Name of the executable.
  21512. as_me=`$as_basename -- "$0" ||
  21513. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21514. X"$0" : 'X\(//\)$' \| \
  21515. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21516. echo X/"$0" |
  21517. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21518. s//\1/
  21519. q
  21520. }
  21521. /^X\/\(\/\/\)$/{
  21522. s//\1/
  21523. q
  21524. }
  21525. /^X\/\(\/\).*/{
  21526. s//\1/
  21527. q
  21528. }
  21529. s/.*/./; q'`
  21530. # CDPATH.
  21531. $as_unset CDPATH
  21532. as_lineno_1=$LINENO
  21533. as_lineno_2=$LINENO
  21534. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21535. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21536. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21537. # uniformly replaced by the line number. The first 'sed' inserts a
  21538. # line-number line after each line using $LINENO; the second 'sed'
  21539. # does the real work. The second script uses 'N' to pair each
  21540. # line-number line with the line containing $LINENO, and appends
  21541. # trailing '-' during substitution so that $LINENO is not a special
  21542. # case at line end.
  21543. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21544. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21545. # E. McMahon (1931-1989) for sed's syntax. :-)
  21546. sed -n '
  21547. p
  21548. /[$]LINENO/=
  21549. ' <$as_myself |
  21550. sed '
  21551. s/[$]LINENO.*/&-/
  21552. t lineno
  21553. b
  21554. :lineno
  21555. N
  21556. :loop
  21557. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21558. t loop
  21559. s/-\n.*//
  21560. ' >$as_me.lineno &&
  21561. chmod +x "$as_me.lineno" ||
  21562. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21563. { (exit 1); exit 1; }; }
  21564. # Don't try to exec as it changes $[0], causing all sort of problems
  21565. # (the dirname of $[0] is not the place where we might find the
  21566. # original and so on. Autoconf is especially sensitive to this).
  21567. . "./$as_me.lineno"
  21568. # Exit status is that of the last command.
  21569. exit
  21570. }
  21571. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21572. as_dirname=dirname
  21573. else
  21574. as_dirname=false
  21575. fi
  21576. ECHO_C= ECHO_N= ECHO_T=
  21577. case `echo -n x` in
  21578. -n*)
  21579. case `echo 'x\c'` in
  21580. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21581. *) ECHO_C='\c';;
  21582. esac;;
  21583. *)
  21584. ECHO_N='-n';;
  21585. esac
  21586. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21587. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21588. as_expr=expr
  21589. else
  21590. as_expr=false
  21591. fi
  21592. rm -f conf$$ conf$$.exe conf$$.file
  21593. if test -d conf$$.dir; then
  21594. rm -f conf$$.dir/conf$$.file
  21595. else
  21596. rm -f conf$$.dir
  21597. mkdir conf$$.dir
  21598. fi
  21599. echo >conf$$.file
  21600. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21601. as_ln_s='ln -s'
  21602. # ... but there are two gotchas:
  21603. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21604. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21605. # In both cases, we have to default to `cp -p'.
  21606. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21607. as_ln_s='cp -p'
  21608. elif ln conf$$.file conf$$ 2>/dev/null; then
  21609. as_ln_s=ln
  21610. else
  21611. as_ln_s='cp -p'
  21612. fi
  21613. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21614. rmdir conf$$.dir 2>/dev/null
  21615. if mkdir -p . 2>/dev/null; then
  21616. as_mkdir_p=:
  21617. else
  21618. test -d ./-p && rmdir ./-p
  21619. as_mkdir_p=false
  21620. fi
  21621. if test -x / >/dev/null 2>&1; then
  21622. as_test_x='test -x'
  21623. else
  21624. if ls -dL / >/dev/null 2>&1; then
  21625. as_ls_L_option=L
  21626. else
  21627. as_ls_L_option=
  21628. fi
  21629. as_test_x='
  21630. eval sh -c '\''
  21631. if test -d "$1"; then
  21632. test -d "$1/.";
  21633. else
  21634. case $1 in
  21635. -*)set "./$1";;
  21636. esac;
  21637. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21638. ???[sx]*):;;*)false;;esac;fi
  21639. '\'' sh
  21640. '
  21641. fi
  21642. as_executable_p=$as_test_x
  21643. # Sed expression to map a string onto a valid CPP name.
  21644. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21645. # Sed expression to map a string onto a valid variable name.
  21646. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21647. exec 6>&1
  21648. # Save the log message, to keep $[0] and so on meaningful, and to
  21649. # report actual input values of CONFIG_FILES etc. instead of their
  21650. # values after options handling.
  21651. ac_log="
  21652. This file was extended by file $as_me 5.04, which was
  21653. generated by GNU Autoconf 2.61. Invocation command line was
  21654. CONFIG_FILES = $CONFIG_FILES
  21655. CONFIG_HEADERS = $CONFIG_HEADERS
  21656. CONFIG_LINKS = $CONFIG_LINKS
  21657. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21658. $ $0 $@
  21659. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21660. "
  21661. _ACEOF
  21662. cat >>$CONFIG_STATUS <<_ACEOF
  21663. # Files that config.status was made for.
  21664. config_files="$ac_config_files"
  21665. config_headers="$ac_config_headers"
  21666. config_commands="$ac_config_commands"
  21667. _ACEOF
  21668. cat >>$CONFIG_STATUS <<\_ACEOF
  21669. ac_cs_usage="\
  21670. \`$as_me' instantiates files from templates according to the
  21671. current configuration.
  21672. Usage: $0 [OPTIONS] [FILE]...
  21673. -h, --help print this help, then exit
  21674. -V, --version print version number and configuration settings, then exit
  21675. -q, --quiet do not print progress messages
  21676. -d, --debug don't remove temporary files
  21677. --recheck update $as_me by reconfiguring in the same conditions
  21678. --file=FILE[:TEMPLATE]
  21679. instantiate the configuration file FILE
  21680. --header=FILE[:TEMPLATE]
  21681. instantiate the configuration header FILE
  21682. Configuration files:
  21683. $config_files
  21684. Configuration headers:
  21685. $config_headers
  21686. Configuration commands:
  21687. $config_commands
  21688. Report bugs to <bug-autoconf@gnu.org>."
  21689. _ACEOF
  21690. cat >>$CONFIG_STATUS <<_ACEOF
  21691. ac_cs_version="\\
  21692. file config.status 5.04
  21693. configured by $0, generated by GNU Autoconf 2.61,
  21694. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21695. Copyright (C) 2006 Free Software Foundation, Inc.
  21696. This config.status script is free software; the Free Software Foundation
  21697. gives unlimited permission to copy, distribute and modify it."
  21698. ac_pwd='$ac_pwd'
  21699. srcdir='$srcdir'
  21700. INSTALL='$INSTALL'
  21701. MKDIR_P='$MKDIR_P'
  21702. _ACEOF
  21703. cat >>$CONFIG_STATUS <<\_ACEOF
  21704. # If no file are specified by the user, then we need to provide default
  21705. # value. By we need to know if files were specified by the user.
  21706. ac_need_defaults=:
  21707. while test $# != 0
  21708. do
  21709. case $1 in
  21710. --*=*)
  21711. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21712. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21713. ac_shift=:
  21714. ;;
  21715. *)
  21716. ac_option=$1
  21717. ac_optarg=$2
  21718. ac_shift=shift
  21719. ;;
  21720. esac
  21721. case $ac_option in
  21722. # Handling of the options.
  21723. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21724. ac_cs_recheck=: ;;
  21725. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21726. echo "$ac_cs_version"; exit ;;
  21727. --debug | --debu | --deb | --de | --d | -d )
  21728. debug=: ;;
  21729. --file | --fil | --fi | --f )
  21730. $ac_shift
  21731. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  21732. ac_need_defaults=false;;
  21733. --header | --heade | --head | --hea )
  21734. $ac_shift
  21735. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  21736. ac_need_defaults=false;;
  21737. --he | --h)
  21738. # Conflict between --help and --header
  21739. { echo "$as_me: error: ambiguous option: $1
  21740. Try \`$0 --help' for more information." >&2
  21741. { (exit 1); exit 1; }; };;
  21742. --help | --hel | -h )
  21743. echo "$ac_cs_usage"; exit ;;
  21744. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21745. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21746. ac_cs_silent=: ;;
  21747. # This is an error.
  21748. -*) { echo "$as_me: error: unrecognized option: $1
  21749. Try \`$0 --help' for more information." >&2
  21750. { (exit 1); exit 1; }; } ;;
  21751. *) ac_config_targets="$ac_config_targets $1"
  21752. ac_need_defaults=false ;;
  21753. esac
  21754. shift
  21755. done
  21756. ac_configure_extra_args=
  21757. if $ac_cs_silent; then
  21758. exec 6>/dev/null
  21759. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21760. fi
  21761. _ACEOF
  21762. cat >>$CONFIG_STATUS <<_ACEOF
  21763. if \$ac_cs_recheck; then
  21764. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  21765. CONFIG_SHELL=$SHELL
  21766. export CONFIG_SHELL
  21767. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21768. fi
  21769. _ACEOF
  21770. cat >>$CONFIG_STATUS <<\_ACEOF
  21771. exec 5>>config.log
  21772. {
  21773. echo
  21774. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21775. ## Running $as_me. ##
  21776. _ASBOX
  21777. echo "$ac_log"
  21778. } >&5
  21779. _ACEOF
  21780. cat >>$CONFIG_STATUS <<_ACEOF
  21781. #
  21782. # INIT-COMMANDS
  21783. #
  21784. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21785. _ACEOF
  21786. cat >>$CONFIG_STATUS <<\_ACEOF
  21787. # Handling of arguments.
  21788. for ac_config_target in $ac_config_targets
  21789. do
  21790. case $ac_config_target in
  21791. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21792. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21793. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21794. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21795. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  21796. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  21797. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21798. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  21799. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21800. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21801. { (exit 1); exit 1; }; };;
  21802. esac
  21803. done
  21804. # If the user did not use the arguments to specify the items to instantiate,
  21805. # then the envvar interface is used. Set only those that are not.
  21806. # We use the long form for the default assignment because of an extremely
  21807. # bizarre bug on SunOS 4.1.3.
  21808. if $ac_need_defaults; then
  21809. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21810. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21811. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21812. fi
  21813. # Have a temporary directory for convenience. Make it in the build tree
  21814. # simply because there is no reason against having it here, and in addition,
  21815. # creating and moving files from /tmp can sometimes cause problems.
  21816. # Hook for its removal unless debugging.
  21817. # Note that there is a small window in which the directory will not be cleaned:
  21818. # after its creation but before its name has been assigned to `$tmp'.
  21819. $debug ||
  21820. {
  21821. tmp=
  21822. trap 'exit_status=$?
  21823. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21824. ' 0
  21825. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21826. }
  21827. # Create a (secure) tmp directory for tmp files.
  21828. {
  21829. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21830. test -n "$tmp" && test -d "$tmp"
  21831. } ||
  21832. {
  21833. tmp=./conf$$-$RANDOM
  21834. (umask 077 && mkdir "$tmp")
  21835. } ||
  21836. {
  21837. echo "$me: cannot create a temporary directory in ." >&2
  21838. { (exit 1); exit 1; }
  21839. }
  21840. #
  21841. # Set up the sed scripts for CONFIG_FILES section.
  21842. #
  21843. # No need to generate the scripts if there are no CONFIG_FILES.
  21844. # This happens for instance when ./config.status config.h
  21845. if test -n "$CONFIG_FILES"; then
  21846. _ACEOF
  21847. ac_delim='%!_!# '
  21848. for ac_last_try in false false false false false :; do
  21849. cat >conf$$subs.sed <<_ACEOF
  21850. SHELL!$SHELL$ac_delim
  21851. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21852. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21853. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21854. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21855. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21856. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21857. exec_prefix!$exec_prefix$ac_delim
  21858. prefix!$prefix$ac_delim
  21859. program_transform_name!$program_transform_name$ac_delim
  21860. bindir!$bindir$ac_delim
  21861. sbindir!$sbindir$ac_delim
  21862. libexecdir!$libexecdir$ac_delim
  21863. datarootdir!$datarootdir$ac_delim
  21864. datadir!$datadir$ac_delim
  21865. sysconfdir!$sysconfdir$ac_delim
  21866. sharedstatedir!$sharedstatedir$ac_delim
  21867. localstatedir!$localstatedir$ac_delim
  21868. includedir!$includedir$ac_delim
  21869. oldincludedir!$oldincludedir$ac_delim
  21870. docdir!$docdir$ac_delim
  21871. infodir!$infodir$ac_delim
  21872. htmldir!$htmldir$ac_delim
  21873. dvidir!$dvidir$ac_delim
  21874. pdfdir!$pdfdir$ac_delim
  21875. psdir!$psdir$ac_delim
  21876. libdir!$libdir$ac_delim
  21877. localedir!$localedir$ac_delim
  21878. mandir!$mandir$ac_delim
  21879. DEFS!$DEFS$ac_delim
  21880. ECHO_C!$ECHO_C$ac_delim
  21881. ECHO_N!$ECHO_N$ac_delim
  21882. ECHO_T!$ECHO_T$ac_delim
  21883. LIBS!$LIBS$ac_delim
  21884. build_alias!$build_alias$ac_delim
  21885. host_alias!$host_alias$ac_delim
  21886. target_alias!$target_alias$ac_delim
  21887. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21888. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21889. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21890. am__isrc!$am__isrc$ac_delim
  21891. CYGPATH_W!$CYGPATH_W$ac_delim
  21892. PACKAGE!$PACKAGE$ac_delim
  21893. VERSION!$VERSION$ac_delim
  21894. ACLOCAL!$ACLOCAL$ac_delim
  21895. AUTOCONF!$AUTOCONF$ac_delim
  21896. AUTOMAKE!$AUTOMAKE$ac_delim
  21897. AUTOHEADER!$AUTOHEADER$ac_delim
  21898. MAKEINFO!$MAKEINFO$ac_delim
  21899. install_sh!$install_sh$ac_delim
  21900. STRIP!$STRIP$ac_delim
  21901. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21902. mkdir_p!$mkdir_p$ac_delim
  21903. AWK!$AWK$ac_delim
  21904. SET_MAKE!$SET_MAKE$ac_delim
  21905. am__leading_dot!$am__leading_dot$ac_delim
  21906. AMTAR!$AMTAR$ac_delim
  21907. am__tar!$am__tar$ac_delim
  21908. am__untar!$am__untar$ac_delim
  21909. pkgdatadir!$pkgdatadir$ac_delim
  21910. fsect!$fsect$ac_delim
  21911. FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  21912. FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  21913. WARNINGS!$WARNINGS$ac_delim
  21914. CC!$CC$ac_delim
  21915. CFLAGS!$CFLAGS$ac_delim
  21916. LDFLAGS!$LDFLAGS$ac_delim
  21917. CPPFLAGS!$CPPFLAGS$ac_delim
  21918. ac_ct_CC!$ac_ct_CC$ac_delim
  21919. EXEEXT!$EXEEXT$ac_delim
  21920. OBJEXT!$OBJEXT$ac_delim
  21921. DEPDIR!$DEPDIR$ac_delim
  21922. am__include!$am__include$ac_delim
  21923. am__quote!$am__quote$ac_delim
  21924. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21925. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21926. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21927. CCDEPMODE!$CCDEPMODE$ac_delim
  21928. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21929. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21930. LN_S!$LN_S$ac_delim
  21931. build!$build$ac_delim
  21932. build_cpu!$build_cpu$ac_delim
  21933. build_vendor!$build_vendor$ac_delim
  21934. build_os!$build_os$ac_delim
  21935. host!$host$ac_delim
  21936. host_cpu!$host_cpu$ac_delim
  21937. host_vendor!$host_vendor$ac_delim
  21938. host_os!$host_os$ac_delim
  21939. SED!$SED$ac_delim
  21940. GREP!$GREP$ac_delim
  21941. EGREP!$EGREP$ac_delim
  21942. ECHO!$ECHO$ac_delim
  21943. AR!$AR$ac_delim
  21944. RANLIB!$RANLIB$ac_delim
  21945. DSYMUTIL!$DSYMUTIL$ac_delim
  21946. NMEDIT!$NMEDIT$ac_delim
  21947. _ACEOF
  21948. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21949. break
  21950. elif $ac_last_try; then
  21951. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21952. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21953. { (exit 1); exit 1; }; }
  21954. else
  21955. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21956. fi
  21957. done
  21958. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21959. if test -n "$ac_eof"; then
  21960. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21961. ac_eof=`expr $ac_eof + 1`
  21962. fi
  21963. cat >>$CONFIG_STATUS <<_ACEOF
  21964. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21965. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21966. _ACEOF
  21967. sed '
  21968. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21969. s/^/s,@/; s/!/@,|#_!!_#|/
  21970. :n
  21971. t n
  21972. s/'"$ac_delim"'$/,g/; t
  21973. s/$/\\/; p
  21974. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21975. ' >>$CONFIG_STATUS <conf$$subs.sed
  21976. rm -f conf$$subs.sed
  21977. cat >>$CONFIG_STATUS <<_ACEOF
  21978. CEOF$ac_eof
  21979. _ACEOF
  21980. ac_delim='%!_!# '
  21981. for ac_last_try in false false false false false :; do
  21982. cat >conf$$subs.sed <<_ACEOF
  21983. CPP!$CPP$ac_delim
  21984. CXX!$CXX$ac_delim
  21985. CXXFLAGS!$CXXFLAGS$ac_delim
  21986. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21987. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21988. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21989. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21990. CXXCPP!$CXXCPP$ac_delim
  21991. F77!$F77$ac_delim
  21992. FFLAGS!$FFLAGS$ac_delim
  21993. ac_ct_F77!$ac_ct_F77$ac_delim
  21994. LIBTOOL!$LIBTOOL$ac_delim
  21995. LIBOBJS!$LIBOBJS$ac_delim
  21996. IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  21997. IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  21998. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21999. _ACEOF
  22000. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
  22001. break
  22002. elif $ac_last_try; then
  22003. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22004. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22005. { (exit 1); exit 1; }; }
  22006. else
  22007. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22008. fi
  22009. done
  22010. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  22011. if test -n "$ac_eof"; then
  22012. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  22013. ac_eof=`expr $ac_eof + 1`
  22014. fi
  22015. cat >>$CONFIG_STATUS <<_ACEOF
  22016. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  22017. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  22018. _ACEOF
  22019. sed '
  22020. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  22021. s/^/s,@/; s/!/@,|#_!!_#|/
  22022. :n
  22023. t n
  22024. s/'"$ac_delim"'$/,g/; t
  22025. s/$/\\/; p
  22026. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  22027. ' >>$CONFIG_STATUS <conf$$subs.sed
  22028. rm -f conf$$subs.sed
  22029. cat >>$CONFIG_STATUS <<_ACEOF
  22030. :end
  22031. s/|#_!!_#|//g
  22032. CEOF$ac_eof
  22033. _ACEOF
  22034. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22035. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22036. # trailing colons and then remove the whole line if VPATH becomes empty
  22037. # (actually we leave an empty line to preserve line numbers).
  22038. if test "x$srcdir" = x.; then
  22039. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22040. s/:*\$(srcdir):*/:/
  22041. s/:*\${srcdir}:*/:/
  22042. s/:*@srcdir@:*/:/
  22043. s/^\([^=]*=[ ]*\):*/\1/
  22044. s/:*$//
  22045. s/^[^=]*=[ ]*$//
  22046. }'
  22047. fi
  22048. cat >>$CONFIG_STATUS <<\_ACEOF
  22049. fi # test -n "$CONFIG_FILES"
  22050. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  22051. do
  22052. case $ac_tag in
  22053. :[FHLC]) ac_mode=$ac_tag; continue;;
  22054. esac
  22055. case $ac_mode$ac_tag in
  22056. :[FHL]*:*);;
  22057. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  22058. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  22059. { (exit 1); exit 1; }; };;
  22060. :[FH]-) ac_tag=-:-;;
  22061. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22062. esac
  22063. ac_save_IFS=$IFS
  22064. IFS=:
  22065. set x $ac_tag
  22066. IFS=$ac_save_IFS
  22067. shift
  22068. ac_file=$1
  22069. shift
  22070. case $ac_mode in
  22071. :L) ac_source=$1;;
  22072. :[FH])
  22073. ac_file_inputs=
  22074. for ac_f
  22075. do
  22076. case $ac_f in
  22077. -) ac_f="$tmp/stdin";;
  22078. *) # Look for the file first in the build tree, then in the source tree
  22079. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22080. # because $ac_f cannot contain `:'.
  22081. test -f "$ac_f" ||
  22082. case $ac_f in
  22083. [\\/$]*) false;;
  22084. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22085. esac ||
  22086. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  22087. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  22088. { (exit 1); exit 1; }; };;
  22089. esac
  22090. ac_file_inputs="$ac_file_inputs $ac_f"
  22091. done
  22092. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22093. # use $as_me), people would be surprised to read:
  22094. # /* config.h. Generated by config.status. */
  22095. configure_input="Generated from "`IFS=:
  22096. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  22097. if test x"$ac_file" != x-; then
  22098. configure_input="$ac_file. $configure_input"
  22099. { echo "$as_me:$LINENO: creating $ac_file" >&5
  22100. echo "$as_me: creating $ac_file" >&6;}
  22101. fi
  22102. case $ac_tag in
  22103. *:-:* | *:-) cat >"$tmp/stdin";;
  22104. esac
  22105. ;;
  22106. esac
  22107. ac_dir=`$as_dirname -- "$ac_file" ||
  22108. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22109. X"$ac_file" : 'X\(//\)[^/]' \| \
  22110. X"$ac_file" : 'X\(//\)$' \| \
  22111. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22112. echo X"$ac_file" |
  22113. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22114. s//\1/
  22115. q
  22116. }
  22117. /^X\(\/\/\)[^/].*/{
  22118. s//\1/
  22119. q
  22120. }
  22121. /^X\(\/\/\)$/{
  22122. s//\1/
  22123. q
  22124. }
  22125. /^X\(\/\).*/{
  22126. s//\1/
  22127. q
  22128. }
  22129. s/.*/./; q'`
  22130. { as_dir="$ac_dir"
  22131. case $as_dir in #(
  22132. -*) as_dir=./$as_dir;;
  22133. esac
  22134. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22135. as_dirs=
  22136. while :; do
  22137. case $as_dir in #(
  22138. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22139. *) as_qdir=$as_dir;;
  22140. esac
  22141. as_dirs="'$as_qdir' $as_dirs"
  22142. as_dir=`$as_dirname -- "$as_dir" ||
  22143. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22144. X"$as_dir" : 'X\(//\)[^/]' \| \
  22145. X"$as_dir" : 'X\(//\)$' \| \
  22146. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22147. echo X"$as_dir" |
  22148. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22149. s//\1/
  22150. q
  22151. }
  22152. /^X\(\/\/\)[^/].*/{
  22153. s//\1/
  22154. q
  22155. }
  22156. /^X\(\/\/\)$/{
  22157. s//\1/
  22158. q
  22159. }
  22160. /^X\(\/\).*/{
  22161. s//\1/
  22162. q
  22163. }
  22164. s/.*/./; q'`
  22165. test -d "$as_dir" && break
  22166. done
  22167. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22168. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22169. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22170. { (exit 1); exit 1; }; }; }
  22171. ac_builddir=.
  22172. case "$ac_dir" in
  22173. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22174. *)
  22175. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  22176. # A ".." for each directory in $ac_dir_suffix.
  22177. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  22178. case $ac_top_builddir_sub in
  22179. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22180. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22181. esac ;;
  22182. esac
  22183. ac_abs_top_builddir=$ac_pwd
  22184. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22185. # for backward compatibility:
  22186. ac_top_builddir=$ac_top_build_prefix
  22187. case $srcdir in
  22188. .) # We are building in place.
  22189. ac_srcdir=.
  22190. ac_top_srcdir=$ac_top_builddir_sub
  22191. ac_abs_top_srcdir=$ac_pwd ;;
  22192. [\\/]* | ?:[\\/]* ) # Absolute name.
  22193. ac_srcdir=$srcdir$ac_dir_suffix;
  22194. ac_top_srcdir=$srcdir
  22195. ac_abs_top_srcdir=$srcdir ;;
  22196. *) # Relative name.
  22197. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22198. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22199. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22200. esac
  22201. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22202. case $ac_mode in
  22203. :F)
  22204. #
  22205. # CONFIG_FILE
  22206. #
  22207. case $INSTALL in
  22208. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22209. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22210. esac
  22211. ac_MKDIR_P=$MKDIR_P
  22212. case $MKDIR_P in
  22213. [\\/$]* | ?:[\\/]* ) ;;
  22214. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22215. esac
  22216. _ACEOF
  22217. cat >>$CONFIG_STATUS <<\_ACEOF
  22218. # If the template does not know about datarootdir, expand it.
  22219. # FIXME: This hack should be removed a few years after 2.60.
  22220. ac_datarootdir_hack=; ac_datarootdir_seen=
  22221. case `sed -n '/datarootdir/ {
  22222. p
  22223. q
  22224. }
  22225. /@datadir@/p
  22226. /@docdir@/p
  22227. /@infodir@/p
  22228. /@localedir@/p
  22229. /@mandir@/p
  22230. ' $ac_file_inputs` in
  22231. *datarootdir*) ac_datarootdir_seen=yes;;
  22232. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22233. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22234. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22235. _ACEOF
  22236. cat >>$CONFIG_STATUS <<_ACEOF
  22237. ac_datarootdir_hack='
  22238. s&@datadir@&$datadir&g
  22239. s&@docdir@&$docdir&g
  22240. s&@infodir@&$infodir&g
  22241. s&@localedir@&$localedir&g
  22242. s&@mandir@&$mandir&g
  22243. s&\\\${datarootdir}&$datarootdir&g' ;;
  22244. esac
  22245. _ACEOF
  22246. # Neutralize VPATH when `$srcdir' = `.'.
  22247. # Shell code in configure.ac might set extrasub.
  22248. # FIXME: do we really want to maintain this feature?
  22249. cat >>$CONFIG_STATUS <<_ACEOF
  22250. sed "$ac_vpsub
  22251. $extrasub
  22252. _ACEOF
  22253. cat >>$CONFIG_STATUS <<\_ACEOF
  22254. :t
  22255. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22256. s&@configure_input@&$configure_input&;t t
  22257. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22258. s&@srcdir@&$ac_srcdir&;t t
  22259. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22260. s&@top_srcdir@&$ac_top_srcdir&;t t
  22261. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22262. s&@builddir@&$ac_builddir&;t t
  22263. s&@abs_builddir@&$ac_abs_builddir&;t t
  22264. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22265. s&@INSTALL@&$ac_INSTALL&;t t
  22266. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22267. $ac_datarootdir_hack
  22268. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  22269. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22270. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22271. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22272. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22273. which seems to be undefined. Please make sure it is defined." >&5
  22274. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22275. which seems to be undefined. Please make sure it is defined." >&2;}
  22276. rm -f "$tmp/stdin"
  22277. case $ac_file in
  22278. -) cat "$tmp/out"; rm -f "$tmp/out";;
  22279. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  22280. esac
  22281. ;;
  22282. :H)
  22283. #
  22284. # CONFIG_HEADER
  22285. #
  22286. _ACEOF
  22287. # Transform confdefs.h into a sed script `conftest.defines', that
  22288. # substitutes the proper values into config.h.in to produce config.h.
  22289. rm -f conftest.defines conftest.tail
  22290. # First, append a space to every undef/define line, to ease matching.
  22291. echo 's/$/ /' >conftest.defines
  22292. # Then, protect against being on the right side of a sed subst, or in
  22293. # an unquoted here document, in config.status. If some macros were
  22294. # called several times there might be several #defines for the same
  22295. # symbol, which is useless. But do not sort them, since the last
  22296. # AC_DEFINE must be honored.
  22297. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22298. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  22299. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  22300. # PARAMS is the parameter list in the macro definition--in most cases, it's
  22301. # just an empty string.
  22302. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  22303. ac_dB='\\)[ (].*,\\1define\\2'
  22304. ac_dC=' '
  22305. ac_dD=' ,'
  22306. uniq confdefs.h |
  22307. sed -n '
  22308. t rset
  22309. :rset
  22310. s/^[ ]*#[ ]*define[ ][ ]*//
  22311. t ok
  22312. d
  22313. :ok
  22314. s/[\\&,]/\\&/g
  22315. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  22316. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  22317. ' >>conftest.defines
  22318. # Remove the space that was appended to ease matching.
  22319. # Then replace #undef with comments. This is necessary, for
  22320. # example, in the case of _POSIX_SOURCE, which is predefined and required
  22321. # on some systems where configure will not decide to define it.
  22322. # (The regexp can be short, since the line contains either #define or #undef.)
  22323. echo 's/ $//
  22324. s,^[ #]*u.*,/* & */,' >>conftest.defines
  22325. # Break up conftest.defines:
  22326. ac_max_sed_lines=50
  22327. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  22328. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  22329. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  22330. # et cetera.
  22331. ac_in='$ac_file_inputs'
  22332. ac_out='"$tmp/out1"'
  22333. ac_nxt='"$tmp/out2"'
  22334. while :
  22335. do
  22336. # Write a here document:
  22337. cat >>$CONFIG_STATUS <<_ACEOF
  22338. # First, check the format of the line:
  22339. cat >"\$tmp/defines.sed" <<\\CEOF
  22340. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  22341. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  22342. b
  22343. :def
  22344. _ACEOF
  22345. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  22346. echo 'CEOF
  22347. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  22348. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  22349. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  22350. grep . conftest.tail >/dev/null || break
  22351. rm -f conftest.defines
  22352. mv conftest.tail conftest.defines
  22353. done
  22354. rm -f conftest.defines conftest.tail
  22355. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  22356. cat >>$CONFIG_STATUS <<\_ACEOF
  22357. if test x"$ac_file" != x-; then
  22358. echo "/* $configure_input */" >"$tmp/config.h"
  22359. cat "$ac_result" >>"$tmp/config.h"
  22360. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  22361. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22362. echo "$as_me: $ac_file is unchanged" >&6;}
  22363. else
  22364. rm -f $ac_file
  22365. mv "$tmp/config.h" $ac_file
  22366. fi
  22367. else
  22368. echo "/* $configure_input */"
  22369. cat "$ac_result"
  22370. fi
  22371. rm -f "$tmp/out12"
  22372. # Compute $ac_file's index in $config_headers.
  22373. _am_stamp_count=1
  22374. for _am_header in $config_headers :; do
  22375. case $_am_header in
  22376. $ac_file | $ac_file:* )
  22377. break ;;
  22378. * )
  22379. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22380. esac
  22381. done
  22382. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  22383. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22384. X$ac_file : 'X\(//\)[^/]' \| \
  22385. X$ac_file : 'X\(//\)$' \| \
  22386. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  22387. echo X$ac_file |
  22388. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22389. s//\1/
  22390. q
  22391. }
  22392. /^X\(\/\/\)[^/].*/{
  22393. s//\1/
  22394. q
  22395. }
  22396. /^X\(\/\/\)$/{
  22397. s//\1/
  22398. q
  22399. }
  22400. /^X\(\/\).*/{
  22401. s//\1/
  22402. q
  22403. }
  22404. s/.*/./; q'`/stamp-h$_am_stamp_count
  22405. ;;
  22406. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22407. echo "$as_me: executing $ac_file commands" >&6;}
  22408. ;;
  22409. esac
  22410. case $ac_file$ac_mode in
  22411. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  22412. # Strip MF so we end up with the name of the file.
  22413. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22414. # Check whether this is an Automake generated Makefile or not.
  22415. # We used to match only the files named `Makefile.in', but
  22416. # some people rename them; so instead we look at the file content.
  22417. # Grep'ing the first line is not enough: some people post-process
  22418. # each Makefile.in and add a new line on top of each file to say so.
  22419. # Grep'ing the whole file is not good either: AIX grep has a line
  22420. # limit of 2048, but all sed's we know have understand at least 4000.
  22421. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  22422. dirpart=`$as_dirname -- "$mf" ||
  22423. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22424. X"$mf" : 'X\(//\)[^/]' \| \
  22425. X"$mf" : 'X\(//\)$' \| \
  22426. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22427. echo X"$mf" |
  22428. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22429. s//\1/
  22430. q
  22431. }
  22432. /^X\(\/\/\)[^/].*/{
  22433. s//\1/
  22434. q
  22435. }
  22436. /^X\(\/\/\)$/{
  22437. s//\1/
  22438. q
  22439. }
  22440. /^X\(\/\).*/{
  22441. s//\1/
  22442. q
  22443. }
  22444. s/.*/./; q'`
  22445. else
  22446. continue
  22447. fi
  22448. # Extract the definition of DEPDIR, am__include, and am__quote
  22449. # from the Makefile without running `make'.
  22450. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22451. test -z "$DEPDIR" && continue
  22452. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22453. test -z "am__include" && continue
  22454. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22455. # When using ansi2knr, U may be empty or an underscore; expand it
  22456. U=`sed -n 's/^U = //p' < "$mf"`
  22457. # Find all dependency output files, they are included files with
  22458. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22459. # simplest approach to changing $(DEPDIR) to its actual value in the
  22460. # expansion.
  22461. for file in `sed -n "
  22462. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22463. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22464. # Make sure the directory exists.
  22465. test -f "$dirpart/$file" && continue
  22466. fdir=`$as_dirname -- "$file" ||
  22467. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22468. X"$file" : 'X\(//\)[^/]' \| \
  22469. X"$file" : 'X\(//\)$' \| \
  22470. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22471. echo X"$file" |
  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. { as_dir=$dirpart/$fdir
  22490. case $as_dir in #(
  22491. -*) as_dir=./$as_dir;;
  22492. esac
  22493. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22494. as_dirs=
  22495. while :; do
  22496. case $as_dir in #(
  22497. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  22498. *) as_qdir=$as_dir;;
  22499. esac
  22500. as_dirs="'$as_qdir' $as_dirs"
  22501. as_dir=`$as_dirname -- "$as_dir" ||
  22502. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22503. X"$as_dir" : 'X\(//\)[^/]' \| \
  22504. X"$as_dir" : 'X\(//\)$' \| \
  22505. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22506. echo X"$as_dir" |
  22507. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22508. s//\1/
  22509. q
  22510. }
  22511. /^X\(\/\/\)[^/].*/{
  22512. s//\1/
  22513. q
  22514. }
  22515. /^X\(\/\/\)$/{
  22516. s//\1/
  22517. q
  22518. }
  22519. /^X\(\/\).*/{
  22520. s//\1/
  22521. q
  22522. }
  22523. s/.*/./; q'`
  22524. test -d "$as_dir" && break
  22525. done
  22526. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22527. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22528. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22529. { (exit 1); exit 1; }; }; }
  22530. # echo "creating $dirpart/$file"
  22531. echo '# dummy' > "$dirpart/$file"
  22532. done
  22533. done
  22534. ;;
  22535. esac
  22536. done # for ac_tag
  22537. { (exit 0); exit 0; }
  22538. _ACEOF
  22539. chmod +x $CONFIG_STATUS
  22540. ac_clean_files=$ac_clean_files_save
  22541. # configure is writing to config.log, and then calls config.status.
  22542. # config.status does its own redirection, appending to config.log.
  22543. # Unfortunately, on DOS this fails, as config.log is still kept open
  22544. # by configure, so config.status won't be able to write to it; its
  22545. # output is simply discarded. So we exec the FD to /dev/null,
  22546. # effectively closing config.log, so it can be properly (re)opened and
  22547. # appended to by config.status. When coming back to configure, we
  22548. # need to make the FD available again.
  22549. if test "$no_create" != yes; then
  22550. ac_cs_success=:
  22551. ac_config_status_args=
  22552. test "$silent" = yes &&
  22553. ac_config_status_args="$ac_config_status_args --quiet"
  22554. exec 5>/dev/null
  22555. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22556. exec 5>>config.log
  22557. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22558. # would make configure fail if this is the last instruction.
  22559. $ac_cs_success || { (exit 1); exit 1; }
  22560. fi