configure 852 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libjava version-unused.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  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. # Pre-4.2 versions of Zsh do 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*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='libjava'
  509. PACKAGE_TARNAME='libjava'
  510. PACKAGE_VERSION='version-unused'
  511. PACKAGE_STRING='libjava version-unused'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="java/lang/System.java"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. enable_option_checking=no
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. LIBOBJS
  555. LIBDIR
  556. OS
  557. CPU
  558. GCJ_BIN_DIR
  559. JRE_LIB_DIR
  560. JRE_BIN_DIR
  561. SDK_INCLUDE_DIR
  562. SDK_LIB_DIR
  563. SDK_BIN_DIR
  564. SDK_LNK
  565. JRE_LNK
  566. JRE_DIR
  567. JVM_JAR_DIR
  568. JVM_JAR_ROOT_DIR
  569. JVM_ROOT_DIR
  570. BUILD_VERSION
  571. JAVA_VERSION
  572. gcc_suffix
  573. CREATE_JAVA_HOME_FALSE
  574. CREATE_JAVA_HOME_TRUE
  575. INSTALL_AOT_RPM_FALSE
  576. INSTALL_AOT_RPM_TRUE
  577. MAKE
  578. python_mod_dir_expanded
  579. python_mod_dir
  580. here
  581. LD_FINISH_STATIC_SPEC
  582. LD_START_STATIC_SPEC
  583. ANONVERSCRIPT_SUN_FALSE
  584. ANONVERSCRIPT_SUN_TRUE
  585. ANONVERSCRIPT_GNU_FALSE
  586. ANONVERSCRIPT_GNU_TRUE
  587. ANONVERSCRIPT_FALSE
  588. ANONVERSCRIPT_TRUE
  589. SYSDEP_SOURCES
  590. PERL
  591. libstdcxx_incdir
  592. gxx_include_dir
  593. gcjsubdir
  594. dbexecdir
  595. GCJVERSION
  596. toolexeclibdir
  597. toolexecmainlibdir
  598. toolexecdir
  599. LIBGCC_UNWIND_INCLUDE
  600. INSTALL_BINARIES_FALSE
  601. INSTALL_BINARIES_TRUE
  602. NEEDS_DATA_START_FALSE
  603. NEEDS_DATA_START_TRUE
  604. ENABLE_SHARED_FALSE
  605. ENABLE_SHARED_TRUE
  606. NATIVE_FALSE
  607. NATIVE_TRUE
  608. ATOMICSPEC
  609. IEEESPEC
  610. BACKTRACESPEC
  611. EXCEPTIONSPEC
  612. CHECKREFSPEC
  613. DIVIDESPEC
  614. ZINCS
  615. SYS_ZLIBS
  616. ZLIBS
  617. CLASSPATH_SEPARATOR
  618. LIBART_LIBS
  619. LIBART_CFLAGS
  620. GLIB_LIBS
  621. GLIB_CFLAGS
  622. GTK_LIBS
  623. GTK_CFLAGS
  624. PKG_CONFIG
  625. LDLIBICONV
  626. LTLIBICONV
  627. LIBICONV
  628. USING_GCC_FALSE
  629. USING_GCC_TRUE
  630. HASH_SYNC_SPEC
  631. LIBGCJ_BC_SPEC
  632. LIBGCJ_SPEC
  633. USE_LIBGCJ_BC_FALSE
  634. USE_LIBGCJ_BC_TRUE
  635. USING_NO_THREADS_FALSE
  636. USING_NO_THREADS_TRUE
  637. USING_WIN32_THREADS_FALSE
  638. USING_WIN32_THREADS_TRUE
  639. USING_POSIX_THREADS_FALSE
  640. USING_POSIX_THREADS_TRUE
  641. THREADCXXFLAGS
  642. THREADLDFLAGS
  643. THREADSTARTFILESPEC
  644. THREADSPEC
  645. THREADDEPS
  646. THREADINCS
  647. THREADLIBS
  648. USING_NOGC_FALSE
  649. USING_NOGC_TRUE
  650. USING_BOEHMGC_FALSE
  651. USING_BOEHMGC_TRUE
  652. GCTESTSPEC
  653. JC1GCSPEC
  654. GCSPEC
  655. GCDEPS
  656. GCINCS
  657. GCLIBS
  658. LIBGCJTESTSPEC
  659. LIBMATHSPEC
  660. LIBSTDCXXSPEC
  661. extra_ldflags
  662. extra_ldflags_libjava
  663. X_EXTRA_LIBS
  664. X_LIBS
  665. X_PRE_LIBS
  666. X_CFLAGS
  667. XMKMF
  668. ZLIBTESTSPEC
  669. ZLIBSPEC
  670. SYSTEMSPEC
  671. USING_DARWIN_CRT_FALSE
  672. USING_DARWIN_CRT_TRUE
  673. USING_POSIX_PLATFORM_FALSE
  674. USING_POSIX_PLATFORM_TRUE
  675. USING_WIN32_PLATFORM_FALSE
  676. USING_WIN32_PLATFORM_TRUE
  677. PLATFORM
  678. LIBFFIINCS
  679. LIBFFI
  680. INTERPRETER_FALSE
  681. INTERPRETER_TRUE
  682. INTERPRETER
  683. BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
  684. BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
  685. SUPPRESS_LIBGCJ_BC_FALSE
  686. SUPPRESS_LIBGCJ_BC_TRUE
  687. JAVA_HOME
  688. JAVA_HOME_SET_FALSE
  689. JAVA_HOME_SET_TRUE
  690. INSTALL_ECJ_JAR_FALSE
  691. INSTALL_ECJ_JAR_TRUE
  692. BUILD_ECJ1_FALSE
  693. BUILD_ECJ1_TRUE
  694. ECJ_JAR
  695. ECJ_BUILD_JAR
  696. TESTSUBDIR_FALSE
  697. TESTSUBDIR_TRUE
  698. subdirs
  699. am__fastdepGCJ_FALSE
  700. am__fastdepGCJ_TRUE
  701. GCJDEPMODE
  702. GCJFLAGS
  703. ac_ct_GCJ
  704. GCJ
  705. lt_host_flags
  706. CXXCPP
  707. CPP
  708. OTOOL64
  709. OTOOL
  710. LIPO
  711. NMEDIT
  712. DSYMUTIL
  713. OBJDUMP
  714. NM
  715. ac_ct_DUMPBIN
  716. DUMPBIN
  717. FGREP
  718. EGREP
  719. GREP
  720. SED
  721. LIBTOOL
  722. DIRLTDL
  723. LIBLTDL
  724. INCLTDL
  725. host_exeext
  726. GCJH
  727. GCC_FOR_ECJX
  728. GCJ_FOR_ECJX
  729. X_AWT_FALSE
  730. X_AWT_TRUE
  731. XLIB_AWT_FALSE
  732. XLIB_AWT_TRUE
  733. TOOLKIT
  734. LIBGCJDEBUG
  735. BUILD_SUBLIBS_FALSE
  736. BUILD_SUBLIBS_TRUE
  737. LIBGCJ_LD_EXPORT_ALL
  738. LIBGCJ_LD_SYMBOLIC_FUNCTIONS
  739. LIBGCJ_LD_SYMBOLIC
  740. LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
  741. LIBGCJ_SUBLIB_LTFLAGS
  742. LIBGCJ_JAVAFLAGS
  743. LIBGCJ_CXXFLAGS
  744. LIBGCJ_CFLAGS
  745. MAINT
  746. MAINTAINER_MODE_FALSE
  747. MAINTAINER_MODE_TRUE
  748. UNZIP
  749. ZIP
  750. JAR
  751. DLLTOOL
  752. RANLIB
  753. AR
  754. LD
  755. AS
  756. am__fastdepCXX_FALSE
  757. am__fastdepCXX_TRUE
  758. CXXDEPMODE
  759. am__fastdepCC_FALSE
  760. am__fastdepCC_TRUE
  761. CCDEPMODE
  762. AMDEPBACKSLASH
  763. AMDEP_FALSE
  764. AMDEP_TRUE
  765. am__quote
  766. am__include
  767. DEPDIR
  768. am__untar
  769. am__tar
  770. AMTAR
  771. am__leading_dot
  772. SET_MAKE
  773. AWK
  774. mkdir_p
  775. MKDIR_P
  776. INSTALL_STRIP_PROGRAM
  777. STRIP
  778. install_sh
  779. MAKEINFO
  780. AUTOHEADER
  781. AUTOMAKE
  782. AUTOCONF
  783. ACLOCAL
  784. VERSION
  785. PACKAGE
  786. CYGPATH_W
  787. am__isrc
  788. INSTALL_DATA
  789. INSTALL_SCRIPT
  790. INSTALL_PROGRAM
  791. ac_ct_CXX
  792. CXXFLAGS
  793. CXX
  794. OBJEXT
  795. EXEEXT
  796. ac_ct_CC
  797. CPPFLAGS
  798. LDFLAGS
  799. CFLAGS
  800. CC
  801. JAVA_MAINTAINER_MODE_FALSE
  802. JAVA_MAINTAINER_MODE_TRUE
  803. CREATE_GJDOC_FALSE
  804. CREATE_GJDOC_TRUE
  805. ANTLR_JAR
  806. mkinstalldirs
  807. LN_S
  808. LIBSTDCXX_RAW_CXX_LDFLAGS
  809. LIBSTDCXX_RAW_CXX_CXXFLAGS
  810. target_noncanonical
  811. target_os
  812. target_vendor
  813. target_cpu
  814. target
  815. host_os
  816. host_vendor
  817. host_cpu
  818. host
  819. multi_basedir
  820. target_subdir
  821. host_subdir
  822. build_subdir
  823. build_libsubdir
  824. build_os
  825. build_vendor
  826. build_cpu
  827. build
  828. target_alias
  829. host_alias
  830. build_alias
  831. LIBS
  832. ECHO_T
  833. ECHO_N
  834. ECHO_C
  835. DEFS
  836. mandir
  837. localedir
  838. libdir
  839. psdir
  840. pdfdir
  841. dvidir
  842. htmldir
  843. infodir
  844. docdir
  845. oldincludedir
  846. includedir
  847. localstatedir
  848. sharedstatedir
  849. sysconfdir
  850. datadir
  851. datarootdir
  852. libexecdir
  853. sbindir
  854. bindir
  855. program_transform_name
  856. prefix
  857. exec_prefix
  858. PACKAGE_URL
  859. PACKAGE_BUGREPORT
  860. PACKAGE_STRING
  861. PACKAGE_VERSION
  862. PACKAGE_TARNAME
  863. PACKAGE_NAME
  864. PATH_SEPARATOR
  865. SHELL'
  866. ac_subst_files=''
  867. ac_user_opts='
  868. enable_option_checking
  869. with_build_libsubdir
  870. with_target_subdir
  871. enable_multilib
  872. with_cross_host
  873. with_newlib
  874. enable_version_specific_runtime_libs
  875. enable_browser_plugin
  876. enable_gconf_peer
  877. with_antlr_jar
  878. enable_gjdoc
  879. enable_java_maintainer_mode
  880. enable_dependency_tracking
  881. enable_maintainer_mode
  882. enable_libgcj_sublibs
  883. enable_libgcj_debug
  884. with_escher
  885. enable_java_awt
  886. enable_shared
  887. enable_static
  888. with_pic
  889. enable_fast_install
  890. with_gnu_ld
  891. enable_libtool_lock
  892. enable_getenv_properties
  893. enable_hash_synchronization
  894. with_ecj_jar
  895. with_java_home
  896. enable_libgcj_bc
  897. enable_reduced_reflection
  898. with_win32_nlsapi
  899. enable_gc_debug
  900. enable_interpreter
  901. enable_sjlj_exceptions
  902. enable_java_net
  903. with_libffi
  904. enable_jvmpi
  905. with_ecos
  906. with_system_zlib
  907. with_x
  908. enable_java_gc
  909. enable_rpath
  910. with_libiconv_prefix
  911. enable_tls
  912. with_system_libunwind
  913. enable_symvers
  914. with_python_dir
  915. enable_aot_compile_rpm
  916. enable_java_home
  917. with_gcc_suffix
  918. with_arch_directory
  919. with_os_directory
  920. with_origin_name
  921. with_arch_suffix
  922. with_jvm_root_dir
  923. with_jvm_jar_dir
  924. '
  925. ac_precious_vars='build_alias
  926. host_alias
  927. target_alias
  928. CC
  929. CFLAGS
  930. LDFLAGS
  931. LIBS
  932. CPPFLAGS
  933. CXX
  934. CXXFLAGS
  935. CCC
  936. CPP
  937. CXXCPP
  938. XMKMF'
  939. ac_subdirs_all='classpath libltdl'
  940. # Initialize some variables set by options.
  941. ac_init_help=
  942. ac_init_version=false
  943. ac_unrecognized_opts=
  944. ac_unrecognized_sep=
  945. # The variables have the same names as the options, with
  946. # dashes changed to underlines.
  947. cache_file=/dev/null
  948. exec_prefix=NONE
  949. no_create=
  950. no_recursion=
  951. prefix=NONE
  952. program_prefix=NONE
  953. program_suffix=NONE
  954. program_transform_name=s,x,x,
  955. silent=
  956. site=
  957. srcdir=
  958. verbose=
  959. x_includes=NONE
  960. x_libraries=NONE
  961. # Installation directory options.
  962. # These are left unexpanded so users can "make install exec_prefix=/foo"
  963. # and all the variables that are supposed to be based on exec_prefix
  964. # by default will actually change.
  965. # Use braces instead of parens because sh, perl, etc. also accept them.
  966. # (The list follows the same order as the GNU Coding Standards.)
  967. bindir='${exec_prefix}/bin'
  968. sbindir='${exec_prefix}/sbin'
  969. libexecdir='${exec_prefix}/libexec'
  970. datarootdir='${prefix}/share'
  971. datadir='${datarootdir}'
  972. sysconfdir='${prefix}/etc'
  973. sharedstatedir='${prefix}/com'
  974. localstatedir='${prefix}/var'
  975. includedir='${prefix}/include'
  976. oldincludedir='/usr/include'
  977. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  978. infodir='${datarootdir}/info'
  979. htmldir='${docdir}'
  980. dvidir='${docdir}'
  981. pdfdir='${docdir}'
  982. psdir='${docdir}'
  983. libdir='${exec_prefix}/lib'
  984. localedir='${datarootdir}/locale'
  985. mandir='${datarootdir}/man'
  986. ac_prev=
  987. ac_dashdash=
  988. for ac_option
  989. do
  990. # If the previous option needs an argument, assign it.
  991. if test -n "$ac_prev"; then
  992. eval $ac_prev=\$ac_option
  993. ac_prev=
  994. continue
  995. fi
  996. case $ac_option in
  997. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  998. *) ac_optarg=yes ;;
  999. esac
  1000. # Accept the important Cygnus configure options, so we can diagnose typos.
  1001. case $ac_dashdash$ac_option in
  1002. --)
  1003. ac_dashdash=yes ;;
  1004. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1005. ac_prev=bindir ;;
  1006. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1007. bindir=$ac_optarg ;;
  1008. -build | --build | --buil | --bui | --bu)
  1009. ac_prev=build_alias ;;
  1010. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1011. build_alias=$ac_optarg ;;
  1012. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1013. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1014. ac_prev=cache_file ;;
  1015. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1016. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1017. cache_file=$ac_optarg ;;
  1018. --config-cache | -C)
  1019. cache_file=config.cache ;;
  1020. -datadir | --datadir | --datadi | --datad)
  1021. ac_prev=datadir ;;
  1022. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1023. datadir=$ac_optarg ;;
  1024. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1025. | --dataroo | --dataro | --datar)
  1026. ac_prev=datarootdir ;;
  1027. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1028. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1029. datarootdir=$ac_optarg ;;
  1030. -disable-* | --disable-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error "invalid feature name: $ac_useropt"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "enable_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval enable_$ac_useropt=no ;;
  1045. -docdir | --docdir | --docdi | --doc | --do)
  1046. ac_prev=docdir ;;
  1047. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1048. docdir=$ac_optarg ;;
  1049. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1050. ac_prev=dvidir ;;
  1051. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1052. dvidir=$ac_optarg ;;
  1053. -enable-* | --enable-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error "invalid feature name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "enable_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval enable_$ac_useropt=\$ac_optarg ;;
  1068. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1069. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1070. | --exec | --exe | --ex)
  1071. ac_prev=exec_prefix ;;
  1072. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1073. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1074. | --exec=* | --exe=* | --ex=*)
  1075. exec_prefix=$ac_optarg ;;
  1076. -gas | --gas | --ga | --g)
  1077. # Obsolete; use --with-gas.
  1078. with_gas=yes ;;
  1079. -help | --help | --hel | --he | -h)
  1080. ac_init_help=long ;;
  1081. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1082. ac_init_help=recursive ;;
  1083. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1084. ac_init_help=short ;;
  1085. -host | --host | --hos | --ho)
  1086. ac_prev=host_alias ;;
  1087. -host=* | --host=* | --hos=* | --ho=*)
  1088. host_alias=$ac_optarg ;;
  1089. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1090. ac_prev=htmldir ;;
  1091. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1092. | --ht=*)
  1093. htmldir=$ac_optarg ;;
  1094. -includedir | --includedir | --includedi | --included | --include \
  1095. | --includ | --inclu | --incl | --inc)
  1096. ac_prev=includedir ;;
  1097. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1098. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1099. includedir=$ac_optarg ;;
  1100. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1101. ac_prev=infodir ;;
  1102. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1103. infodir=$ac_optarg ;;
  1104. -libdir | --libdir | --libdi | --libd)
  1105. ac_prev=libdir ;;
  1106. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1107. libdir=$ac_optarg ;;
  1108. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1109. | --libexe | --libex | --libe)
  1110. ac_prev=libexecdir ;;
  1111. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1112. | --libexe=* | --libex=* | --libe=*)
  1113. libexecdir=$ac_optarg ;;
  1114. -localedir | --localedir | --localedi | --localed | --locale)
  1115. ac_prev=localedir ;;
  1116. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1117. localedir=$ac_optarg ;;
  1118. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1119. | --localstate | --localstat | --localsta | --localst | --locals)
  1120. ac_prev=localstatedir ;;
  1121. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1122. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1123. localstatedir=$ac_optarg ;;
  1124. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1125. ac_prev=mandir ;;
  1126. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1127. mandir=$ac_optarg ;;
  1128. -nfp | --nfp | --nf)
  1129. # Obsolete; use --without-fp.
  1130. with_fp=no ;;
  1131. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1132. | --no-cr | --no-c | -n)
  1133. no_create=yes ;;
  1134. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1135. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1136. no_recursion=yes ;;
  1137. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1138. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1139. | --oldin | --oldi | --old | --ol | --o)
  1140. ac_prev=oldincludedir ;;
  1141. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1142. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1143. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1144. oldincludedir=$ac_optarg ;;
  1145. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1146. ac_prev=prefix ;;
  1147. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1148. prefix=$ac_optarg ;;
  1149. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1150. | --program-pre | --program-pr | --program-p)
  1151. ac_prev=program_prefix ;;
  1152. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1153. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1154. program_prefix=$ac_optarg ;;
  1155. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1156. | --program-suf | --program-su | --program-s)
  1157. ac_prev=program_suffix ;;
  1158. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1159. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1160. program_suffix=$ac_optarg ;;
  1161. -program-transform-name | --program-transform-name \
  1162. | --program-transform-nam | --program-transform-na \
  1163. | --program-transform-n | --program-transform- \
  1164. | --program-transform | --program-transfor \
  1165. | --program-transfo | --program-transf \
  1166. | --program-trans | --program-tran \
  1167. | --progr-tra | --program-tr | --program-t)
  1168. ac_prev=program_transform_name ;;
  1169. -program-transform-name=* | --program-transform-name=* \
  1170. | --program-transform-nam=* | --program-transform-na=* \
  1171. | --program-transform-n=* | --program-transform-=* \
  1172. | --program-transform=* | --program-transfor=* \
  1173. | --program-transfo=* | --program-transf=* \
  1174. | --program-trans=* | --program-tran=* \
  1175. | --progr-tra=* | --program-tr=* | --program-t=*)
  1176. program_transform_name=$ac_optarg ;;
  1177. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1178. ac_prev=pdfdir ;;
  1179. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1180. pdfdir=$ac_optarg ;;
  1181. -psdir | --psdir | --psdi | --psd | --ps)
  1182. ac_prev=psdir ;;
  1183. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1184. psdir=$ac_optarg ;;
  1185. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1186. | -silent | --silent | --silen | --sile | --sil)
  1187. silent=yes ;;
  1188. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1189. ac_prev=sbindir ;;
  1190. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1191. | --sbi=* | --sb=*)
  1192. sbindir=$ac_optarg ;;
  1193. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1194. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1195. | --sharedst | --shareds | --shared | --share | --shar \
  1196. | --sha | --sh)
  1197. ac_prev=sharedstatedir ;;
  1198. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1199. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1200. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1201. | --sha=* | --sh=*)
  1202. sharedstatedir=$ac_optarg ;;
  1203. -site | --site | --sit)
  1204. ac_prev=site ;;
  1205. -site=* | --site=* | --sit=*)
  1206. site=$ac_optarg ;;
  1207. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1208. ac_prev=srcdir ;;
  1209. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1210. srcdir=$ac_optarg ;;
  1211. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1212. | --syscon | --sysco | --sysc | --sys | --sy)
  1213. ac_prev=sysconfdir ;;
  1214. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1215. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1216. sysconfdir=$ac_optarg ;;
  1217. -target | --target | --targe | --targ | --tar | --ta | --t)
  1218. ac_prev=target_alias ;;
  1219. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1220. target_alias=$ac_optarg ;;
  1221. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1222. verbose=yes ;;
  1223. -version | --version | --versio | --versi | --vers | -V)
  1224. ac_init_version=: ;;
  1225. -with-* | --with-*)
  1226. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1227. # Reject names that are not valid shell variable names.
  1228. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1229. as_fn_error "invalid package name: $ac_useropt"
  1230. ac_useropt_orig=$ac_useropt
  1231. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1232. case $ac_user_opts in
  1233. *"
  1234. "with_$ac_useropt"
  1235. "*) ;;
  1236. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1237. ac_unrecognized_sep=', ';;
  1238. esac
  1239. eval with_$ac_useropt=\$ac_optarg ;;
  1240. -without-* | --without-*)
  1241. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1242. # Reject names that are not valid shell variable names.
  1243. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1244. as_fn_error "invalid package name: $ac_useropt"
  1245. ac_useropt_orig=$ac_useropt
  1246. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1247. case $ac_user_opts in
  1248. *"
  1249. "with_$ac_useropt"
  1250. "*) ;;
  1251. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1252. ac_unrecognized_sep=', ';;
  1253. esac
  1254. eval with_$ac_useropt=no ;;
  1255. --x)
  1256. # Obsolete; use --with-x.
  1257. with_x=yes ;;
  1258. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1259. | --x-incl | --x-inc | --x-in | --x-i)
  1260. ac_prev=x_includes ;;
  1261. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1262. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1263. x_includes=$ac_optarg ;;
  1264. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1265. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1266. ac_prev=x_libraries ;;
  1267. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1268. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1269. x_libraries=$ac_optarg ;;
  1270. -*) as_fn_error "unrecognized option: \`$ac_option'
  1271. Try \`$0 --help' for more information."
  1272. ;;
  1273. *=*)
  1274. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1275. # Reject names that are not valid shell variable names.
  1276. case $ac_envvar in #(
  1277. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1278. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1279. esac
  1280. eval $ac_envvar=\$ac_optarg
  1281. export $ac_envvar ;;
  1282. *)
  1283. # FIXME: should be removed in autoconf 3.0.
  1284. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1285. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1286. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1287. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1288. ;;
  1289. esac
  1290. done
  1291. if test -n "$ac_prev"; then
  1292. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1293. as_fn_error "missing argument to $ac_option"
  1294. fi
  1295. if test -n "$ac_unrecognized_opts"; then
  1296. case $enable_option_checking in
  1297. no) ;;
  1298. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1299. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1300. esac
  1301. fi
  1302. # Check all directory arguments for consistency.
  1303. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1304. datadir sysconfdir sharedstatedir localstatedir includedir \
  1305. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1306. libdir localedir mandir
  1307. do
  1308. eval ac_val=\$$ac_var
  1309. # Remove trailing slashes.
  1310. case $ac_val in
  1311. */ )
  1312. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1313. eval $ac_var=\$ac_val;;
  1314. esac
  1315. # Be sure to have absolute directory names.
  1316. case $ac_val in
  1317. [\\/$]* | ?:[\\/]* ) continue;;
  1318. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1319. esac
  1320. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1321. done
  1322. # There might be people who depend on the old broken behavior: `$host'
  1323. # used to hold the argument of --host etc.
  1324. # FIXME: To remove some day.
  1325. build=$build_alias
  1326. host=$host_alias
  1327. target=$target_alias
  1328. # FIXME: To remove some day.
  1329. if test "x$host_alias" != x; then
  1330. if test "x$build_alias" = x; then
  1331. cross_compiling=maybe
  1332. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1333. If a cross compiler is detected then cross compile mode will be used." >&2
  1334. elif test "x$build_alias" != "x$host_alias"; then
  1335. cross_compiling=yes
  1336. fi
  1337. fi
  1338. ac_tool_prefix=
  1339. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1340. test "$silent" = yes && exec 6>/dev/null
  1341. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1342. ac_ls_di=`ls -di .` &&
  1343. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1344. as_fn_error "working directory cannot be determined"
  1345. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1346. as_fn_error "pwd does not report name of working directory"
  1347. # Find the source files, if location was not specified.
  1348. if test -z "$srcdir"; then
  1349. ac_srcdir_defaulted=yes
  1350. # Try the directory containing this script, then the parent directory.
  1351. ac_confdir=`$as_dirname -- "$as_myself" ||
  1352. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1353. X"$as_myself" : 'X\(//\)[^/]' \| \
  1354. X"$as_myself" : 'X\(//\)$' \| \
  1355. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1356. $as_echo X"$as_myself" |
  1357. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1358. s//\1/
  1359. q
  1360. }
  1361. /^X\(\/\/\)[^/].*/{
  1362. s//\1/
  1363. q
  1364. }
  1365. /^X\(\/\/\)$/{
  1366. s//\1/
  1367. q
  1368. }
  1369. /^X\(\/\).*/{
  1370. s//\1/
  1371. q
  1372. }
  1373. s/.*/./; q'`
  1374. srcdir=$ac_confdir
  1375. if test ! -r "$srcdir/$ac_unique_file"; then
  1376. srcdir=..
  1377. fi
  1378. else
  1379. ac_srcdir_defaulted=no
  1380. fi
  1381. if test ! -r "$srcdir/$ac_unique_file"; then
  1382. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1383. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1384. fi
  1385. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1386. ac_abs_confdir=`(
  1387. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1388. pwd)`
  1389. # When building in place, set srcdir=.
  1390. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1391. srcdir=.
  1392. fi
  1393. # Remove unnecessary trailing slashes from srcdir.
  1394. # Double slashes in file names in object file debugging info
  1395. # mess up M-x gdb in Emacs.
  1396. case $srcdir in
  1397. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1398. esac
  1399. for ac_var in $ac_precious_vars; do
  1400. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1401. eval ac_env_${ac_var}_value=\$${ac_var}
  1402. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1403. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1404. done
  1405. #
  1406. # Report the --help message.
  1407. #
  1408. if test "$ac_init_help" = "long"; then
  1409. # Omit some internal or obsolete options to make the list less imposing.
  1410. # This message is too long to be a string in the A/UX 3.1 sh.
  1411. cat <<_ACEOF
  1412. \`configure' configures libjava version-unused to adapt to many kinds of systems.
  1413. Usage: $0 [OPTION]... [VAR=VALUE]...
  1414. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1415. VAR=VALUE. See below for descriptions of some of the useful variables.
  1416. Defaults for the options are specified in brackets.
  1417. Configuration:
  1418. -h, --help display this help and exit
  1419. --help=short display options specific to this package
  1420. --help=recursive display the short help of all the included packages
  1421. -V, --version display version information and exit
  1422. -q, --quiet, --silent do not print \`checking...' messages
  1423. --cache-file=FILE cache test results in FILE [disabled]
  1424. -C, --config-cache alias for \`--cache-file=config.cache'
  1425. -n, --no-create do not create output files
  1426. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1427. Installation directories:
  1428. --prefix=PREFIX install architecture-independent files in PREFIX
  1429. [$ac_default_prefix]
  1430. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1431. [PREFIX]
  1432. By default, \`make install' will install all the files in
  1433. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1434. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1435. for instance \`--prefix=\$HOME'.
  1436. For better control, use the options below.
  1437. Fine tuning of the installation directories:
  1438. --bindir=DIR user executables [EPREFIX/bin]
  1439. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1440. --libexecdir=DIR program executables [EPREFIX/libexec]
  1441. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1442. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1443. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1444. --libdir=DIR object code libraries [EPREFIX/lib]
  1445. --includedir=DIR C header files [PREFIX/include]
  1446. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1447. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1448. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1449. --infodir=DIR info documentation [DATAROOTDIR/info]
  1450. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1451. --mandir=DIR man documentation [DATAROOTDIR/man]
  1452. --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
  1453. --htmldir=DIR html documentation [DOCDIR]
  1454. --dvidir=DIR dvi documentation [DOCDIR]
  1455. --pdfdir=DIR pdf documentation [DOCDIR]
  1456. --psdir=DIR ps documentation [DOCDIR]
  1457. _ACEOF
  1458. cat <<\_ACEOF
  1459. Program names:
  1460. --program-prefix=PREFIX prepend PREFIX to installed program names
  1461. --program-suffix=SUFFIX append SUFFIX to installed program names
  1462. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1463. X features:
  1464. --x-includes=DIR X include files are in DIR
  1465. --x-libraries=DIR X library files are in DIR
  1466. System types:
  1467. --build=BUILD configure for building on BUILD [guessed]
  1468. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1469. --target=TARGET configure for building compilers for TARGET [HOST]
  1470. _ACEOF
  1471. fi
  1472. if test -n "$ac_init_help"; then
  1473. case $ac_init_help in
  1474. short | recursive ) echo "Configuration of libjava version-unused:";;
  1475. esac
  1476. cat <<\_ACEOF
  1477. Optional Features:
  1478. --disable-option-checking ignore unrecognized --enable/--with options
  1479. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1480. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1481. --enable-multilib build many library versions (default)
  1482. --enable-version-specific-runtime-libs
  1483. specify that runtime libraries should be installed
  1484. in a compiler-specific directory
  1485. --enable-browser-plugin build gcjwebplugin web browser plugin
  1486. --enable-gconf-peer compile GConf native peers for util.preferences
  1487. --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
  1488. default=yes
  1489. --enable-java-maintainer-mode
  1490. allow rebuilding of .class and .h files
  1491. --disable-dependency-tracking speeds up one-time build
  1492. --enable-dependency-tracking do not reject slow dependency extractors
  1493. --enable-maintainer-mode enable make rules and dependencies not useful
  1494. (and sometimes confusing) to the casual installer
  1495. --enable-libgcj-sublibs build libgcj as many sub-libraries
  1496. --enable-libgcj-debug enable runtime debugging code
  1497. --enable-java-awt list of AWT peer implementations to be built
  1498. --enable-shared[=PKGS] build shared libraries [default=yes]
  1499. --enable-static[=PKGS] build static libraries [default=yes]
  1500. --enable-fast-install[=PKGS]
  1501. optimize for fast installation [default=yes]
  1502. --disable-libtool-lock avoid locking (might break parallel builds)
  1503. --disable-getenv-properties
  1504. don't set system properties from GCJ_PROPERTIES
  1505. --enable-hash-synchronization
  1506. use global hash table for monitor locks
  1507. --enable-libgcj-bc enable(default) or disable BC ABI for portions of
  1508. libgcj
  1509. --enable-reduced-reflection
  1510. enable or disable(default) -freduced-reflection when
  1511. building portions of libgcj
  1512. --enable-gc-debug include full support for pointer backtracing etc.
  1513. --enable-interpreter enable interpreter
  1514. --enable-sjlj-exceptions
  1515. force use of builtin_setjmp for exceptions
  1516. --disable-java-net disable java.net
  1517. --disable-jvmpi disable JVMPI support
  1518. --enable-java-gc=TYPE choose garbage collector (default is boehm)
  1519. --disable-rpath do not hardcode runtime library paths
  1520. --enable-tls Use thread-local storage [default=yes]
  1521. --disable-symvers disable symbol versioning for libjava
  1522. --enable-aot-compile-rpm
  1523. enable installation of aot-compile-rpm [default=no]
  1524. --enable-java-home create a standard JDK-style directory layout in the
  1525. install tree [default=no]
  1526. Optional Packages:
  1527. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1528. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1529. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1530. --with-target-subdir=SUBDIR
  1531. configure in a subdirectory
  1532. --with-cross-host=HOST configure with a cross compiler from HOST
  1533. --with-newlib configure with newlib
  1534. --with-antlr-jar=file Use ANTLR from the specified jar file
  1535. --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
  1536. --with-pic try to use only PIC/non-PIC objects [default=use
  1537. both]
  1538. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1539. --with-ecj-jar=FILE use preinstalled ecj jar
  1540. --with-java-home=DIRECTORY
  1541. value of java.home system property
  1542. --with-win32-nlsapi=ansi or unicows or unicode
  1543. native MinGW libgcj Win32 OS API (default is ansi)
  1544. --without-libffi don't use libffi
  1545. --with-ecos enable runtime eCos target support
  1546. --with-system-zlib use installed libz
  1547. --with-x use the X Window System
  1548. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1549. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1550. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1551. --with-system-libunwind use installed libunwind
  1552. --with-python-dir the location to install Python modules. This path
  1553. should NOT include the prefix.
  1554. --with-gcc-suffix the GCC tool suffix (defaults to empty string)
  1555. --with-arch-directory the arch directory under jre/lib (defaults to
  1556. auto-detect)
  1557. --with-os-directory the os directory under include (defaults to
  1558. auto-detect)
  1559. --with-origin-name the JPackage origin name of this package (default is
  1560. gcj${gcc_suffix}
  1561. --with-arch-suffix the arch directory suffix (default is the empty
  1562. string
  1563. --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
  1564. --with-jvm-jar-dir where to install jars (default is
  1565. ${prefix}/lib/jvm-exports)
  1566. Some influential environment variables:
  1567. CC C compiler command
  1568. CFLAGS C compiler flags
  1569. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1570. nonstandard directory <lib dir>
  1571. LIBS libraries to pass to the linker, e.g. -l<library>
  1572. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1573. you have headers in a nonstandard directory <include dir>
  1574. CXX C++ compiler command
  1575. CXXFLAGS C++ compiler flags
  1576. CPP C preprocessor
  1577. CXXCPP C++ preprocessor
  1578. XMKMF Path to xmkmf, Makefile generator for X Window System
  1579. Use these variables to override the choices made by `configure' or to help
  1580. it to find libraries and programs with nonstandard names/locations.
  1581. Report bugs to the package provider.
  1582. _ACEOF
  1583. ac_status=$?
  1584. fi
  1585. if test "$ac_init_help" = "recursive"; then
  1586. # If there are subdirs, report their specific --help.
  1587. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1588. test -d "$ac_dir" ||
  1589. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1590. continue
  1591. ac_builddir=.
  1592. case "$ac_dir" in
  1593. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1594. *)
  1595. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1596. # A ".." for each directory in $ac_dir_suffix.
  1597. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1598. case $ac_top_builddir_sub in
  1599. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1600. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1601. esac ;;
  1602. esac
  1603. ac_abs_top_builddir=$ac_pwd
  1604. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1605. # for backward compatibility:
  1606. ac_top_builddir=$ac_top_build_prefix
  1607. case $srcdir in
  1608. .) # We are building in place.
  1609. ac_srcdir=.
  1610. ac_top_srcdir=$ac_top_builddir_sub
  1611. ac_abs_top_srcdir=$ac_pwd ;;
  1612. [\\/]* | ?:[\\/]* ) # Absolute name.
  1613. ac_srcdir=$srcdir$ac_dir_suffix;
  1614. ac_top_srcdir=$srcdir
  1615. ac_abs_top_srcdir=$srcdir ;;
  1616. *) # Relative name.
  1617. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1618. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1619. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1620. esac
  1621. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1622. cd "$ac_dir" || { ac_status=$?; continue; }
  1623. # Check for guested configure.
  1624. if test -f "$ac_srcdir/configure.gnu"; then
  1625. echo &&
  1626. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1627. elif test -f "$ac_srcdir/configure"; then
  1628. echo &&
  1629. $SHELL "$ac_srcdir/configure" --help=recursive
  1630. else
  1631. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1632. fi || ac_status=$?
  1633. cd "$ac_pwd" || { ac_status=$?; break; }
  1634. done
  1635. fi
  1636. test -n "$ac_init_help" && exit $ac_status
  1637. if $ac_init_version; then
  1638. cat <<\_ACEOF
  1639. libjava configure version-unused
  1640. generated by GNU Autoconf 2.64
  1641. Copyright (C) 2009 Free Software Foundation, Inc.
  1642. This configure script is free software; the Free Software Foundation
  1643. gives unlimited permission to copy, distribute and modify it.
  1644. _ACEOF
  1645. exit
  1646. fi
  1647. ## ------------------------ ##
  1648. ## Autoconf initialization. ##
  1649. ## ------------------------ ##
  1650. # ac_fn_c_try_compile LINENO
  1651. # --------------------------
  1652. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1653. ac_fn_c_try_compile ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. rm -f conftest.$ac_objext
  1657. if { { ac_try="$ac_compile"
  1658. case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. $as_echo "$ac_try_echo"; } >&5
  1664. (eval "$ac_compile") 2>conftest.err
  1665. ac_status=$?
  1666. if test -s conftest.err; then
  1667. grep -v '^ *+' conftest.err >conftest.er1
  1668. cat conftest.er1 >&5
  1669. mv -f conftest.er1 conftest.err
  1670. fi
  1671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1672. test $ac_status = 0; } && {
  1673. test -z "$ac_c_werror_flag" ||
  1674. test ! -s conftest.err
  1675. } && test -s conftest.$ac_objext; then :
  1676. ac_retval=0
  1677. else
  1678. $as_echo "$as_me: failed program was:" >&5
  1679. sed 's/^/| /' conftest.$ac_ext >&5
  1680. ac_retval=1
  1681. fi
  1682. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1683. return $ac_retval
  1684. } # ac_fn_c_try_compile
  1685. # ac_fn_cxx_try_compile LINENO
  1686. # ----------------------------
  1687. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_cxx_try_compile ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. rm -f conftest.$ac_objext
  1692. if { { ac_try="$ac_compile"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_compile") 2>conftest.err
  1700. ac_status=$?
  1701. if test -s conftest.err; then
  1702. grep -v '^ *+' conftest.err >conftest.er1
  1703. cat conftest.er1 >&5
  1704. mv -f conftest.er1 conftest.err
  1705. fi
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; } && {
  1708. test -z "$ac_cxx_werror_flag" ||
  1709. test ! -s conftest.err
  1710. } && test -s conftest.$ac_objext; then :
  1711. ac_retval=0
  1712. else
  1713. $as_echo "$as_me: failed program was:" >&5
  1714. sed 's/^/| /' conftest.$ac_ext >&5
  1715. ac_retval=1
  1716. fi
  1717. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1718. return $ac_retval
  1719. } # ac_fn_cxx_try_compile
  1720. # ac_fn_c_try_link LINENO
  1721. # -----------------------
  1722. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1723. ac_fn_c_try_link ()
  1724. {
  1725. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1726. rm -f conftest.$ac_objext conftest$ac_exeext
  1727. if { { ac_try="$ac_link"
  1728. case "(($ac_try" in
  1729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1730. *) ac_try_echo=$ac_try;;
  1731. esac
  1732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1733. $as_echo "$ac_try_echo"; } >&5
  1734. (eval "$ac_link") 2>conftest.err
  1735. ac_status=$?
  1736. if test -s conftest.err; then
  1737. grep -v '^ *+' conftest.err >conftest.er1
  1738. cat conftest.er1 >&5
  1739. mv -f conftest.er1 conftest.err
  1740. fi
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && {
  1743. test -z "$ac_c_werror_flag" ||
  1744. test ! -s conftest.err
  1745. } && test -s conftest$ac_exeext && {
  1746. test "$cross_compiling" = yes ||
  1747. $as_test_x conftest$ac_exeext
  1748. }; then :
  1749. ac_retval=0
  1750. else
  1751. $as_echo "$as_me: failed program was:" >&5
  1752. sed 's/^/| /' conftest.$ac_ext >&5
  1753. ac_retval=1
  1754. fi
  1755. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1756. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1757. # interfere with the next link command; also delete a directory that is
  1758. # left behind by Apple's compiler. We do this before executing the actions.
  1759. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1760. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1761. return $ac_retval
  1762. } # ac_fn_c_try_link
  1763. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1764. # -------------------------------------------------------
  1765. # Tests whether HEADER exists and can be compiled using the include files in
  1766. # INCLUDES, setting the cache variable VAR accordingly.
  1767. ac_fn_c_check_header_compile ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1771. $as_echo_n "checking for $2... " >&6; }
  1772. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1773. $as_echo_n "(cached) " >&6
  1774. else
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. $4
  1778. #include <$2>
  1779. _ACEOF
  1780. if ac_fn_c_try_compile "$LINENO"; then :
  1781. eval "$3=yes"
  1782. else
  1783. eval "$3=no"
  1784. fi
  1785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1786. fi
  1787. eval ac_res=\$$3
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1789. $as_echo "$ac_res" >&6; }
  1790. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1791. } # ac_fn_c_check_header_compile
  1792. # ac_fn_c_try_cpp LINENO
  1793. # ----------------------
  1794. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1795. ac_fn_c_try_cpp ()
  1796. {
  1797. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1798. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1799. case "(($ac_try" in
  1800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1801. *) ac_try_echo=$ac_try;;
  1802. esac
  1803. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1804. $as_echo "$ac_try_echo"; } >&5
  1805. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1806. ac_status=$?
  1807. if test -s conftest.err; then
  1808. grep -v '^ *+' conftest.err >conftest.er1
  1809. cat conftest.er1 >&5
  1810. mv -f conftest.er1 conftest.err
  1811. fi
  1812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1813. test $ac_status = 0; } >/dev/null && {
  1814. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1815. test ! -s conftest.err
  1816. }; then :
  1817. ac_retval=0
  1818. else
  1819. $as_echo "$as_me: failed program was:" >&5
  1820. sed 's/^/| /' conftest.$ac_ext >&5
  1821. ac_retval=1
  1822. fi
  1823. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1824. return $ac_retval
  1825. } # ac_fn_c_try_cpp
  1826. # ac_fn_c_try_run LINENO
  1827. # ----------------------
  1828. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1829. # that executables *can* be run.
  1830. ac_fn_c_try_run ()
  1831. {
  1832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1833. if { { ac_try="$ac_link"
  1834. case "(($ac_try" in
  1835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1836. *) ac_try_echo=$ac_try;;
  1837. esac
  1838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1839. $as_echo "$ac_try_echo"; } >&5
  1840. (eval "$ac_link") 2>&5
  1841. ac_status=$?
  1842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1843. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1844. { { case "(($ac_try" in
  1845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1846. *) ac_try_echo=$ac_try;;
  1847. esac
  1848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1849. $as_echo "$ac_try_echo"; } >&5
  1850. (eval "$ac_try") 2>&5
  1851. ac_status=$?
  1852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1853. test $ac_status = 0; }; }; then :
  1854. ac_retval=0
  1855. else
  1856. $as_echo "$as_me: program exited with status $ac_status" >&5
  1857. $as_echo "$as_me: failed program was:" >&5
  1858. sed 's/^/| /' conftest.$ac_ext >&5
  1859. ac_retval=$ac_status
  1860. fi
  1861. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1862. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1863. return $ac_retval
  1864. } # ac_fn_c_try_run
  1865. # ac_fn_c_check_func LINENO FUNC VAR
  1866. # ----------------------------------
  1867. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1868. ac_fn_c_check_func ()
  1869. {
  1870. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1872. $as_echo_n "checking for $2... " >&6; }
  1873. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1874. $as_echo_n "(cached) " >&6
  1875. else
  1876. if test x$gcc_no_link = xyes; then
  1877. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1878. fi
  1879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1880. /* end confdefs.h. */
  1881. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1882. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1883. #define $2 innocuous_$2
  1884. /* System header to define __stub macros and hopefully few prototypes,
  1885. which can conflict with char $2 (); below.
  1886. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1887. <limits.h> exists even on freestanding compilers. */
  1888. #ifdef __STDC__
  1889. # include <limits.h>
  1890. #else
  1891. # include <assert.h>
  1892. #endif
  1893. #undef $2
  1894. /* Override any GCC internal prototype to avoid an error.
  1895. Use char because int might match the return type of a GCC
  1896. builtin and then its argument prototype would still apply. */
  1897. #ifdef __cplusplus
  1898. extern "C"
  1899. #endif
  1900. char $2 ();
  1901. /* The GNU C library defines this for functions which it implements
  1902. to always fail with ENOSYS. Some functions are actually named
  1903. something starting with __ and the normal name is an alias. */
  1904. #if defined __stub_$2 || defined __stub___$2
  1905. choke me
  1906. #endif
  1907. int
  1908. main ()
  1909. {
  1910. return $2 ();
  1911. ;
  1912. return 0;
  1913. }
  1914. _ACEOF
  1915. if ac_fn_c_try_link "$LINENO"; then :
  1916. eval "$3=yes"
  1917. else
  1918. eval "$3=no"
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext \
  1921. conftest$ac_exeext conftest.$ac_ext
  1922. fi
  1923. eval ac_res=\$$3
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1925. $as_echo "$ac_res" >&6; }
  1926. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1927. } # ac_fn_c_check_func
  1928. # ac_fn_cxx_try_cpp LINENO
  1929. # ------------------------
  1930. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1931. ac_fn_cxx_try_cpp ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1935. case "(($ac_try" in
  1936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1937. *) ac_try_echo=$ac_try;;
  1938. esac
  1939. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1940. $as_echo "$ac_try_echo"; } >&5
  1941. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1942. ac_status=$?
  1943. if test -s conftest.err; then
  1944. grep -v '^ *+' conftest.err >conftest.er1
  1945. cat conftest.er1 >&5
  1946. mv -f conftest.er1 conftest.err
  1947. fi
  1948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1949. test $ac_status = 0; } >/dev/null && {
  1950. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1951. test ! -s conftest.err
  1952. }; then :
  1953. ac_retval=0
  1954. else
  1955. $as_echo "$as_me: failed program was:" >&5
  1956. sed 's/^/| /' conftest.$ac_ext >&5
  1957. ac_retval=1
  1958. fi
  1959. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1960. return $ac_retval
  1961. } # ac_fn_cxx_try_cpp
  1962. # ac_fn_cxx_try_link LINENO
  1963. # -------------------------
  1964. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1965. ac_fn_cxx_try_link ()
  1966. {
  1967. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1968. rm -f conftest.$ac_objext conftest$ac_exeext
  1969. if { { ac_try="$ac_link"
  1970. case "(($ac_try" in
  1971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1972. *) ac_try_echo=$ac_try;;
  1973. esac
  1974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1975. $as_echo "$ac_try_echo"; } >&5
  1976. (eval "$ac_link") 2>conftest.err
  1977. ac_status=$?
  1978. if test -s conftest.err; then
  1979. grep -v '^ *+' conftest.err >conftest.er1
  1980. cat conftest.er1 >&5
  1981. mv -f conftest.er1 conftest.err
  1982. fi
  1983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1984. test $ac_status = 0; } && {
  1985. test -z "$ac_cxx_werror_flag" ||
  1986. test ! -s conftest.err
  1987. } && test -s conftest$ac_exeext && {
  1988. test "$cross_compiling" = yes ||
  1989. $as_test_x conftest$ac_exeext
  1990. }; then :
  1991. ac_retval=0
  1992. else
  1993. $as_echo "$as_me: failed program was:" >&5
  1994. sed 's/^/| /' conftest.$ac_ext >&5
  1995. ac_retval=1
  1996. fi
  1997. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1998. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1999. # interfere with the next link command; also delete a directory that is
  2000. # left behind by Apple's compiler. We do this before executing the actions.
  2001. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2002. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2003. return $ac_retval
  2004. } # ac_fn_cxx_try_link
  2005. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2006. # -------------------------------------------------------
  2007. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2008. # the include files in INCLUDES and setting the cache variable VAR
  2009. # accordingly.
  2010. ac_fn_c_check_header_mongrel ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2015. $as_echo_n "checking for $2... " >&6; }
  2016. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2017. $as_echo_n "(cached) " >&6
  2018. fi
  2019. eval ac_res=\$$3
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. else
  2023. # Is the header compilable?
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2025. $as_echo_n "checking $2 usability... " >&6; }
  2026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2027. /* end confdefs.h. */
  2028. $4
  2029. #include <$2>
  2030. _ACEOF
  2031. if ac_fn_c_try_compile "$LINENO"; then :
  2032. ac_header_compiler=yes
  2033. else
  2034. ac_header_compiler=no
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2038. $as_echo "$ac_header_compiler" >&6; }
  2039. # Is the header present?
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2041. $as_echo_n "checking $2 presence... " >&6; }
  2042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2043. /* end confdefs.h. */
  2044. #include <$2>
  2045. _ACEOF
  2046. if ac_fn_c_try_cpp "$LINENO"; then :
  2047. ac_header_preproc=yes
  2048. else
  2049. ac_header_preproc=no
  2050. fi
  2051. rm -f conftest.err conftest.$ac_ext
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2053. $as_echo "$ac_header_preproc" >&6; }
  2054. # So? What about this header?
  2055. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2056. yes:no: )
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2058. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2060. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2061. ;;
  2062. no:yes:* )
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2064. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2066. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2068. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2070. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2072. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2073. ;;
  2074. esac
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2076. $as_echo_n "checking for $2... " >&6; }
  2077. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2078. $as_echo_n "(cached) " >&6
  2079. else
  2080. eval "$3=\$ac_header_compiler"
  2081. fi
  2082. eval ac_res=\$$3
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2084. $as_echo "$ac_res" >&6; }
  2085. fi
  2086. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2087. } # ac_fn_c_check_header_mongrel
  2088. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2089. # ----------------------------------------------------
  2090. # Tries to find if the field MEMBER exists in type AGGR, after including
  2091. # INCLUDES, setting cache variable VAR accordingly.
  2092. ac_fn_c_check_member ()
  2093. {
  2094. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2096. $as_echo_n "checking for $2.$3... " >&6; }
  2097. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2098. $as_echo_n "(cached) " >&6
  2099. else
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $5
  2103. int
  2104. main ()
  2105. {
  2106. static $2 ac_aggr;
  2107. if (ac_aggr.$3)
  2108. return 0;
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. if ac_fn_c_try_compile "$LINENO"; then :
  2114. eval "$4=yes"
  2115. else
  2116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2117. /* end confdefs.h. */
  2118. $5
  2119. int
  2120. main ()
  2121. {
  2122. static $2 ac_aggr;
  2123. if (sizeof ac_aggr.$3)
  2124. return 0;
  2125. ;
  2126. return 0;
  2127. }
  2128. _ACEOF
  2129. if ac_fn_c_try_compile "$LINENO"; then :
  2130. eval "$4=yes"
  2131. else
  2132. eval "$4=no"
  2133. fi
  2134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2135. fi
  2136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2137. fi
  2138. eval ac_res=\$$4
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2140. $as_echo "$ac_res" >&6; }
  2141. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2142. } # ac_fn_c_check_member
  2143. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2144. # ------------------------------------
  2145. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2146. ac_fn_c_check_decl ()
  2147. {
  2148. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2149. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2150. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2152. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2153. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2154. $as_echo_n "(cached) " >&6
  2155. else
  2156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2157. /* end confdefs.h. */
  2158. $4
  2159. int
  2160. main ()
  2161. {
  2162. #ifndef $as_decl_name
  2163. #ifdef __cplusplus
  2164. (void) $as_decl_use;
  2165. #else
  2166. (void) $as_decl_name;
  2167. #endif
  2168. #endif
  2169. ;
  2170. return 0;
  2171. }
  2172. _ACEOF
  2173. if ac_fn_c_try_compile "$LINENO"; then :
  2174. eval "$3=yes"
  2175. else
  2176. eval "$3=no"
  2177. fi
  2178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2179. fi
  2180. eval ac_res=\$$3
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2182. $as_echo "$ac_res" >&6; }
  2183. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2184. } # ac_fn_c_check_decl
  2185. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2186. # --------------------------------------------
  2187. # Tries to find the compile-time value of EXPR in a program that includes
  2188. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2189. # computed
  2190. ac_fn_c_compute_int ()
  2191. {
  2192. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2193. if test "$cross_compiling" = yes; then
  2194. # Depending upon the size, compute the lo and hi bounds.
  2195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2196. /* end confdefs.h. */
  2197. $4
  2198. int
  2199. main ()
  2200. {
  2201. static int test_array [1 - 2 * !(($2) >= 0)];
  2202. test_array [0] = 0
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. if ac_fn_c_try_compile "$LINENO"; then :
  2208. ac_lo=0 ac_mid=0
  2209. while :; do
  2210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2211. /* end confdefs.h. */
  2212. $4
  2213. int
  2214. main ()
  2215. {
  2216. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2217. test_array [0] = 0
  2218. ;
  2219. return 0;
  2220. }
  2221. _ACEOF
  2222. if ac_fn_c_try_compile "$LINENO"; then :
  2223. ac_hi=$ac_mid; break
  2224. else
  2225. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2226. if test $ac_lo -le $ac_mid; then
  2227. ac_lo= ac_hi=
  2228. break
  2229. fi
  2230. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2231. fi
  2232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2233. done
  2234. else
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $4
  2238. int
  2239. main ()
  2240. {
  2241. static int test_array [1 - 2 * !(($2) < 0)];
  2242. test_array [0] = 0
  2243. ;
  2244. return 0;
  2245. }
  2246. _ACEOF
  2247. if ac_fn_c_try_compile "$LINENO"; then :
  2248. ac_hi=-1 ac_mid=-1
  2249. while :; do
  2250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2251. /* end confdefs.h. */
  2252. $4
  2253. int
  2254. main ()
  2255. {
  2256. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2257. test_array [0] = 0
  2258. ;
  2259. return 0;
  2260. }
  2261. _ACEOF
  2262. if ac_fn_c_try_compile "$LINENO"; then :
  2263. ac_lo=$ac_mid; break
  2264. else
  2265. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2266. if test $ac_mid -le $ac_hi; then
  2267. ac_lo= ac_hi=
  2268. break
  2269. fi
  2270. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2271. fi
  2272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2273. done
  2274. else
  2275. ac_lo= ac_hi=
  2276. fi
  2277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2278. fi
  2279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2280. # Binary search between lo and hi bounds.
  2281. while test "x$ac_lo" != "x$ac_hi"; do
  2282. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2284. /* end confdefs.h. */
  2285. $4
  2286. int
  2287. main ()
  2288. {
  2289. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2290. test_array [0] = 0
  2291. ;
  2292. return 0;
  2293. }
  2294. _ACEOF
  2295. if ac_fn_c_try_compile "$LINENO"; then :
  2296. ac_hi=$ac_mid
  2297. else
  2298. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2299. fi
  2300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2301. done
  2302. case $ac_lo in #((
  2303. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2304. '') ac_retval=1 ;;
  2305. esac
  2306. else
  2307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2308. /* end confdefs.h. */
  2309. $4
  2310. static long int longval () { return $2; }
  2311. static unsigned long int ulongval () { return $2; }
  2312. #include <stdio.h>
  2313. #include <stdlib.h>
  2314. int
  2315. main ()
  2316. {
  2317. FILE *f = fopen ("conftest.val", "w");
  2318. if (! f)
  2319. return 1;
  2320. if (($2) < 0)
  2321. {
  2322. long int i = longval ();
  2323. if (i != ($2))
  2324. return 1;
  2325. fprintf (f, "%ld", i);
  2326. }
  2327. else
  2328. {
  2329. unsigned long int i = ulongval ();
  2330. if (i != ($2))
  2331. return 1;
  2332. fprintf (f, "%lu", i);
  2333. }
  2334. /* Do not output a trailing newline, as this causes \r\n confusion
  2335. on some platforms. */
  2336. return ferror (f) || fclose (f) != 0;
  2337. ;
  2338. return 0;
  2339. }
  2340. _ACEOF
  2341. if ac_fn_c_try_run "$LINENO"; then :
  2342. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2343. else
  2344. ac_retval=1
  2345. fi
  2346. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2347. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2348. rm -f conftest.val
  2349. fi
  2350. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2351. return $ac_retval
  2352. } # ac_fn_c_compute_int
  2353. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2354. # -------------------------------------------
  2355. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2356. # variable VAR accordingly.
  2357. ac_fn_c_check_type ()
  2358. {
  2359. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2361. $as_echo_n "checking for $2... " >&6; }
  2362. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2363. $as_echo_n "(cached) " >&6
  2364. else
  2365. eval "$3=no"
  2366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2367. /* end confdefs.h. */
  2368. $4
  2369. int
  2370. main ()
  2371. {
  2372. if (sizeof ($2))
  2373. return 0;
  2374. ;
  2375. return 0;
  2376. }
  2377. _ACEOF
  2378. if ac_fn_c_try_compile "$LINENO"; then :
  2379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2380. /* end confdefs.h. */
  2381. $4
  2382. int
  2383. main ()
  2384. {
  2385. if (sizeof (($2)))
  2386. return 0;
  2387. ;
  2388. return 0;
  2389. }
  2390. _ACEOF
  2391. if ac_fn_c_try_compile "$LINENO"; then :
  2392. else
  2393. eval "$3=yes"
  2394. fi
  2395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2396. fi
  2397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2398. fi
  2399. eval ac_res=\$$3
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2401. $as_echo "$ac_res" >&6; }
  2402. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2403. } # ac_fn_c_check_type
  2404. cat >config.log <<_ACEOF
  2405. This file contains any messages produced by compilers while
  2406. running configure, to aid debugging if configure makes a mistake.
  2407. It was created by libjava $as_me version-unused, which was
  2408. generated by GNU Autoconf 2.64. Invocation command line was
  2409. $ $0 $@
  2410. _ACEOF
  2411. exec 5>>config.log
  2412. {
  2413. cat <<_ASUNAME
  2414. ## --------- ##
  2415. ## Platform. ##
  2416. ## --------- ##
  2417. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2418. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2419. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2420. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2421. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2422. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2423. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2424. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2425. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2426. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2427. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2428. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2429. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2430. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2431. _ASUNAME
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. $as_echo "PATH: $as_dir"
  2438. done
  2439. IFS=$as_save_IFS
  2440. } >&5
  2441. cat >&5 <<_ACEOF
  2442. ## ----------- ##
  2443. ## Core tests. ##
  2444. ## ----------- ##
  2445. _ACEOF
  2446. # Keep a trace of the command line.
  2447. # Strip out --no-create and --no-recursion so they do not pile up.
  2448. # Strip out --silent because we don't want to record it for future runs.
  2449. # Also quote any args containing shell meta-characters.
  2450. # Make two passes to allow for proper duplicate-argument suppression.
  2451. ac_configure_args=
  2452. ac_configure_args0=
  2453. ac_configure_args1=
  2454. ac_must_keep_next=false
  2455. for ac_pass in 1 2
  2456. do
  2457. for ac_arg
  2458. do
  2459. case $ac_arg in
  2460. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2461. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2462. | -silent | --silent | --silen | --sile | --sil)
  2463. continue ;;
  2464. *\'*)
  2465. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2466. esac
  2467. case $ac_pass in
  2468. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2469. 2)
  2470. as_fn_append ac_configure_args1 " '$ac_arg'"
  2471. if test $ac_must_keep_next = true; then
  2472. ac_must_keep_next=false # Got value, back to normal.
  2473. else
  2474. case $ac_arg in
  2475. *=* | --config-cache | -C | -disable-* | --disable-* \
  2476. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2477. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2478. | -with-* | --with-* | -without-* | --without-* | --x)
  2479. case "$ac_configure_args0 " in
  2480. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2481. esac
  2482. ;;
  2483. -* ) ac_must_keep_next=true ;;
  2484. esac
  2485. fi
  2486. as_fn_append ac_configure_args " '$ac_arg'"
  2487. ;;
  2488. esac
  2489. done
  2490. done
  2491. { ac_configure_args0=; unset ac_configure_args0;}
  2492. { ac_configure_args1=; unset ac_configure_args1;}
  2493. # When interrupted or exit'd, cleanup temporary files, and complete
  2494. # config.log. We remove comments because anyway the quotes in there
  2495. # would cause problems or look ugly.
  2496. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2497. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2498. trap 'exit_status=$?
  2499. # Save into config.log some information that might help in debugging.
  2500. {
  2501. echo
  2502. cat <<\_ASBOX
  2503. ## ---------------- ##
  2504. ## Cache variables. ##
  2505. ## ---------------- ##
  2506. _ASBOX
  2507. echo
  2508. # The following way of writing the cache mishandles newlines in values,
  2509. (
  2510. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2511. eval ac_val=\$$ac_var
  2512. case $ac_val in #(
  2513. *${as_nl}*)
  2514. case $ac_var in #(
  2515. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2516. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2517. esac
  2518. case $ac_var in #(
  2519. _ | IFS | as_nl) ;; #(
  2520. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2521. *) { eval $ac_var=; unset $ac_var;} ;;
  2522. esac ;;
  2523. esac
  2524. done
  2525. (set) 2>&1 |
  2526. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2527. *${as_nl}ac_space=\ *)
  2528. sed -n \
  2529. "s/'\''/'\''\\\\'\'''\''/g;
  2530. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2531. ;; #(
  2532. *)
  2533. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2534. ;;
  2535. esac |
  2536. sort
  2537. )
  2538. echo
  2539. cat <<\_ASBOX
  2540. ## ----------------- ##
  2541. ## Output variables. ##
  2542. ## ----------------- ##
  2543. _ASBOX
  2544. echo
  2545. for ac_var in $ac_subst_vars
  2546. do
  2547. eval ac_val=\$$ac_var
  2548. case $ac_val in
  2549. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2550. esac
  2551. $as_echo "$ac_var='\''$ac_val'\''"
  2552. done | sort
  2553. echo
  2554. if test -n "$ac_subst_files"; then
  2555. cat <<\_ASBOX
  2556. ## ------------------- ##
  2557. ## File substitutions. ##
  2558. ## ------------------- ##
  2559. _ASBOX
  2560. echo
  2561. for ac_var in $ac_subst_files
  2562. do
  2563. eval ac_val=\$$ac_var
  2564. case $ac_val in
  2565. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2566. esac
  2567. $as_echo "$ac_var='\''$ac_val'\''"
  2568. done | sort
  2569. echo
  2570. fi
  2571. if test -s confdefs.h; then
  2572. cat <<\_ASBOX
  2573. ## ----------- ##
  2574. ## confdefs.h. ##
  2575. ## ----------- ##
  2576. _ASBOX
  2577. echo
  2578. cat confdefs.h
  2579. echo
  2580. fi
  2581. test "$ac_signal" != 0 &&
  2582. $as_echo "$as_me: caught signal $ac_signal"
  2583. $as_echo "$as_me: exit $exit_status"
  2584. } >&5
  2585. rm -f core *.core core.conftest.* &&
  2586. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2587. exit $exit_status
  2588. ' 0
  2589. for ac_signal in 1 2 13 15; do
  2590. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2591. done
  2592. ac_signal=0
  2593. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2594. rm -f -r conftest* confdefs.h
  2595. $as_echo "/* confdefs.h */" > confdefs.h
  2596. # Predefined preprocessor variables.
  2597. cat >>confdefs.h <<_ACEOF
  2598. #define PACKAGE_NAME "$PACKAGE_NAME"
  2599. _ACEOF
  2600. cat >>confdefs.h <<_ACEOF
  2601. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2602. _ACEOF
  2603. cat >>confdefs.h <<_ACEOF
  2604. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2605. _ACEOF
  2606. cat >>confdefs.h <<_ACEOF
  2607. #define PACKAGE_STRING "$PACKAGE_STRING"
  2608. _ACEOF
  2609. cat >>confdefs.h <<_ACEOF
  2610. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2611. _ACEOF
  2612. cat >>confdefs.h <<_ACEOF
  2613. #define PACKAGE_URL "$PACKAGE_URL"
  2614. _ACEOF
  2615. # Let the site file select an alternate cache file if it wants to.
  2616. # Prefer an explicitly selected file to automatically selected ones.
  2617. ac_site_file1=NONE
  2618. ac_site_file2=NONE
  2619. if test -n "$CONFIG_SITE"; then
  2620. ac_site_file1=$CONFIG_SITE
  2621. elif test "x$prefix" != xNONE; then
  2622. ac_site_file1=$prefix/share/config.site
  2623. ac_site_file2=$prefix/etc/config.site
  2624. else
  2625. ac_site_file1=$ac_default_prefix/share/config.site
  2626. ac_site_file2=$ac_default_prefix/etc/config.site
  2627. fi
  2628. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2629. do
  2630. test "x$ac_site_file" = xNONE && continue
  2631. if test -r "$ac_site_file"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2633. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2634. sed 's/^/| /' "$ac_site_file" >&5
  2635. . "$ac_site_file"
  2636. fi
  2637. done
  2638. if test -r "$cache_file"; then
  2639. # Some versions of bash will fail to source /dev/null (special
  2640. # files actually), so we avoid doing that.
  2641. if test -f "$cache_file"; then
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2643. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2644. case $cache_file in
  2645. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2646. *) . "./$cache_file";;
  2647. esac
  2648. fi
  2649. else
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2651. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2652. >$cache_file
  2653. fi
  2654. # Check that the precious variables saved in the cache have kept the same
  2655. # value.
  2656. ac_cache_corrupted=false
  2657. for ac_var in $ac_precious_vars; do
  2658. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2659. eval ac_new_set=\$ac_env_${ac_var}_set
  2660. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2661. eval ac_new_val=\$ac_env_${ac_var}_value
  2662. case $ac_old_set,$ac_new_set in
  2663. set,)
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2665. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2666. ac_cache_corrupted=: ;;
  2667. ,set)
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2669. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2670. ac_cache_corrupted=: ;;
  2671. ,);;
  2672. *)
  2673. if test "x$ac_old_val" != "x$ac_new_val"; then
  2674. # differences in whitespace do not lead to failure.
  2675. ac_old_val_w=`echo x $ac_old_val`
  2676. ac_new_val_w=`echo x $ac_new_val`
  2677. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2679. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2680. ac_cache_corrupted=:
  2681. else
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2683. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2684. eval $ac_var=\$ac_old_val
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2687. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2689. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2690. fi;;
  2691. esac
  2692. # Pass precious variables to config.status.
  2693. if test "$ac_new_set" = set; then
  2694. case $ac_new_val in
  2695. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2696. *) ac_arg=$ac_var=$ac_new_val ;;
  2697. esac
  2698. case " $ac_configure_args " in
  2699. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2700. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2701. esac
  2702. fi
  2703. done
  2704. if $ac_cache_corrupted; then
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2708. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2709. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2710. fi
  2711. ## -------------------- ##
  2712. ## Main body of script. ##
  2713. ## -------------------- ##
  2714. ac_ext=c
  2715. ac_cpp='$CPP $CPPFLAGS'
  2716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2719. ac_aux_dir=
  2720. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2721. for ac_t in install-sh install.sh shtool; do
  2722. if test -f "$ac_dir/$ac_t"; then
  2723. ac_aux_dir=$ac_dir
  2724. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2725. break 2
  2726. fi
  2727. done
  2728. done
  2729. if test -z "$ac_aux_dir"; then
  2730. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2731. fi
  2732. # These three variables are undocumented and unsupported,
  2733. # and are intended to be withdrawn in a future Autoconf release.
  2734. # They can cause serious problems if a builder's source tree is in a directory
  2735. # whose full name contains unusual characters.
  2736. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2737. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2738. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2739. # Make sure we can run config.sub.
  2740. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2741. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2743. $as_echo_n "checking build system type... " >&6; }
  2744. if test "${ac_cv_build+set}" = set; then :
  2745. $as_echo_n "(cached) " >&6
  2746. else
  2747. ac_build_alias=$build_alias
  2748. test "x$ac_build_alias" = x &&
  2749. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2750. test "x$ac_build_alias" = x &&
  2751. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2752. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2753. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2754. fi
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2756. $as_echo "$ac_cv_build" >&6; }
  2757. case $ac_cv_build in
  2758. *-*-*) ;;
  2759. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2760. esac
  2761. build=$ac_cv_build
  2762. ac_save_IFS=$IFS; IFS='-'
  2763. set x $ac_cv_build
  2764. shift
  2765. build_cpu=$1
  2766. build_vendor=$2
  2767. shift; shift
  2768. # Remember, the first character of IFS is used to create $*,
  2769. # except with old shells:
  2770. build_os=$*
  2771. IFS=$ac_save_IFS
  2772. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2773. case ${build_alias} in
  2774. "") build_noncanonical=${build} ;;
  2775. *) build_noncanonical=${build_alias} ;;
  2776. esac
  2777. case ${host_alias} in
  2778. "") host_noncanonical=${build_noncanonical} ;;
  2779. *) host_noncanonical=${host_alias} ;;
  2780. esac
  2781. case ${target_alias} in
  2782. "") target_noncanonical=${host_noncanonical} ;;
  2783. *) target_noncanonical=${target_alias} ;;
  2784. esac
  2785. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2786. # have matching libraries, they should use host libraries: Makefile.tpl
  2787. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2788. # However, they still use the build modules, because the corresponding
  2789. # host modules (e.g. bison) are only built for the host when bootstrap
  2790. # finishes. So:
  2791. # - build_subdir is where we find build modules, and never changes.
  2792. # - build_libsubdir is where we find build libraries, and can be overridden.
  2793. # Prefix 'build-' so this never conflicts with target_subdir.
  2794. build_subdir="build-${build_noncanonical}"
  2795. # Check whether --with-build-libsubdir was given.
  2796. if test "${with_build_libsubdir+set}" = set; then :
  2797. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2798. else
  2799. build_libsubdir="$build_subdir"
  2800. fi
  2801. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2802. if ( test $srcdir = . && test -d gcc ) \
  2803. || test -d $srcdir/../host-${host_noncanonical}; then
  2804. host_subdir="host-${host_noncanonical}"
  2805. else
  2806. host_subdir=.
  2807. fi
  2808. # No prefix.
  2809. target_subdir=${target_noncanonical}
  2810. # We use these options to decide which functions to include.
  2811. # Check whether --with-target-subdir was given.
  2812. if test "${with_target_subdir+set}" = set; then :
  2813. withval=$with_target_subdir;
  2814. fi
  2815. # We may get other options which we don't document:
  2816. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2817. # Find the rest of the source tree framework.
  2818. # Default to --enable-multilib
  2819. # Check whether --enable-multilib was given.
  2820. if test "${enable_multilib+set}" = set; then :
  2821. enableval=$enable_multilib; case "$enableval" in
  2822. yes) multilib=yes ;;
  2823. no) multilib=no ;;
  2824. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2825. esac
  2826. else
  2827. multilib=yes
  2828. fi
  2829. # We may get other options which we leave undocumented:
  2830. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2831. # See config-ml.in if you want the gory details.
  2832. if test "$srcdir" = "."; then
  2833. if test "$with_target_subdir" != "."; then
  2834. multi_basedir="$srcdir/$with_multisrctop../.."
  2835. else
  2836. multi_basedir="$srcdir/$with_multisrctop.."
  2837. fi
  2838. else
  2839. multi_basedir="$srcdir/.."
  2840. fi
  2841. # Even if the default multilib is not a cross compilation,
  2842. # it may be that some of the other multilibs are.
  2843. if test $cross_compiling = no && test $multilib = yes \
  2844. && test "x${with_multisubdir}" != x ; then
  2845. cross_compiling=maybe
  2846. fi
  2847. ac_config_commands="$ac_config_commands default-1"
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2849. $as_echo_n "checking host system type... " >&6; }
  2850. if test "${ac_cv_host+set}" = set; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test "x$host_alias" = x; then
  2854. ac_cv_host=$ac_cv_build
  2855. else
  2856. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2857. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2858. fi
  2859. fi
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2861. $as_echo "$ac_cv_host" >&6; }
  2862. case $ac_cv_host in
  2863. *-*-*) ;;
  2864. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2865. esac
  2866. host=$ac_cv_host
  2867. ac_save_IFS=$IFS; IFS='-'
  2868. set x $ac_cv_host
  2869. shift
  2870. host_cpu=$1
  2871. host_vendor=$2
  2872. shift; shift
  2873. # Remember, the first character of IFS is used to create $*,
  2874. # except with old shells:
  2875. host_os=$*
  2876. IFS=$ac_save_IFS
  2877. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2879. $as_echo_n "checking target system type... " >&6; }
  2880. if test "${ac_cv_target+set}" = set; then :
  2881. $as_echo_n "(cached) " >&6
  2882. else
  2883. if test "x$target_alias" = x; then
  2884. ac_cv_target=$ac_cv_host
  2885. else
  2886. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2887. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2888. fi
  2889. fi
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2891. $as_echo "$ac_cv_target" >&6; }
  2892. case $ac_cv_target in
  2893. *-*-*) ;;
  2894. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2895. esac
  2896. target=$ac_cv_target
  2897. ac_save_IFS=$IFS; IFS='-'
  2898. set x $ac_cv_target
  2899. shift
  2900. target_cpu=$1
  2901. target_vendor=$2
  2902. shift; shift
  2903. # Remember, the first character of IFS is used to create $*,
  2904. # except with old shells:
  2905. target_os=$*
  2906. IFS=$ac_save_IFS
  2907. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2908. # The aliases save the names the user supplied, while $host etc.
  2909. # will get canonicalized.
  2910. test -n "$target_alias" &&
  2911. test "$program_prefix$program_suffix$program_transform_name" = \
  2912. NONENONEs,x,x, &&
  2913. program_prefix=${target_alias}-
  2914. case ${build_alias} in
  2915. "") build_noncanonical=${build} ;;
  2916. *) build_noncanonical=${build_alias} ;;
  2917. esac
  2918. case ${target_alias} in
  2919. "") target_noncanonical=${host_noncanonical} ;;
  2920. *) target_noncanonical=${target_alias} ;;
  2921. esac
  2922. LIBSTDCXX_RAW_CXX_CXXFLAGS="\
  2923. -I\$(top_builddir)/../libstdc++-v3/include \
  2924. -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
  2925. -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
  2926. LIBSTDCXX_RAW_CXX_LDFLAGS="\
  2927. \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
  2928. # This works around the fact that libtool configuration may change LD
  2929. # for this particular configuration, but some shells, instead of
  2930. # keeping the changes in LD private, export them just because LD is
  2931. # exported.
  2932. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2934. $as_echo_n "checking whether ln -s works... " >&6; }
  2935. LN_S=$as_ln_s
  2936. if test "$LN_S" = "ln -s"; then
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2938. $as_echo "yes" >&6; }
  2939. else
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2941. $as_echo "no, using $LN_S" >&6; }
  2942. fi
  2943. # This works around an automake problem.
  2944. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  2945. # Check whether --with-cross-host was given.
  2946. if test "${with_cross_host+set}" = set; then :
  2947. withval=$with_cross_host;
  2948. fi
  2949. # Check whether --with-newlib was given.
  2950. if test "${with_newlib+set}" = set; then :
  2951. withval=$with_newlib;
  2952. fi
  2953. # Check whether --enable-version-specific-runtime-libs was given.
  2954. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2955. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2956. yes) version_specific_libs=yes ;;
  2957. no) version_specific_libs=no ;;
  2958. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2959. esac
  2960. else
  2961. version_specific_libs=no
  2962. fi
  2963. # Check whether --enable-browser-plugin was given.
  2964. if test "${enable_browser_plugin+set}" = set; then :
  2965. enableval=$enable_browser_plugin; case "$enableval" in
  2966. yes) browser_plugin_enabled=yes ;;
  2967. no) browser_plugin_enabled=no ;;
  2968. *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
  2969. esac
  2970. else
  2971. browser_plugin_enabled=no
  2972. fi
  2973. # Check whether --enable-gconf-peer was given.
  2974. if test "${enable_gconf_peer+set}" = set; then :
  2975. enableval=$enable_gconf_peer; case "$enableval" in
  2976. yes) gconf_enabled=yes ;;
  2977. no) gconf_enabled=no ;;
  2978. *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
  2979. esac
  2980. else
  2981. gconf_enabled=no
  2982. fi
  2983. # Check whether --with-antlr-jar was given.
  2984. if test "${with_antlr_jar+set}" = set; then :
  2985. withval=$with_antlr_jar;
  2986. ANTLR_JAR=$withval
  2987. else
  2988. ANTLR_JAR=
  2989. fi
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
  2991. $as_echo_n "checking for antlr.jar... " >&6; }
  2992. if test "x$ANTLR_JAR" = x; then
  2993. for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
  2994. /usr/share/antlr/lib /usr/share/java /usr/lib;
  2995. do
  2996. if test -f "$antlr_lib_home/antlr.jar"; then
  2997. # FIXME: version check for antlr needed without using a VM
  2998. ANTLR_JAR="$antlr_lib_home/antlr.jar"
  2999. break
  3000. fi
  3001. done
  3002. if test "x$ANTLR_JAR" = x; then
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  3004. $as_echo "not found" >&6; }
  3005. else
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
  3007. $as_echo "$ANTLR_JAR" >&6; }
  3008. fi
  3009. else
  3010. if test -f "${ANTLR_JAR}"; then
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
  3012. $as_echo "$ANTLR_JAR" >&6; }
  3013. else
  3014. as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
  3015. fi
  3016. fi
  3017. # Check whether --enable-gjdoc was given.
  3018. if test "${enable_gjdoc+set}" = set; then :
  3019. enableval=$enable_gjdoc; case "${enableval}" in
  3020. yes) BUILD_GJDOC=yes ;;
  3021. no) BUILD_GJDOC=no ;;
  3022. *) BUILD_GJDOC=yes ;;
  3023. esac
  3024. else
  3025. BUILD_GJDOC=maybe
  3026. fi
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
  3028. $as_echo_n "checking whether to build gjdoc... " >&6; }
  3029. if test "x$BUILD_GJDOC" = xmaybe; then
  3030. if test -f "${ANTLR_JAR}"; then
  3031. BUILD_GJDOC=yes
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3033. $as_echo "yes" >&6; }
  3034. else
  3035. BUILD_GJDOC=no
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
  3037. $as_echo "no, antlr.jar not found" >&6; }
  3038. fi
  3039. else
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
  3041. $as_echo "$BUILD_GJDOC" >&6; }
  3042. fi
  3043. if test "x${BUILD_GJDOC}" = xyes; then
  3044. CREATE_GJDOC_TRUE=
  3045. CREATE_GJDOC_FALSE='#'
  3046. else
  3047. CREATE_GJDOC_TRUE='#'
  3048. CREATE_GJDOC_FALSE=
  3049. fi
  3050. # Check whether --enable-java-maintainer-mode was given.
  3051. if test "${enable_java_maintainer_mode+set}" = set; then :
  3052. enableval=$enable_java_maintainer_mode;
  3053. fi
  3054. if test "$enable_java_maintainer_mode" = yes; then
  3055. JAVA_MAINTAINER_MODE_TRUE=
  3056. JAVA_MAINTAINER_MODE_FALSE='#'
  3057. else
  3058. JAVA_MAINTAINER_MODE_TRUE='#'
  3059. JAVA_MAINTAINER_MODE_FALSE=
  3060. fi
  3061. # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
  3062. # For libstdc++-v3, -fno-builtin must be present here so that a
  3063. # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
  3064. # used in later tests. This may not be necessary in libjava; I don't know.
  3065. save_CXXFLAGS="$CXXFLAGS"
  3066. CXXFLAGS="$CXXFLAGS -fno-builtin"
  3067. ac_ext=c
  3068. ac_cpp='$CPP $CPPFLAGS'
  3069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3072. if test -n "$ac_tool_prefix"; then
  3073. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3074. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3076. $as_echo_n "checking for $ac_word... " >&6; }
  3077. if test "${ac_cv_prog_CC+set}" = set; then :
  3078. $as_echo_n "(cached) " >&6
  3079. else
  3080. if test -n "$CC"; then
  3081. ac_cv_prog_CC="$CC" # Let the user override the test.
  3082. else
  3083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3084. for as_dir in $PATH
  3085. do
  3086. IFS=$as_save_IFS
  3087. test -z "$as_dir" && as_dir=.
  3088. for ac_exec_ext in '' $ac_executable_extensions; do
  3089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3090. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3092. break 2
  3093. fi
  3094. done
  3095. done
  3096. IFS=$as_save_IFS
  3097. fi
  3098. fi
  3099. CC=$ac_cv_prog_CC
  3100. if test -n "$CC"; then
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3102. $as_echo "$CC" >&6; }
  3103. else
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3105. $as_echo "no" >&6; }
  3106. fi
  3107. fi
  3108. if test -z "$ac_cv_prog_CC"; then
  3109. ac_ct_CC=$CC
  3110. # Extract the first word of "gcc", so it can be a program name with args.
  3111. set dummy gcc; ac_word=$2
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3113. $as_echo_n "checking for $ac_word... " >&6; }
  3114. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. if test -n "$ac_ct_CC"; then
  3118. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3119. else
  3120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3121. for as_dir in $PATH
  3122. do
  3123. IFS=$as_save_IFS
  3124. test -z "$as_dir" && as_dir=.
  3125. for ac_exec_ext in '' $ac_executable_extensions; do
  3126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3127. ac_cv_prog_ac_ct_CC="gcc"
  3128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3129. break 2
  3130. fi
  3131. done
  3132. done
  3133. IFS=$as_save_IFS
  3134. fi
  3135. fi
  3136. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3137. if test -n "$ac_ct_CC"; then
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3139. $as_echo "$ac_ct_CC" >&6; }
  3140. else
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3142. $as_echo "no" >&6; }
  3143. fi
  3144. if test "x$ac_ct_CC" = x; then
  3145. CC=""
  3146. else
  3147. case $cross_compiling:$ac_tool_warned in
  3148. yes:)
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3151. ac_tool_warned=yes ;;
  3152. esac
  3153. CC=$ac_ct_CC
  3154. fi
  3155. else
  3156. CC="$ac_cv_prog_CC"
  3157. fi
  3158. if test -z "$CC"; then
  3159. if test -n "$ac_tool_prefix"; then
  3160. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3161. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3163. $as_echo_n "checking for $ac_word... " >&6; }
  3164. if test "${ac_cv_prog_CC+set}" = set; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. if test -n "$CC"; then
  3168. ac_cv_prog_CC="$CC" # Let the user override the test.
  3169. else
  3170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3171. for as_dir in $PATH
  3172. do
  3173. IFS=$as_save_IFS
  3174. test -z "$as_dir" && as_dir=.
  3175. for ac_exec_ext in '' $ac_executable_extensions; do
  3176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3177. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3179. break 2
  3180. fi
  3181. done
  3182. done
  3183. IFS=$as_save_IFS
  3184. fi
  3185. fi
  3186. CC=$ac_cv_prog_CC
  3187. if test -n "$CC"; then
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3189. $as_echo "$CC" >&6; }
  3190. else
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3192. $as_echo "no" >&6; }
  3193. fi
  3194. fi
  3195. fi
  3196. if test -z "$CC"; then
  3197. # Extract the first word of "cc", so it can be a program name with args.
  3198. set dummy cc; ac_word=$2
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3200. $as_echo_n "checking for $ac_word... " >&6; }
  3201. if test "${ac_cv_prog_CC+set}" = set; then :
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. if test -n "$CC"; then
  3205. ac_cv_prog_CC="$CC" # Let the user override the test.
  3206. else
  3207. ac_prog_rejected=no
  3208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3209. for as_dir in $PATH
  3210. do
  3211. IFS=$as_save_IFS
  3212. test -z "$as_dir" && as_dir=.
  3213. for ac_exec_ext in '' $ac_executable_extensions; do
  3214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3215. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3216. ac_prog_rejected=yes
  3217. continue
  3218. fi
  3219. ac_cv_prog_CC="cc"
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3221. break 2
  3222. fi
  3223. done
  3224. done
  3225. IFS=$as_save_IFS
  3226. if test $ac_prog_rejected = yes; then
  3227. # We found a bogon in the path, so make sure we never use it.
  3228. set dummy $ac_cv_prog_CC
  3229. shift
  3230. if test $# != 0; then
  3231. # We chose a different compiler from the bogus one.
  3232. # However, it has the same basename, so the bogon will be chosen
  3233. # first if we set CC to just the basename; use the full file name.
  3234. shift
  3235. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3236. fi
  3237. fi
  3238. fi
  3239. fi
  3240. CC=$ac_cv_prog_CC
  3241. if test -n "$CC"; then
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3243. $as_echo "$CC" >&6; }
  3244. else
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3246. $as_echo "no" >&6; }
  3247. fi
  3248. fi
  3249. if test -z "$CC"; then
  3250. if test -n "$ac_tool_prefix"; then
  3251. for ac_prog in cl.exe
  3252. do
  3253. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3254. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3256. $as_echo_n "checking for $ac_word... " >&6; }
  3257. if test "${ac_cv_prog_CC+set}" = set; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. if test -n "$CC"; then
  3261. ac_cv_prog_CC="$CC" # Let the user override the test.
  3262. else
  3263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3264. for as_dir in $PATH
  3265. do
  3266. IFS=$as_save_IFS
  3267. test -z "$as_dir" && as_dir=.
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3270. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3272. break 2
  3273. fi
  3274. done
  3275. done
  3276. IFS=$as_save_IFS
  3277. fi
  3278. fi
  3279. CC=$ac_cv_prog_CC
  3280. if test -n "$CC"; then
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3282. $as_echo "$CC" >&6; }
  3283. else
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3285. $as_echo "no" >&6; }
  3286. fi
  3287. test -n "$CC" && break
  3288. done
  3289. fi
  3290. if test -z "$CC"; then
  3291. ac_ct_CC=$CC
  3292. for ac_prog in cl.exe
  3293. do
  3294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3295. set dummy $ac_prog; ac_word=$2
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3297. $as_echo_n "checking for $ac_word... " >&6; }
  3298. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3299. $as_echo_n "(cached) " >&6
  3300. else
  3301. if test -n "$ac_ct_CC"; then
  3302. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3303. else
  3304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3305. for as_dir in $PATH
  3306. do
  3307. IFS=$as_save_IFS
  3308. test -z "$as_dir" && as_dir=.
  3309. for ac_exec_ext in '' $ac_executable_extensions; do
  3310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3311. ac_cv_prog_ac_ct_CC="$ac_prog"
  3312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. fi
  3319. fi
  3320. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3321. if test -n "$ac_ct_CC"; then
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3323. $as_echo "$ac_ct_CC" >&6; }
  3324. else
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. $as_echo "no" >&6; }
  3327. fi
  3328. test -n "$ac_ct_CC" && break
  3329. done
  3330. if test "x$ac_ct_CC" = x; then
  3331. CC=""
  3332. else
  3333. case $cross_compiling:$ac_tool_warned in
  3334. yes:)
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3337. ac_tool_warned=yes ;;
  3338. esac
  3339. CC=$ac_ct_CC
  3340. fi
  3341. fi
  3342. fi
  3343. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3345. as_fn_error "no acceptable C compiler found in \$PATH
  3346. See \`config.log' for more details." "$LINENO" 5; }
  3347. # Provide some information about the compiler.
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3349. set X $ac_compile
  3350. ac_compiler=$2
  3351. for ac_option in --version -v -V -qversion; do
  3352. { { ac_try="$ac_compiler $ac_option >&5"
  3353. case "(($ac_try" in
  3354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3355. *) ac_try_echo=$ac_try;;
  3356. esac
  3357. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3358. $as_echo "$ac_try_echo"; } >&5
  3359. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3360. ac_status=$?
  3361. if test -s conftest.err; then
  3362. sed '10a\
  3363. ... rest of stderr output deleted ...
  3364. 10q' conftest.err >conftest.er1
  3365. cat conftest.er1 >&5
  3366. rm -f conftest.er1 conftest.err
  3367. fi
  3368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3369. test $ac_status = 0; }
  3370. done
  3371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3372. /* end confdefs.h. */
  3373. int
  3374. main ()
  3375. {
  3376. ;
  3377. return 0;
  3378. }
  3379. _ACEOF
  3380. # FIXME: Cleanup?
  3381. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3382. (eval $ac_link) 2>&5
  3383. ac_status=$?
  3384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3385. test $ac_status = 0; }; then :
  3386. gcc_no_link=no
  3387. else
  3388. gcc_no_link=yes
  3389. fi
  3390. if test x$gcc_no_link = xyes; then
  3391. # Setting cross_compile will disable run tests; it will
  3392. # also disable AC_CHECK_FILE but that's generally
  3393. # correct if we can't link.
  3394. cross_compiling=yes
  3395. EXEEXT=
  3396. else
  3397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3398. /* end confdefs.h. */
  3399. int
  3400. main ()
  3401. {
  3402. ;
  3403. return 0;
  3404. }
  3405. _ACEOF
  3406. ac_clean_files_save=$ac_clean_files
  3407. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3408. # Try to create an executable without -o first, disregard a.out.
  3409. # It will help us diagnose broken compilers, and finding out an intuition
  3410. # of exeext.
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3412. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3413. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3414. # The possible output files:
  3415. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3416. ac_rmfiles=
  3417. for ac_file in $ac_files
  3418. do
  3419. case $ac_file in
  3420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3421. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3422. esac
  3423. done
  3424. rm -f $ac_rmfiles
  3425. if { { ac_try="$ac_link_default"
  3426. case "(($ac_try" in
  3427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3428. *) ac_try_echo=$ac_try;;
  3429. esac
  3430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3431. $as_echo "$ac_try_echo"; } >&5
  3432. (eval "$ac_link_default") 2>&5
  3433. ac_status=$?
  3434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3435. test $ac_status = 0; }; then :
  3436. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3437. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3438. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3439. # so that the user can short-circuit this test for compilers unknown to
  3440. # Autoconf.
  3441. for ac_file in $ac_files ''
  3442. do
  3443. test -f "$ac_file" || continue
  3444. case $ac_file in
  3445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3446. ;;
  3447. [ab].out )
  3448. # We found the default executable, but exeext='' is most
  3449. # certainly right.
  3450. break;;
  3451. *.* )
  3452. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3453. then :; else
  3454. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3455. fi
  3456. # We set ac_cv_exeext here because the later test for it is not
  3457. # safe: cross compilers may not add the suffix if given an `-o'
  3458. # argument, so we may need to know it at that point already.
  3459. # Even if this section looks crufty: it has the advantage of
  3460. # actually working.
  3461. break;;
  3462. * )
  3463. break;;
  3464. esac
  3465. done
  3466. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3467. else
  3468. ac_file=''
  3469. fi
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3471. $as_echo "$ac_file" >&6; }
  3472. if test -z "$ac_file"; then :
  3473. $as_echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3477. { as_fn_set_status 77
  3478. as_fn_error "C compiler cannot create executables
  3479. See \`config.log' for more details." "$LINENO" 5; }; }
  3480. fi
  3481. ac_exeext=$ac_cv_exeext
  3482. # Check that the compiler produces executables we can run. If not, either
  3483. # the compiler is broken, or we cross compile.
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3485. $as_echo_n "checking whether the C compiler works... " >&6; }
  3486. # If not cross compiling, check that we can run a simple program.
  3487. if test "$cross_compiling" != yes; then
  3488. if { ac_try='./$ac_file'
  3489. { { case "(($ac_try" in
  3490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491. *) ac_try_echo=$ac_try;;
  3492. esac
  3493. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3494. $as_echo "$ac_try_echo"; } >&5
  3495. (eval "$ac_try") 2>&5
  3496. ac_status=$?
  3497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3498. test $ac_status = 0; }; }; then
  3499. cross_compiling=no
  3500. else
  3501. if test "$cross_compiling" = maybe; then
  3502. cross_compiling=yes
  3503. else
  3504. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3506. as_fn_error "cannot run C compiled programs.
  3507. If you meant to cross compile, use \`--host'.
  3508. See \`config.log' for more details." "$LINENO" 5; }
  3509. fi
  3510. fi
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3513. $as_echo "yes" >&6; }
  3514. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3515. ac_clean_files=$ac_clean_files_save
  3516. # Check that the compiler produces executables we can run. If not, either
  3517. # the compiler is broken, or we cross compile.
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3519. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3521. $as_echo "$cross_compiling" >&6; }
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3523. $as_echo_n "checking for suffix of executables... " >&6; }
  3524. if { { ac_try="$ac_link"
  3525. case "(($ac_try" in
  3526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3527. *) ac_try_echo=$ac_try;;
  3528. esac
  3529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3530. $as_echo "$ac_try_echo"; } >&5
  3531. (eval "$ac_link") 2>&5
  3532. ac_status=$?
  3533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3534. test $ac_status = 0; }; then :
  3535. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3536. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3537. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3538. # `rm'.
  3539. for ac_file in conftest.exe conftest conftest.*; do
  3540. test -f "$ac_file" || continue
  3541. case $ac_file in
  3542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3543. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3544. break;;
  3545. * ) break;;
  3546. esac
  3547. done
  3548. else
  3549. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3550. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3551. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3552. See \`config.log' for more details." "$LINENO" 5; }
  3553. fi
  3554. rm -f conftest$ac_cv_exeext
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3556. $as_echo "$ac_cv_exeext" >&6; }
  3557. rm -f conftest.$ac_ext
  3558. EXEEXT=$ac_cv_exeext
  3559. ac_exeext=$EXEEXT
  3560. fi
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3562. $as_echo_n "checking for suffix of object files... " >&6; }
  3563. if test "${ac_cv_objext+set}" = set; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3567. /* end confdefs.h. */
  3568. int
  3569. main ()
  3570. {
  3571. ;
  3572. return 0;
  3573. }
  3574. _ACEOF
  3575. rm -f conftest.o conftest.obj
  3576. if { { ac_try="$ac_compile"
  3577. case "(($ac_try" in
  3578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3579. *) ac_try_echo=$ac_try;;
  3580. esac
  3581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3582. $as_echo "$ac_try_echo"; } >&5
  3583. (eval "$ac_compile") 2>&5
  3584. ac_status=$?
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3586. test $ac_status = 0; }; then :
  3587. for ac_file in conftest.o conftest.obj conftest.*; do
  3588. test -f "$ac_file" || continue;
  3589. case $ac_file in
  3590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3591. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3592. break;;
  3593. esac
  3594. done
  3595. else
  3596. $as_echo "$as_me: failed program was:" >&5
  3597. sed 's/^/| /' conftest.$ac_ext >&5
  3598. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3599. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3600. as_fn_error "cannot compute suffix of object files: cannot compile
  3601. See \`config.log' for more details." "$LINENO" 5; }
  3602. fi
  3603. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3604. fi
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3606. $as_echo "$ac_cv_objext" >&6; }
  3607. OBJEXT=$ac_cv_objext
  3608. ac_objext=$OBJEXT
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3610. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3611. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3615. /* end confdefs.h. */
  3616. int
  3617. main ()
  3618. {
  3619. #ifndef __GNUC__
  3620. choke me
  3621. #endif
  3622. ;
  3623. return 0;
  3624. }
  3625. _ACEOF
  3626. if ac_fn_c_try_compile "$LINENO"; then :
  3627. ac_compiler_gnu=yes
  3628. else
  3629. ac_compiler_gnu=no
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3633. fi
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3635. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3636. if test $ac_compiler_gnu = yes; then
  3637. GCC=yes
  3638. else
  3639. GCC=
  3640. fi
  3641. ac_test_CFLAGS=${CFLAGS+set}
  3642. ac_save_CFLAGS=$CFLAGS
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3644. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3645. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. ac_save_c_werror_flag=$ac_c_werror_flag
  3649. ac_c_werror_flag=yes
  3650. ac_cv_prog_cc_g=no
  3651. CFLAGS="-g"
  3652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3653. /* end confdefs.h. */
  3654. int
  3655. main ()
  3656. {
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. if ac_fn_c_try_compile "$LINENO"; then :
  3662. ac_cv_prog_cc_g=yes
  3663. else
  3664. CFLAGS=""
  3665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3666. /* end confdefs.h. */
  3667. int
  3668. main ()
  3669. {
  3670. ;
  3671. return 0;
  3672. }
  3673. _ACEOF
  3674. if ac_fn_c_try_compile "$LINENO"; then :
  3675. else
  3676. ac_c_werror_flag=$ac_save_c_werror_flag
  3677. CFLAGS="-g"
  3678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3679. /* end confdefs.h. */
  3680. int
  3681. main ()
  3682. {
  3683. ;
  3684. return 0;
  3685. }
  3686. _ACEOF
  3687. if ac_fn_c_try_compile "$LINENO"; then :
  3688. ac_cv_prog_cc_g=yes
  3689. fi
  3690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3691. fi
  3692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3693. fi
  3694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3695. ac_c_werror_flag=$ac_save_c_werror_flag
  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3698. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3699. if test "$ac_test_CFLAGS" = set; then
  3700. CFLAGS=$ac_save_CFLAGS
  3701. elif test $ac_cv_prog_cc_g = yes; then
  3702. if test "$GCC" = yes; then
  3703. CFLAGS="-g -O2"
  3704. else
  3705. CFLAGS="-g"
  3706. fi
  3707. else
  3708. if test "$GCC" = yes; then
  3709. CFLAGS="-O2"
  3710. else
  3711. CFLAGS=
  3712. fi
  3713. fi
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3715. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3716. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3717. $as_echo_n "(cached) " >&6
  3718. else
  3719. ac_cv_prog_cc_c89=no
  3720. ac_save_CC=$CC
  3721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3722. /* end confdefs.h. */
  3723. #include <stdarg.h>
  3724. #include <stdio.h>
  3725. #include <sys/types.h>
  3726. #include <sys/stat.h>
  3727. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3728. struct buf { int x; };
  3729. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3730. static char *e (p, i)
  3731. char **p;
  3732. int i;
  3733. {
  3734. return p[i];
  3735. }
  3736. static char *f (char * (*g) (char **, int), char **p, ...)
  3737. {
  3738. char *s;
  3739. va_list v;
  3740. va_start (v,p);
  3741. s = g (p, va_arg (v,int));
  3742. va_end (v);
  3743. return s;
  3744. }
  3745. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3746. function prototypes and stuff, but not '\xHH' hex character constants.
  3747. These don't provoke an error unfortunately, instead are silently treated
  3748. as 'x'. The following induces an error, until -std is added to get
  3749. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3750. array size at least. It's necessary to write '\x00'==0 to get something
  3751. that's true only with -std. */
  3752. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3753. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3754. inside strings and character constants. */
  3755. #define FOO(x) 'x'
  3756. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3757. int test (int i, double x);
  3758. struct s1 {int (*f) (int a);};
  3759. struct s2 {int (*f) (double a);};
  3760. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3761. int argc;
  3762. char **argv;
  3763. int
  3764. main ()
  3765. {
  3766. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3772. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3773. do
  3774. CC="$ac_save_CC $ac_arg"
  3775. if ac_fn_c_try_compile "$LINENO"; then :
  3776. ac_cv_prog_cc_c89=$ac_arg
  3777. fi
  3778. rm -f core conftest.err conftest.$ac_objext
  3779. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3780. done
  3781. rm -f conftest.$ac_ext
  3782. CC=$ac_save_CC
  3783. fi
  3784. # AC_CACHE_VAL
  3785. case "x$ac_cv_prog_cc_c89" in
  3786. x)
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3788. $as_echo "none needed" >&6; } ;;
  3789. xno)
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3791. $as_echo "unsupported" >&6; } ;;
  3792. *)
  3793. CC="$CC $ac_cv_prog_cc_c89"
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3795. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3796. esac
  3797. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3798. fi
  3799. ac_ext=c
  3800. ac_cpp='$CPP $CPPFLAGS'
  3801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3804. ac_ext=cpp
  3805. ac_cpp='$CXXCPP $CPPFLAGS'
  3806. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3807. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3808. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3809. if test -z "$CXX"; then
  3810. if test -n "$CCC"; then
  3811. CXX=$CCC
  3812. else
  3813. if test -n "$ac_tool_prefix"; then
  3814. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3815. do
  3816. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3817. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3819. $as_echo_n "checking for $ac_word... " >&6; }
  3820. if test "${ac_cv_prog_CXX+set}" = set; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. if test -n "$CXX"; then
  3824. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3825. else
  3826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3827. for as_dir in $PATH
  3828. do
  3829. IFS=$as_save_IFS
  3830. test -z "$as_dir" && as_dir=.
  3831. for ac_exec_ext in '' $ac_executable_extensions; do
  3832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3833. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3835. break 2
  3836. fi
  3837. done
  3838. done
  3839. IFS=$as_save_IFS
  3840. fi
  3841. fi
  3842. CXX=$ac_cv_prog_CXX
  3843. if test -n "$CXX"; then
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3845. $as_echo "$CXX" >&6; }
  3846. else
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3848. $as_echo "no" >&6; }
  3849. fi
  3850. test -n "$CXX" && break
  3851. done
  3852. fi
  3853. if test -z "$CXX"; then
  3854. ac_ct_CXX=$CXX
  3855. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3856. do
  3857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3858. set dummy $ac_prog; ac_word=$2
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3860. $as_echo_n "checking for $ac_word... " >&6; }
  3861. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. if test -n "$ac_ct_CXX"; then
  3865. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3866. else
  3867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3868. for as_dir in $PATH
  3869. do
  3870. IFS=$as_save_IFS
  3871. test -z "$as_dir" && as_dir=.
  3872. for ac_exec_ext in '' $ac_executable_extensions; do
  3873. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3874. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3876. break 2
  3877. fi
  3878. done
  3879. done
  3880. IFS=$as_save_IFS
  3881. fi
  3882. fi
  3883. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3884. if test -n "$ac_ct_CXX"; then
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3886. $as_echo "$ac_ct_CXX" >&6; }
  3887. else
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3889. $as_echo "no" >&6; }
  3890. fi
  3891. test -n "$ac_ct_CXX" && break
  3892. done
  3893. if test "x$ac_ct_CXX" = x; then
  3894. CXX="g++"
  3895. else
  3896. case $cross_compiling:$ac_tool_warned in
  3897. yes:)
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3900. ac_tool_warned=yes ;;
  3901. esac
  3902. CXX=$ac_ct_CXX
  3903. fi
  3904. fi
  3905. fi
  3906. fi
  3907. # Provide some information about the compiler.
  3908. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3909. set X $ac_compile
  3910. ac_compiler=$2
  3911. for ac_option in --version -v -V -qversion; do
  3912. { { ac_try="$ac_compiler $ac_option >&5"
  3913. case "(($ac_try" in
  3914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3915. *) ac_try_echo=$ac_try;;
  3916. esac
  3917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3918. $as_echo "$ac_try_echo"; } >&5
  3919. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3920. ac_status=$?
  3921. if test -s conftest.err; then
  3922. sed '10a\
  3923. ... rest of stderr output deleted ...
  3924. 10q' conftest.err >conftest.er1
  3925. cat conftest.er1 >&5
  3926. rm -f conftest.er1 conftest.err
  3927. fi
  3928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3929. test $ac_status = 0; }
  3930. done
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3932. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3933. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3937. /* end confdefs.h. */
  3938. int
  3939. main ()
  3940. {
  3941. #ifndef __GNUC__
  3942. choke me
  3943. #endif
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. if ac_fn_cxx_try_compile "$LINENO"; then :
  3949. ac_compiler_gnu=yes
  3950. else
  3951. ac_compiler_gnu=no
  3952. fi
  3953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3954. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3955. fi
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3957. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3958. if test $ac_compiler_gnu = yes; then
  3959. GXX=yes
  3960. else
  3961. GXX=
  3962. fi
  3963. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3964. ac_save_CXXFLAGS=$CXXFLAGS
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3966. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3967. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3971. ac_cxx_werror_flag=yes
  3972. ac_cv_prog_cxx_g=no
  3973. CXXFLAGS="-g"
  3974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3975. /* end confdefs.h. */
  3976. int
  3977. main ()
  3978. {
  3979. ;
  3980. return 0;
  3981. }
  3982. _ACEOF
  3983. if ac_fn_cxx_try_compile "$LINENO"; then :
  3984. ac_cv_prog_cxx_g=yes
  3985. else
  3986. CXXFLAGS=""
  3987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3988. /* end confdefs.h. */
  3989. int
  3990. main ()
  3991. {
  3992. ;
  3993. return 0;
  3994. }
  3995. _ACEOF
  3996. if ac_fn_cxx_try_compile "$LINENO"; then :
  3997. else
  3998. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3999. CXXFLAGS="-g"
  4000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4001. /* end confdefs.h. */
  4002. int
  4003. main ()
  4004. {
  4005. ;
  4006. return 0;
  4007. }
  4008. _ACEOF
  4009. if ac_fn_cxx_try_compile "$LINENO"; then :
  4010. ac_cv_prog_cxx_g=yes
  4011. fi
  4012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4013. fi
  4014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4015. fi
  4016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4017. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4018. fi
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4020. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4021. if test "$ac_test_CXXFLAGS" = set; then
  4022. CXXFLAGS=$ac_save_CXXFLAGS
  4023. elif test $ac_cv_prog_cxx_g = yes; then
  4024. if test "$GXX" = yes; then
  4025. CXXFLAGS="-g -O2"
  4026. else
  4027. CXXFLAGS="-g"
  4028. fi
  4029. else
  4030. if test "$GXX" = yes; then
  4031. CXXFLAGS="-O2"
  4032. else
  4033. CXXFLAGS=
  4034. fi
  4035. fi
  4036. ac_ext=c
  4037. ac_cpp='$CPP $CPPFLAGS'
  4038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4041. CXXFLAGS="$save_CXXFLAGS"
  4042. am__api_version='1.11'
  4043. # Find a good install program. We prefer a C program (faster),
  4044. # so one script is as good as another. But avoid the broken or
  4045. # incompatible versions:
  4046. # SysV /etc/install, /usr/sbin/install
  4047. # SunOS /usr/etc/install
  4048. # IRIX /sbin/install
  4049. # AIX /bin/install
  4050. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4051. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4052. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4053. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4054. # OS/2's system install, which has a completely different semantic
  4055. # ./install, which can be erroneously created by make from ./install.sh.
  4056. # Reject install programs that cannot install multiple files.
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4058. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4059. if test -z "$INSTALL"; then
  4060. if test "${ac_cv_path_install+set}" = set; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4064. for as_dir in $PATH
  4065. do
  4066. IFS=$as_save_IFS
  4067. test -z "$as_dir" && as_dir=.
  4068. # Account for people who put trailing slashes in PATH elements.
  4069. case $as_dir/ in #((
  4070. ./ | .// | /[cC]/* | \
  4071. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4072. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4073. /usr/ucb/* ) ;;
  4074. *)
  4075. # OSF1 and SCO ODT 3.0 have their own names for install.
  4076. # Don't use installbsd from OSF since it installs stuff as root
  4077. # by default.
  4078. for ac_prog in ginstall scoinst install; do
  4079. for ac_exec_ext in '' $ac_executable_extensions; do
  4080. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4081. if test $ac_prog = install &&
  4082. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4083. # AIX install. It has an incompatible calling convention.
  4084. :
  4085. elif test $ac_prog = install &&
  4086. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4087. # program-specific install script used by HP pwplus--don't use.
  4088. :
  4089. else
  4090. rm -rf conftest.one conftest.two conftest.dir
  4091. echo one > conftest.one
  4092. echo two > conftest.two
  4093. mkdir conftest.dir
  4094. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4095. test -s conftest.one && test -s conftest.two &&
  4096. test -s conftest.dir/conftest.one &&
  4097. test -s conftest.dir/conftest.two
  4098. then
  4099. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4100. break 3
  4101. fi
  4102. fi
  4103. fi
  4104. done
  4105. done
  4106. ;;
  4107. esac
  4108. done
  4109. IFS=$as_save_IFS
  4110. rm -rf conftest.one conftest.two conftest.dir
  4111. fi
  4112. if test "${ac_cv_path_install+set}" = set; then
  4113. INSTALL=$ac_cv_path_install
  4114. else
  4115. # As a last resort, use the slow shell script. Don't cache a
  4116. # value for INSTALL within a source directory, because that will
  4117. # break other packages using the cache if that directory is
  4118. # removed, or if the value is a relative name.
  4119. INSTALL=$ac_install_sh
  4120. fi
  4121. fi
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4123. $as_echo "$INSTALL" >&6; }
  4124. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4125. # It thinks the first close brace ends the variable substitution.
  4126. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4127. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4128. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4130. $as_echo_n "checking whether build environment is sane... " >&6; }
  4131. # Just in case
  4132. sleep 1
  4133. echo timestamp > conftest.file
  4134. # Reject unsafe characters in $srcdir or the absolute working directory
  4135. # name. Accept space and tab only in the latter.
  4136. am_lf='
  4137. '
  4138. case `pwd` in
  4139. *[\\\"\#\$\&\'\`$am_lf]*)
  4140. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  4141. esac
  4142. case $srcdir in
  4143. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  4144. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  4145. esac
  4146. # Do `set' in a subshell so we don't clobber the current shell's
  4147. # arguments. Must try -L first in case configure is actually a
  4148. # symlink; some systems play weird games with the mod time of symlinks
  4149. # (eg FreeBSD returns the mod time of the symlink's containing
  4150. # directory).
  4151. if (
  4152. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  4153. if test "$*" = "X"; then
  4154. # -L didn't work.
  4155. set X `ls -t "$srcdir/configure" conftest.file`
  4156. fi
  4157. rm -f conftest.file
  4158. if test "$*" != "X $srcdir/configure conftest.file" \
  4159. && test "$*" != "X conftest.file $srcdir/configure"; then
  4160. # If neither matched, then we have a broken ls. This can happen
  4161. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4162. # broken ls alias from the environment. This has actually
  4163. # happened. Such a system could not be considered "sane".
  4164. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  4165. alias in your environment" "$LINENO" 5
  4166. fi
  4167. test "$2" = conftest.file
  4168. )
  4169. then
  4170. # Ok.
  4171. :
  4172. else
  4173. as_fn_error "newly created file is older than distributed files!
  4174. Check your system clock" "$LINENO" 5
  4175. fi
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4177. $as_echo "yes" >&6; }
  4178. test "$program_prefix" != NONE &&
  4179. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4180. # Use a double $ so make ignores it.
  4181. test "$program_suffix" != NONE &&
  4182. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4183. # Double any \ or $.
  4184. # By default was `s,x,x', remove it if useless.
  4185. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4186. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4187. # expand $ac_aux_dir to an absolute path
  4188. am_aux_dir=`cd $ac_aux_dir && pwd`
  4189. if test x"${MISSING+set}" != xset; then
  4190. case $am_aux_dir in
  4191. *\ * | *\ *)
  4192. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  4193. *)
  4194. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  4195. esac
  4196. fi
  4197. # Use eval to expand $SHELL
  4198. if eval "$MISSING --run true"; then
  4199. am_missing_run="$MISSING --run "
  4200. else
  4201. am_missing_run=
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  4203. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  4204. fi
  4205. if test x"${install_sh}" != xset; then
  4206. case $am_aux_dir in
  4207. *\ * | *\ *)
  4208. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4209. *)
  4210. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4211. esac
  4212. fi
  4213. # Installed binaries are usually stripped using `strip' when the user
  4214. # run `make install-strip'. However `strip' might not be the right
  4215. # tool to use in cross-compilation environments, therefore Automake
  4216. # will honor the `STRIP' environment variable to overrule this program.
  4217. if test "$cross_compiling" != no; then
  4218. if test -n "$ac_tool_prefix"; then
  4219. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4220. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4222. $as_echo_n "checking for $ac_word... " >&6; }
  4223. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -n "$STRIP"; then
  4227. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4228. else
  4229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4230. for as_dir in $PATH
  4231. do
  4232. IFS=$as_save_IFS
  4233. test -z "$as_dir" && as_dir=.
  4234. for ac_exec_ext in '' $ac_executable_extensions; do
  4235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4236. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4238. break 2
  4239. fi
  4240. done
  4241. done
  4242. IFS=$as_save_IFS
  4243. fi
  4244. fi
  4245. STRIP=$ac_cv_prog_STRIP
  4246. if test -n "$STRIP"; then
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4248. $as_echo "$STRIP" >&6; }
  4249. else
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4251. $as_echo "no" >&6; }
  4252. fi
  4253. fi
  4254. if test -z "$ac_cv_prog_STRIP"; then
  4255. ac_ct_STRIP=$STRIP
  4256. # Extract the first word of "strip", so it can be a program name with args.
  4257. set dummy strip; ac_word=$2
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4259. $as_echo_n "checking for $ac_word... " >&6; }
  4260. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. if test -n "$ac_ct_STRIP"; then
  4264. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4265. else
  4266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4267. for as_dir in $PATH
  4268. do
  4269. IFS=$as_save_IFS
  4270. test -z "$as_dir" && as_dir=.
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4273. ac_cv_prog_ac_ct_STRIP="strip"
  4274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4275. break 2
  4276. fi
  4277. done
  4278. done
  4279. IFS=$as_save_IFS
  4280. fi
  4281. fi
  4282. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4283. if test -n "$ac_ct_STRIP"; then
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4285. $as_echo "$ac_ct_STRIP" >&6; }
  4286. else
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4288. $as_echo "no" >&6; }
  4289. fi
  4290. if test "x$ac_ct_STRIP" = x; then
  4291. STRIP=":"
  4292. else
  4293. case $cross_compiling:$ac_tool_warned in
  4294. yes:)
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4296. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4297. ac_tool_warned=yes ;;
  4298. esac
  4299. STRIP=$ac_ct_STRIP
  4300. fi
  4301. else
  4302. STRIP="$ac_cv_prog_STRIP"
  4303. fi
  4304. fi
  4305. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4307. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4308. if test -z "$MKDIR_P"; then
  4309. if test "${ac_cv_path_mkdir+set}" = set; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4313. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_prog in mkdir gmkdir; do
  4318. for ac_exec_ext in '' $ac_executable_extensions; do
  4319. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4320. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4321. 'mkdir (GNU coreutils) '* | \
  4322. 'mkdir (coreutils) '* | \
  4323. 'mkdir (fileutils) '4.1*)
  4324. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4325. break 3;;
  4326. esac
  4327. done
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. fi
  4332. if test "${ac_cv_path_mkdir+set}" = set; then
  4333. MKDIR_P="$ac_cv_path_mkdir -p"
  4334. else
  4335. # As a last resort, use the slow shell script. Don't cache a
  4336. # value for MKDIR_P within a source directory, because that will
  4337. # break other packages using the cache if that directory is
  4338. # removed, or if the value is a relative name.
  4339. test -d ./--version && rmdir ./--version
  4340. MKDIR_P="$ac_install_sh -d"
  4341. fi
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4344. $as_echo "$MKDIR_P" >&6; }
  4345. mkdir_p="$MKDIR_P"
  4346. case $mkdir_p in
  4347. [\\/$]* | ?:[\\/]*) ;;
  4348. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  4349. esac
  4350. for ac_prog in gawk mawk nawk awk
  4351. do
  4352. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4353. set dummy $ac_prog; ac_word=$2
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4355. $as_echo_n "checking for $ac_word... " >&6; }
  4356. if test "${ac_cv_prog_AWK+set}" = set; then :
  4357. $as_echo_n "(cached) " >&6
  4358. else
  4359. if test -n "$AWK"; then
  4360. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4361. else
  4362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4363. for as_dir in $PATH
  4364. do
  4365. IFS=$as_save_IFS
  4366. test -z "$as_dir" && as_dir=.
  4367. for ac_exec_ext in '' $ac_executable_extensions; do
  4368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4369. ac_cv_prog_AWK="$ac_prog"
  4370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4371. break 2
  4372. fi
  4373. done
  4374. done
  4375. IFS=$as_save_IFS
  4376. fi
  4377. fi
  4378. AWK=$ac_cv_prog_AWK
  4379. if test -n "$AWK"; then
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4381. $as_echo "$AWK" >&6; }
  4382. else
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4384. $as_echo "no" >&6; }
  4385. fi
  4386. test -n "$AWK" && break
  4387. done
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4389. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4390. set x ${MAKE-make}
  4391. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4392. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. cat >conftest.make <<\_ACEOF
  4396. SHELL = /bin/sh
  4397. all:
  4398. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4399. _ACEOF
  4400. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4401. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4402. *@@@%%%=?*=@@@%%%*)
  4403. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4404. *)
  4405. eval ac_cv_prog_make_${ac_make}_set=no;;
  4406. esac
  4407. rm -f conftest.make
  4408. fi
  4409. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4411. $as_echo "yes" >&6; }
  4412. SET_MAKE=
  4413. else
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4415. $as_echo "no" >&6; }
  4416. SET_MAKE="MAKE=${MAKE-make}"
  4417. fi
  4418. rm -rf .tst 2>/dev/null
  4419. mkdir .tst 2>/dev/null
  4420. if test -d .tst; then
  4421. am__leading_dot=.
  4422. else
  4423. am__leading_dot=_
  4424. fi
  4425. rmdir .tst 2>/dev/null
  4426. DEPDIR="${am__leading_dot}deps"
  4427. ac_config_commands="$ac_config_commands depfiles"
  4428. am_make=${MAKE-make}
  4429. cat > confinc << 'END'
  4430. am__doit:
  4431. @echo this is the am__doit target
  4432. .PHONY: am__doit
  4433. END
  4434. # If we don't find an include directive, just comment out the code.
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4436. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4437. am__include="#"
  4438. am__quote=
  4439. _am_result=none
  4440. # First try GNU make style include.
  4441. echo "include confinc" > confmf
  4442. # Ignore all kinds of additional output from `make'.
  4443. case `$am_make -s -f confmf 2> /dev/null` in #(
  4444. *the\ am__doit\ target*)
  4445. am__include=include
  4446. am__quote=
  4447. _am_result=GNU
  4448. ;;
  4449. esac
  4450. # Now try BSD make style include.
  4451. if test "$am__include" = "#"; then
  4452. echo '.include "confinc"' > confmf
  4453. case `$am_make -s -f confmf 2> /dev/null` in #(
  4454. *the\ am__doit\ target*)
  4455. am__include=.include
  4456. am__quote="\""
  4457. _am_result=BSD
  4458. ;;
  4459. esac
  4460. fi
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4462. $as_echo "$_am_result" >&6; }
  4463. rm -f confinc confmf
  4464. # Check whether --enable-dependency-tracking was given.
  4465. if test "${enable_dependency_tracking+set}" = set; then :
  4466. enableval=$enable_dependency_tracking;
  4467. fi
  4468. if test "x$enable_dependency_tracking" != xno; then
  4469. am_depcomp="$ac_aux_dir/depcomp"
  4470. AMDEPBACKSLASH='\'
  4471. fi
  4472. if test "x$enable_dependency_tracking" != xno; then
  4473. AMDEP_TRUE=
  4474. AMDEP_FALSE='#'
  4475. else
  4476. AMDEP_TRUE='#'
  4477. AMDEP_FALSE=
  4478. fi
  4479. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4480. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4481. # is not polluted with repeated "-I."
  4482. am__isrc=' -I$(srcdir)'
  4483. # test to see if srcdir already configured
  4484. if test -f $srcdir/config.status; then
  4485. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4486. fi
  4487. fi
  4488. # test whether we have cygpath
  4489. if test -z "$CYGPATH_W"; then
  4490. if (cygpath --version) >/dev/null 2>/dev/null; then
  4491. CYGPATH_W='cygpath -w'
  4492. else
  4493. CYGPATH_W=echo
  4494. fi
  4495. fi
  4496. # Define the identity of the package.
  4497. PACKAGE='libjava'
  4498. VERSION='version-unused'
  4499. cat >>confdefs.h <<_ACEOF
  4500. #define PACKAGE "$PACKAGE"
  4501. _ACEOF
  4502. cat >>confdefs.h <<_ACEOF
  4503. #define VERSION "$VERSION"
  4504. _ACEOF
  4505. # Some tools Automake needs.
  4506. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4507. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4508. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4509. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4510. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4511. # We need awk for the "check" target. The system "awk" is bad on
  4512. # some platforms.
  4513. # Always define AMTAR for backward compatibility.
  4514. AMTAR=${AMTAR-"${am_missing_run}tar"}
  4515. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  4516. depcc="$CC" am_compiler_list=
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4518. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4519. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4523. # We make a subdir and do the tests there. Otherwise we can end up
  4524. # making bogus files that we don't know about and never remove. For
  4525. # instance it was reported that on HP-UX the gcc test will end up
  4526. # making a dummy file named `D' -- because `-MD' means `put the output
  4527. # in D'.
  4528. mkdir conftest.dir
  4529. # Copy depcomp to subdir because otherwise we won't find it if we're
  4530. # using a relative directory.
  4531. cp "$am_depcomp" conftest.dir
  4532. cd conftest.dir
  4533. # We will build objects and dependencies in a subdirectory because
  4534. # it helps to detect inapplicable dependency modes. For instance
  4535. # both Tru64's cc and ICC support -MD to output dependencies as a
  4536. # side effect of compilation, but ICC will put the dependencies in
  4537. # the current directory while Tru64 will put them in the object
  4538. # directory.
  4539. mkdir sub
  4540. am_cv_CC_dependencies_compiler_type=none
  4541. if test "$am_compiler_list" = ""; then
  4542. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4543. fi
  4544. am__universal=false
  4545. case " $depcc " in #(
  4546. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4547. esac
  4548. for depmode in $am_compiler_list; do
  4549. # Setup a source with many dependencies, because some compilers
  4550. # like to wrap large dependency lists on column 80 (with \), and
  4551. # we should not choose a depcomp mode which is confused by this.
  4552. #
  4553. # We need to recreate these files for each test, as the compiler may
  4554. # overwrite some of them when testing with obscure command lines.
  4555. # This happens at least with the AIX C compiler.
  4556. : > sub/conftest.c
  4557. for i in 1 2 3 4 5 6; do
  4558. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4559. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4560. # Solaris 8's {/usr,}/bin/sh.
  4561. touch sub/conftst$i.h
  4562. done
  4563. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4564. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4565. # mode. It turns out that the SunPro C++ compiler does not properly
  4566. # handle `-M -o', and we need to detect this. Also, some Intel
  4567. # versions had trouble with output in subdirs
  4568. am__obj=sub/conftest.${OBJEXT-o}
  4569. am__minus_obj="-o $am__obj"
  4570. case $depmode in
  4571. gcc)
  4572. # This depmode causes a compiler race in universal mode.
  4573. test "$am__universal" = false || continue
  4574. ;;
  4575. nosideeffect)
  4576. # after this tag, mechanisms are not by side-effect, so they'll
  4577. # only be used when explicitly requested
  4578. if test "x$enable_dependency_tracking" = xyes; then
  4579. continue
  4580. else
  4581. break
  4582. fi
  4583. ;;
  4584. msvisualcpp | msvcmsys)
  4585. # This compiler won't grok `-c -o', but also, the minuso test has
  4586. # not run yet. These depmodes are late enough in the game, and
  4587. # so weak that their functioning should not be impacted.
  4588. am__obj=conftest.${OBJEXT-o}
  4589. am__minus_obj=
  4590. ;;
  4591. none) break ;;
  4592. esac
  4593. if depmode=$depmode \
  4594. source=sub/conftest.c object=$am__obj \
  4595. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4596. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4597. >/dev/null 2>conftest.err &&
  4598. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4599. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4600. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4601. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4602. # icc doesn't choke on unknown options, it will just issue warnings
  4603. # or remarks (even with -Werror). So we grep stderr for any message
  4604. # that says an option was ignored or not supported.
  4605. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4606. # icc: Command line warning: ignoring option '-M'; no argument required
  4607. # The diagnosis changed in icc 8.0:
  4608. # icc: Command line remark: option '-MP' not supported
  4609. if (grep 'ignoring option' conftest.err ||
  4610. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4611. am_cv_CC_dependencies_compiler_type=$depmode
  4612. break
  4613. fi
  4614. fi
  4615. done
  4616. cd ..
  4617. rm -rf conftest.dir
  4618. else
  4619. am_cv_CC_dependencies_compiler_type=none
  4620. fi
  4621. fi
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4623. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4624. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4625. if
  4626. test "x$enable_dependency_tracking" != xno \
  4627. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4628. am__fastdepCC_TRUE=
  4629. am__fastdepCC_FALSE='#'
  4630. else
  4631. am__fastdepCC_TRUE='#'
  4632. am__fastdepCC_FALSE=
  4633. fi
  4634. depcc="$CXX" am_compiler_list=
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4636. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4637. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4641. # We make a subdir and do the tests there. Otherwise we can end up
  4642. # making bogus files that we don't know about and never remove. For
  4643. # instance it was reported that on HP-UX the gcc test will end up
  4644. # making a dummy file named `D' -- because `-MD' means `put the output
  4645. # in D'.
  4646. mkdir conftest.dir
  4647. # Copy depcomp to subdir because otherwise we won't find it if we're
  4648. # using a relative directory.
  4649. cp "$am_depcomp" conftest.dir
  4650. cd conftest.dir
  4651. # We will build objects and dependencies in a subdirectory because
  4652. # it helps to detect inapplicable dependency modes. For instance
  4653. # both Tru64's cc and ICC support -MD to output dependencies as a
  4654. # side effect of compilation, but ICC will put the dependencies in
  4655. # the current directory while Tru64 will put them in the object
  4656. # directory.
  4657. mkdir sub
  4658. am_cv_CXX_dependencies_compiler_type=none
  4659. if test "$am_compiler_list" = ""; then
  4660. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4661. fi
  4662. am__universal=false
  4663. case " $depcc " in #(
  4664. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4665. esac
  4666. for depmode in $am_compiler_list; do
  4667. # Setup a source with many dependencies, because some compilers
  4668. # like to wrap large dependency lists on column 80 (with \), and
  4669. # we should not choose a depcomp mode which is confused by this.
  4670. #
  4671. # We need to recreate these files for each test, as the compiler may
  4672. # overwrite some of them when testing with obscure command lines.
  4673. # This happens at least with the AIX C compiler.
  4674. : > sub/conftest.c
  4675. for i in 1 2 3 4 5 6; do
  4676. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4677. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4678. # Solaris 8's {/usr,}/bin/sh.
  4679. touch sub/conftst$i.h
  4680. done
  4681. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4682. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4683. # mode. It turns out that the SunPro C++ compiler does not properly
  4684. # handle `-M -o', and we need to detect this. Also, some Intel
  4685. # versions had trouble with output in subdirs
  4686. am__obj=sub/conftest.${OBJEXT-o}
  4687. am__minus_obj="-o $am__obj"
  4688. case $depmode in
  4689. gcc)
  4690. # This depmode causes a compiler race in universal mode.
  4691. test "$am__universal" = false || continue
  4692. ;;
  4693. nosideeffect)
  4694. # after this tag, mechanisms are not by side-effect, so they'll
  4695. # only be used when explicitly requested
  4696. if test "x$enable_dependency_tracking" = xyes; then
  4697. continue
  4698. else
  4699. break
  4700. fi
  4701. ;;
  4702. msvisualcpp | msvcmsys)
  4703. # This compiler won't grok `-c -o', but also, the minuso test has
  4704. # not run yet. These depmodes are late enough in the game, and
  4705. # so weak that their functioning should not be impacted.
  4706. am__obj=conftest.${OBJEXT-o}
  4707. am__minus_obj=
  4708. ;;
  4709. none) break ;;
  4710. esac
  4711. if depmode=$depmode \
  4712. source=sub/conftest.c object=$am__obj \
  4713. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4714. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4715. >/dev/null 2>conftest.err &&
  4716. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4717. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4718. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4719. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4720. # icc doesn't choke on unknown options, it will just issue warnings
  4721. # or remarks (even with -Werror). So we grep stderr for any message
  4722. # that says an option was ignored or not supported.
  4723. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4724. # icc: Command line warning: ignoring option '-M'; no argument required
  4725. # The diagnosis changed in icc 8.0:
  4726. # icc: Command line remark: option '-MP' not supported
  4727. if (grep 'ignoring option' conftest.err ||
  4728. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4729. am_cv_CXX_dependencies_compiler_type=$depmode
  4730. break
  4731. fi
  4732. fi
  4733. done
  4734. cd ..
  4735. rm -rf conftest.dir
  4736. else
  4737. am_cv_CXX_dependencies_compiler_type=none
  4738. fi
  4739. fi
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4741. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4742. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4743. if
  4744. test "x$enable_dependency_tracking" != xno \
  4745. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4746. am__fastdepCXX_TRUE=
  4747. am__fastdepCXX_FALSE='#'
  4748. else
  4749. am__fastdepCXX_TRUE='#'
  4750. am__fastdepCXX_FALSE=
  4751. fi
  4752. if test -n "$ac_tool_prefix"; then
  4753. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4754. set dummy ${ac_tool_prefix}as; ac_word=$2
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4756. $as_echo_n "checking for $ac_word... " >&6; }
  4757. if test "${ac_cv_prog_AS+set}" = set; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. if test -n "$AS"; then
  4761. ac_cv_prog_AS="$AS" # Let the user override the test.
  4762. else
  4763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4764. for as_dir in $PATH
  4765. do
  4766. IFS=$as_save_IFS
  4767. test -z "$as_dir" && as_dir=.
  4768. for ac_exec_ext in '' $ac_executable_extensions; do
  4769. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4770. ac_cv_prog_AS="${ac_tool_prefix}as"
  4771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4772. break 2
  4773. fi
  4774. done
  4775. done
  4776. IFS=$as_save_IFS
  4777. fi
  4778. fi
  4779. AS=$ac_cv_prog_AS
  4780. if test -n "$AS"; then
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4782. $as_echo "$AS" >&6; }
  4783. else
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4785. $as_echo "no" >&6; }
  4786. fi
  4787. fi
  4788. if test -z "$ac_cv_prog_AS"; then
  4789. ac_ct_AS=$AS
  4790. # Extract the first word of "as", so it can be a program name with args.
  4791. set dummy as; ac_word=$2
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4793. $as_echo_n "checking for $ac_word... " >&6; }
  4794. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. if test -n "$ac_ct_AS"; then
  4798. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4799. else
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4807. ac_cv_prog_ac_ct_AS="as"
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4809. break 2
  4810. fi
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. fi
  4815. fi
  4816. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4817. if test -n "$ac_ct_AS"; then
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4819. $as_echo "$ac_ct_AS" >&6; }
  4820. else
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4822. $as_echo "no" >&6; }
  4823. fi
  4824. if test "x$ac_ct_AS" = x; then
  4825. AS=""
  4826. else
  4827. case $cross_compiling:$ac_tool_warned in
  4828. yes:)
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4831. ac_tool_warned=yes ;;
  4832. esac
  4833. AS=$ac_ct_AS
  4834. fi
  4835. else
  4836. AS="$ac_cv_prog_AS"
  4837. fi
  4838. if test -n "$ac_tool_prefix"; then
  4839. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4840. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4842. $as_echo_n "checking for $ac_word... " >&6; }
  4843. if test "${ac_cv_prog_LD+set}" = set; then :
  4844. $as_echo_n "(cached) " >&6
  4845. else
  4846. if test -n "$LD"; then
  4847. ac_cv_prog_LD="$LD" # Let the user override the test.
  4848. else
  4849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4850. for as_dir in $PATH
  4851. do
  4852. IFS=$as_save_IFS
  4853. test -z "$as_dir" && as_dir=.
  4854. for ac_exec_ext in '' $ac_executable_extensions; do
  4855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4856. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4858. break 2
  4859. fi
  4860. done
  4861. done
  4862. IFS=$as_save_IFS
  4863. fi
  4864. fi
  4865. LD=$ac_cv_prog_LD
  4866. if test -n "$LD"; then
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4868. $as_echo "$LD" >&6; }
  4869. else
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4871. $as_echo "no" >&6; }
  4872. fi
  4873. fi
  4874. if test -z "$ac_cv_prog_LD"; then
  4875. ac_ct_LD=$LD
  4876. # Extract the first word of "ld", so it can be a program name with args.
  4877. set dummy ld; ac_word=$2
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4879. $as_echo_n "checking for $ac_word... " >&6; }
  4880. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. if test -n "$ac_ct_LD"; then
  4884. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4885. else
  4886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4887. for as_dir in $PATH
  4888. do
  4889. IFS=$as_save_IFS
  4890. test -z "$as_dir" && as_dir=.
  4891. for ac_exec_ext in '' $ac_executable_extensions; do
  4892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4893. ac_cv_prog_ac_ct_LD="ld"
  4894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4895. break 2
  4896. fi
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. fi
  4901. fi
  4902. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4903. if test -n "$ac_ct_LD"; then
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4905. $as_echo "$ac_ct_LD" >&6; }
  4906. else
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4908. $as_echo "no" >&6; }
  4909. fi
  4910. if test "x$ac_ct_LD" = x; then
  4911. LD=""
  4912. else
  4913. case $cross_compiling:$ac_tool_warned in
  4914. yes:)
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4917. ac_tool_warned=yes ;;
  4918. esac
  4919. LD=$ac_ct_LD
  4920. fi
  4921. else
  4922. LD="$ac_cv_prog_LD"
  4923. fi
  4924. if test -n "$ac_tool_prefix"; then
  4925. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4926. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4928. $as_echo_n "checking for $ac_word... " >&6; }
  4929. if test "${ac_cv_prog_AR+set}" = set; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. if test -n "$AR"; then
  4933. ac_cv_prog_AR="$AR" # Let the user override the test.
  4934. else
  4935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4936. for as_dir in $PATH
  4937. do
  4938. IFS=$as_save_IFS
  4939. test -z "$as_dir" && as_dir=.
  4940. for ac_exec_ext in '' $ac_executable_extensions; do
  4941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4942. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4944. break 2
  4945. fi
  4946. done
  4947. done
  4948. IFS=$as_save_IFS
  4949. fi
  4950. fi
  4951. AR=$ac_cv_prog_AR
  4952. if test -n "$AR"; then
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4954. $as_echo "$AR" >&6; }
  4955. else
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4957. $as_echo "no" >&6; }
  4958. fi
  4959. fi
  4960. if test -z "$ac_cv_prog_AR"; then
  4961. ac_ct_AR=$AR
  4962. # Extract the first word of "ar", so it can be a program name with args.
  4963. set dummy ar; ac_word=$2
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4965. $as_echo_n "checking for $ac_word... " >&6; }
  4966. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. if test -n "$ac_ct_AR"; then
  4970. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4971. else
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH
  4974. do
  4975. IFS=$as_save_IFS
  4976. test -z "$as_dir" && as_dir=.
  4977. for ac_exec_ext in '' $ac_executable_extensions; do
  4978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4979. ac_cv_prog_ac_ct_AR="ar"
  4980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4981. break 2
  4982. fi
  4983. done
  4984. done
  4985. IFS=$as_save_IFS
  4986. fi
  4987. fi
  4988. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4989. if test -n "$ac_ct_AR"; then
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4991. $as_echo "$ac_ct_AR" >&6; }
  4992. else
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4994. $as_echo "no" >&6; }
  4995. fi
  4996. if test "x$ac_ct_AR" = x; then
  4997. AR=""
  4998. else
  4999. case $cross_compiling:$ac_tool_warned in
  5000. yes:)
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5003. ac_tool_warned=yes ;;
  5004. esac
  5005. AR=$ac_ct_AR
  5006. fi
  5007. else
  5008. AR="$ac_cv_prog_AR"
  5009. fi
  5010. if test -n "$ac_tool_prefix"; then
  5011. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5012. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5014. $as_echo_n "checking for $ac_word... " >&6; }
  5015. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5016. $as_echo_n "(cached) " >&6
  5017. else
  5018. if test -n "$RANLIB"; then
  5019. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5020. else
  5021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5022. for as_dir in $PATH
  5023. do
  5024. IFS=$as_save_IFS
  5025. test -z "$as_dir" && as_dir=.
  5026. for ac_exec_ext in '' $ac_executable_extensions; do
  5027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5028. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5030. break 2
  5031. fi
  5032. done
  5033. done
  5034. IFS=$as_save_IFS
  5035. fi
  5036. fi
  5037. RANLIB=$ac_cv_prog_RANLIB
  5038. if test -n "$RANLIB"; then
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5040. $as_echo "$RANLIB" >&6; }
  5041. else
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5043. $as_echo "no" >&6; }
  5044. fi
  5045. fi
  5046. if test -z "$ac_cv_prog_RANLIB"; then
  5047. ac_ct_RANLIB=$RANLIB
  5048. # Extract the first word of "ranlib", so it can be a program name with args.
  5049. set dummy ranlib; ac_word=$2
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5051. $as_echo_n "checking for $ac_word... " >&6; }
  5052. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5053. $as_echo_n "(cached) " >&6
  5054. else
  5055. if test -n "$ac_ct_RANLIB"; then
  5056. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5057. else
  5058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5059. for as_dir in $PATH
  5060. do
  5061. IFS=$as_save_IFS
  5062. test -z "$as_dir" && as_dir=.
  5063. for ac_exec_ext in '' $ac_executable_extensions; do
  5064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5065. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5067. break 2
  5068. fi
  5069. done
  5070. done
  5071. IFS=$as_save_IFS
  5072. fi
  5073. fi
  5074. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5075. if test -n "$ac_ct_RANLIB"; then
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5077. $as_echo "$ac_ct_RANLIB" >&6; }
  5078. else
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5080. $as_echo "no" >&6; }
  5081. fi
  5082. if test "x$ac_ct_RANLIB" = x; then
  5083. RANLIB=":"
  5084. else
  5085. case $cross_compiling:$ac_tool_warned in
  5086. yes:)
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5089. ac_tool_warned=yes ;;
  5090. esac
  5091. RANLIB=$ac_ct_RANLIB
  5092. fi
  5093. else
  5094. RANLIB="$ac_cv_prog_RANLIB"
  5095. fi
  5096. if test -n "$ac_tool_prefix"; then
  5097. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5098. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5100. $as_echo_n "checking for $ac_word... " >&6; }
  5101. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  5102. $as_echo_n "(cached) " >&6
  5103. else
  5104. if test -n "$DLLTOOL"; then
  5105. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5106. else
  5107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5108. for as_dir in $PATH
  5109. do
  5110. IFS=$as_save_IFS
  5111. test -z "$as_dir" && as_dir=.
  5112. for ac_exec_ext in '' $ac_executable_extensions; do
  5113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5114. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5116. break 2
  5117. fi
  5118. done
  5119. done
  5120. IFS=$as_save_IFS
  5121. fi
  5122. fi
  5123. DLLTOOL=$ac_cv_prog_DLLTOOL
  5124. if test -n "$DLLTOOL"; then
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5126. $as_echo "$DLLTOOL" >&6; }
  5127. else
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5129. $as_echo "no" >&6; }
  5130. fi
  5131. fi
  5132. if test -z "$ac_cv_prog_DLLTOOL"; then
  5133. ac_ct_DLLTOOL=$DLLTOOL
  5134. # Extract the first word of "dlltool", so it can be a program name with args.
  5135. set dummy dlltool; ac_word=$2
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5137. $as_echo_n "checking for $ac_word... " >&6; }
  5138. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. if test -n "$ac_ct_DLLTOOL"; then
  5142. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5143. else
  5144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145. for as_dir in $PATH
  5146. do
  5147. IFS=$as_save_IFS
  5148. test -z "$as_dir" && as_dir=.
  5149. for ac_exec_ext in '' $ac_executable_extensions; do
  5150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5151. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153. break 2
  5154. fi
  5155. done
  5156. done
  5157. IFS=$as_save_IFS
  5158. fi
  5159. fi
  5160. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5161. if test -n "$ac_ct_DLLTOOL"; then
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5163. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5164. else
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5166. $as_echo "no" >&6; }
  5167. fi
  5168. if test "x$ac_ct_DLLTOOL" = x; then
  5169. DLLTOOL=":"
  5170. else
  5171. case $cross_compiling:$ac_tool_warned in
  5172. yes:)
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5174. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5175. ac_tool_warned=yes ;;
  5176. esac
  5177. DLLTOOL=$ac_ct_DLLTOOL
  5178. fi
  5179. else
  5180. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5181. fi
  5182. for ac_prog in gawk mawk nawk awk
  5183. do
  5184. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5185. set dummy $ac_prog; ac_word=$2
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5187. $as_echo_n "checking for $ac_word... " >&6; }
  5188. if test "${ac_cv_prog_AWK+set}" = set; then :
  5189. $as_echo_n "(cached) " >&6
  5190. else
  5191. if test -n "$AWK"; then
  5192. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5193. else
  5194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5195. for as_dir in $PATH
  5196. do
  5197. IFS=$as_save_IFS
  5198. test -z "$as_dir" && as_dir=.
  5199. for ac_exec_ext in '' $ac_executable_extensions; do
  5200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5201. ac_cv_prog_AWK="$ac_prog"
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5203. break 2
  5204. fi
  5205. done
  5206. done
  5207. IFS=$as_save_IFS
  5208. fi
  5209. fi
  5210. AWK=$ac_cv_prog_AWK
  5211. if test -n "$AWK"; then
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5213. $as_echo "$AWK" >&6; }
  5214. else
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5216. $as_echo "no" >&6; }
  5217. fi
  5218. test -n "$AWK" && break
  5219. done
  5220. for ac_prog in jar fastjar gjar
  5221. do
  5222. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5223. set dummy $ac_prog; ac_word=$2
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5225. $as_echo_n "checking for $ac_word... " >&6; }
  5226. if test "${ac_cv_prog_JAR+set}" = set; then :
  5227. $as_echo_n "(cached) " >&6
  5228. else
  5229. if test -n "$JAR"; then
  5230. ac_cv_prog_JAR="$JAR" # Let the user override the test.
  5231. else
  5232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5233. for as_dir in $PATH
  5234. do
  5235. IFS=$as_save_IFS
  5236. test -z "$as_dir" && as_dir=.
  5237. for ac_exec_ext in '' $ac_executable_extensions; do
  5238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5239. ac_cv_prog_JAR="$ac_prog"
  5240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5241. break 2
  5242. fi
  5243. done
  5244. done
  5245. IFS=$as_save_IFS
  5246. fi
  5247. fi
  5248. JAR=$ac_cv_prog_JAR
  5249. if test -n "$JAR"; then
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
  5251. $as_echo "$JAR" >&6; }
  5252. else
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5254. $as_echo "no" >&6; }
  5255. fi
  5256. test -n "$JAR" && break
  5257. done
  5258. test -n "$JAR" || JAR="no"
  5259. # Extract the first word of "zip", so it can be a program name with args.
  5260. set dummy zip; ac_word=$2
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5262. $as_echo_n "checking for $ac_word... " >&6; }
  5263. if test "${ac_cv_path_ZIP+set}" = set; then :
  5264. $as_echo_n "(cached) " >&6
  5265. else
  5266. case $ZIP in
  5267. [\\/]* | ?:[\\/]*)
  5268. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  5269. ;;
  5270. *)
  5271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5272. for as_dir in $PATH
  5273. do
  5274. IFS=$as_save_IFS
  5275. test -z "$as_dir" && as_dir=.
  5276. for ac_exec_ext in '' $ac_executable_extensions; do
  5277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5278. ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5280. break 2
  5281. fi
  5282. done
  5283. done
  5284. IFS=$as_save_IFS
  5285. test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
  5286. ;;
  5287. esac
  5288. fi
  5289. ZIP=$ac_cv_path_ZIP
  5290. if test -n "$ZIP"; then
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
  5292. $as_echo "$ZIP" >&6; }
  5293. else
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5295. $as_echo "no" >&6; }
  5296. fi
  5297. # Extract the first word of "unzip", so it can be a program name with args.
  5298. set dummy unzip; ac_word=$2
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5300. $as_echo_n "checking for $ac_word... " >&6; }
  5301. if test "${ac_cv_path_UNZIP+set}" = set; then :
  5302. $as_echo_n "(cached) " >&6
  5303. else
  5304. case $UNZIP in
  5305. [\\/]* | ?:[\\/]*)
  5306. ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
  5307. ;;
  5308. *)
  5309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5310. for as_dir in $PATH
  5311. do
  5312. IFS=$as_save_IFS
  5313. test -z "$as_dir" && as_dir=.
  5314. for ac_exec_ext in '' $ac_executable_extensions; do
  5315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5316. ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
  5317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5318. break 2
  5319. fi
  5320. done
  5321. done
  5322. IFS=$as_save_IFS
  5323. test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
  5324. ;;
  5325. esac
  5326. fi
  5327. UNZIP=$ac_cv_path_UNZIP
  5328. if test -n "$UNZIP"; then
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
  5330. $as_echo "$UNZIP" >&6; }
  5331. else
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5333. $as_echo "no" >&6; }
  5334. fi
  5335. # We need a jar that supports -@. This is a GNU extension.
  5336. if test "$JAR" != no; then
  5337. rm -f config-test.jar
  5338. echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
  5339. if test -f config-test.jar; then
  5340. rm -f config-test.jar
  5341. else
  5342. JAR=no
  5343. fi
  5344. fi
  5345. # Prefer the jar we found, but fall back to our jar script.
  5346. if test "$JAR" = no; then
  5347. if test "$ZIP" = no; then
  5348. as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
  5349. else
  5350. # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
  5351. JAR=`pwd`/scripts/jar
  5352. fi
  5353. fi
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  5355. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  5356. # Check whether --enable-maintainer-mode was given.
  5357. if test "${enable_maintainer_mode+set}" = set; then :
  5358. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  5359. else
  5360. USE_MAINTAINER_MODE=no
  5361. fi
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  5363. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  5364. if test $USE_MAINTAINER_MODE = yes; then
  5365. MAINTAINER_MODE_TRUE=
  5366. MAINTAINER_MODE_FALSE='#'
  5367. else
  5368. MAINTAINER_MODE_TRUE='#'
  5369. MAINTAINER_MODE_FALSE=
  5370. fi
  5371. MAINT=$MAINTAINER_MODE_TRUE
  5372. # configure.host sets the following important variables
  5373. # libgcj_cflags - host specific C compiler flags
  5374. # libgcj_cxxflags - host specific C++ compiler flags
  5375. # libgcj_javaflags - host specific Java compiler flags
  5376. # libgcj_sublib_ltflags - host specific Libtool flags
  5377. # libgcj_sublib_core_extra_deps - host specific extra
  5378. # dependencies for core sublib
  5379. # (these last two only used when building sublibs)
  5380. # and a number of others; see the list at the start of the file.
  5381. libgcj_cflags=
  5382. libgcj_cxxflags=
  5383. libgcj_javaflags=
  5384. libgcj_sublib_ltflags=
  5385. libgcj_sublib_core_extra_deps=
  5386. . ${srcdir}/configure.host
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5388. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5389. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  5390. $as_echo_n "(cached) " >&6
  5391. else
  5392. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5393. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  5394. acl_cv_prog_gnu_ld=yes
  5395. else
  5396. acl_cv_prog_gnu_ld=no
  5397. fi
  5398. fi
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  5400. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  5401. with_gnu_ld=$acl_cv_prog_gnu_ld
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
  5403. $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
  5404. if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. acl_cv_prog_gnu_ld_symbolic=no
  5408. if test x"$with_gnu_ld" = x"yes"; then
  5409. if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
  5410. acl_cv_prog_gnu_ld_symbolic=yes
  5411. fi
  5412. fi
  5413. fi
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
  5415. $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
  5416. if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
  5417. SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
  5418. else
  5419. SYMBOLIC_LDFLAGS=''
  5420. fi
  5421. libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
  5422. if test -z "$libgcj_ld_symbolic"; then
  5423. libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
  5424. fi
  5425. # for windows native targets enforce export of all symbols for shared libgcj.
  5426. libgcj_ld_export_all=
  5427. case "$host" in
  5428. *mingw*)
  5429. libgcj_ld_export_all=-Wl,--export-all-symbols
  5430. ;;
  5431. *)
  5432. ;;
  5433. esac
  5434. LIBGCJ_CFLAGS="${libgcj_cflags}"
  5435. LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
  5436. LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
  5437. LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
  5438. LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
  5439. LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
  5440. LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
  5441. LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
  5442. # Only use libltdl for non-newlib builds.
  5443. if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  5445. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  5446. library_names_spec=
  5447. libname_spec='lib$name'
  5448. soname_spec=
  5449. shrext=".so"
  5450. postinstall_cmds=
  5451. postuninstall_cmds=
  5452. finish_cmds=
  5453. finish_eval=
  5454. shlibpath_var=
  5455. shlibpath_overrides_runpath=unknown
  5456. version_type=none
  5457. dynamic_linker="$host_os ld.so"
  5458. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5459. if test "$GCC" = yes; then
  5460. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
  5461. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  5462. # if the path contains ";" then we assume it to be the separator
  5463. # otherwise default to the standard path separator (i.e. ":") - it is
  5464. # assumed that no part of a normal pathname contains ";" but that should
  5465. # okay in the real world where ";" in dirpaths is itself problematic.
  5466. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
  5467. else
  5468. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
  5469. fi
  5470. else
  5471. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5472. fi
  5473. need_lib_prefix=unknown
  5474. hardcode_into_libs=no
  5475. # when you set need_version to no, make sure it does not cause -set_version
  5476. # flags to be left without arguments
  5477. need_version=unknown
  5478. case $host_os in
  5479. aix3*)
  5480. version_type=linux
  5481. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  5482. shlibpath_var=LIBPATH
  5483. # AIX 3 has no versioning support, so we append a major version to the name.
  5484. soname_spec='${libname}${release}${shared_ext}$major'
  5485. ;;
  5486. aix[4-9]*)
  5487. version_type=linux
  5488. need_lib_prefix=no
  5489. need_version=no
  5490. hardcode_into_libs=yes
  5491. if test "$host_cpu" = ia64; then
  5492. # AIX 5 supports IA64
  5493. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  5494. shlibpath_var=LD_LIBRARY_PATH
  5495. else
  5496. # With GCC up to 2.95.x, collect2 would create an import file
  5497. # for dependence libraries. The import file would start with
  5498. # the line `#! .'. This would cause the generated library to
  5499. # depend on `.', always an invalid library. This was fixed in
  5500. # development snapshots of GCC prior to 3.0.
  5501. case $host_os in
  5502. aix4 | aix4.[01] | aix4.[01].*)
  5503. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5504. echo ' yes '
  5505. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5506. :
  5507. else
  5508. can_build_shared=no
  5509. fi
  5510. ;;
  5511. esac
  5512. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  5513. # soname into executable. Probably we can add versioning support to
  5514. # collect2, so additional links can be useful in future.
  5515. if test "$aix_use_runtimelinking" = yes; then
  5516. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5517. # instead of lib<name>.a to let people know that these are not
  5518. # typical AIX shared libraries.
  5519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5520. else
  5521. # We preserve .a as extension for shared libraries through AIX4.2
  5522. # and later when we are not doing run time linking.
  5523. library_names_spec='${libname}${release}.a $libname.a'
  5524. soname_spec='${libname}${release}${shared_ext}$major'
  5525. fi
  5526. shlibpath_var=LIBPATH
  5527. fi
  5528. ;;
  5529. amigaos*)
  5530. library_names_spec='$libname.ixlibrary $libname.a'
  5531. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5532. 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'
  5533. ;;
  5534. beos*)
  5535. library_names_spec='${libname}${shared_ext}'
  5536. dynamic_linker="$host_os ld.so"
  5537. shlibpath_var=LIBRARY_PATH
  5538. ;;
  5539. bsdi4*)
  5540. version_type=linux
  5541. need_version=no
  5542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5543. soname_spec='${libname}${release}${shared_ext}$major'
  5544. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5545. shlibpath_var=LD_LIBRARY_PATH
  5546. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5547. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5548. # the default ld.so.conf also contains /usr/contrib/lib and
  5549. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5550. # libtool to hard-code these into programs
  5551. ;;
  5552. cygwin* | mingw* | pw32*)
  5553. version_type=windows
  5554. shrext=".dll"
  5555. need_version=no
  5556. need_lib_prefix=no
  5557. case $GCC,$host_os in
  5558. yes,cygwin* | yes,mingw* | yes,pw32*)
  5559. library_names_spec='$libname.dll.a'
  5560. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  5561. postinstall_cmds='base_file=`basename \${file}`~
  5562. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  5563. dldir=$destdir/`dirname \$dlpath`~
  5564. test -d \$dldir || mkdir -p \$dldir~
  5565. $install_prog $dir/$dlname \$dldir/$dlname'
  5566. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5567. dlpath=$dir/\$dldll~
  5568. $rm \$dlpath'
  5569. shlibpath_overrides_runpath=yes
  5570. case $host_os in
  5571. cygwin*)
  5572. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  5573. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  5574. sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  5575. ;;
  5576. mingw*)
  5577. # MinGW DLLs use traditional 'lib' prefix
  5578. soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  5579. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
  5580. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  5581. # It is most probably a Windows format PATH printed by
  5582. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  5583. # path with ; separators, and with drive letters. We can handle the
  5584. # drive letters (cygwin fileutils understands them), so leave them,
  5585. # especially as we might pass files found there to a mingw objdump,
  5586. # which wouldn't understand a cygwinified path. Ahh.
  5587. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
  5588. else
  5589. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
  5590. fi
  5591. ;;
  5592. pw32*)
  5593. # pw32 DLLs use 'pw' prefix rather than 'lib'
  5594. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
  5595. ;;
  5596. esac
  5597. ;;
  5598. *)
  5599. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  5600. ;;
  5601. esac
  5602. dynamic_linker='Win32 ld.exe'
  5603. # FIXME: first we should search . and the directory the executable is in
  5604. shlibpath_var=PATH
  5605. ;;
  5606. darwin* | rhapsody*)
  5607. dynamic_linker="$host_os dyld"
  5608. version_type=darwin
  5609. need_lib_prefix=no
  5610. need_version=no
  5611. # FIXME: Relying on posixy $() will cause problems for
  5612. # cross-compilation, but unfortunately the echo tests do not
  5613. # yet detect zsh echo's removal of \ escapes.
  5614. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  5615. soname_spec='${libname}${release}${major}$shared_ext'
  5616. shlibpath_overrides_runpath=yes
  5617. shlibpath_var=DYLD_LIBRARY_PATH
  5618. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  5619. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  5620. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  5621. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  5622. fi
  5623. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  5624. ;;
  5625. dgux*)
  5626. version_type=linux
  5627. need_lib_prefix=no
  5628. need_version=no
  5629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  5630. soname_spec='${libname}${release}${shared_ext}$major'
  5631. shlibpath_var=LD_LIBRARY_PATH
  5632. ;;
  5633. freebsd*)
  5634. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5635. version_type=freebsd-$objformat
  5636. case $version_type in
  5637. freebsd-elf*)
  5638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  5639. need_version=no
  5640. need_lib_prefix=no
  5641. ;;
  5642. freebsd-*)
  5643. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  5644. need_version=yes
  5645. ;;
  5646. esac
  5647. shlibpath_var=LD_LIBRARY_PATH
  5648. case $host_os in
  5649. freebsd2*)
  5650. shlibpath_overrides_runpath=yes
  5651. ;;
  5652. freebsd3.01* | freebsdelf3.01*)
  5653. shlibpath_overrides_runpath=yes
  5654. hardcode_into_libs=yes
  5655. ;;
  5656. *) # from 3.2 on
  5657. shlibpath_overrides_runpath=no
  5658. hardcode_into_libs=yes
  5659. ;;
  5660. esac
  5661. ;;
  5662. gnu*)
  5663. version_type=linux
  5664. need_lib_prefix=no
  5665. need_version=no
  5666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  5667. soname_spec='${libname}${release}${shared_ext}$major'
  5668. shlibpath_var=LD_LIBRARY_PATH
  5669. hardcode_into_libs=yes
  5670. ;;
  5671. hpux9* | hpux10* | hpux11*)
  5672. # Give a soname corresponding to the major version so that dld.sl refuses to
  5673. # link against other versions.
  5674. version_type=sunos
  5675. need_lib_prefix=no
  5676. need_version=no
  5677. case "$host_cpu" in
  5678. ia64*)
  5679. shrext='.so'
  5680. hardcode_into_libs=yes
  5681. dynamic_linker="$host_os dld.so"
  5682. shlibpath_var=LD_LIBRARY_PATH
  5683. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  5684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5685. soname_spec='${libname}${release}${shared_ext}$major'
  5686. if test "X$HPUX_IA64_MODE" = X32; then
  5687. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  5688. else
  5689. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  5690. fi
  5691. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  5692. ;;
  5693. hppa*64*)
  5694. shrext='.sl'
  5695. hardcode_into_libs=yes
  5696. dynamic_linker="$host_os dld.sl"
  5697. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  5698. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  5699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5700. soname_spec='${libname}${release}${shared_ext}$major'
  5701. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  5702. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  5703. ;;
  5704. *)
  5705. shrext='.sl'
  5706. dynamic_linker="$host_os dld.sl"
  5707. shlibpath_var=SHLIB_PATH
  5708. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5710. soname_spec='${libname}${release}${shared_ext}$major'
  5711. ;;
  5712. esac
  5713. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5714. postinstall_cmds='chmod 555 $lib'
  5715. ;;
  5716. irix5* | irix6* | nonstopux*)
  5717. case $host_os in
  5718. nonstopux*) version_type=nonstopux ;;
  5719. *)
  5720. if test "$lt_cv_prog_gnu_ld" = yes; then
  5721. version_type=linux
  5722. else
  5723. version_type=irix
  5724. fi ;;
  5725. esac
  5726. need_lib_prefix=no
  5727. need_version=no
  5728. soname_spec='${libname}${release}${shared_ext}$major'
  5729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  5730. case $host_os in
  5731. irix5* | nonstopux*)
  5732. libsuff= shlibsuff=
  5733. ;;
  5734. *)
  5735. case $LD in # libtool.m4 will add one of these switches to LD
  5736. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  5737. libsuff= shlibsuff= libmagic=32-bit;;
  5738. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  5739. libsuff=32 shlibsuff=N32 libmagic=N32;;
  5740. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  5741. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5742. *) libsuff= shlibsuff= libmagic=never-match;;
  5743. esac
  5744. ;;
  5745. esac
  5746. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5747. shlibpath_overrides_runpath=no
  5748. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5749. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5750. hardcode_into_libs=yes
  5751. ;;
  5752. # No shared lib support for Linux oldld, aout, or coff.
  5753. linux*oldld* | linux*aout* | linux*coff*)
  5754. dynamic_linker=no
  5755. ;;
  5756. # This must be Linux ELF.
  5757. linux*|k*bsd*-gnu)
  5758. version_type=linux
  5759. need_lib_prefix=no
  5760. need_version=no
  5761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5762. soname_spec='${libname}${release}${shared_ext}$major'
  5763. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5764. shlibpath_var=LD_LIBRARY_PATH
  5765. shlibpath_overrides_runpath=no
  5766. # This implies no fast_install, which is unacceptable.
  5767. # Some rework will be needed to allow for fast_install
  5768. # before this can be enabled.
  5769. hardcode_into_libs=yes
  5770. # We used to test for /lib/ld.so.1 and disable shared libraries on
  5771. # powerpc, because MkLinux only supported shared libraries with the
  5772. # GNU dynamic linker. Since this was broken with cross compilers,
  5773. # most powerpc-linux boxes support dynamic linking these days and
  5774. # people can always --disable-shared, the test was removed, and we
  5775. # assume the GNU/Linux dynamic linker is in use.
  5776. dynamic_linker='GNU/Linux ld.so'
  5777. ;;
  5778. netbsd*)
  5779. version_type=sunos
  5780. need_lib_prefix=no
  5781. need_version=no
  5782. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  5784. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5785. dynamic_linker='NetBSD (a.out) ld.so'
  5786. else
  5787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  5788. soname_spec='${libname}${release}${shared_ext}$major'
  5789. dynamic_linker='NetBSD ld.elf_so'
  5790. fi
  5791. shlibpath_var=LD_LIBRARY_PATH
  5792. shlibpath_overrides_runpath=yes
  5793. hardcode_into_libs=yes
  5794. ;;
  5795. newsos6)
  5796. version_type=linux
  5797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5798. shlibpath_var=LD_LIBRARY_PATH
  5799. shlibpath_overrides_runpath=yes
  5800. ;;
  5801. nto-qnx)
  5802. version_type=linux
  5803. need_lib_prefix=no
  5804. need_version=no
  5805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5806. soname_spec='${libname}${release}${shared_ext}$major'
  5807. shlibpath_var=LD_LIBRARY_PATH
  5808. shlibpath_overrides_runpath=yes
  5809. ;;
  5810. openbsd*)
  5811. version_type=sunos
  5812. need_lib_prefix=no
  5813. need_version=no
  5814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  5815. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5816. shlibpath_var=LD_LIBRARY_PATH
  5817. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5818. case $host_os in
  5819. openbsd2.[89] | openbsd2.[89].*)
  5820. shlibpath_overrides_runpath=no
  5821. ;;
  5822. *)
  5823. shlibpath_overrides_runpath=yes
  5824. ;;
  5825. esac
  5826. else
  5827. shlibpath_overrides_runpath=yes
  5828. fi
  5829. ;;
  5830. os2*)
  5831. libname_spec='$name'
  5832. shrext=".dll"
  5833. need_lib_prefix=no
  5834. library_names_spec='$libname${shared_ext} $libname.a'
  5835. dynamic_linker='OS/2 ld.exe'
  5836. shlibpath_var=LIBPATH
  5837. ;;
  5838. osf3* | osf4* | osf5*)
  5839. version_type=osf
  5840. need_lib_prefix=no
  5841. need_version=no
  5842. soname_spec='${libname}${release}${shared_ext}$major'
  5843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5844. shlibpath_var=LD_LIBRARY_PATH
  5845. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5846. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5847. ;;
  5848. sco3.2v5*)
  5849. version_type=osf
  5850. soname_spec='${libname}${release}${shared_ext}$major'
  5851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5852. shlibpath_var=LD_LIBRARY_PATH
  5853. ;;
  5854. solaris*)
  5855. version_type=linux
  5856. need_lib_prefix=no
  5857. need_version=no
  5858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5859. soname_spec='${libname}${release}${shared_ext}$major'
  5860. shlibpath_var=LD_LIBRARY_PATH
  5861. shlibpath_overrides_runpath=yes
  5862. hardcode_into_libs=yes
  5863. # ldd complains unless libraries are executable
  5864. postinstall_cmds='chmod +x $lib'
  5865. ;;
  5866. sunos4*)
  5867. version_type=sunos
  5868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  5869. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5870. shlibpath_var=LD_LIBRARY_PATH
  5871. shlibpath_overrides_runpath=yes
  5872. if test "$with_gnu_ld" = yes; then
  5873. need_lib_prefix=no
  5874. fi
  5875. need_version=yes
  5876. ;;
  5877. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5878. version_type=linux
  5879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5880. soname_spec='${libname}${release}${shared_ext}$major'
  5881. shlibpath_var=LD_LIBRARY_PATH
  5882. case $host_vendor in
  5883. sni)
  5884. shlibpath_overrides_runpath=no
  5885. need_lib_prefix=no
  5886. export_dynamic_flag_spec='${wl}-Blargedynsym'
  5887. runpath_var=LD_RUN_PATH
  5888. ;;
  5889. siemens)
  5890. need_lib_prefix=no
  5891. ;;
  5892. motorola)
  5893. need_lib_prefix=no
  5894. need_version=no
  5895. shlibpath_overrides_runpath=no
  5896. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5897. ;;
  5898. esac
  5899. ;;
  5900. sysv4*MP*)
  5901. if test -d /usr/nec ;then
  5902. version_type=linux
  5903. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  5904. soname_spec='$libname${shared_ext}.$major'
  5905. shlibpath_var=LD_LIBRARY_PATH
  5906. fi
  5907. ;;
  5908. uts4*)
  5909. version_type=linux
  5910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5911. soname_spec='${libname}${release}${shared_ext}$major'
  5912. shlibpath_var=LD_LIBRARY_PATH
  5913. ;;
  5914. *)
  5915. dynamic_linker=no
  5916. ;;
  5917. esac
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  5919. $as_echo "$dynamic_linker" >&6; }
  5920. test "$dynamic_linker" = no && can_build_shared=no
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
  5922. $as_echo_n "checking which variable specifies run-time library path... " >&6; }
  5923. if test "${libltdl_cv_shlibpath_var+set}" = set; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. libltdl_cv_shlibpath_var="$shlibpath_var"
  5927. fi
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
  5929. $as_echo "$libltdl_cv_shlibpath_var" >&6; }
  5930. if test -n "$libltdl_cv_shlibpath_var"; then
  5931. cat >>confdefs.h <<_ACEOF
  5932. #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
  5933. _ACEOF
  5934. fi
  5935. fi
  5936. ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
  5937. # Possibly build libgcj as many sub-libraries.
  5938. # Check whether --enable-libgcj-sublibs was given.
  5939. if test "${enable_libgcj_sublibs+set}" = set; then :
  5940. enableval=$enable_libgcj_sublibs;
  5941. fi
  5942. if test -z "$enable_libgcj_sublibs"; then
  5943. enable_libgcj_sublibs=$enable_libgcj_sublibs_default
  5944. fi
  5945. if test "$enable_libgcj_sublibs" = yes; then
  5946. BUILD_SUBLIBS_TRUE=
  5947. BUILD_SUBLIBS_FALSE='#'
  5948. else
  5949. BUILD_SUBLIBS_TRUE='#'
  5950. BUILD_SUBLIBS_FALSE=
  5951. fi
  5952. if test "$enable_libgcj_sublibs" = yes ; then
  5953. # In theory we could make do with only one override and simply
  5954. # tag "_bc" onto the end of it when we use it to generate the
  5955. # spec, but that's an ugly thing to do when there are multiple
  5956. # words in the string and you're relying on the ordering to
  5957. # append the correct one.
  5958. libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
  5959. libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
  5960. fi
  5961. # See if the user has requested runtime debugging.
  5962. LIBGCJDEBUG="disable"
  5963. # Check whether --enable-libgcj-debug was given.
  5964. if test "${enable_libgcj_debug+set}" = set; then :
  5965. enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
  5966. $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
  5967. LIBGCJDEBUG="enable"
  5968. fi
  5969. fi
  5970. # Check whether --with-escher was given.
  5971. if test "${with_escher+set}" = set; then :
  5972. withval=$with_escher;
  5973. fi
  5974. case "$with_escher" in
  5975. "")
  5976. use_escher=false
  5977. ;;
  5978. "no")
  5979. use_escher=false
  5980. ;;
  5981. "yes")
  5982. as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
  5983. ;;
  5984. *)
  5985. use_escher=true
  5986. ;;
  5987. esac
  5988. # Determine which AWT peer libraries to build
  5989. # Check whether --enable-java-awt was given.
  5990. if test "${enable_java_awt+set}" = set; then :
  5991. enableval=$enable_java_awt;
  5992. fi
  5993. peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
  5994. use_xlib_awt=""
  5995. use_gtk_awt=""
  5996. use_qt_awt=""
  5997. use_x_awt=""
  5998. # The default toolkit to use is the first one specified.
  5999. TOOLKIT=
  6000. for peer in $peerlibs ; do
  6001. case $peer in
  6002. xlib)
  6003. if test "$no_x" = yes; then
  6004. echo "*** xlib peers requested but no X library available" 1>&2
  6005. exit 1
  6006. else
  6007. use_xlib_awt="yes"
  6008. if test -z "$TOOLKIT"; then
  6009. TOOLKIT=gnu.awt.xlib.XToolkit
  6010. fi
  6011. fi
  6012. ;;
  6013. gtk)
  6014. if test "$no_x" = yes; then
  6015. echo "*** gtk peers requested but no X library available" 1>&2
  6016. exit 1
  6017. else
  6018. use_gtk_awt=yes
  6019. if test -z "$TOOLKIT"; then
  6020. TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
  6021. fi
  6022. fi
  6023. ;;
  6024. qt)
  6025. if test "$no_x" = yes; then
  6026. # Perhaps we should admit the possibility of embedded Qt.
  6027. echo "*** Qt peers requested but no X library available" 1>&2
  6028. exit 1
  6029. else
  6030. use_qt_awt=yes
  6031. if test -z "$TOOLKIT"; then
  6032. TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
  6033. fi
  6034. fi
  6035. ;;
  6036. x)
  6037. use_x_awt=yes
  6038. if test -z "$TOOLKIT"; then
  6039. TOOLKIT=gnu.java.awt.peer.x.XToolkit
  6040. fi
  6041. ;;
  6042. no)
  6043. use_xlib_awt=
  6044. use_gtk_awt=
  6045. use_qt_awt=
  6046. use_x_awt=
  6047. break
  6048. ;;
  6049. *)
  6050. echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
  6051. exit 1
  6052. esac
  6053. done
  6054. if test "$use_xlib_awt" = yes; then
  6055. XLIB_AWT_TRUE=
  6056. XLIB_AWT_FALSE='#'
  6057. else
  6058. XLIB_AWT_TRUE='#'
  6059. XLIB_AWT_FALSE=
  6060. fi
  6061. if test "$use_x_awt" = yes; then
  6062. X_AWT_TRUE=
  6063. X_AWT_FALSE='#'
  6064. else
  6065. X_AWT_TRUE='#'
  6066. X_AWT_FALSE=
  6067. fi
  6068. cat >>confdefs.h <<_ACEOF
  6069. #define AWT_TOOLKIT "$TOOLKIT"
  6070. _ACEOF
  6071. expanded_prefix=$prefix
  6072. if test "X$prefix" = XNONE; then
  6073. expanded_prefix=${ac_default_prefix}
  6074. fi
  6075. cat >>confdefs.h <<_ACEOF
  6076. #define LIBGCJ_PREFIX "$expanded_prefix"
  6077. _ACEOF
  6078. # Create standard.omit based on decisions we just made.
  6079. cp $srcdir/standard.omit.in standard.omit
  6080. if test "$use_xlib_awt" != yes; then
  6081. echo gnu/awt/xlib >> standard.omit
  6082. echo gnu/gcj/xlib >> standard.omit
  6083. fi
  6084. if test "$use_x_awt" != yes; then
  6085. echo gnu/java/awt/peer/x >> standard.omit
  6086. fi
  6087. # Tools that need to be compiled against classpath's tools classes
  6088. : > vm-tools-packages
  6089. for package in gnu/gcj/tools/gc_analyze ; do
  6090. echo $package >> standard.omit
  6091. echo $package >> vm-tools-packages
  6092. done
  6093. if test -z "${with_multisubdir}"; then
  6094. builddotdot=.
  6095. else
  6096. builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
  6097. fi
  6098. NATIVE=yes
  6099. # Which gcj and host gcj (for ecjx) do we use?
  6100. which_gcj=default
  6101. host_exeext=${ac_exeext}
  6102. GCJ_FOR_ECJX='$(GCJ)'
  6103. GCC_FOR_ECJX='$(CXX)'
  6104. built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
  6105. if test -n "${with_cross_host}"; then
  6106. # We are being configured with a cross compiler. We can't
  6107. # use ac_exeext, because that is for the target platform.
  6108. NATIVE=no
  6109. cross_host_exeext=
  6110. GCJ_FOR_ECJX="${with_cross_host}-gcj"
  6111. GCC_FOR_ECJX="${with_cross_host}-gcc"
  6112. case "${with_cross_host}" in
  6113. *mingw* | *cygwin*)
  6114. cross_host_exeext=.exe
  6115. ;;
  6116. esac
  6117. host_exeext=${cross_host_exeext}
  6118. if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
  6119. if test x"$build_noncanonical" = x"$with_cross_host"; then
  6120. # Ordinary cross (host!=target and host=build)
  6121. which_gcj=built
  6122. else
  6123. # Canadian cross (host!=target and host!=build)
  6124. which_gcj=cross
  6125. fi
  6126. else
  6127. which_gcj=cross
  6128. fi
  6129. else
  6130. # We are being configured with a native or crossed-native compiler
  6131. if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
  6132. if test x"$build" = x"$host"; then
  6133. # True native build (host=target and host=build)
  6134. which_gcj=built
  6135. else
  6136. # Crossed-native build (host=target and host!=build)
  6137. which_gcj=cross
  6138. fi
  6139. else
  6140. which_gcj=path
  6141. fi
  6142. fi
  6143. libgcjdir=`${PWDCMD-pwd}`
  6144. case $GCJ in
  6145. *" -B"*)
  6146. # Just in case there is a comma in the build dir, quote it for the
  6147. # sed command below.
  6148. case $libgcjdir in
  6149. *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
  6150. *) qlibgcjdir=$libgcjdir;;
  6151. esac
  6152. GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
  6153. ;;
  6154. *)
  6155. GCJ=$GCJ" -B$libgcjdir/"
  6156. ;;
  6157. esac
  6158. case "${which_gcj}" in
  6159. built)
  6160. GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
  6161. ;;
  6162. cross)
  6163. if test "x${with_newlib}" = "xyes"; then
  6164. # FIXME (comment): Why is this needed?
  6165. LIBGCC_UNWIND_INCLUDE=
  6166. fi
  6167. GCJH='$(target_noncanonical)-gcjh'
  6168. ;;
  6169. path)
  6170. GCJH=gcjh
  6171. ;;
  6172. esac
  6173. JAVAC="$GCJ -C"
  6174. export JAVAC
  6175. # Create it, so that compile/link tests don't fail
  6176. test -f libgcj.spec || touch libgcj.spec
  6177. # Set up to configure Classpath.
  6178. # FIXME: no supported way to pass args in autoconf.
  6179. # Disable tool wrappers to avoid ltdl.h configure check.
  6180. ac_configure_args="$ac_configure_args --disable-tool-wrappers"
  6181. ac_configure_args="$ac_configure_args --disable-load-library"
  6182. ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
  6183. ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
  6184. dir1=`cd $srcdir && pwd`
  6185. dir2=`pwd`
  6186. ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
  6187. ac_configure_args="$ac_configure_args --disable-core-jni"
  6188. ac_configure_args="$ac_configure_args --disable-examples"
  6189. ac_configure_args="$ac_configure_args --with-glibj=build"
  6190. if test "$browser_plugin_enabled" != yes; then
  6191. ac_configure_args="$ac_configure_args --disable-plugin"
  6192. else
  6193. ac_configure_args="$ac_configure_args --enable-plugin"
  6194. fi
  6195. if test "$gconf_enabled" != yes; then
  6196. ac_configure_args="$ac_configure_args --disable-gconf-peer"
  6197. ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
  6198. fi
  6199. if test "$use_gtk_awt" != yes; then
  6200. ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
  6201. fi
  6202. if test "$use_qt_awt" != yes; then
  6203. ac_configure_args="$ac_configure_args --disable-qt-peer"
  6204. else
  6205. # We need this as qt is disabled by default in classpath.
  6206. ac_configure_args="$ac_configure_args --enable-qt-peer"
  6207. fi
  6208. if test "$use_x_awt" != yes; then
  6209. ac_configure_args="$ac_configure_args --without-escher"
  6210. else
  6211. # We need this as escher is disabled by default in classpath.
  6212. if test "$use_escher" != true; then
  6213. as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
  6214. else
  6215. ac_configure_args="$ac_configure_args --with-escher=$with_escher"
  6216. fi
  6217. fi
  6218. if test "x$BUILD_GJDOC" = xno; then
  6219. ac_configure_args="$ac_configure_args --disable-gjdoc"
  6220. fi
  6221. # -Werror causes unavoidable problems in code using alsa.
  6222. ac_configure_args="$ac_configure_args --disable-regen-headers"
  6223. ac_configure_args="$ac_configure_args --disable-Werror"
  6224. # Only use libltdl for non-newlib builds.
  6225. if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
  6226. case $enable_ltdl_convenience in
  6227. no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
  6228. "") enable_ltdl_convenience=yes
  6229. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  6230. esac
  6231. LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
  6232. LTDLINCL='-I${top_srcdir}/''libltdl'
  6233. # For backwards non-gettext consistent compatibility...
  6234. INCLTDL="$LTDLINCL"
  6235. enable_dlopen=yes
  6236. DIRLTDL=libltdl
  6237. $as_echo "#define USE_LTDL 1" >>confdefs.h
  6238. # Sigh. Libtool's macro doesn't do the right thing.
  6239. INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
  6240. # FIXME: this is a hack.
  6241. sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
  6242. ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
  6243. fi
  6244. case `pwd` in
  6245. *\ * | *\ *)
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6247. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6248. esac
  6249. macro_version='2.2.7a'
  6250. macro_revision='1.3134'
  6251. ltmain="$ac_aux_dir/ltmain.sh"
  6252. # Backslashify metacharacters that are still active within
  6253. # double-quoted strings.
  6254. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6255. # Same as above, but do not quote variable references.
  6256. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6257. # Sed substitution to delay expansion of an escaped shell variable in a
  6258. # double_quote_subst'ed string.
  6259. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6260. # Sed substitution to delay expansion of an escaped single quote.
  6261. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6262. # Sed substitution to avoid accidental globbing in evaled expressions
  6263. no_glob_subst='s/\*/\\\*/g'
  6264. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6265. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6266. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6268. $as_echo_n "checking how to print strings... " >&6; }
  6269. # Test print first, because it will be a builtin if present.
  6270. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  6271. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6272. ECHO='print -r --'
  6273. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6274. ECHO='printf %s\n'
  6275. else
  6276. # Use this function as a fallback that always works.
  6277. func_fallback_echo ()
  6278. {
  6279. eval 'cat <<_LTECHO_EOF
  6280. $1
  6281. _LTECHO_EOF'
  6282. }
  6283. ECHO='func_fallback_echo'
  6284. fi
  6285. # func_echo_all arg...
  6286. # Invoke $ECHO with all args, space-separated.
  6287. func_echo_all ()
  6288. {
  6289. $ECHO ""
  6290. }
  6291. case "$ECHO" in
  6292. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6293. $as_echo "printf" >&6; } ;;
  6294. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6295. $as_echo "print -r" >&6; } ;;
  6296. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6297. $as_echo "cat" >&6; } ;;
  6298. esac
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6300. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6301. if test "${ac_cv_path_SED+set}" = set; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6305. for ac_i in 1 2 3 4 5 6 7; do
  6306. ac_script="$ac_script$as_nl$ac_script"
  6307. done
  6308. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6309. { ac_script=; unset ac_script;}
  6310. if test -z "$SED"; then
  6311. ac_path_SED_found=false
  6312. # Loop through the user's path and test for each of PROGNAME-LIST
  6313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6314. for as_dir in $PATH
  6315. do
  6316. IFS=$as_save_IFS
  6317. test -z "$as_dir" && as_dir=.
  6318. for ac_prog in sed gsed; do
  6319. for ac_exec_ext in '' $ac_executable_extensions; do
  6320. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6321. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  6322. # Check for GNU ac_path_SED and select it if it is found.
  6323. # Check for GNU $ac_path_SED
  6324. case `"$ac_path_SED" --version 2>&1` in
  6325. *GNU*)
  6326. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6327. *)
  6328. ac_count=0
  6329. $as_echo_n 0123456789 >"conftest.in"
  6330. while :
  6331. do
  6332. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6333. mv "conftest.tmp" "conftest.in"
  6334. cp "conftest.in" "conftest.nl"
  6335. $as_echo '' >> "conftest.nl"
  6336. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6337. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6338. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6339. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6340. # Best one so far, save it but keep looking for a better one
  6341. ac_cv_path_SED="$ac_path_SED"
  6342. ac_path_SED_max=$ac_count
  6343. fi
  6344. # 10*(2^10) chars as input seems more than enough
  6345. test $ac_count -gt 10 && break
  6346. done
  6347. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6348. esac
  6349. $ac_path_SED_found && break 3
  6350. done
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. if test -z "$ac_cv_path_SED"; then
  6355. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6356. fi
  6357. else
  6358. ac_cv_path_SED=$SED
  6359. fi
  6360. fi
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6362. $as_echo "$ac_cv_path_SED" >&6; }
  6363. SED="$ac_cv_path_SED"
  6364. rm -f conftest.sed
  6365. test -z "$SED" && SED=sed
  6366. Xsed="$SED -e 1s/^X//"
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6368. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  6369. if test "${ac_cv_path_GREP+set}" = set; then :
  6370. $as_echo_n "(cached) " >&6
  6371. else
  6372. if test -z "$GREP"; then
  6373. ac_path_GREP_found=false
  6374. # Loop through the user's path and test for each of PROGNAME-LIST
  6375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6376. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6377. do
  6378. IFS=$as_save_IFS
  6379. test -z "$as_dir" && as_dir=.
  6380. for ac_prog in grep ggrep; do
  6381. for ac_exec_ext in '' $ac_executable_extensions; do
  6382. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  6383. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  6384. # Check for GNU ac_path_GREP and select it if it is found.
  6385. # Check for GNU $ac_path_GREP
  6386. case `"$ac_path_GREP" --version 2>&1` in
  6387. *GNU*)
  6388. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6389. *)
  6390. ac_count=0
  6391. $as_echo_n 0123456789 >"conftest.in"
  6392. while :
  6393. do
  6394. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6395. mv "conftest.tmp" "conftest.in"
  6396. cp "conftest.in" "conftest.nl"
  6397. $as_echo 'GREP' >> "conftest.nl"
  6398. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6399. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6400. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6401. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6402. # Best one so far, save it but keep looking for a better one
  6403. ac_cv_path_GREP="$ac_path_GREP"
  6404. ac_path_GREP_max=$ac_count
  6405. fi
  6406. # 10*(2^10) chars as input seems more than enough
  6407. test $ac_count -gt 10 && break
  6408. done
  6409. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6410. esac
  6411. $ac_path_GREP_found && break 3
  6412. done
  6413. done
  6414. done
  6415. IFS=$as_save_IFS
  6416. if test -z "$ac_cv_path_GREP"; then
  6417. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6418. fi
  6419. else
  6420. ac_cv_path_GREP=$GREP
  6421. fi
  6422. fi
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6424. $as_echo "$ac_cv_path_GREP" >&6; }
  6425. GREP="$ac_cv_path_GREP"
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6427. $as_echo_n "checking for egrep... " >&6; }
  6428. if test "${ac_cv_path_EGREP+set}" = set; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6432. then ac_cv_path_EGREP="$GREP -E"
  6433. else
  6434. if test -z "$EGREP"; then
  6435. ac_path_EGREP_found=false
  6436. # Loop through the user's path and test for each of PROGNAME-LIST
  6437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6438. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6439. do
  6440. IFS=$as_save_IFS
  6441. test -z "$as_dir" && as_dir=.
  6442. for ac_prog in egrep; do
  6443. for ac_exec_ext in '' $ac_executable_extensions; do
  6444. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  6445. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  6446. # Check for GNU ac_path_EGREP and select it if it is found.
  6447. # Check for GNU $ac_path_EGREP
  6448. case `"$ac_path_EGREP" --version 2>&1` in
  6449. *GNU*)
  6450. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6451. *)
  6452. ac_count=0
  6453. $as_echo_n 0123456789 >"conftest.in"
  6454. while :
  6455. do
  6456. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6457. mv "conftest.tmp" "conftest.in"
  6458. cp "conftest.in" "conftest.nl"
  6459. $as_echo 'EGREP' >> "conftest.nl"
  6460. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6461. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6462. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6463. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6464. # Best one so far, save it but keep looking for a better one
  6465. ac_cv_path_EGREP="$ac_path_EGREP"
  6466. ac_path_EGREP_max=$ac_count
  6467. fi
  6468. # 10*(2^10) chars as input seems more than enough
  6469. test $ac_count -gt 10 && break
  6470. done
  6471. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6472. esac
  6473. $ac_path_EGREP_found && break 3
  6474. done
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478. if test -z "$ac_cv_path_EGREP"; then
  6479. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6480. fi
  6481. else
  6482. ac_cv_path_EGREP=$EGREP
  6483. fi
  6484. fi
  6485. fi
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6487. $as_echo "$ac_cv_path_EGREP" >&6; }
  6488. EGREP="$ac_cv_path_EGREP"
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6490. $as_echo_n "checking for fgrep... " >&6; }
  6491. if test "${ac_cv_path_FGREP+set}" = set; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6495. then ac_cv_path_FGREP="$GREP -F"
  6496. else
  6497. if test -z "$FGREP"; then
  6498. ac_path_FGREP_found=false
  6499. # Loop through the user's path and test for each of PROGNAME-LIST
  6500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6501. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6502. do
  6503. IFS=$as_save_IFS
  6504. test -z "$as_dir" && as_dir=.
  6505. for ac_prog in fgrep; do
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6508. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  6509. # Check for GNU ac_path_FGREP and select it if it is found.
  6510. # Check for GNU $ac_path_FGREP
  6511. case `"$ac_path_FGREP" --version 2>&1` in
  6512. *GNU*)
  6513. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6514. *)
  6515. ac_count=0
  6516. $as_echo_n 0123456789 >"conftest.in"
  6517. while :
  6518. do
  6519. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6520. mv "conftest.tmp" "conftest.in"
  6521. cp "conftest.in" "conftest.nl"
  6522. $as_echo 'FGREP' >> "conftest.nl"
  6523. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6524. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6525. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6526. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6527. # Best one so far, save it but keep looking for a better one
  6528. ac_cv_path_FGREP="$ac_path_FGREP"
  6529. ac_path_FGREP_max=$ac_count
  6530. fi
  6531. # 10*(2^10) chars as input seems more than enough
  6532. test $ac_count -gt 10 && break
  6533. done
  6534. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6535. esac
  6536. $ac_path_FGREP_found && break 3
  6537. done
  6538. done
  6539. done
  6540. IFS=$as_save_IFS
  6541. if test -z "$ac_cv_path_FGREP"; then
  6542. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6543. fi
  6544. else
  6545. ac_cv_path_FGREP=$FGREP
  6546. fi
  6547. fi
  6548. fi
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6550. $as_echo "$ac_cv_path_FGREP" >&6; }
  6551. FGREP="$ac_cv_path_FGREP"
  6552. test -z "$GREP" && GREP=grep
  6553. # Check whether --with-gnu-ld was given.
  6554. if test "${with_gnu_ld+set}" = set; then :
  6555. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6556. else
  6557. with_gnu_ld=no
  6558. fi
  6559. ac_prog=ld
  6560. if test "$GCC" = yes; then
  6561. # Check if gcc -print-prog-name=ld gives a path.
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6563. $as_echo_n "checking for ld used by $CC... " >&6; }
  6564. case $host in
  6565. *-*-mingw*)
  6566. # gcc leaves a trailing carriage return which upsets mingw
  6567. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6568. *)
  6569. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6570. esac
  6571. case $ac_prog in
  6572. # Accept absolute paths.
  6573. [\\/]* | ?:[\\/]*)
  6574. re_direlt='/[^/][^/]*/\.\./'
  6575. # Canonicalize the pathname of ld
  6576. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6577. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6578. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6579. done
  6580. test -z "$LD" && LD="$ac_prog"
  6581. ;;
  6582. "")
  6583. # If it fails, then pretend we aren't using GCC.
  6584. ac_prog=ld
  6585. ;;
  6586. *)
  6587. # If it is relative, then search for the first ld in PATH.
  6588. with_gnu_ld=unknown
  6589. ;;
  6590. esac
  6591. elif test "$with_gnu_ld" = yes; then
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6593. $as_echo_n "checking for GNU ld... " >&6; }
  6594. else
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6596. $as_echo_n "checking for non-GNU ld... " >&6; }
  6597. fi
  6598. if test "${lt_cv_path_LD+set}" = set; then :
  6599. $as_echo_n "(cached) " >&6
  6600. else
  6601. if test -z "$LD"; then
  6602. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6603. for ac_dir in $PATH; do
  6604. IFS="$lt_save_ifs"
  6605. test -z "$ac_dir" && ac_dir=.
  6606. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6607. lt_cv_path_LD="$ac_dir/$ac_prog"
  6608. # Check to see if the program is GNU ld. I'd rather use --version,
  6609. # but apparently some variants of GNU ld only accept -v.
  6610. # Break only if it was the GNU/non-GNU ld that we prefer.
  6611. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6612. *GNU* | *'with BFD'*)
  6613. test "$with_gnu_ld" != no && break
  6614. ;;
  6615. *)
  6616. test "$with_gnu_ld" != yes && break
  6617. ;;
  6618. esac
  6619. fi
  6620. done
  6621. IFS="$lt_save_ifs"
  6622. else
  6623. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6624. fi
  6625. fi
  6626. LD="$lt_cv_path_LD"
  6627. if test -n "$LD"; then
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6629. $as_echo "$LD" >&6; }
  6630. else
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6632. $as_echo "no" >&6; }
  6633. fi
  6634. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6636. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6637. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6641. case `$LD -v 2>&1 </dev/null` in
  6642. *GNU* | *'with BFD'*)
  6643. lt_cv_prog_gnu_ld=yes
  6644. ;;
  6645. *)
  6646. lt_cv_prog_gnu_ld=no
  6647. ;;
  6648. esac
  6649. fi
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6651. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6652. with_gnu_ld=$lt_cv_prog_gnu_ld
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6654. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6655. if test "${lt_cv_path_NM+set}" = set; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. if test -n "$NM"; then
  6659. # Let the user override the test.
  6660. lt_cv_path_NM="$NM"
  6661. else
  6662. lt_nm_to_check="${ac_tool_prefix}nm"
  6663. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6664. lt_nm_to_check="$lt_nm_to_check nm"
  6665. fi
  6666. for lt_tmp_nm in $lt_nm_to_check; do
  6667. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6668. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6669. IFS="$lt_save_ifs"
  6670. test -z "$ac_dir" && ac_dir=.
  6671. tmp_nm="$ac_dir/$lt_tmp_nm"
  6672. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6673. # Check to see if the nm accepts a BSD-compat flag.
  6674. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6675. # nm: unknown option "B" ignored
  6676. # Tru64's nm complains that /dev/null is an invalid object file
  6677. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6678. */dev/null* | *'Invalid file or object type'*)
  6679. lt_cv_path_NM="$tmp_nm -B"
  6680. break
  6681. ;;
  6682. *)
  6683. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6684. */dev/null*)
  6685. lt_cv_path_NM="$tmp_nm -p"
  6686. break
  6687. ;;
  6688. *)
  6689. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6690. continue # so that we can try to find one that supports BSD flags
  6691. ;;
  6692. esac
  6693. ;;
  6694. esac
  6695. fi
  6696. done
  6697. IFS="$lt_save_ifs"
  6698. done
  6699. : ${lt_cv_path_NM=no}
  6700. fi
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6703. $as_echo "$lt_cv_path_NM" >&6; }
  6704. if test "$lt_cv_path_NM" != "no"; then
  6705. NM="$lt_cv_path_NM"
  6706. else
  6707. # Didn't find any BSD compatible name lister, look for dumpbin.
  6708. if test -n "$DUMPBIN"; then :
  6709. # Let the user override the test.
  6710. else
  6711. if test -n "$ac_tool_prefix"; then
  6712. for ac_prog in dumpbin "link -dump"
  6713. do
  6714. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6715. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6717. $as_echo_n "checking for $ac_word... " >&6; }
  6718. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  6719. $as_echo_n "(cached) " >&6
  6720. else
  6721. if test -n "$DUMPBIN"; then
  6722. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6723. else
  6724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6725. for as_dir in $PATH
  6726. do
  6727. IFS=$as_save_IFS
  6728. test -z "$as_dir" && as_dir=.
  6729. for ac_exec_ext in '' $ac_executable_extensions; do
  6730. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6731. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6733. break 2
  6734. fi
  6735. done
  6736. done
  6737. IFS=$as_save_IFS
  6738. fi
  6739. fi
  6740. DUMPBIN=$ac_cv_prog_DUMPBIN
  6741. if test -n "$DUMPBIN"; then
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6743. $as_echo "$DUMPBIN" >&6; }
  6744. else
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6746. $as_echo "no" >&6; }
  6747. fi
  6748. test -n "$DUMPBIN" && break
  6749. done
  6750. fi
  6751. if test -z "$DUMPBIN"; then
  6752. ac_ct_DUMPBIN=$DUMPBIN
  6753. for ac_prog in dumpbin "link -dump"
  6754. do
  6755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6756. set dummy $ac_prog; ac_word=$2
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6758. $as_echo_n "checking for $ac_word... " >&6; }
  6759. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  6760. $as_echo_n "(cached) " >&6
  6761. else
  6762. if test -n "$ac_ct_DUMPBIN"; then
  6763. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. test -z "$as_dir" && as_dir=.
  6770. for ac_exec_ext in '' $ac_executable_extensions; do
  6771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6772. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6774. break 2
  6775. fi
  6776. done
  6777. done
  6778. IFS=$as_save_IFS
  6779. fi
  6780. fi
  6781. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6782. if test -n "$ac_ct_DUMPBIN"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6784. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6785. else
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6787. $as_echo "no" >&6; }
  6788. fi
  6789. test -n "$ac_ct_DUMPBIN" && break
  6790. done
  6791. if test "x$ac_ct_DUMPBIN" = x; then
  6792. DUMPBIN=":"
  6793. else
  6794. case $cross_compiling:$ac_tool_warned in
  6795. yes:)
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6798. ac_tool_warned=yes ;;
  6799. esac
  6800. DUMPBIN=$ac_ct_DUMPBIN
  6801. fi
  6802. fi
  6803. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6804. *COFF*)
  6805. DUMPBIN="$DUMPBIN -symbols"
  6806. ;;
  6807. *)
  6808. DUMPBIN=:
  6809. ;;
  6810. esac
  6811. fi
  6812. if test "$DUMPBIN" != ":"; then
  6813. NM="$DUMPBIN"
  6814. fi
  6815. fi
  6816. test -z "$NM" && NM=nm
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6818. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6819. if test "${lt_cv_nm_interface+set}" = set; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. lt_cv_nm_interface="BSD nm"
  6823. echo "int some_variable = 0;" > conftest.$ac_ext
  6824. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6825. (eval "$ac_compile" 2>conftest.err)
  6826. cat conftest.err >&5
  6827. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6828. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6829. cat conftest.err >&5
  6830. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6831. cat conftest.out >&5
  6832. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6833. lt_cv_nm_interface="MS dumpbin"
  6834. fi
  6835. rm -f conftest*
  6836. fi
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6838. $as_echo "$lt_cv_nm_interface" >&6; }
  6839. # find the maximum length of command line arguments
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6841. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6842. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. i=0
  6846. teststring="ABCD"
  6847. case $build_os in
  6848. msdosdjgpp*)
  6849. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6850. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6851. # during glob expansion). Even if it were fixed, the result of this
  6852. # check would be larger than it should be.
  6853. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6854. ;;
  6855. gnu*)
  6856. # Under GNU Hurd, this test is not required because there is
  6857. # no limit to the length of command line arguments.
  6858. # Libtool will interpret -1 as no limit whatsoever
  6859. lt_cv_sys_max_cmd_len=-1;
  6860. ;;
  6861. cygwin* | mingw* | cegcc*)
  6862. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6863. # about 5 minutes as the teststring grows exponentially.
  6864. # Worse, since 9x/ME are not pre-emptively multitasking,
  6865. # you end up with a "frozen" computer, even though with patience
  6866. # the test eventually succeeds (with a max line length of 256k).
  6867. # Instead, let's just punt: use the minimum linelength reported by
  6868. # all of the supported platforms: 8192 (on NT/2K/XP).
  6869. lt_cv_sys_max_cmd_len=8192;
  6870. ;;
  6871. mint*)
  6872. # On MiNT this can take a long time and run out of memory.
  6873. lt_cv_sys_max_cmd_len=8192;
  6874. ;;
  6875. amigaos*)
  6876. # On AmigaOS with pdksh, this test takes hours, literally.
  6877. # So we just punt and use a minimum line length of 8192.
  6878. lt_cv_sys_max_cmd_len=8192;
  6879. ;;
  6880. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6881. # This has been around since 386BSD, at least. Likely further.
  6882. if test -x /sbin/sysctl; then
  6883. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6884. elif test -x /usr/sbin/sysctl; then
  6885. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6886. else
  6887. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6888. fi
  6889. # And add a safety zone
  6890. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6891. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6892. ;;
  6893. interix*)
  6894. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6895. lt_cv_sys_max_cmd_len=196608
  6896. ;;
  6897. osf*)
  6898. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6899. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6900. # nice to cause kernel panics so lets avoid the loop below.
  6901. # First set a reasonable default.
  6902. lt_cv_sys_max_cmd_len=16384
  6903. #
  6904. if test -x /sbin/sysconfig; then
  6905. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6906. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6907. esac
  6908. fi
  6909. ;;
  6910. sco3.2v5*)
  6911. lt_cv_sys_max_cmd_len=102400
  6912. ;;
  6913. sysv5* | sco5v6* | sysv4.2uw2*)
  6914. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6915. if test -n "$kargmax"; then
  6916. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6917. else
  6918. lt_cv_sys_max_cmd_len=32768
  6919. fi
  6920. ;;
  6921. *)
  6922. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6923. if test -n "$lt_cv_sys_max_cmd_len"; then
  6924. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6925. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6926. else
  6927. # Make teststring a little bigger before we do anything with it.
  6928. # a 1K string should be a reasonable start.
  6929. for i in 1 2 3 4 5 6 7 8 ; do
  6930. teststring=$teststring$teststring
  6931. done
  6932. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6933. # If test is not a shell built-in, we'll probably end up computing a
  6934. # maximum length that is only half of the actual maximum length, but
  6935. # we can't tell.
  6936. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6937. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6938. test $i != 17 # 1/2 MB should be enough
  6939. do
  6940. i=`expr $i + 1`
  6941. teststring=$teststring$teststring
  6942. done
  6943. # Only check the string length outside the loop.
  6944. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6945. teststring=
  6946. # Add a significant safety factor because C++ compilers can tack on
  6947. # massive amounts of additional arguments before passing them to the
  6948. # linker. It appears as though 1/2 is a usable value.
  6949. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6950. fi
  6951. ;;
  6952. esac
  6953. fi
  6954. if test -n $lt_cv_sys_max_cmd_len ; then
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6956. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6957. else
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6959. $as_echo "none" >&6; }
  6960. fi
  6961. max_cmd_len=$lt_cv_sys_max_cmd_len
  6962. : ${CP="cp -f"}
  6963. : ${MV="mv -f"}
  6964. : ${RM="rm -f"}
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6966. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6967. # Try some XSI features
  6968. xsi_shell=no
  6969. ( _lt_dummy="a/b/c"
  6970. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6971. = c,a/b,, \
  6972. && eval 'test $(( 1 + 1 )) -eq 2 \
  6973. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6974. && xsi_shell=yes
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6976. $as_echo "$xsi_shell" >&6; }
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6978. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6979. lt_shell_append=no
  6980. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6981. >/dev/null 2>&1 \
  6982. && lt_shell_append=yes
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6984. $as_echo "$lt_shell_append" >&6; }
  6985. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6986. lt_unset=unset
  6987. else
  6988. lt_unset=false
  6989. fi
  6990. # test EBCDIC or ASCII
  6991. case `echo X|tr X '\101'` in
  6992. A) # ASCII based system
  6993. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6994. lt_SP2NL='tr \040 \012'
  6995. lt_NL2SP='tr \015\012 \040\040'
  6996. ;;
  6997. *) # EBCDIC based system
  6998. lt_SP2NL='tr \100 \n'
  6999. lt_NL2SP='tr \r\n \100\100'
  7000. ;;
  7001. esac
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7003. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7004. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. lt_cv_ld_reload_flag='-r'
  7008. fi
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7010. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7011. reload_flag=$lt_cv_ld_reload_flag
  7012. case $reload_flag in
  7013. "" | " "*) ;;
  7014. *) reload_flag=" $reload_flag" ;;
  7015. esac
  7016. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7017. case $host_os in
  7018. darwin*)
  7019. if test "$GCC" = yes; then
  7020. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7021. else
  7022. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7023. fi
  7024. ;;
  7025. esac
  7026. if test -n "$ac_tool_prefix"; then
  7027. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7028. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7030. $as_echo_n "checking for $ac_word... " >&6; }
  7031. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. if test -n "$OBJDUMP"; then
  7035. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7036. else
  7037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7038. for as_dir in $PATH
  7039. do
  7040. IFS=$as_save_IFS
  7041. test -z "$as_dir" && as_dir=.
  7042. for ac_exec_ext in '' $ac_executable_extensions; do
  7043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7044. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7046. break 2
  7047. fi
  7048. done
  7049. done
  7050. IFS=$as_save_IFS
  7051. fi
  7052. fi
  7053. OBJDUMP=$ac_cv_prog_OBJDUMP
  7054. if test -n "$OBJDUMP"; then
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7056. $as_echo "$OBJDUMP" >&6; }
  7057. else
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7059. $as_echo "no" >&6; }
  7060. fi
  7061. fi
  7062. if test -z "$ac_cv_prog_OBJDUMP"; then
  7063. ac_ct_OBJDUMP=$OBJDUMP
  7064. # Extract the first word of "objdump", so it can be a program name with args.
  7065. set dummy objdump; ac_word=$2
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7067. $as_echo_n "checking for $ac_word... " >&6; }
  7068. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  7069. $as_echo_n "(cached) " >&6
  7070. else
  7071. if test -n "$ac_ct_OBJDUMP"; then
  7072. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7073. else
  7074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7075. for as_dir in $PATH
  7076. do
  7077. IFS=$as_save_IFS
  7078. test -z "$as_dir" && as_dir=.
  7079. for ac_exec_ext in '' $ac_executable_extensions; do
  7080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7081. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7083. break 2
  7084. fi
  7085. done
  7086. done
  7087. IFS=$as_save_IFS
  7088. fi
  7089. fi
  7090. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7091. if test -n "$ac_ct_OBJDUMP"; then
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7093. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7094. else
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7096. $as_echo "no" >&6; }
  7097. fi
  7098. if test "x$ac_ct_OBJDUMP" = x; then
  7099. OBJDUMP="false"
  7100. else
  7101. case $cross_compiling:$ac_tool_warned in
  7102. yes:)
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7105. ac_tool_warned=yes ;;
  7106. esac
  7107. OBJDUMP=$ac_ct_OBJDUMP
  7108. fi
  7109. else
  7110. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7111. fi
  7112. test -z "$OBJDUMP" && OBJDUMP=objdump
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7114. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7115. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7119. lt_cv_file_magic_test_file=
  7120. lt_cv_deplibs_check_method='unknown'
  7121. # Need to set the preceding variable on all platforms that support
  7122. # interlibrary dependencies.
  7123. # 'none' -- dependencies not supported.
  7124. # `unknown' -- same as none, but documents that we really don't know.
  7125. # 'pass_all' -- all dependencies passed with no checks.
  7126. # 'test_compile' -- check by making test program.
  7127. # 'file_magic [[regex]]' -- check by looking for files in library path
  7128. # which responds to the $file_magic_cmd with a given extended regex.
  7129. # If you have `file' or equivalent on your system and you're not sure
  7130. # whether `pass_all' will *always* work, you probably want this one.
  7131. case $host_os in
  7132. aix[4-9]*)
  7133. lt_cv_deplibs_check_method=pass_all
  7134. ;;
  7135. beos*)
  7136. lt_cv_deplibs_check_method=pass_all
  7137. ;;
  7138. bsdi[45]*)
  7139. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7140. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7141. lt_cv_file_magic_test_file=/shlib/libc.so
  7142. ;;
  7143. cygwin*)
  7144. # func_win32_libid is a shell function defined in ltmain.sh
  7145. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7146. lt_cv_file_magic_cmd='func_win32_libid'
  7147. ;;
  7148. mingw* | pw32*)
  7149. # Base MSYS/MinGW do not provide the 'file' command needed by
  7150. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7151. # unless we find 'file', for example because we are cross-compiling.
  7152. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7153. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7154. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7155. lt_cv_file_magic_cmd='func_win32_libid'
  7156. else
  7157. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7158. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7159. fi
  7160. ;;
  7161. cegcc*)
  7162. # use the weaker test based on 'objdump'. See mingw*.
  7163. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7164. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7165. ;;
  7166. darwin* | rhapsody*)
  7167. lt_cv_deplibs_check_method=pass_all
  7168. ;;
  7169. freebsd* | dragonfly*)
  7170. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7171. case $host_cpu in
  7172. i*86 )
  7173. # Not sure whether the presence of OpenBSD here was a mistake.
  7174. # Let's accept both of them until this is cleared up.
  7175. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7176. lt_cv_file_magic_cmd=/usr/bin/file
  7177. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7178. ;;
  7179. esac
  7180. else
  7181. lt_cv_deplibs_check_method=pass_all
  7182. fi
  7183. ;;
  7184. gnu*)
  7185. lt_cv_deplibs_check_method=pass_all
  7186. ;;
  7187. haiku*)
  7188. lt_cv_deplibs_check_method=pass_all
  7189. ;;
  7190. hpux10.20* | hpux11*)
  7191. lt_cv_file_magic_cmd=/usr/bin/file
  7192. case $host_cpu in
  7193. ia64*)
  7194. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7195. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7196. ;;
  7197. hppa*64*)
  7198. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  7199. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7200. ;;
  7201. *)
  7202. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7203. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7204. ;;
  7205. esac
  7206. ;;
  7207. interix[3-9]*)
  7208. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7209. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7210. ;;
  7211. irix5* | irix6* | nonstopux*)
  7212. case $LD in
  7213. *-32|*"-32 ") libmagic=32-bit;;
  7214. *-n32|*"-n32 ") libmagic=N32;;
  7215. *-64|*"-64 ") libmagic=64-bit;;
  7216. *) libmagic=never-match;;
  7217. esac
  7218. lt_cv_deplibs_check_method=pass_all
  7219. ;;
  7220. # This must be Linux ELF.
  7221. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7222. lt_cv_deplibs_check_method=pass_all
  7223. ;;
  7224. netbsd*)
  7225. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7226. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7227. else
  7228. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7229. fi
  7230. ;;
  7231. newos6*)
  7232. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7233. lt_cv_file_magic_cmd=/usr/bin/file
  7234. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7235. ;;
  7236. *nto* | *qnx*)
  7237. lt_cv_deplibs_check_method=pass_all
  7238. ;;
  7239. openbsd*)
  7240. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7241. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7242. else
  7243. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7244. fi
  7245. ;;
  7246. osf3* | osf4* | osf5*)
  7247. lt_cv_deplibs_check_method=pass_all
  7248. ;;
  7249. rdos*)
  7250. lt_cv_deplibs_check_method=pass_all
  7251. ;;
  7252. solaris*)
  7253. lt_cv_deplibs_check_method=pass_all
  7254. ;;
  7255. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7256. lt_cv_deplibs_check_method=pass_all
  7257. ;;
  7258. sysv4 | sysv4.3*)
  7259. case $host_vendor in
  7260. motorola)
  7261. 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]'
  7262. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7263. ;;
  7264. ncr)
  7265. lt_cv_deplibs_check_method=pass_all
  7266. ;;
  7267. sequent)
  7268. lt_cv_file_magic_cmd='/bin/file'
  7269. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7270. ;;
  7271. sni)
  7272. lt_cv_file_magic_cmd='/bin/file'
  7273. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7274. lt_cv_file_magic_test_file=/lib/libc.so
  7275. ;;
  7276. siemens)
  7277. lt_cv_deplibs_check_method=pass_all
  7278. ;;
  7279. pc)
  7280. lt_cv_deplibs_check_method=pass_all
  7281. ;;
  7282. esac
  7283. ;;
  7284. tpf*)
  7285. lt_cv_deplibs_check_method=pass_all
  7286. ;;
  7287. esac
  7288. fi
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7290. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7291. file_magic_cmd=$lt_cv_file_magic_cmd
  7292. deplibs_check_method=$lt_cv_deplibs_check_method
  7293. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7294. if test -n "$ac_tool_prefix"; then
  7295. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7296. set dummy ${ac_tool_prefix}ar; ac_word=$2
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7298. $as_echo_n "checking for $ac_word... " >&6; }
  7299. if test "${ac_cv_prog_AR+set}" = set; then :
  7300. $as_echo_n "(cached) " >&6
  7301. else
  7302. if test -n "$AR"; then
  7303. ac_cv_prog_AR="$AR" # Let the user override the test.
  7304. else
  7305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7306. for as_dir in $PATH
  7307. do
  7308. IFS=$as_save_IFS
  7309. test -z "$as_dir" && as_dir=.
  7310. for ac_exec_ext in '' $ac_executable_extensions; do
  7311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7312. ac_cv_prog_AR="${ac_tool_prefix}ar"
  7313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7314. break 2
  7315. fi
  7316. done
  7317. done
  7318. IFS=$as_save_IFS
  7319. fi
  7320. fi
  7321. AR=$ac_cv_prog_AR
  7322. if test -n "$AR"; then
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7324. $as_echo "$AR" >&6; }
  7325. else
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7327. $as_echo "no" >&6; }
  7328. fi
  7329. fi
  7330. if test -z "$ac_cv_prog_AR"; then
  7331. ac_ct_AR=$AR
  7332. # Extract the first word of "ar", so it can be a program name with args.
  7333. set dummy ar; ac_word=$2
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7335. $as_echo_n "checking for $ac_word... " >&6; }
  7336. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. if test -n "$ac_ct_AR"; then
  7340. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7341. else
  7342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7343. for as_dir in $PATH
  7344. do
  7345. IFS=$as_save_IFS
  7346. test -z "$as_dir" && as_dir=.
  7347. for ac_exec_ext in '' $ac_executable_extensions; do
  7348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7349. ac_cv_prog_ac_ct_AR="ar"
  7350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7351. break 2
  7352. fi
  7353. done
  7354. done
  7355. IFS=$as_save_IFS
  7356. fi
  7357. fi
  7358. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7359. if test -n "$ac_ct_AR"; then
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7361. $as_echo "$ac_ct_AR" >&6; }
  7362. else
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7364. $as_echo "no" >&6; }
  7365. fi
  7366. if test "x$ac_ct_AR" = x; then
  7367. AR="false"
  7368. else
  7369. case $cross_compiling:$ac_tool_warned in
  7370. yes:)
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7373. ac_tool_warned=yes ;;
  7374. esac
  7375. AR=$ac_ct_AR
  7376. fi
  7377. else
  7378. AR="$ac_cv_prog_AR"
  7379. fi
  7380. test -z "$AR" && AR=ar
  7381. test -z "$AR_FLAGS" && AR_FLAGS=cru
  7382. if test -n "$ac_tool_prefix"; then
  7383. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7384. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7386. $as_echo_n "checking for $ac_word... " >&6; }
  7387. if test "${ac_cv_prog_STRIP+set}" = set; then :
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. if test -n "$STRIP"; then
  7391. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7392. else
  7393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7394. for as_dir in $PATH
  7395. do
  7396. IFS=$as_save_IFS
  7397. test -z "$as_dir" && as_dir=.
  7398. for ac_exec_ext in '' $ac_executable_extensions; do
  7399. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7400. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7402. break 2
  7403. fi
  7404. done
  7405. done
  7406. IFS=$as_save_IFS
  7407. fi
  7408. fi
  7409. STRIP=$ac_cv_prog_STRIP
  7410. if test -n "$STRIP"; then
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7412. $as_echo "$STRIP" >&6; }
  7413. else
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7415. $as_echo "no" >&6; }
  7416. fi
  7417. fi
  7418. if test -z "$ac_cv_prog_STRIP"; then
  7419. ac_ct_STRIP=$STRIP
  7420. # Extract the first word of "strip", so it can be a program name with args.
  7421. set dummy strip; ac_word=$2
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7423. $as_echo_n "checking for $ac_word... " >&6; }
  7424. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. if test -n "$ac_ct_STRIP"; then
  7428. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7429. else
  7430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7431. for as_dir in $PATH
  7432. do
  7433. IFS=$as_save_IFS
  7434. test -z "$as_dir" && as_dir=.
  7435. for ac_exec_ext in '' $ac_executable_extensions; do
  7436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7437. ac_cv_prog_ac_ct_STRIP="strip"
  7438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7439. break 2
  7440. fi
  7441. done
  7442. done
  7443. IFS=$as_save_IFS
  7444. fi
  7445. fi
  7446. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7447. if test -n "$ac_ct_STRIP"; then
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7449. $as_echo "$ac_ct_STRIP" >&6; }
  7450. else
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7452. $as_echo "no" >&6; }
  7453. fi
  7454. if test "x$ac_ct_STRIP" = x; then
  7455. STRIP=":"
  7456. else
  7457. case $cross_compiling:$ac_tool_warned in
  7458. yes:)
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7461. ac_tool_warned=yes ;;
  7462. esac
  7463. STRIP=$ac_ct_STRIP
  7464. fi
  7465. else
  7466. STRIP="$ac_cv_prog_STRIP"
  7467. fi
  7468. test -z "$STRIP" && STRIP=:
  7469. if test -n "$ac_tool_prefix"; then
  7470. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7471. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7473. $as_echo_n "checking for $ac_word... " >&6; }
  7474. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7475. $as_echo_n "(cached) " >&6
  7476. else
  7477. if test -n "$RANLIB"; then
  7478. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7479. else
  7480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7481. for as_dir in $PATH
  7482. do
  7483. IFS=$as_save_IFS
  7484. test -z "$as_dir" && as_dir=.
  7485. for ac_exec_ext in '' $ac_executable_extensions; do
  7486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7487. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7489. break 2
  7490. fi
  7491. done
  7492. done
  7493. IFS=$as_save_IFS
  7494. fi
  7495. fi
  7496. RANLIB=$ac_cv_prog_RANLIB
  7497. if test -n "$RANLIB"; then
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7499. $as_echo "$RANLIB" >&6; }
  7500. else
  7501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7502. $as_echo "no" >&6; }
  7503. fi
  7504. fi
  7505. if test -z "$ac_cv_prog_RANLIB"; then
  7506. ac_ct_RANLIB=$RANLIB
  7507. # Extract the first word of "ranlib", so it can be a program name with args.
  7508. set dummy ranlib; ac_word=$2
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7510. $as_echo_n "checking for $ac_word... " >&6; }
  7511. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. if test -n "$ac_ct_RANLIB"; then
  7515. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7516. else
  7517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7518. for as_dir in $PATH
  7519. do
  7520. IFS=$as_save_IFS
  7521. test -z "$as_dir" && as_dir=.
  7522. for ac_exec_ext in '' $ac_executable_extensions; do
  7523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7524. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7526. break 2
  7527. fi
  7528. done
  7529. done
  7530. IFS=$as_save_IFS
  7531. fi
  7532. fi
  7533. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7534. if test -n "$ac_ct_RANLIB"; then
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7536. $as_echo "$ac_ct_RANLIB" >&6; }
  7537. else
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7539. $as_echo "no" >&6; }
  7540. fi
  7541. if test "x$ac_ct_RANLIB" = x; then
  7542. RANLIB=":"
  7543. else
  7544. case $cross_compiling:$ac_tool_warned in
  7545. yes:)
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7548. ac_tool_warned=yes ;;
  7549. esac
  7550. RANLIB=$ac_ct_RANLIB
  7551. fi
  7552. else
  7553. RANLIB="$ac_cv_prog_RANLIB"
  7554. fi
  7555. test -z "$RANLIB" && RANLIB=:
  7556. # Determine commands to create old-style static archives.
  7557. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7558. old_postinstall_cmds='chmod 644 $oldlib'
  7559. old_postuninstall_cmds=
  7560. if test -n "$RANLIB"; then
  7561. case $host_os in
  7562. openbsd*)
  7563. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  7564. ;;
  7565. *)
  7566. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  7567. ;;
  7568. esac
  7569. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7570. fi
  7571. case $host_os in
  7572. darwin*)
  7573. lock_old_archive_extraction=yes ;;
  7574. *)
  7575. lock_old_archive_extraction=no ;;
  7576. esac
  7577. # If no C compiler was specified, use CC.
  7578. LTCC=${LTCC-"$CC"}
  7579. # If no C compiler flags were specified, use CFLAGS.
  7580. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7581. # Allow CC to be a program name with arguments.
  7582. compiler=$CC
  7583. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7585. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7586. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  7587. $as_echo_n "(cached) " >&6
  7588. else
  7589. # These are sane defaults that work on at least a few old systems.
  7590. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7591. # Character class describing NM global symbol codes.
  7592. symcode='[BCDEGRST]'
  7593. # Regexp to match symbols that can be accessed directly from C.
  7594. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7595. # Define system-specific variables.
  7596. case $host_os in
  7597. aix*)
  7598. symcode='[BCDT]'
  7599. ;;
  7600. cygwin* | mingw* | pw32* | cegcc*)
  7601. symcode='[ABCDGISTW]'
  7602. ;;
  7603. hpux*)
  7604. if test "$host_cpu" = ia64; then
  7605. symcode='[ABCDEGRST]'
  7606. fi
  7607. ;;
  7608. irix* | nonstopux*)
  7609. symcode='[BCDEGRST]'
  7610. ;;
  7611. osf*)
  7612. symcode='[BCDEGQRST]'
  7613. ;;
  7614. solaris*)
  7615. symcode='[BDRT]'
  7616. ;;
  7617. sco3.2v5*)
  7618. symcode='[DT]'
  7619. ;;
  7620. sysv4.2uw2*)
  7621. symcode='[DT]'
  7622. ;;
  7623. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7624. symcode='[ABDT]'
  7625. ;;
  7626. sysv4)
  7627. symcode='[DFNSTU]'
  7628. ;;
  7629. esac
  7630. # If we're using GNU nm, then use its standard symbol codes.
  7631. case `$NM -V 2>&1` in
  7632. *GNU* | *'with BFD'*)
  7633. symcode='[ABCDGIRSTW]' ;;
  7634. esac
  7635. # Transform an extracted symbol line into a proper C declaration.
  7636. # Some systems (esp. on ia64) link data and code symbols differently,
  7637. # so use this general approach.
  7638. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7639. # Transform an extracted symbol line into symbol name and symbol address
  7640. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7641. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  7642. # Handle CRLF in mingw tool chain
  7643. opt_cr=
  7644. case $build_os in
  7645. mingw*)
  7646. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7647. ;;
  7648. esac
  7649. # Try without a prefix underscore, then with it.
  7650. for ac_symprfx in "" "_"; do
  7651. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7652. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7653. # Write the raw and C identifiers.
  7654. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7655. # Fake it for dumpbin and say T for any non-static function
  7656. # and D for any global variable.
  7657. # Also find C++ and __fastcall symbols from MSVC++,
  7658. # which start with @ or ?.
  7659. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7660. " {last_section=section; section=\$ 3};"\
  7661. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7662. " \$ 0!~/External *\|/{next};"\
  7663. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7664. " {if(hide[section]) next};"\
  7665. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7666. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7667. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7668. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7669. " ' prfx=^$ac_symprfx"
  7670. else
  7671. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7672. fi
  7673. # Check to see that the pipe works correctly.
  7674. pipe_works=no
  7675. rm -f conftest*
  7676. cat > conftest.$ac_ext <<_LT_EOF
  7677. #ifdef __cplusplus
  7678. extern "C" {
  7679. #endif
  7680. char nm_test_var;
  7681. void nm_test_func(void);
  7682. void nm_test_func(void){}
  7683. #ifdef __cplusplus
  7684. }
  7685. #endif
  7686. int main(){nm_test_var='a';nm_test_func();return(0);}
  7687. _LT_EOF
  7688. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7689. (eval $ac_compile) 2>&5
  7690. ac_status=$?
  7691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7692. test $ac_status = 0; }; then
  7693. # Now try to grab the symbols.
  7694. nlist=conftest.nm
  7695. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7696. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7697. ac_status=$?
  7698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7699. test $ac_status = 0; } && test -s "$nlist"; then
  7700. # Try sorting and uniquifying the output.
  7701. if sort "$nlist" | uniq > "$nlist"T; then
  7702. mv -f "$nlist"T "$nlist"
  7703. else
  7704. rm -f "$nlist"T
  7705. fi
  7706. # Make sure that we snagged all the symbols we need.
  7707. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7708. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7709. cat <<_LT_EOF > conftest.$ac_ext
  7710. #ifdef __cplusplus
  7711. extern "C" {
  7712. #endif
  7713. _LT_EOF
  7714. # Now generate the symbol file.
  7715. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7716. cat <<_LT_EOF >> conftest.$ac_ext
  7717. /* The mapping between symbol names and symbols. */
  7718. const struct {
  7719. const char *name;
  7720. void *address;
  7721. }
  7722. lt__PROGRAM__LTX_preloaded_symbols[] =
  7723. {
  7724. { "@PROGRAM@", (void *) 0 },
  7725. _LT_EOF
  7726. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7727. cat <<\_LT_EOF >> conftest.$ac_ext
  7728. {0, (void *) 0}
  7729. };
  7730. /* This works around a problem in FreeBSD linker */
  7731. #ifdef FREEBSD_WORKAROUND
  7732. static const void *lt_preloaded_setup() {
  7733. return lt__PROGRAM__LTX_preloaded_symbols;
  7734. }
  7735. #endif
  7736. #ifdef __cplusplus
  7737. }
  7738. #endif
  7739. _LT_EOF
  7740. # Now try linking the two files.
  7741. mv conftest.$ac_objext conftstm.$ac_objext
  7742. lt_save_LIBS="$LIBS"
  7743. lt_save_CFLAGS="$CFLAGS"
  7744. LIBS="conftstm.$ac_objext"
  7745. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7746. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7747. (eval $ac_link) 2>&5
  7748. ac_status=$?
  7749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7750. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7751. pipe_works=yes
  7752. fi
  7753. LIBS="$lt_save_LIBS"
  7754. CFLAGS="$lt_save_CFLAGS"
  7755. else
  7756. echo "cannot find nm_test_func in $nlist" >&5
  7757. fi
  7758. else
  7759. echo "cannot find nm_test_var in $nlist" >&5
  7760. fi
  7761. else
  7762. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7763. fi
  7764. else
  7765. echo "$progname: failed program was:" >&5
  7766. cat conftest.$ac_ext >&5
  7767. fi
  7768. rm -rf conftest* conftst*
  7769. # Do not use the global_symbol_pipe unless it works.
  7770. if test "$pipe_works" = yes; then
  7771. break
  7772. else
  7773. lt_cv_sys_global_symbol_pipe=
  7774. fi
  7775. done
  7776. fi
  7777. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7778. lt_cv_sys_global_symbol_to_cdecl=
  7779. fi
  7780. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7782. $as_echo "failed" >&6; }
  7783. else
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7785. $as_echo "ok" >&6; }
  7786. fi
  7787. # Check whether --enable-libtool-lock was given.
  7788. if test "${enable_libtool_lock+set}" = set; then :
  7789. enableval=$enable_libtool_lock;
  7790. fi
  7791. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7792. # Some flags need to be propagated to the compiler or linker for good
  7793. # libtool support.
  7794. case $host in
  7795. ia64-*-hpux*)
  7796. # Find out which ABI we are using.
  7797. echo 'int i;' > conftest.$ac_ext
  7798. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7799. (eval $ac_compile) 2>&5
  7800. ac_status=$?
  7801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7802. test $ac_status = 0; }; then
  7803. case `/usr/bin/file conftest.$ac_objext` in
  7804. *ELF-32*)
  7805. HPUX_IA64_MODE="32"
  7806. ;;
  7807. *ELF-64*)
  7808. HPUX_IA64_MODE="64"
  7809. ;;
  7810. esac
  7811. fi
  7812. rm -rf conftest*
  7813. ;;
  7814. *-*-irix6*)
  7815. # Find out which ABI we are using.
  7816. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7818. (eval $ac_compile) 2>&5
  7819. ac_status=$?
  7820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7821. test $ac_status = 0; }; then
  7822. if test "$lt_cv_prog_gnu_ld" = yes; then
  7823. case `/usr/bin/file conftest.$ac_objext` in
  7824. *32-bit*)
  7825. LD="${LD-ld} -melf32bsmip"
  7826. ;;
  7827. *N32*)
  7828. LD="${LD-ld} -melf32bmipn32"
  7829. ;;
  7830. *64-bit*)
  7831. LD="${LD-ld} -melf64bmip"
  7832. ;;
  7833. esac
  7834. else
  7835. case `/usr/bin/file conftest.$ac_objext` in
  7836. *32-bit*)
  7837. LD="${LD-ld} -32"
  7838. ;;
  7839. *N32*)
  7840. LD="${LD-ld} -n32"
  7841. ;;
  7842. *64-bit*)
  7843. LD="${LD-ld} -64"
  7844. ;;
  7845. esac
  7846. fi
  7847. fi
  7848. rm -rf conftest*
  7849. ;;
  7850. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7851. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7852. # Find out which ABI we are using.
  7853. echo 'int i;' > conftest.$ac_ext
  7854. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7855. (eval $ac_compile) 2>&5
  7856. ac_status=$?
  7857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7858. test $ac_status = 0; }; then
  7859. case `/usr/bin/file conftest.o` in
  7860. *32-bit*)
  7861. case $host in
  7862. x86_64-*kfreebsd*-gnu)
  7863. LD="${LD-ld} -m elf_i386_fbsd"
  7864. ;;
  7865. x86_64-*linux*)
  7866. case `/usr/bin/file conftest.o` in
  7867. *x86-64*)
  7868. LD="${LD-ld} -m elf32_x86_64"
  7869. ;;
  7870. *)
  7871. LD="${LD-ld} -m elf_i386"
  7872. ;;
  7873. esac
  7874. ;;
  7875. powerpc64le-*linux*)
  7876. LD="${LD-ld} -m elf32lppclinux"
  7877. ;;
  7878. powerpc64-*linux*)
  7879. LD="${LD-ld} -m elf32ppclinux"
  7880. ;;
  7881. s390x-*linux*)
  7882. LD="${LD-ld} -m elf_s390"
  7883. ;;
  7884. sparc64-*linux*)
  7885. LD="${LD-ld} -m elf32_sparc"
  7886. ;;
  7887. esac
  7888. ;;
  7889. *64-bit*)
  7890. case $host in
  7891. x86_64-*kfreebsd*-gnu)
  7892. LD="${LD-ld} -m elf_x86_64_fbsd"
  7893. ;;
  7894. x86_64-*linux*)
  7895. LD="${LD-ld} -m elf_x86_64"
  7896. ;;
  7897. powerpcle-*linux*)
  7898. LD="${LD-ld} -m elf64lppc"
  7899. ;;
  7900. powerpc-*linux*)
  7901. LD="${LD-ld} -m elf64ppc"
  7902. ;;
  7903. s390*-*linux*|s390*-*tpf*)
  7904. LD="${LD-ld} -m elf64_s390"
  7905. ;;
  7906. sparc*-*linux*)
  7907. LD="${LD-ld} -m elf64_sparc"
  7908. ;;
  7909. esac
  7910. ;;
  7911. esac
  7912. fi
  7913. rm -rf conftest*
  7914. ;;
  7915. *-*-sco3.2v5*)
  7916. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7917. SAVE_CFLAGS="$CFLAGS"
  7918. CFLAGS="$CFLAGS -belf"
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7920. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7921. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  7922. $as_echo_n "(cached) " >&6
  7923. else
  7924. ac_ext=c
  7925. ac_cpp='$CPP $CPPFLAGS'
  7926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7929. if test x$gcc_no_link = xyes; then
  7930. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7931. fi
  7932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7933. /* end confdefs.h. */
  7934. int
  7935. main ()
  7936. {
  7937. ;
  7938. return 0;
  7939. }
  7940. _ACEOF
  7941. if ac_fn_c_try_link "$LINENO"; then :
  7942. lt_cv_cc_needs_belf=yes
  7943. else
  7944. lt_cv_cc_needs_belf=no
  7945. fi
  7946. rm -f core conftest.err conftest.$ac_objext \
  7947. conftest$ac_exeext conftest.$ac_ext
  7948. ac_ext=c
  7949. ac_cpp='$CPP $CPPFLAGS'
  7950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7953. fi
  7954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7955. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7956. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7957. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7958. CFLAGS="$SAVE_CFLAGS"
  7959. fi
  7960. ;;
  7961. sparc*-*solaris*)
  7962. # Find out which ABI we are using.
  7963. echo 'int i;' > conftest.$ac_ext
  7964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7965. (eval $ac_compile) 2>&5
  7966. ac_status=$?
  7967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7968. test $ac_status = 0; }; then
  7969. case `/usr/bin/file conftest.o` in
  7970. *64-bit*)
  7971. case $lt_cv_prog_gnu_ld in
  7972. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7973. *)
  7974. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7975. LD="${LD-ld} -64"
  7976. fi
  7977. ;;
  7978. esac
  7979. ;;
  7980. esac
  7981. fi
  7982. rm -rf conftest*
  7983. ;;
  7984. esac
  7985. need_locks="$enable_libtool_lock"
  7986. case $host_os in
  7987. rhapsody* | darwin*)
  7988. if test -n "$ac_tool_prefix"; then
  7989. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7990. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7992. $as_echo_n "checking for $ac_word... " >&6; }
  7993. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  7994. $as_echo_n "(cached) " >&6
  7995. else
  7996. if test -n "$DSYMUTIL"; then
  7997. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7998. else
  7999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8000. for as_dir in $PATH
  8001. do
  8002. IFS=$as_save_IFS
  8003. test -z "$as_dir" && as_dir=.
  8004. for ac_exec_ext in '' $ac_executable_extensions; do
  8005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8006. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8008. break 2
  8009. fi
  8010. done
  8011. done
  8012. IFS=$as_save_IFS
  8013. fi
  8014. fi
  8015. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8016. if test -n "$DSYMUTIL"; then
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8018. $as_echo "$DSYMUTIL" >&6; }
  8019. else
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8021. $as_echo "no" >&6; }
  8022. fi
  8023. fi
  8024. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8025. ac_ct_DSYMUTIL=$DSYMUTIL
  8026. # Extract the first word of "dsymutil", so it can be a program name with args.
  8027. set dummy dsymutil; ac_word=$2
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8029. $as_echo_n "checking for $ac_word... " >&6; }
  8030. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  8031. $as_echo_n "(cached) " >&6
  8032. else
  8033. if test -n "$ac_ct_DSYMUTIL"; then
  8034. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8035. else
  8036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8037. for as_dir in $PATH
  8038. do
  8039. IFS=$as_save_IFS
  8040. test -z "$as_dir" && as_dir=.
  8041. for ac_exec_ext in '' $ac_executable_extensions; do
  8042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8043. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8045. break 2
  8046. fi
  8047. done
  8048. done
  8049. IFS=$as_save_IFS
  8050. fi
  8051. fi
  8052. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8053. if test -n "$ac_ct_DSYMUTIL"; then
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8055. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8056. else
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8058. $as_echo "no" >&6; }
  8059. fi
  8060. if test "x$ac_ct_DSYMUTIL" = x; then
  8061. DSYMUTIL=":"
  8062. else
  8063. case $cross_compiling:$ac_tool_warned in
  8064. yes:)
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8067. ac_tool_warned=yes ;;
  8068. esac
  8069. DSYMUTIL=$ac_ct_DSYMUTIL
  8070. fi
  8071. else
  8072. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8073. fi
  8074. if test -n "$ac_tool_prefix"; then
  8075. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8076. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8078. $as_echo_n "checking for $ac_word... " >&6; }
  8079. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  8080. $as_echo_n "(cached) " >&6
  8081. else
  8082. if test -n "$NMEDIT"; then
  8083. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8084. else
  8085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8086. for as_dir in $PATH
  8087. do
  8088. IFS=$as_save_IFS
  8089. test -z "$as_dir" && as_dir=.
  8090. for ac_exec_ext in '' $ac_executable_extensions; do
  8091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8092. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8094. break 2
  8095. fi
  8096. done
  8097. done
  8098. IFS=$as_save_IFS
  8099. fi
  8100. fi
  8101. NMEDIT=$ac_cv_prog_NMEDIT
  8102. if test -n "$NMEDIT"; then
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8104. $as_echo "$NMEDIT" >&6; }
  8105. else
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8107. $as_echo "no" >&6; }
  8108. fi
  8109. fi
  8110. if test -z "$ac_cv_prog_NMEDIT"; then
  8111. ac_ct_NMEDIT=$NMEDIT
  8112. # Extract the first word of "nmedit", so it can be a program name with args.
  8113. set dummy nmedit; ac_word=$2
  8114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8115. $as_echo_n "checking for $ac_word... " >&6; }
  8116. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  8117. $as_echo_n "(cached) " >&6
  8118. else
  8119. if test -n "$ac_ct_NMEDIT"; then
  8120. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8121. else
  8122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8123. for as_dir in $PATH
  8124. do
  8125. IFS=$as_save_IFS
  8126. test -z "$as_dir" && as_dir=.
  8127. for ac_exec_ext in '' $ac_executable_extensions; do
  8128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8129. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8131. break 2
  8132. fi
  8133. done
  8134. done
  8135. IFS=$as_save_IFS
  8136. fi
  8137. fi
  8138. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8139. if test -n "$ac_ct_NMEDIT"; then
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8141. $as_echo "$ac_ct_NMEDIT" >&6; }
  8142. else
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8144. $as_echo "no" >&6; }
  8145. fi
  8146. if test "x$ac_ct_NMEDIT" = x; then
  8147. NMEDIT=":"
  8148. else
  8149. case $cross_compiling:$ac_tool_warned in
  8150. yes:)
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8152. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8153. ac_tool_warned=yes ;;
  8154. esac
  8155. NMEDIT=$ac_ct_NMEDIT
  8156. fi
  8157. else
  8158. NMEDIT="$ac_cv_prog_NMEDIT"
  8159. fi
  8160. if test -n "$ac_tool_prefix"; then
  8161. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8162. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8164. $as_echo_n "checking for $ac_word... " >&6; }
  8165. if test "${ac_cv_prog_LIPO+set}" = set; then :
  8166. $as_echo_n "(cached) " >&6
  8167. else
  8168. if test -n "$LIPO"; then
  8169. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8170. else
  8171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8172. for as_dir in $PATH
  8173. do
  8174. IFS=$as_save_IFS
  8175. test -z "$as_dir" && as_dir=.
  8176. for ac_exec_ext in '' $ac_executable_extensions; do
  8177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8178. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8180. break 2
  8181. fi
  8182. done
  8183. done
  8184. IFS=$as_save_IFS
  8185. fi
  8186. fi
  8187. LIPO=$ac_cv_prog_LIPO
  8188. if test -n "$LIPO"; then
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8190. $as_echo "$LIPO" >&6; }
  8191. else
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8193. $as_echo "no" >&6; }
  8194. fi
  8195. fi
  8196. if test -z "$ac_cv_prog_LIPO"; then
  8197. ac_ct_LIPO=$LIPO
  8198. # Extract the first word of "lipo", so it can be a program name with args.
  8199. set dummy lipo; ac_word=$2
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8201. $as_echo_n "checking for $ac_word... " >&6; }
  8202. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  8203. $as_echo_n "(cached) " >&6
  8204. else
  8205. if test -n "$ac_ct_LIPO"; then
  8206. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8207. else
  8208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8209. for as_dir in $PATH
  8210. do
  8211. IFS=$as_save_IFS
  8212. test -z "$as_dir" && as_dir=.
  8213. for ac_exec_ext in '' $ac_executable_extensions; do
  8214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8215. ac_cv_prog_ac_ct_LIPO="lipo"
  8216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8217. break 2
  8218. fi
  8219. done
  8220. done
  8221. IFS=$as_save_IFS
  8222. fi
  8223. fi
  8224. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8225. if test -n "$ac_ct_LIPO"; then
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8227. $as_echo "$ac_ct_LIPO" >&6; }
  8228. else
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8230. $as_echo "no" >&6; }
  8231. fi
  8232. if test "x$ac_ct_LIPO" = x; then
  8233. LIPO=":"
  8234. else
  8235. case $cross_compiling:$ac_tool_warned in
  8236. yes:)
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8239. ac_tool_warned=yes ;;
  8240. esac
  8241. LIPO=$ac_ct_LIPO
  8242. fi
  8243. else
  8244. LIPO="$ac_cv_prog_LIPO"
  8245. fi
  8246. if test -n "$ac_tool_prefix"; then
  8247. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8248. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8250. $as_echo_n "checking for $ac_word... " >&6; }
  8251. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  8252. $as_echo_n "(cached) " >&6
  8253. else
  8254. if test -n "$OTOOL"; then
  8255. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8256. else
  8257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8258. for as_dir in $PATH
  8259. do
  8260. IFS=$as_save_IFS
  8261. test -z "$as_dir" && as_dir=.
  8262. for ac_exec_ext in '' $ac_executable_extensions; do
  8263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8264. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8266. break 2
  8267. fi
  8268. done
  8269. done
  8270. IFS=$as_save_IFS
  8271. fi
  8272. fi
  8273. OTOOL=$ac_cv_prog_OTOOL
  8274. if test -n "$OTOOL"; then
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8276. $as_echo "$OTOOL" >&6; }
  8277. else
  8278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8279. $as_echo "no" >&6; }
  8280. fi
  8281. fi
  8282. if test -z "$ac_cv_prog_OTOOL"; then
  8283. ac_ct_OTOOL=$OTOOL
  8284. # Extract the first word of "otool", so it can be a program name with args.
  8285. set dummy otool; ac_word=$2
  8286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8287. $as_echo_n "checking for $ac_word... " >&6; }
  8288. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  8289. $as_echo_n "(cached) " >&6
  8290. else
  8291. if test -n "$ac_ct_OTOOL"; then
  8292. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8293. else
  8294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8295. for as_dir in $PATH
  8296. do
  8297. IFS=$as_save_IFS
  8298. test -z "$as_dir" && as_dir=.
  8299. for ac_exec_ext in '' $ac_executable_extensions; do
  8300. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8301. ac_cv_prog_ac_ct_OTOOL="otool"
  8302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8303. break 2
  8304. fi
  8305. done
  8306. done
  8307. IFS=$as_save_IFS
  8308. fi
  8309. fi
  8310. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8311. if test -n "$ac_ct_OTOOL"; then
  8312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8313. $as_echo "$ac_ct_OTOOL" >&6; }
  8314. else
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8316. $as_echo "no" >&6; }
  8317. fi
  8318. if test "x$ac_ct_OTOOL" = x; then
  8319. OTOOL=":"
  8320. else
  8321. case $cross_compiling:$ac_tool_warned in
  8322. yes:)
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8325. ac_tool_warned=yes ;;
  8326. esac
  8327. OTOOL=$ac_ct_OTOOL
  8328. fi
  8329. else
  8330. OTOOL="$ac_cv_prog_OTOOL"
  8331. fi
  8332. if test -n "$ac_tool_prefix"; then
  8333. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8334. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8336. $as_echo_n "checking for $ac_word... " >&6; }
  8337. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. if test -n "$OTOOL64"; then
  8341. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8342. else
  8343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8344. for as_dir in $PATH
  8345. do
  8346. IFS=$as_save_IFS
  8347. test -z "$as_dir" && as_dir=.
  8348. for ac_exec_ext in '' $ac_executable_extensions; do
  8349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8350. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8352. break 2
  8353. fi
  8354. done
  8355. done
  8356. IFS=$as_save_IFS
  8357. fi
  8358. fi
  8359. OTOOL64=$ac_cv_prog_OTOOL64
  8360. if test -n "$OTOOL64"; then
  8361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8362. $as_echo "$OTOOL64" >&6; }
  8363. else
  8364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8365. $as_echo "no" >&6; }
  8366. fi
  8367. fi
  8368. if test -z "$ac_cv_prog_OTOOL64"; then
  8369. ac_ct_OTOOL64=$OTOOL64
  8370. # Extract the first word of "otool64", so it can be a program name with args.
  8371. set dummy otool64; ac_word=$2
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8373. $as_echo_n "checking for $ac_word... " >&6; }
  8374. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. if test -n "$ac_ct_OTOOL64"; then
  8378. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8379. else
  8380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8381. for as_dir in $PATH
  8382. do
  8383. IFS=$as_save_IFS
  8384. test -z "$as_dir" && as_dir=.
  8385. for ac_exec_ext in '' $ac_executable_extensions; do
  8386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8387. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8389. break 2
  8390. fi
  8391. done
  8392. done
  8393. IFS=$as_save_IFS
  8394. fi
  8395. fi
  8396. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8397. if test -n "$ac_ct_OTOOL64"; then
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8399. $as_echo "$ac_ct_OTOOL64" >&6; }
  8400. else
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8402. $as_echo "no" >&6; }
  8403. fi
  8404. if test "x$ac_ct_OTOOL64" = x; then
  8405. OTOOL64=":"
  8406. else
  8407. case $cross_compiling:$ac_tool_warned in
  8408. yes:)
  8409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8411. ac_tool_warned=yes ;;
  8412. esac
  8413. OTOOL64=$ac_ct_OTOOL64
  8414. fi
  8415. else
  8416. OTOOL64="$ac_cv_prog_OTOOL64"
  8417. fi
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8419. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8420. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  8421. $as_echo_n "(cached) " >&6
  8422. else
  8423. lt_cv_apple_cc_single_mod=no
  8424. if test -z "${LT_MULTI_MODULE}"; then
  8425. # By default we will add the -single_module flag. You can override
  8426. # by either setting the environment variable LT_MULTI_MODULE
  8427. # non-empty at configure time, or by adding -multi_module to the
  8428. # link flags.
  8429. rm -rf libconftest.dylib*
  8430. echo "int foo(void){return 1;}" > conftest.c
  8431. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8432. -dynamiclib -Wl,-single_module conftest.c" >&5
  8433. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8434. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8435. _lt_result=$?
  8436. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  8437. lt_cv_apple_cc_single_mod=yes
  8438. else
  8439. cat conftest.err >&5
  8440. fi
  8441. rm -rf libconftest.dylib*
  8442. rm -f conftest.*
  8443. fi
  8444. fi
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8446. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8448. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8449. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  8450. $as_echo_n "(cached) " >&6
  8451. else
  8452. lt_cv_ld_exported_symbols_list=no
  8453. save_LDFLAGS=$LDFLAGS
  8454. echo "_main" > conftest.sym
  8455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8456. if test x$gcc_no_link = xyes; then
  8457. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8458. fi
  8459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8460. /* end confdefs.h. */
  8461. int
  8462. main ()
  8463. {
  8464. ;
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. if ac_fn_c_try_link "$LINENO"; then :
  8469. lt_cv_ld_exported_symbols_list=yes
  8470. else
  8471. lt_cv_ld_exported_symbols_list=no
  8472. fi
  8473. rm -f core conftest.err conftest.$ac_objext \
  8474. conftest$ac_exeext conftest.$ac_ext
  8475. LDFLAGS="$save_LDFLAGS"
  8476. fi
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8478. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8480. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8481. if test "${lt_cv_ld_force_load+set}" = set; then :
  8482. $as_echo_n "(cached) " >&6
  8483. else
  8484. lt_cv_ld_force_load=no
  8485. cat > conftest.c << _LT_EOF
  8486. int forced_loaded() { return 2;}
  8487. _LT_EOF
  8488. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8489. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8490. echo "$AR cru libconftest.a conftest.o" >&5
  8491. $AR cru libconftest.a conftest.o 2>&5
  8492. cat > conftest.c << _LT_EOF
  8493. int main() { return 0;}
  8494. _LT_EOF
  8495. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8496. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8497. _lt_result=$?
  8498. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  8499. lt_cv_ld_force_load=yes
  8500. else
  8501. cat conftest.err >&5
  8502. fi
  8503. rm -f conftest.err libconftest.a conftest conftest.c
  8504. rm -rf conftest.dSYM
  8505. fi
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8507. $as_echo "$lt_cv_ld_force_load" >&6; }
  8508. case $host_os in
  8509. rhapsody* | darwin1.[012])
  8510. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8511. darwin1.*)
  8512. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8513. darwin*) # darwin 5.x on
  8514. # if running on 10.5 or later, the deployment target defaults
  8515. # to the OS version, if on x86, and 10.4, the deployment
  8516. # target defaults to 10.4. Don't you love it?
  8517. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8518. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8519. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8520. 10.[012][,.]*)
  8521. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8522. 10.*)
  8523. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8524. esac
  8525. ;;
  8526. esac
  8527. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8528. _lt_dar_single_mod='$single_module'
  8529. fi
  8530. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8531. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8532. else
  8533. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8534. fi
  8535. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  8536. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8537. else
  8538. _lt_dsymutil=
  8539. fi
  8540. ;;
  8541. esac
  8542. ac_ext=c
  8543. ac_cpp='$CPP $CPPFLAGS'
  8544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  8548. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  8549. # On Suns, sometimes $CPP names a directory.
  8550. if test -n "$CPP" && test -d "$CPP"; then
  8551. CPP=
  8552. fi
  8553. if test -z "$CPP"; then
  8554. if test "${ac_cv_prog_CPP+set}" = set; then :
  8555. $as_echo_n "(cached) " >&6
  8556. else
  8557. # Double quotes because CPP needs to be expanded
  8558. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  8559. do
  8560. ac_preproc_ok=false
  8561. for ac_c_preproc_warn_flag in '' yes
  8562. do
  8563. # Use a header file that comes with gcc, so configuring glibc
  8564. # with a fresh cross-compiler works.
  8565. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8566. # <limits.h> exists even on freestanding compilers.
  8567. # On the NeXT, cc -E runs the code through the compiler's parser,
  8568. # not just through cpp. "Syntax error" is here to catch this case.
  8569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8570. /* end confdefs.h. */
  8571. #ifdef __STDC__
  8572. # include <limits.h>
  8573. #else
  8574. # include <assert.h>
  8575. #endif
  8576. Syntax error
  8577. _ACEOF
  8578. if ac_fn_c_try_cpp "$LINENO"; then :
  8579. else
  8580. # Broken: fails on valid input.
  8581. continue
  8582. fi
  8583. rm -f conftest.err conftest.$ac_ext
  8584. # OK, works on sane cases. Now check whether nonexistent headers
  8585. # can be detected and how.
  8586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8587. /* end confdefs.h. */
  8588. #include <ac_nonexistent.h>
  8589. _ACEOF
  8590. if ac_fn_c_try_cpp "$LINENO"; then :
  8591. # Broken: success on invalid input.
  8592. continue
  8593. else
  8594. # Passes both tests.
  8595. ac_preproc_ok=:
  8596. break
  8597. fi
  8598. rm -f conftest.err conftest.$ac_ext
  8599. done
  8600. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8601. rm -f conftest.err conftest.$ac_ext
  8602. if $ac_preproc_ok; then :
  8603. break
  8604. fi
  8605. done
  8606. ac_cv_prog_CPP=$CPP
  8607. fi
  8608. CPP=$ac_cv_prog_CPP
  8609. else
  8610. ac_cv_prog_CPP=$CPP
  8611. fi
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  8613. $as_echo "$CPP" >&6; }
  8614. ac_preproc_ok=false
  8615. for ac_c_preproc_warn_flag in '' yes
  8616. do
  8617. # Use a header file that comes with gcc, so configuring glibc
  8618. # with a fresh cross-compiler works.
  8619. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8620. # <limits.h> exists even on freestanding compilers.
  8621. # On the NeXT, cc -E runs the code through the compiler's parser,
  8622. # not just through cpp. "Syntax error" is here to catch this case.
  8623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8624. /* end confdefs.h. */
  8625. #ifdef __STDC__
  8626. # include <limits.h>
  8627. #else
  8628. # include <assert.h>
  8629. #endif
  8630. Syntax error
  8631. _ACEOF
  8632. if ac_fn_c_try_cpp "$LINENO"; then :
  8633. else
  8634. # Broken: fails on valid input.
  8635. continue
  8636. fi
  8637. rm -f conftest.err conftest.$ac_ext
  8638. # OK, works on sane cases. Now check whether nonexistent headers
  8639. # can be detected and how.
  8640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8641. /* end confdefs.h. */
  8642. #include <ac_nonexistent.h>
  8643. _ACEOF
  8644. if ac_fn_c_try_cpp "$LINENO"; then :
  8645. # Broken: success on invalid input.
  8646. continue
  8647. else
  8648. # Passes both tests.
  8649. ac_preproc_ok=:
  8650. break
  8651. fi
  8652. rm -f conftest.err conftest.$ac_ext
  8653. done
  8654. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8655. rm -f conftest.err conftest.$ac_ext
  8656. if $ac_preproc_ok; then :
  8657. else
  8658. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8659. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8660. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  8661. See \`config.log' for more details." "$LINENO" 5; }
  8662. fi
  8663. ac_ext=c
  8664. ac_cpp='$CPP $CPPFLAGS'
  8665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8669. $as_echo_n "checking for ANSI C header files... " >&6; }
  8670. if test "${ac_cv_header_stdc+set}" = set; then :
  8671. $as_echo_n "(cached) " >&6
  8672. else
  8673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8674. /* end confdefs.h. */
  8675. #include <stdlib.h>
  8676. #include <stdarg.h>
  8677. #include <string.h>
  8678. #include <float.h>
  8679. int
  8680. main ()
  8681. {
  8682. ;
  8683. return 0;
  8684. }
  8685. _ACEOF
  8686. if ac_fn_c_try_compile "$LINENO"; then :
  8687. ac_cv_header_stdc=yes
  8688. else
  8689. ac_cv_header_stdc=no
  8690. fi
  8691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8692. if test $ac_cv_header_stdc = yes; then
  8693. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8695. /* end confdefs.h. */
  8696. #include <string.h>
  8697. _ACEOF
  8698. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8699. $EGREP "memchr" >/dev/null 2>&1; then :
  8700. else
  8701. ac_cv_header_stdc=no
  8702. fi
  8703. rm -f conftest*
  8704. fi
  8705. if test $ac_cv_header_stdc = yes; then
  8706. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8708. /* end confdefs.h. */
  8709. #include <stdlib.h>
  8710. _ACEOF
  8711. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8712. $EGREP "free" >/dev/null 2>&1; then :
  8713. else
  8714. ac_cv_header_stdc=no
  8715. fi
  8716. rm -f conftest*
  8717. fi
  8718. if test $ac_cv_header_stdc = yes; then
  8719. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8720. if test "$cross_compiling" = yes; then :
  8721. :
  8722. else
  8723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8724. /* end confdefs.h. */
  8725. #include <ctype.h>
  8726. #include <stdlib.h>
  8727. #if ((' ' & 0x0FF) == 0x020)
  8728. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8729. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8730. #else
  8731. # define ISLOWER(c) \
  8732. (('a' <= (c) && (c) <= 'i') \
  8733. || ('j' <= (c) && (c) <= 'r') \
  8734. || ('s' <= (c) && (c) <= 'z'))
  8735. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8736. #endif
  8737. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8738. int
  8739. main ()
  8740. {
  8741. int i;
  8742. for (i = 0; i < 256; i++)
  8743. if (XOR (islower (i), ISLOWER (i))
  8744. || toupper (i) != TOUPPER (i))
  8745. return 2;
  8746. return 0;
  8747. }
  8748. _ACEOF
  8749. if ac_fn_c_try_run "$LINENO"; then :
  8750. else
  8751. ac_cv_header_stdc=no
  8752. fi
  8753. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8754. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8755. fi
  8756. fi
  8757. fi
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8759. $as_echo "$ac_cv_header_stdc" >&6; }
  8760. if test $ac_cv_header_stdc = yes; then
  8761. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8762. fi
  8763. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8764. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8765. inttypes.h stdint.h unistd.h
  8766. do :
  8767. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8768. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8769. "
  8770. eval as_val=\$$as_ac_Header
  8771. if test "x$as_val" = x""yes; then :
  8772. cat >>confdefs.h <<_ACEOF
  8773. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8774. _ACEOF
  8775. fi
  8776. done
  8777. for ac_header in dlfcn.h
  8778. do :
  8779. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8780. "
  8781. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  8782. cat >>confdefs.h <<_ACEOF
  8783. #define HAVE_DLFCN_H 1
  8784. _ACEOF
  8785. fi
  8786. done
  8787. # Set options
  8788. enable_win32_dll=no
  8789. # Check whether --enable-shared was given.
  8790. if test "${enable_shared+set}" = set; then :
  8791. enableval=$enable_shared; p=${PACKAGE-default}
  8792. case $enableval in
  8793. yes) enable_shared=yes ;;
  8794. no) enable_shared=no ;;
  8795. *)
  8796. enable_shared=no
  8797. # Look at the argument we got. We use all the common list separators.
  8798. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8799. for pkg in $enableval; do
  8800. IFS="$lt_save_ifs"
  8801. if test "X$pkg" = "X$p"; then
  8802. enable_shared=yes
  8803. fi
  8804. done
  8805. IFS="$lt_save_ifs"
  8806. ;;
  8807. esac
  8808. else
  8809. enable_shared=yes
  8810. fi
  8811. # Check whether --enable-static was given.
  8812. if test "${enable_static+set}" = set; then :
  8813. enableval=$enable_static; p=${PACKAGE-default}
  8814. case $enableval in
  8815. yes) enable_static=yes ;;
  8816. no) enable_static=no ;;
  8817. *)
  8818. enable_static=no
  8819. # Look at the argument we got. We use all the common list separators.
  8820. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8821. for pkg in $enableval; do
  8822. IFS="$lt_save_ifs"
  8823. if test "X$pkg" = "X$p"; then
  8824. enable_static=yes
  8825. fi
  8826. done
  8827. IFS="$lt_save_ifs"
  8828. ;;
  8829. esac
  8830. else
  8831. enable_static=yes
  8832. fi
  8833. # Check whether --with-pic was given.
  8834. if test "${with_pic+set}" = set; then :
  8835. withval=$with_pic; pic_mode="$withval"
  8836. else
  8837. pic_mode=default
  8838. fi
  8839. test -z "$pic_mode" && pic_mode=default
  8840. # Check whether --enable-fast-install was given.
  8841. if test "${enable_fast_install+set}" = set; then :
  8842. enableval=$enable_fast_install; p=${PACKAGE-default}
  8843. case $enableval in
  8844. yes) enable_fast_install=yes ;;
  8845. no) enable_fast_install=no ;;
  8846. *)
  8847. enable_fast_install=no
  8848. # Look at the argument we got. We use all the common list separators.
  8849. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8850. for pkg in $enableval; do
  8851. IFS="$lt_save_ifs"
  8852. if test "X$pkg" = "X$p"; then
  8853. enable_fast_install=yes
  8854. fi
  8855. done
  8856. IFS="$lt_save_ifs"
  8857. ;;
  8858. esac
  8859. else
  8860. enable_fast_install=yes
  8861. fi
  8862. # This can be used to rebuild libtool when needed
  8863. LIBTOOL_DEPS="$ltmain"
  8864. # Always use our own libtool.
  8865. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8866. test -z "$LN_S" && LN_S="ln -s"
  8867. if test -n "${ZSH_VERSION+set}" ; then
  8868. setopt NO_GLOB_SUBST
  8869. fi
  8870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8871. $as_echo_n "checking for objdir... " >&6; }
  8872. if test "${lt_cv_objdir+set}" = set; then :
  8873. $as_echo_n "(cached) " >&6
  8874. else
  8875. rm -f .libs 2>/dev/null
  8876. mkdir .libs 2>/dev/null
  8877. if test -d .libs; then
  8878. lt_cv_objdir=.libs
  8879. else
  8880. # MS-DOS does not allow filenames that begin with a dot.
  8881. lt_cv_objdir=_libs
  8882. fi
  8883. rmdir .libs 2>/dev/null
  8884. fi
  8885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8886. $as_echo "$lt_cv_objdir" >&6; }
  8887. objdir=$lt_cv_objdir
  8888. cat >>confdefs.h <<_ACEOF
  8889. #define LT_OBJDIR "$lt_cv_objdir/"
  8890. _ACEOF
  8891. case $host_os in
  8892. aix3*)
  8893. # AIX sometimes has problems with the GCC collect2 program. For some
  8894. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8895. # vanish in a puff of smoke.
  8896. if test "X${COLLECT_NAMES+set}" != Xset; then
  8897. COLLECT_NAMES=
  8898. export COLLECT_NAMES
  8899. fi
  8900. ;;
  8901. esac
  8902. # Global variables:
  8903. ofile=libtool
  8904. can_build_shared=yes
  8905. # All known linkers require a `.a' archive for static linking (except MSVC,
  8906. # which needs '.lib').
  8907. libext=a
  8908. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8909. old_CC="$CC"
  8910. old_CFLAGS="$CFLAGS"
  8911. # Set sane defaults for various variables
  8912. test -z "$CC" && CC=cc
  8913. test -z "$LTCC" && LTCC=$CC
  8914. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8915. test -z "$LD" && LD=ld
  8916. test -z "$ac_objext" && ac_objext=o
  8917. for cc_temp in $compiler""; do
  8918. case $cc_temp in
  8919. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8920. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8921. \-*) ;;
  8922. *) break;;
  8923. esac
  8924. done
  8925. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8926. # Only perform the check for file, if the check method requires it
  8927. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8928. case $deplibs_check_method in
  8929. file_magic*)
  8930. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8932. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8933. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8934. $as_echo_n "(cached) " >&6
  8935. else
  8936. case $MAGIC_CMD in
  8937. [\\/*] | ?:[\\/]*)
  8938. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8939. ;;
  8940. *)
  8941. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8942. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8943. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8944. for ac_dir in $ac_dummy; do
  8945. IFS="$lt_save_ifs"
  8946. test -z "$ac_dir" && ac_dir=.
  8947. if test -f $ac_dir/${ac_tool_prefix}file; then
  8948. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8949. if test -n "$file_magic_test_file"; then
  8950. case $deplibs_check_method in
  8951. "file_magic "*)
  8952. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8953. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8954. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8955. $EGREP "$file_magic_regex" > /dev/null; then
  8956. :
  8957. else
  8958. cat <<_LT_EOF 1>&2
  8959. *** Warning: the command libtool uses to detect shared libraries,
  8960. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8961. *** The result is that libtool may fail to recognize shared libraries
  8962. *** as such. This will affect the creation of libtool libraries that
  8963. *** depend on shared libraries, but programs linked with such libtool
  8964. *** libraries will work regardless of this problem. Nevertheless, you
  8965. *** may want to report the problem to your system manager and/or to
  8966. *** bug-libtool@gnu.org
  8967. _LT_EOF
  8968. fi ;;
  8969. esac
  8970. fi
  8971. break
  8972. fi
  8973. done
  8974. IFS="$lt_save_ifs"
  8975. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8976. ;;
  8977. esac
  8978. fi
  8979. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8980. if test -n "$MAGIC_CMD"; then
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8982. $as_echo "$MAGIC_CMD" >&6; }
  8983. else
  8984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8985. $as_echo "no" >&6; }
  8986. fi
  8987. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8988. if test -n "$ac_tool_prefix"; then
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8990. $as_echo_n "checking for file... " >&6; }
  8991. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8992. $as_echo_n "(cached) " >&6
  8993. else
  8994. case $MAGIC_CMD in
  8995. [\\/*] | ?:[\\/]*)
  8996. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8997. ;;
  8998. *)
  8999. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9000. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9001. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9002. for ac_dir in $ac_dummy; do
  9003. IFS="$lt_save_ifs"
  9004. test -z "$ac_dir" && ac_dir=.
  9005. if test -f $ac_dir/file; then
  9006. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9007. if test -n "$file_magic_test_file"; then
  9008. case $deplibs_check_method in
  9009. "file_magic "*)
  9010. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9011. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9012. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9013. $EGREP "$file_magic_regex" > /dev/null; then
  9014. :
  9015. else
  9016. cat <<_LT_EOF 1>&2
  9017. *** Warning: the command libtool uses to detect shared libraries,
  9018. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9019. *** The result is that libtool may fail to recognize shared libraries
  9020. *** as such. This will affect the creation of libtool libraries that
  9021. *** depend on shared libraries, but programs linked with such libtool
  9022. *** libraries will work regardless of this problem. Nevertheless, you
  9023. *** may want to report the problem to your system manager and/or to
  9024. *** bug-libtool@gnu.org
  9025. _LT_EOF
  9026. fi ;;
  9027. esac
  9028. fi
  9029. break
  9030. fi
  9031. done
  9032. IFS="$lt_save_ifs"
  9033. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9034. ;;
  9035. esac
  9036. fi
  9037. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9038. if test -n "$MAGIC_CMD"; then
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9040. $as_echo "$MAGIC_CMD" >&6; }
  9041. else
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9043. $as_echo "no" >&6; }
  9044. fi
  9045. else
  9046. MAGIC_CMD=:
  9047. fi
  9048. fi
  9049. fi
  9050. ;;
  9051. esac
  9052. # Use C for the default configuration in the libtool script
  9053. lt_save_CC="$CC"
  9054. ac_ext=c
  9055. ac_cpp='$CPP $CPPFLAGS'
  9056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9059. # Source file extension for C test sources.
  9060. ac_ext=c
  9061. # Object file extension for compiled C test sources.
  9062. objext=o
  9063. objext=$objext
  9064. # Code to be used in simple compile tests
  9065. lt_simple_compile_test_code="int some_variable = 0;"
  9066. # Code to be used in simple link tests
  9067. lt_simple_link_test_code='int main(){return(0);}'
  9068. # If no C compiler was specified, use CC.
  9069. LTCC=${LTCC-"$CC"}
  9070. # If no C compiler flags were specified, use CFLAGS.
  9071. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9072. # Allow CC to be a program name with arguments.
  9073. compiler=$CC
  9074. # Save the default compiler, since it gets overwritten when the other
  9075. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9076. compiler_DEFAULT=$CC
  9077. # save warnings/boilerplate of simple test code
  9078. ac_outfile=conftest.$ac_objext
  9079. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9080. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9081. _lt_compiler_boilerplate=`cat conftest.err`
  9082. $RM conftest*
  9083. ac_outfile=conftest.$ac_objext
  9084. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9085. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9086. _lt_linker_boilerplate=`cat conftest.err`
  9087. $RM -r conftest*
  9088. ## CAVEAT EMPTOR:
  9089. ## There is no encapsulation within the following macros, do not change
  9090. ## the running order or otherwise move them around unless you know exactly
  9091. ## what you are doing...
  9092. if test -n "$compiler"; then
  9093. lt_prog_compiler_no_builtin_flag=
  9094. if test "$GCC" = yes; then
  9095. case $cc_basename in
  9096. nvcc*)
  9097. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9098. *)
  9099. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9100. esac
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9102. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9103. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  9104. $as_echo_n "(cached) " >&6
  9105. else
  9106. lt_cv_prog_compiler_rtti_exceptions=no
  9107. ac_outfile=conftest.$ac_objext
  9108. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9109. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9110. # Insert the option either (1) after the last *FLAGS variable, or
  9111. # (2) before a word containing "conftest.", or (3) at the end.
  9112. # Note that $ac_compile itself does not contain backslashes and begins
  9113. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9114. # The option is referenced via a variable to avoid confusing sed.
  9115. lt_compile=`echo "$ac_compile" | $SED \
  9116. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9117. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9118. -e 's:$: $lt_compiler_flag:'`
  9119. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9120. (eval "$lt_compile" 2>conftest.err)
  9121. ac_status=$?
  9122. cat conftest.err >&5
  9123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9124. if (exit $ac_status) && test -s "$ac_outfile"; then
  9125. # The compiler can only warn and ignore the option if not recognized
  9126. # So say no if there are warnings other than the usual output.
  9127. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9128. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9129. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9130. lt_cv_prog_compiler_rtti_exceptions=yes
  9131. fi
  9132. fi
  9133. $RM conftest*
  9134. fi
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9136. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9137. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9138. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9139. else
  9140. :
  9141. fi
  9142. fi
  9143. lt_prog_compiler_wl=
  9144. lt_prog_compiler_pic=
  9145. lt_prog_compiler_static=
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9147. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9148. if test "$GCC" = yes; then
  9149. lt_prog_compiler_wl='-Wl,'
  9150. lt_prog_compiler_static='-static'
  9151. case $host_os in
  9152. aix*)
  9153. # All AIX code is PIC.
  9154. if test "$host_cpu" = ia64; then
  9155. # AIX 5 now supports IA64 processor
  9156. lt_prog_compiler_static='-Bstatic'
  9157. fi
  9158. lt_prog_compiler_pic='-fPIC'
  9159. ;;
  9160. amigaos*)
  9161. case $host_cpu in
  9162. powerpc)
  9163. # see comment about AmigaOS4 .so support
  9164. lt_prog_compiler_pic='-fPIC'
  9165. ;;
  9166. m68k)
  9167. # FIXME: we need at least 68020 code to build shared libraries, but
  9168. # adding the `-m68020' flag to GCC prevents building anything better,
  9169. # like `-m68040'.
  9170. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9171. ;;
  9172. esac
  9173. ;;
  9174. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9175. # PIC is the default for these OSes.
  9176. ;;
  9177. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9178. # This hack is so that the source file can tell whether it is being
  9179. # built for inclusion in a dll (and should export symbols for example).
  9180. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9181. # (--disable-auto-import) libraries
  9182. lt_prog_compiler_pic='-DDLL_EXPORT'
  9183. ;;
  9184. darwin* | rhapsody*)
  9185. # PIC is the default on this platform
  9186. # Common symbols not allowed in MH_DYLIB files
  9187. lt_prog_compiler_pic='-fno-common'
  9188. ;;
  9189. haiku*)
  9190. # PIC is the default for Haiku.
  9191. # The "-static" flag exists, but is broken.
  9192. lt_prog_compiler_static=
  9193. ;;
  9194. hpux*)
  9195. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9196. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9197. # sets the default TLS model and affects inlining.
  9198. case $host_cpu in
  9199. hppa*64*)
  9200. # +Z the default
  9201. ;;
  9202. *)
  9203. lt_prog_compiler_pic='-fPIC'
  9204. ;;
  9205. esac
  9206. ;;
  9207. interix[3-9]*)
  9208. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9209. # Instead, we relocate shared libraries at runtime.
  9210. ;;
  9211. msdosdjgpp*)
  9212. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9213. # on systems that don't support them.
  9214. lt_prog_compiler_can_build_shared=no
  9215. enable_shared=no
  9216. ;;
  9217. *nto* | *qnx*)
  9218. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9219. # it will coredump.
  9220. lt_prog_compiler_pic='-fPIC -shared'
  9221. ;;
  9222. sysv4*MP*)
  9223. if test -d /usr/nec; then
  9224. lt_prog_compiler_pic=-Kconform_pic
  9225. fi
  9226. ;;
  9227. *)
  9228. lt_prog_compiler_pic='-fPIC'
  9229. ;;
  9230. esac
  9231. case $cc_basename in
  9232. nvcc*) # Cuda Compiler Driver 2.2
  9233. lt_prog_compiler_wl='-Xlinker '
  9234. lt_prog_compiler_pic='-Xcompiler -fPIC'
  9235. ;;
  9236. esac
  9237. else
  9238. # PORTME Check for flag to pass linker flags through the system compiler.
  9239. case $host_os in
  9240. aix*)
  9241. lt_prog_compiler_wl='-Wl,'
  9242. if test "$host_cpu" = ia64; then
  9243. # AIX 5 now supports IA64 processor
  9244. lt_prog_compiler_static='-Bstatic'
  9245. else
  9246. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9247. fi
  9248. ;;
  9249. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9250. # This hack is so that the source file can tell whether it is being
  9251. # built for inclusion in a dll (and should export symbols for example).
  9252. lt_prog_compiler_pic='-DDLL_EXPORT'
  9253. ;;
  9254. hpux9* | hpux10* | hpux11*)
  9255. lt_prog_compiler_wl='-Wl,'
  9256. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9257. # not for PA HP-UX.
  9258. case $host_cpu in
  9259. hppa*64*|ia64*)
  9260. # +Z the default
  9261. ;;
  9262. *)
  9263. lt_prog_compiler_pic='+Z'
  9264. ;;
  9265. esac
  9266. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9267. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9268. ;;
  9269. irix5* | irix6* | nonstopux*)
  9270. lt_prog_compiler_wl='-Wl,'
  9271. # PIC (with -KPIC) is the default.
  9272. lt_prog_compiler_static='-non_shared'
  9273. ;;
  9274. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9275. case $cc_basename in
  9276. # old Intel for x86_64 which still supported -KPIC.
  9277. ecc*)
  9278. lt_prog_compiler_wl='-Wl,'
  9279. lt_prog_compiler_pic='-KPIC'
  9280. lt_prog_compiler_static='-static'
  9281. ;;
  9282. # icc used to be incompatible with GCC.
  9283. # ICC 10 doesn't accept -KPIC any more.
  9284. icc* | ifort*)
  9285. lt_prog_compiler_wl='-Wl,'
  9286. lt_prog_compiler_pic='-fPIC'
  9287. lt_prog_compiler_static='-static'
  9288. ;;
  9289. # Lahey Fortran 8.1.
  9290. lf95*)
  9291. lt_prog_compiler_wl='-Wl,'
  9292. lt_prog_compiler_pic='--shared'
  9293. lt_prog_compiler_static='--static'
  9294. ;;
  9295. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9296. # Portland Group compilers (*not* the Pentium gcc compiler,
  9297. # which looks to be a dead project)
  9298. lt_prog_compiler_wl='-Wl,'
  9299. lt_prog_compiler_pic='-fpic'
  9300. lt_prog_compiler_static='-Bstatic'
  9301. ;;
  9302. ccc*)
  9303. lt_prog_compiler_wl='-Wl,'
  9304. # All Alpha code is PIC.
  9305. lt_prog_compiler_static='-non_shared'
  9306. ;;
  9307. xl* | bgxl* | bgf* | mpixl*)
  9308. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9309. lt_prog_compiler_wl='-Wl,'
  9310. lt_prog_compiler_pic='-qpic'
  9311. lt_prog_compiler_static='-qstaticlink'
  9312. ;;
  9313. *)
  9314. case `$CC -V 2>&1 | sed 5q` in
  9315. *Sun\ F* | *Sun*Fortran*)
  9316. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9317. lt_prog_compiler_pic='-KPIC'
  9318. lt_prog_compiler_static='-Bstatic'
  9319. lt_prog_compiler_wl=''
  9320. ;;
  9321. *Sun\ C*)
  9322. # Sun C 5.9
  9323. lt_prog_compiler_pic='-KPIC'
  9324. lt_prog_compiler_static='-Bstatic'
  9325. lt_prog_compiler_wl='-Wl,'
  9326. ;;
  9327. esac
  9328. ;;
  9329. esac
  9330. ;;
  9331. newsos6)
  9332. lt_prog_compiler_pic='-KPIC'
  9333. lt_prog_compiler_static='-Bstatic'
  9334. ;;
  9335. *nto* | *qnx*)
  9336. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9337. # it will coredump.
  9338. lt_prog_compiler_pic='-fPIC -shared'
  9339. ;;
  9340. osf3* | osf4* | osf5*)
  9341. lt_prog_compiler_wl='-Wl,'
  9342. # All OSF/1 code is PIC.
  9343. lt_prog_compiler_static='-non_shared'
  9344. ;;
  9345. rdos*)
  9346. lt_prog_compiler_static='-non_shared'
  9347. ;;
  9348. solaris*)
  9349. lt_prog_compiler_pic='-KPIC'
  9350. lt_prog_compiler_static='-Bstatic'
  9351. case $cc_basename in
  9352. f77* | f90* | f95*)
  9353. lt_prog_compiler_wl='-Qoption ld ';;
  9354. *)
  9355. lt_prog_compiler_wl='-Wl,';;
  9356. esac
  9357. ;;
  9358. sunos4*)
  9359. lt_prog_compiler_wl='-Qoption ld '
  9360. lt_prog_compiler_pic='-PIC'
  9361. lt_prog_compiler_static='-Bstatic'
  9362. ;;
  9363. sysv4 | sysv4.2uw2* | sysv4.3*)
  9364. lt_prog_compiler_wl='-Wl,'
  9365. lt_prog_compiler_pic='-KPIC'
  9366. lt_prog_compiler_static='-Bstatic'
  9367. ;;
  9368. sysv4*MP*)
  9369. if test -d /usr/nec ;then
  9370. lt_prog_compiler_pic='-Kconform_pic'
  9371. lt_prog_compiler_static='-Bstatic'
  9372. fi
  9373. ;;
  9374. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9375. lt_prog_compiler_wl='-Wl,'
  9376. lt_prog_compiler_pic='-KPIC'
  9377. lt_prog_compiler_static='-Bstatic'
  9378. ;;
  9379. unicos*)
  9380. lt_prog_compiler_wl='-Wl,'
  9381. lt_prog_compiler_can_build_shared=no
  9382. ;;
  9383. uts4*)
  9384. lt_prog_compiler_pic='-pic'
  9385. lt_prog_compiler_static='-Bstatic'
  9386. ;;
  9387. *)
  9388. lt_prog_compiler_can_build_shared=no
  9389. ;;
  9390. esac
  9391. fi
  9392. case $host_os in
  9393. # For platforms which do not support PIC, -DPIC is meaningless:
  9394. *djgpp*)
  9395. lt_prog_compiler_pic=
  9396. ;;
  9397. *)
  9398. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9399. ;;
  9400. esac
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  9402. $as_echo "$lt_prog_compiler_pic" >&6; }
  9403. #
  9404. # Check to make sure the PIC flag actually works.
  9405. #
  9406. if test -n "$lt_prog_compiler_pic"; then
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9408. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9409. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  9410. $as_echo_n "(cached) " >&6
  9411. else
  9412. lt_cv_prog_compiler_pic_works=no
  9413. ac_outfile=conftest.$ac_objext
  9414. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9415. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9416. # Insert the option either (1) after the last *FLAGS variable, or
  9417. # (2) before a word containing "conftest.", or (3) at the end.
  9418. # Note that $ac_compile itself does not contain backslashes and begins
  9419. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9420. # The option is referenced via a variable to avoid confusing sed.
  9421. lt_compile=`echo "$ac_compile" | $SED \
  9422. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9423. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9424. -e 's:$: $lt_compiler_flag:'`
  9425. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9426. (eval "$lt_compile" 2>conftest.err)
  9427. ac_status=$?
  9428. cat conftest.err >&5
  9429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9430. if (exit $ac_status) && test -s "$ac_outfile"; then
  9431. # The compiler can only warn and ignore the option if not recognized
  9432. # So say no if there are warnings other than the usual output.
  9433. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9434. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9435. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9436. lt_cv_prog_compiler_pic_works=yes
  9437. fi
  9438. fi
  9439. $RM conftest*
  9440. fi
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9442. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9443. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9444. case $lt_prog_compiler_pic in
  9445. "" | " "*) ;;
  9446. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9447. esac
  9448. else
  9449. lt_prog_compiler_pic=
  9450. lt_prog_compiler_can_build_shared=no
  9451. fi
  9452. fi
  9453. #
  9454. # Check to make sure the static flag actually works.
  9455. #
  9456. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9458. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9459. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  9460. $as_echo_n "(cached) " >&6
  9461. else
  9462. lt_cv_prog_compiler_static_works=no
  9463. save_LDFLAGS="$LDFLAGS"
  9464. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9465. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9466. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9467. # The linker can only warn and ignore the option if not recognized
  9468. # So say no if there are warnings
  9469. if test -s conftest.err; then
  9470. # Append any errors to the config.log.
  9471. cat conftest.err 1>&5
  9472. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9473. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9474. if diff conftest.exp conftest.er2 >/dev/null; then
  9475. lt_cv_prog_compiler_static_works=yes
  9476. fi
  9477. else
  9478. lt_cv_prog_compiler_static_works=yes
  9479. fi
  9480. fi
  9481. $RM -r conftest*
  9482. LDFLAGS="$save_LDFLAGS"
  9483. fi
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9485. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9486. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9487. :
  9488. else
  9489. lt_prog_compiler_static=
  9490. fi
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9492. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9493. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  9494. $as_echo_n "(cached) " >&6
  9495. else
  9496. lt_cv_prog_compiler_c_o=no
  9497. $RM -r conftest 2>/dev/null
  9498. mkdir conftest
  9499. cd conftest
  9500. mkdir out
  9501. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9502. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9503. # Insert the option either (1) after the last *FLAGS variable, or
  9504. # (2) before a word containing "conftest.", or (3) at the end.
  9505. # Note that $ac_compile itself does not contain backslashes and begins
  9506. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9507. lt_compile=`echo "$ac_compile" | $SED \
  9508. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9509. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9510. -e 's:$: $lt_compiler_flag:'`
  9511. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9512. (eval "$lt_compile" 2>out/conftest.err)
  9513. ac_status=$?
  9514. cat out/conftest.err >&5
  9515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9516. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9517. then
  9518. # The compiler can only warn and ignore the option if not recognized
  9519. # So say no if there are warnings
  9520. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9521. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9522. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9523. lt_cv_prog_compiler_c_o=yes
  9524. fi
  9525. fi
  9526. chmod u+w . 2>&5
  9527. $RM conftest*
  9528. # SGI C++ compiler will create directory out/ii_files/ for
  9529. # template instantiation
  9530. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9531. $RM out/* && rmdir out
  9532. cd ..
  9533. $RM -r conftest
  9534. $RM conftest*
  9535. fi
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9537. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9539. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9540. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. lt_cv_prog_compiler_c_o=no
  9544. $RM -r conftest 2>/dev/null
  9545. mkdir conftest
  9546. cd conftest
  9547. mkdir out
  9548. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9549. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9550. # Insert the option either (1) after the last *FLAGS variable, or
  9551. # (2) before a word containing "conftest.", or (3) at the end.
  9552. # Note that $ac_compile itself does not contain backslashes and begins
  9553. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9554. lt_compile=`echo "$ac_compile" | $SED \
  9555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9557. -e 's:$: $lt_compiler_flag:'`
  9558. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9559. (eval "$lt_compile" 2>out/conftest.err)
  9560. ac_status=$?
  9561. cat out/conftest.err >&5
  9562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9563. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9564. then
  9565. # The compiler can only warn and ignore the option if not recognized
  9566. # So say no if there are warnings
  9567. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9568. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9569. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9570. lt_cv_prog_compiler_c_o=yes
  9571. fi
  9572. fi
  9573. chmod u+w . 2>&5
  9574. $RM conftest*
  9575. # SGI C++ compiler will create directory out/ii_files/ for
  9576. # template instantiation
  9577. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9578. $RM out/* && rmdir out
  9579. cd ..
  9580. $RM -r conftest
  9581. $RM conftest*
  9582. fi
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9584. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9585. hard_links="nottested"
  9586. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9587. # do not overwrite the value of need_locks provided by the user
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9589. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9590. hard_links=yes
  9591. $RM conftest*
  9592. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9593. touch conftest.a
  9594. ln conftest.a conftest.b 2>&5 || hard_links=no
  9595. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9597. $as_echo "$hard_links" >&6; }
  9598. if test "$hard_links" = no; then
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9600. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9601. need_locks=warn
  9602. fi
  9603. else
  9604. need_locks=no
  9605. fi
  9606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9607. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9608. runpath_var=
  9609. allow_undefined_flag=
  9610. always_export_symbols=no
  9611. archive_cmds=
  9612. archive_expsym_cmds=
  9613. compiler_needs_object=no
  9614. enable_shared_with_static_runtimes=no
  9615. export_dynamic_flag_spec=
  9616. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9617. hardcode_automatic=no
  9618. hardcode_direct=no
  9619. hardcode_direct_absolute=no
  9620. hardcode_libdir_flag_spec=
  9621. hardcode_libdir_flag_spec_ld=
  9622. hardcode_libdir_separator=
  9623. hardcode_minus_L=no
  9624. hardcode_shlibpath_var=unsupported
  9625. inherit_rpath=no
  9626. link_all_deplibs=unknown
  9627. module_cmds=
  9628. module_expsym_cmds=
  9629. old_archive_from_new_cmds=
  9630. old_archive_from_expsyms_cmds=
  9631. thread_safe_flag_spec=
  9632. whole_archive_flag_spec=
  9633. # include_expsyms should be a list of space-separated symbols to be *always*
  9634. # included in the symbol list
  9635. include_expsyms=
  9636. # exclude_expsyms can be an extended regexp of symbols to exclude
  9637. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9638. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9639. # as well as any symbol that contains `d'.
  9640. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9641. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9642. # platforms (ab)use it in PIC code, but their linkers get confused if
  9643. # the symbol is explicitly referenced. Since portable code cannot
  9644. # rely on this symbol name, it's probably fine to never include it in
  9645. # preloaded symbol tables.
  9646. # Exclude shared library initialization/finalization symbols.
  9647. extract_expsyms_cmds=
  9648. case $host_os in
  9649. cygwin* | mingw* | pw32* | cegcc*)
  9650. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9651. # When not using gcc, we currently assume that we are using
  9652. # Microsoft Visual C++.
  9653. if test "$GCC" != yes; then
  9654. with_gnu_ld=no
  9655. fi
  9656. ;;
  9657. interix*)
  9658. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9659. with_gnu_ld=yes
  9660. ;;
  9661. openbsd*)
  9662. with_gnu_ld=no
  9663. ;;
  9664. esac
  9665. ld_shlibs=yes
  9666. # On some targets, GNU ld is compatible enough with the native linker
  9667. # that we're better off using the native interface for both.
  9668. lt_use_gnu_ld_interface=no
  9669. if test "$with_gnu_ld" = yes; then
  9670. case $host_os in
  9671. aix*)
  9672. # The AIX port of GNU ld has always aspired to compatibility
  9673. # with the native linker. However, as the warning in the GNU ld
  9674. # block says, versions before 2.19.5* couldn't really create working
  9675. # shared libraries, regardless of the interface used.
  9676. case `$LD -v 2>&1` in
  9677. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9678. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9679. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9680. *)
  9681. lt_use_gnu_ld_interface=yes
  9682. ;;
  9683. esac
  9684. ;;
  9685. *)
  9686. lt_use_gnu_ld_interface=yes
  9687. ;;
  9688. esac
  9689. fi
  9690. if test "$lt_use_gnu_ld_interface" = yes; then
  9691. # If archive_cmds runs LD, not CC, wlarc should be empty
  9692. wlarc='${wl}'
  9693. # Set some defaults for GNU ld with shared library support. These
  9694. # are reset later if shared libraries are not supported. Putting them
  9695. # here allows them to be overridden if necessary.
  9696. runpath_var=LD_RUN_PATH
  9697. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9698. export_dynamic_flag_spec='${wl}--export-dynamic'
  9699. # ancient GNU ld didn't support --whole-archive et. al.
  9700. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9701. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9702. else
  9703. whole_archive_flag_spec=
  9704. fi
  9705. supports_anon_versioning=no
  9706. case `$LD -v 2>&1` in
  9707. *GNU\ gold*) supports_anon_versioning=yes ;;
  9708. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9709. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9710. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9711. *\ 2.11.*) ;; # other 2.11 versions
  9712. *) supports_anon_versioning=yes ;;
  9713. esac
  9714. # See if GNU ld supports shared libraries.
  9715. case $host_os in
  9716. aix[3-9]*)
  9717. # On AIX/PPC, the GNU linker is very broken
  9718. if test "$host_cpu" != ia64; then
  9719. ld_shlibs=no
  9720. cat <<_LT_EOF 1>&2
  9721. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9722. *** to be unable to reliably create shared libraries on AIX.
  9723. *** Therefore, libtool is disabling shared libraries support. If you
  9724. *** really care for shared libraries, you may want to install binutils
  9725. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9726. *** You will then need to restart the configuration process.
  9727. _LT_EOF
  9728. fi
  9729. ;;
  9730. amigaos*)
  9731. case $host_cpu in
  9732. powerpc)
  9733. # see comment about AmigaOS4 .so support
  9734. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9735. archive_expsym_cmds=''
  9736. ;;
  9737. m68k)
  9738. 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)'
  9739. hardcode_libdir_flag_spec='-L$libdir'
  9740. hardcode_minus_L=yes
  9741. ;;
  9742. esac
  9743. ;;
  9744. beos*)
  9745. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9746. allow_undefined_flag=unsupported
  9747. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9748. # support --undefined. This deserves some investigation. FIXME
  9749. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9750. else
  9751. ld_shlibs=no
  9752. fi
  9753. ;;
  9754. cygwin* | mingw* | pw32* | cegcc*)
  9755. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9756. # as there is no search path for DLLs.
  9757. hardcode_libdir_flag_spec='-L$libdir'
  9758. export_dynamic_flag_spec='${wl}--export-all-symbols'
  9759. allow_undefined_flag=unsupported
  9760. always_export_symbols=no
  9761. enable_shared_with_static_runtimes=yes
  9762. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9763. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9764. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9765. # If the export-symbols file already is a .def file (1st line
  9766. # is EXPORTS), use it as is; otherwise, prepend...
  9767. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9768. cp $export_symbols $output_objdir/$soname.def;
  9769. else
  9770. echo EXPORTS > $output_objdir/$soname.def;
  9771. cat $export_symbols >> $output_objdir/$soname.def;
  9772. fi~
  9773. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9774. else
  9775. ld_shlibs=no
  9776. fi
  9777. ;;
  9778. haiku*)
  9779. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9780. link_all_deplibs=yes
  9781. ;;
  9782. interix[3-9]*)
  9783. hardcode_direct=no
  9784. hardcode_shlibpath_var=no
  9785. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9786. export_dynamic_flag_spec='${wl}-E'
  9787. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9788. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9789. # default) and relocated if they conflict, which is a slow very memory
  9790. # consuming and fragmenting process. To avoid this, we pick a random,
  9791. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9792. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9793. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9794. 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'
  9795. ;;
  9796. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9797. tmp_diet=no
  9798. if test "$host_os" = linux-dietlibc; then
  9799. case $cc_basename in
  9800. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9801. esac
  9802. fi
  9803. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9804. && test "$tmp_diet" = no
  9805. then
  9806. tmp_addflag=' $pic_flag'
  9807. tmp_sharedflag='-shared'
  9808. case $cc_basename,$host_cpu in
  9809. pgcc*) # Portland Group C compiler
  9810. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9811. tmp_addflag=' $pic_flag'
  9812. ;;
  9813. pgf77* | pgf90* | pgf95* | pgfortran*)
  9814. # Portland Group f77 and f90 compilers
  9815. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9816. tmp_addflag=' $pic_flag -Mnomain' ;;
  9817. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9818. tmp_addflag=' -i_dynamic' ;;
  9819. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9820. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9821. ifc* | ifort*) # Intel Fortran compiler
  9822. tmp_addflag=' -nofor_main' ;;
  9823. lf95*) # Lahey Fortran 8.1
  9824. whole_archive_flag_spec=
  9825. tmp_sharedflag='--shared' ;;
  9826. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9827. tmp_sharedflag='-qmkshrobj'
  9828. tmp_addflag= ;;
  9829. nvcc*) # Cuda Compiler Driver 2.2
  9830. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9831. compiler_needs_object=yes
  9832. ;;
  9833. esac
  9834. case `$CC -V 2>&1 | sed 5q` in
  9835. *Sun\ C*) # Sun C 5.9
  9836. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9837. compiler_needs_object=yes
  9838. tmp_sharedflag='-G' ;;
  9839. *Sun\ F*) # Sun Fortran 8.3
  9840. tmp_sharedflag='-G' ;;
  9841. esac
  9842. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9843. if test "x$supports_anon_versioning" = xyes; then
  9844. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9845. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9846. echo "local: *; };" >> $output_objdir/$libname.ver~
  9847. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9848. fi
  9849. case $cc_basename in
  9850. xlf* | bgf* | bgxlf* | mpixlf*)
  9851. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9852. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9853. hardcode_libdir_flag_spec=
  9854. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9855. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  9856. if test "x$supports_anon_versioning" = xyes; then
  9857. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9858. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9859. echo "local: *; };" >> $output_objdir/$libname.ver~
  9860. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9861. fi
  9862. ;;
  9863. esac
  9864. else
  9865. ld_shlibs=no
  9866. fi
  9867. ;;
  9868. netbsd*)
  9869. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9870. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9871. wlarc=
  9872. else
  9873. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9874. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9875. fi
  9876. ;;
  9877. solaris*)
  9878. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9879. ld_shlibs=no
  9880. cat <<_LT_EOF 1>&2
  9881. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9882. *** create shared libraries on Solaris systems. Therefore, libtool
  9883. *** is disabling shared libraries support. We urge you to upgrade GNU
  9884. *** binutils to release 2.9.1 or newer. Another option is to modify
  9885. *** your PATH or compiler configuration so that the native linker is
  9886. *** used, and then restart.
  9887. _LT_EOF
  9888. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9889. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9890. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9891. else
  9892. ld_shlibs=no
  9893. fi
  9894. ;;
  9895. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9896. case `$LD -v 2>&1` in
  9897. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9898. ld_shlibs=no
  9899. cat <<_LT_EOF 1>&2
  9900. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9901. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9902. *** is disabling shared libraries support. We urge you to upgrade GNU
  9903. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9904. *** your PATH or compiler configuration so that the native linker is
  9905. *** used, and then restart.
  9906. _LT_EOF
  9907. ;;
  9908. *)
  9909. # For security reasons, it is highly recommended that you always
  9910. # use absolute paths for naming shared libraries, and exclude the
  9911. # DT_RUNPATH tag from executables and libraries. But doing so
  9912. # requires that you compile everything twice, which is a pain.
  9913. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9914. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9916. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9917. else
  9918. ld_shlibs=no
  9919. fi
  9920. ;;
  9921. esac
  9922. ;;
  9923. sunos4*)
  9924. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9925. wlarc=
  9926. hardcode_direct=yes
  9927. hardcode_shlibpath_var=no
  9928. ;;
  9929. *)
  9930. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9931. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9932. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9933. else
  9934. ld_shlibs=no
  9935. fi
  9936. ;;
  9937. esac
  9938. if test "$ld_shlibs" = no; then
  9939. runpath_var=
  9940. hardcode_libdir_flag_spec=
  9941. export_dynamic_flag_spec=
  9942. whole_archive_flag_spec=
  9943. fi
  9944. else
  9945. # PORTME fill in a description of your system's linker (not GNU ld)
  9946. case $host_os in
  9947. aix3*)
  9948. allow_undefined_flag=unsupported
  9949. always_export_symbols=yes
  9950. 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'
  9951. # Note: this linker hardcodes the directories in LIBPATH if there
  9952. # are no directories specified by -L.
  9953. hardcode_minus_L=yes
  9954. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9955. # Neither direct hardcoding nor static linking is supported with a
  9956. # broken collect2.
  9957. hardcode_direct=unsupported
  9958. fi
  9959. ;;
  9960. aix[4-9]*)
  9961. if test "$host_cpu" = ia64; then
  9962. # On IA64, the linker does run time linking by default, so we don't
  9963. # have to do anything special.
  9964. aix_use_runtimelinking=no
  9965. exp_sym_flag='-Bexport'
  9966. no_entry_flag=""
  9967. else
  9968. # If we're using GNU nm, then we don't want the "-C" option.
  9969. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9970. # Also, AIX nm treats weak defined symbols like other global
  9971. # defined symbols, whereas GNU nm marks them as "W".
  9972. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9973. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9974. else
  9975. 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'
  9976. fi
  9977. aix_use_runtimelinking=no
  9978. # Test if we are trying to use run time linking or normal
  9979. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9980. # need to do runtime linking.
  9981. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9982. for ld_flag in $LDFLAGS; do
  9983. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9984. aix_use_runtimelinking=yes
  9985. break
  9986. fi
  9987. done
  9988. ;;
  9989. esac
  9990. exp_sym_flag='-bexport'
  9991. no_entry_flag='-bnoentry'
  9992. fi
  9993. # When large executables or shared objects are built, AIX ld can
  9994. # have problems creating the table of contents. If linking a library
  9995. # or program results in "error TOC overflow" add -mminimal-toc to
  9996. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9997. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9998. archive_cmds=''
  9999. hardcode_direct=yes
  10000. hardcode_direct_absolute=yes
  10001. hardcode_libdir_separator=':'
  10002. link_all_deplibs=yes
  10003. file_list_spec='${wl}-f,'
  10004. if test "$GCC" = yes; then
  10005. case $host_os in aix4.[012]|aix4.[012].*)
  10006. # We only want to do this on AIX 4.2 and lower, the check
  10007. # below for broken collect2 doesn't work under 4.3+
  10008. collect2name=`${CC} -print-prog-name=collect2`
  10009. if test -f "$collect2name" &&
  10010. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10011. then
  10012. # We have reworked collect2
  10013. :
  10014. else
  10015. # We have old collect2
  10016. hardcode_direct=unsupported
  10017. # It fails to find uninstalled libraries when the uninstalled
  10018. # path is not listed in the libpath. Setting hardcode_minus_L
  10019. # to unsupported forces relinking
  10020. hardcode_minus_L=yes
  10021. hardcode_libdir_flag_spec='-L$libdir'
  10022. hardcode_libdir_separator=
  10023. fi
  10024. ;;
  10025. esac
  10026. shared_flag='-shared'
  10027. if test "$aix_use_runtimelinking" = yes; then
  10028. shared_flag="$shared_flag "'${wl}-G'
  10029. fi
  10030. else
  10031. # not using gcc
  10032. if test "$host_cpu" = ia64; then
  10033. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10034. # chokes on -Wl,-G. The following line is correct:
  10035. shared_flag='-G'
  10036. else
  10037. if test "$aix_use_runtimelinking" = yes; then
  10038. shared_flag='${wl}-G'
  10039. else
  10040. shared_flag='${wl}-bM:SRE'
  10041. fi
  10042. fi
  10043. fi
  10044. export_dynamic_flag_spec='${wl}-bexpall'
  10045. # It seems that -bexpall does not export symbols beginning with
  10046. # underscore (_), so it is better to generate a list of symbols to export.
  10047. always_export_symbols=yes
  10048. if test "$aix_use_runtimelinking" = yes; then
  10049. # Warning - without using the other runtime loading flags (-brtl),
  10050. # -berok will link without error, but may produce a broken library.
  10051. allow_undefined_flag='-berok'
  10052. # Determine the default libpath from the value encoded in an
  10053. # empty executable.
  10054. if test x$gcc_no_link = xyes; then
  10055. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10056. fi
  10057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10058. /* end confdefs.h. */
  10059. int
  10060. main ()
  10061. {
  10062. ;
  10063. return 0;
  10064. }
  10065. _ACEOF
  10066. if ac_fn_c_try_link "$LINENO"; then :
  10067. lt_aix_libpath_sed='
  10068. /Import File Strings/,/^$/ {
  10069. /^0/ {
  10070. s/^0 *\(.*\)$/\1/
  10071. p
  10072. }
  10073. }'
  10074. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10075. # Check for a 64-bit object if we didn't find anything.
  10076. if test -z "$aix_libpath"; then
  10077. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10078. fi
  10079. fi
  10080. rm -f core conftest.err conftest.$ac_objext \
  10081. conftest$ac_exeext conftest.$ac_ext
  10082. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10083. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10084. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10085. else
  10086. if test "$host_cpu" = ia64; then
  10087. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  10088. allow_undefined_flag="-z nodefs"
  10089. 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"
  10090. else
  10091. # Determine the default libpath from the value encoded in an
  10092. # empty executable.
  10093. if test x$gcc_no_link = xyes; then
  10094. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10095. fi
  10096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10097. /* end confdefs.h. */
  10098. int
  10099. main ()
  10100. {
  10101. ;
  10102. return 0;
  10103. }
  10104. _ACEOF
  10105. if ac_fn_c_try_link "$LINENO"; then :
  10106. lt_aix_libpath_sed='
  10107. /Import File Strings/,/^$/ {
  10108. /^0/ {
  10109. s/^0 *\(.*\)$/\1/
  10110. p
  10111. }
  10112. }'
  10113. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10114. # Check for a 64-bit object if we didn't find anything.
  10115. if test -z "$aix_libpath"; then
  10116. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10117. fi
  10118. fi
  10119. rm -f core conftest.err conftest.$ac_objext \
  10120. conftest$ac_exeext conftest.$ac_ext
  10121. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10122. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10123. # Warning - without using the other run time loading flags,
  10124. # -berok will link without error, but may produce a broken library.
  10125. no_undefined_flag=' ${wl}-bernotok'
  10126. allow_undefined_flag=' ${wl}-berok'
  10127. if test "$with_gnu_ld" = yes; then
  10128. # We only use this code for GNU lds that support --whole-archive.
  10129. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10130. else
  10131. # Exported symbols can be pulled into shared objects from archives
  10132. whole_archive_flag_spec='$convenience'
  10133. fi
  10134. archive_cmds_need_lc=yes
  10135. # This is similar to how AIX traditionally builds its shared libraries.
  10136. 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'
  10137. fi
  10138. fi
  10139. ;;
  10140. amigaos*)
  10141. case $host_cpu in
  10142. powerpc)
  10143. # see comment about AmigaOS4 .so support
  10144. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10145. archive_expsym_cmds=''
  10146. ;;
  10147. m68k)
  10148. 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)'
  10149. hardcode_libdir_flag_spec='-L$libdir'
  10150. hardcode_minus_L=yes
  10151. ;;
  10152. esac
  10153. ;;
  10154. bsdi[45]*)
  10155. export_dynamic_flag_spec=-rdynamic
  10156. ;;
  10157. cygwin* | mingw* | pw32* | cegcc*)
  10158. # When not using gcc, we currently assume that we are using
  10159. # Microsoft Visual C++.
  10160. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10161. # no search path for DLLs.
  10162. hardcode_libdir_flag_spec=' '
  10163. allow_undefined_flag=unsupported
  10164. # Tell ltmain to make .lib files, not .a files.
  10165. libext=lib
  10166. # Tell ltmain to make .dll files, not .so files.
  10167. shrext_cmds=".dll"
  10168. # FIXME: Setting linknames here is a bad hack.
  10169. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10170. # The linker will automatically build a .lib file if we build a DLL.
  10171. old_archive_from_new_cmds='true'
  10172. # FIXME: Should let the user specify the lib program.
  10173. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10174. fix_srcfile_path='`cygpath -w "$srcfile"`'
  10175. enable_shared_with_static_runtimes=yes
  10176. ;;
  10177. darwin* | rhapsody*)
  10178. archive_cmds_need_lc=no
  10179. hardcode_direct=no
  10180. hardcode_automatic=yes
  10181. hardcode_shlibpath_var=unsupported
  10182. if test "$lt_cv_ld_force_load" = "yes"; then
  10183. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10184. else
  10185. whole_archive_flag_spec=''
  10186. fi
  10187. link_all_deplibs=yes
  10188. allow_undefined_flag="$_lt_dar_allow_undefined"
  10189. case $cc_basename in
  10190. ifort*) _lt_dar_can_shared=yes ;;
  10191. *) _lt_dar_can_shared=$GCC ;;
  10192. esac
  10193. if test "$_lt_dar_can_shared" = "yes"; then
  10194. output_verbose_link_cmd=func_echo_all
  10195. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10196. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10197. 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}"
  10198. 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}"
  10199. else
  10200. ld_shlibs=no
  10201. fi
  10202. ;;
  10203. dgux*)
  10204. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10205. hardcode_libdir_flag_spec='-L$libdir'
  10206. hardcode_shlibpath_var=no
  10207. ;;
  10208. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10209. # support. Future versions do this automatically, but an explicit c++rt0.o
  10210. # does not break anything, and helps significantly (at the cost of a little
  10211. # extra space).
  10212. freebsd2.2*)
  10213. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10214. hardcode_libdir_flag_spec='-R$libdir'
  10215. hardcode_direct=yes
  10216. hardcode_shlibpath_var=no
  10217. ;;
  10218. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10219. freebsd2.*)
  10220. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10221. hardcode_direct=yes
  10222. hardcode_minus_L=yes
  10223. hardcode_shlibpath_var=no
  10224. ;;
  10225. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10226. freebsd* | dragonfly*)
  10227. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10228. hardcode_libdir_flag_spec='-R$libdir'
  10229. hardcode_direct=yes
  10230. hardcode_shlibpath_var=no
  10231. ;;
  10232. hpux9*)
  10233. if test "$GCC" = yes; then
  10234. 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'
  10235. else
  10236. 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'
  10237. fi
  10238. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10239. hardcode_libdir_separator=:
  10240. hardcode_direct=yes
  10241. # hardcode_minus_L: Not really in the search PATH,
  10242. # but as the default location of the library.
  10243. hardcode_minus_L=yes
  10244. export_dynamic_flag_spec='${wl}-E'
  10245. ;;
  10246. hpux10*)
  10247. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10248. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10249. else
  10250. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10251. fi
  10252. if test "$with_gnu_ld" = no; then
  10253. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10254. hardcode_libdir_flag_spec_ld='+b $libdir'
  10255. hardcode_libdir_separator=:
  10256. hardcode_direct=yes
  10257. hardcode_direct_absolute=yes
  10258. export_dynamic_flag_spec='${wl}-E'
  10259. # hardcode_minus_L: Not really in the search PATH,
  10260. # but as the default location of the library.
  10261. hardcode_minus_L=yes
  10262. fi
  10263. ;;
  10264. hpux11*)
  10265. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10266. case $host_cpu in
  10267. hppa*64*)
  10268. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10269. ;;
  10270. ia64*)
  10271. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10272. ;;
  10273. *)
  10274. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10275. ;;
  10276. esac
  10277. else
  10278. case $host_cpu in
  10279. hppa*64*)
  10280. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10281. ;;
  10282. ia64*)
  10283. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10284. ;;
  10285. *)
  10286. # Older versions of the 11.00 compiler do not understand -b yet
  10287. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10289. $as_echo_n "checking if $CC understands -b... " >&6; }
  10290. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  10291. $as_echo_n "(cached) " >&6
  10292. else
  10293. lt_cv_prog_compiler__b=no
  10294. save_LDFLAGS="$LDFLAGS"
  10295. LDFLAGS="$LDFLAGS -b"
  10296. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10297. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10298. # The linker can only warn and ignore the option if not recognized
  10299. # So say no if there are warnings
  10300. if test -s conftest.err; then
  10301. # Append any errors to the config.log.
  10302. cat conftest.err 1>&5
  10303. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10304. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10305. if diff conftest.exp conftest.er2 >/dev/null; then
  10306. lt_cv_prog_compiler__b=yes
  10307. fi
  10308. else
  10309. lt_cv_prog_compiler__b=yes
  10310. fi
  10311. fi
  10312. $RM -r conftest*
  10313. LDFLAGS="$save_LDFLAGS"
  10314. fi
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10316. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10317. if test x"$lt_cv_prog_compiler__b" = xyes; then
  10318. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10319. else
  10320. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10321. fi
  10322. ;;
  10323. esac
  10324. fi
  10325. if test "$with_gnu_ld" = no; then
  10326. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10327. hardcode_libdir_separator=:
  10328. case $host_cpu in
  10329. hppa*64*|ia64*)
  10330. hardcode_direct=no
  10331. hardcode_shlibpath_var=no
  10332. ;;
  10333. *)
  10334. hardcode_direct=yes
  10335. hardcode_direct_absolute=yes
  10336. export_dynamic_flag_spec='${wl}-E'
  10337. # hardcode_minus_L: Not really in the search PATH,
  10338. # but as the default location of the library.
  10339. hardcode_minus_L=yes
  10340. ;;
  10341. esac
  10342. fi
  10343. ;;
  10344. irix5* | irix6* | nonstopux*)
  10345. if test "$GCC" = yes; then
  10346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10347. # Try to use the -exported_symbol ld option, if it does not
  10348. # work, assume that -exports_file does not work either and
  10349. # implicitly export all symbols.
  10350. save_LDFLAGS="$LDFLAGS"
  10351. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10352. if test x$gcc_no_link = xyes; then
  10353. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10354. fi
  10355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10356. /* end confdefs.h. */
  10357. int foo(void) {}
  10358. _ACEOF
  10359. if ac_fn_c_try_link "$LINENO"; then :
  10360. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  10361. fi
  10362. rm -f core conftest.err conftest.$ac_objext \
  10363. conftest$ac_exeext conftest.$ac_ext
  10364. LDFLAGS="$save_LDFLAGS"
  10365. else
  10366. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10367. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  10368. fi
  10369. archive_cmds_need_lc='no'
  10370. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10371. hardcode_libdir_separator=:
  10372. inherit_rpath=yes
  10373. link_all_deplibs=yes
  10374. ;;
  10375. netbsd*)
  10376. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10377. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10378. else
  10379. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10380. fi
  10381. hardcode_libdir_flag_spec='-R$libdir'
  10382. hardcode_direct=yes
  10383. hardcode_shlibpath_var=no
  10384. ;;
  10385. newsos6)
  10386. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10387. hardcode_direct=yes
  10388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10389. hardcode_libdir_separator=:
  10390. hardcode_shlibpath_var=no
  10391. ;;
  10392. *nto* | *qnx*)
  10393. ;;
  10394. openbsd*)
  10395. if test -f /usr/libexec/ld.so; then
  10396. hardcode_direct=yes
  10397. hardcode_shlibpath_var=no
  10398. hardcode_direct_absolute=yes
  10399. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10400. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10401. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10402. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10403. export_dynamic_flag_spec='${wl}-E'
  10404. else
  10405. case $host_os in
  10406. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10407. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10408. hardcode_libdir_flag_spec='-R$libdir'
  10409. ;;
  10410. *)
  10411. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10412. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10413. ;;
  10414. esac
  10415. fi
  10416. else
  10417. ld_shlibs=no
  10418. fi
  10419. ;;
  10420. os2*)
  10421. hardcode_libdir_flag_spec='-L$libdir'
  10422. hardcode_minus_L=yes
  10423. allow_undefined_flag=unsupported
  10424. 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'
  10425. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10426. ;;
  10427. osf3*)
  10428. if test "$GCC" = yes; then
  10429. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10430. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10431. else
  10432. allow_undefined_flag=' -expect_unresolved \*'
  10433. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10434. fi
  10435. archive_cmds_need_lc='no'
  10436. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10437. hardcode_libdir_separator=:
  10438. ;;
  10439. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10440. if test "$GCC" = yes; then
  10441. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10442. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10443. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10444. else
  10445. allow_undefined_flag=' -expect_unresolved \*'
  10446. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10447. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  10448. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  10449. # Both c and cxx compiler support -rpath directly
  10450. hardcode_libdir_flag_spec='-rpath $libdir'
  10451. fi
  10452. archive_cmds_need_lc='no'
  10453. hardcode_libdir_separator=:
  10454. ;;
  10455. solaris*)
  10456. no_undefined_flag=' -z defs'
  10457. if test "$GCC" = yes; then
  10458. wlarc='${wl}'
  10459. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10460. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10461. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10462. else
  10463. case `$CC -V 2>&1` in
  10464. *"Compilers 5.0"*)
  10465. wlarc=''
  10466. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10467. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10468. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10469. ;;
  10470. *)
  10471. wlarc='${wl}'
  10472. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10473. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10474. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10475. ;;
  10476. esac
  10477. fi
  10478. hardcode_libdir_flag_spec='-R$libdir'
  10479. hardcode_shlibpath_var=no
  10480. case $host_os in
  10481. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10482. *)
  10483. # The compiler driver will combine and reorder linker options,
  10484. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10485. # but is careful enough not to reorder.
  10486. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10487. if test "$GCC" = yes; then
  10488. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10489. else
  10490. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10491. fi
  10492. ;;
  10493. esac
  10494. link_all_deplibs=yes
  10495. ;;
  10496. sunos4*)
  10497. if test "x$host_vendor" = xsequent; then
  10498. # Use $CC to link under sequent, because it throws in some extra .o
  10499. # files that make .init and .fini sections work.
  10500. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10501. else
  10502. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10503. fi
  10504. hardcode_libdir_flag_spec='-L$libdir'
  10505. hardcode_direct=yes
  10506. hardcode_minus_L=yes
  10507. hardcode_shlibpath_var=no
  10508. ;;
  10509. sysv4)
  10510. case $host_vendor in
  10511. sni)
  10512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10513. hardcode_direct=yes # is this really true???
  10514. ;;
  10515. siemens)
  10516. ## LD is ld it makes a PLAMLIB
  10517. ## CC just makes a GrossModule.
  10518. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10519. reload_cmds='$CC -r -o $output$reload_objs'
  10520. hardcode_direct=no
  10521. ;;
  10522. motorola)
  10523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10524. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10525. ;;
  10526. esac
  10527. runpath_var='LD_RUN_PATH'
  10528. hardcode_shlibpath_var=no
  10529. ;;
  10530. sysv4.3*)
  10531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10532. hardcode_shlibpath_var=no
  10533. export_dynamic_flag_spec='-Bexport'
  10534. ;;
  10535. sysv4*MP*)
  10536. if test -d /usr/nec; then
  10537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10538. hardcode_shlibpath_var=no
  10539. runpath_var=LD_RUN_PATH
  10540. hardcode_runpath_var=yes
  10541. ld_shlibs=yes
  10542. fi
  10543. ;;
  10544. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10545. no_undefined_flag='${wl}-z,text'
  10546. archive_cmds_need_lc=no
  10547. hardcode_shlibpath_var=no
  10548. runpath_var='LD_RUN_PATH'
  10549. if test "$GCC" = yes; then
  10550. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10551. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10552. else
  10553. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10554. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10555. fi
  10556. ;;
  10557. sysv5* | sco3.2v5* | sco5v6*)
  10558. # Note: We can NOT use -z defs as we might desire, because we do not
  10559. # link with -lc, and that would cause any symbols used from libc to
  10560. # always be unresolved, which means just about no library would
  10561. # ever link correctly. If we're not using GNU ld we use -z text
  10562. # though, which does catch some bad symbols but isn't as heavy-handed
  10563. # as -z defs.
  10564. no_undefined_flag='${wl}-z,text'
  10565. allow_undefined_flag='${wl}-z,nodefs'
  10566. archive_cmds_need_lc=no
  10567. hardcode_shlibpath_var=no
  10568. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10569. hardcode_libdir_separator=':'
  10570. link_all_deplibs=yes
  10571. export_dynamic_flag_spec='${wl}-Bexport'
  10572. runpath_var='LD_RUN_PATH'
  10573. if test "$GCC" = yes; then
  10574. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10575. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10576. else
  10577. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10578. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10579. fi
  10580. ;;
  10581. uts4*)
  10582. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10583. hardcode_libdir_flag_spec='-L$libdir'
  10584. hardcode_shlibpath_var=no
  10585. ;;
  10586. *)
  10587. ld_shlibs=no
  10588. ;;
  10589. esac
  10590. if test x$host_vendor = xsni; then
  10591. case $host in
  10592. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10593. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10594. ;;
  10595. esac
  10596. fi
  10597. fi
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10599. $as_echo "$ld_shlibs" >&6; }
  10600. test "$ld_shlibs" = no && can_build_shared=no
  10601. with_gnu_ld=$with_gnu_ld
  10602. #
  10603. # Do we need to explicitly link libc?
  10604. #
  10605. case "x$archive_cmds_need_lc" in
  10606. x|xyes)
  10607. # Assume -lc should be added
  10608. archive_cmds_need_lc=yes
  10609. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10610. case $archive_cmds in
  10611. *'~'*)
  10612. # FIXME: we may have to deal with multi-command sequences.
  10613. ;;
  10614. '$CC '*)
  10615. # Test whether the compiler implicitly links with -lc since on some
  10616. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10617. # to ld, don't add -lc before -lgcc.
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10619. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10620. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  10621. $as_echo_n "(cached) " >&6
  10622. else
  10623. $RM conftest*
  10624. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10626. (eval $ac_compile) 2>&5
  10627. ac_status=$?
  10628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10629. test $ac_status = 0; } 2>conftest.err; then
  10630. soname=conftest
  10631. lib=conftest
  10632. libobjs=conftest.$ac_objext
  10633. deplibs=
  10634. wl=$lt_prog_compiler_wl
  10635. pic_flag=$lt_prog_compiler_pic
  10636. compiler_flags=-v
  10637. linker_flags=-v
  10638. verstring=
  10639. output_objdir=.
  10640. libname=conftest
  10641. lt_save_allow_undefined_flag=$allow_undefined_flag
  10642. allow_undefined_flag=
  10643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10644. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10645. ac_status=$?
  10646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10647. test $ac_status = 0; }
  10648. then
  10649. lt_cv_archive_cmds_need_lc=no
  10650. else
  10651. lt_cv_archive_cmds_need_lc=yes
  10652. fi
  10653. allow_undefined_flag=$lt_save_allow_undefined_flag
  10654. else
  10655. cat conftest.err 1>&5
  10656. fi
  10657. $RM conftest*
  10658. fi
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10660. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10661. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10662. ;;
  10663. esac
  10664. fi
  10665. ;;
  10666. esac
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10668. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10669. if test "$GCC" = yes; then
  10670. case $host_os in
  10671. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10672. *) lt_awk_arg="/^libraries:/" ;;
  10673. esac
  10674. case $host_os in
  10675. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10676. *) lt_sed_strip_eq="s,=/,/,g" ;;
  10677. esac
  10678. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10679. case $lt_search_path_spec in
  10680. *\;*)
  10681. # if the path contains ";" then we assume it to be the separator
  10682. # otherwise default to the standard path separator (i.e. ":") - it is
  10683. # assumed that no part of a normal pathname contains ";" but that should
  10684. # okay in the real world where ";" in dirpaths is itself problematic.
  10685. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10686. ;;
  10687. *)
  10688. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10689. ;;
  10690. esac
  10691. # Ok, now we have the path, separated by spaces, we can step through it
  10692. # and add multilib dir if necessary.
  10693. lt_tmp_lt_search_path_spec=
  10694. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10695. for lt_sys_path in $lt_search_path_spec; do
  10696. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10697. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10698. else
  10699. test -d "$lt_sys_path" && \
  10700. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10701. fi
  10702. done
  10703. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10704. BEGIN {RS=" "; FS="/|\n";} {
  10705. lt_foo="";
  10706. lt_count=0;
  10707. for (lt_i = NF; lt_i > 0; lt_i--) {
  10708. if ($lt_i != "" && $lt_i != ".") {
  10709. if ($lt_i == "..") {
  10710. lt_count++;
  10711. } else {
  10712. if (lt_count == 0) {
  10713. lt_foo="/" $lt_i lt_foo;
  10714. } else {
  10715. lt_count--;
  10716. }
  10717. }
  10718. }
  10719. }
  10720. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10721. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10722. }'`
  10723. # AWK program above erroneously prepends '/' to C:/dos/paths
  10724. # for these hosts.
  10725. case $host_os in
  10726. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10727. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10728. esac
  10729. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10730. else
  10731. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10732. fi
  10733. library_names_spec=
  10734. libname_spec='lib$name'
  10735. soname_spec=
  10736. shrext_cmds=".so"
  10737. postinstall_cmds=
  10738. postuninstall_cmds=
  10739. finish_cmds=
  10740. finish_eval=
  10741. shlibpath_var=
  10742. shlibpath_overrides_runpath=unknown
  10743. version_type=none
  10744. dynamic_linker="$host_os ld.so"
  10745. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10746. need_lib_prefix=unknown
  10747. hardcode_into_libs=no
  10748. # when you set need_version to no, make sure it does not cause -set_version
  10749. # flags to be left without arguments
  10750. need_version=unknown
  10751. case $host_os in
  10752. aix3*)
  10753. version_type=linux
  10754. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10755. shlibpath_var=LIBPATH
  10756. # AIX 3 has no versioning support, so we append a major version to the name.
  10757. soname_spec='${libname}${release}${shared_ext}$major'
  10758. ;;
  10759. aix[4-9]*)
  10760. version_type=linux
  10761. need_lib_prefix=no
  10762. need_version=no
  10763. hardcode_into_libs=yes
  10764. if test "$host_cpu" = ia64; then
  10765. # AIX 5 supports IA64
  10766. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10767. shlibpath_var=LD_LIBRARY_PATH
  10768. else
  10769. # With GCC up to 2.95.x, collect2 would create an import file
  10770. # for dependence libraries. The import file would start with
  10771. # the line `#! .'. This would cause the generated library to
  10772. # depend on `.', always an invalid library. This was fixed in
  10773. # development snapshots of GCC prior to 3.0.
  10774. case $host_os in
  10775. aix4 | aix4.[01] | aix4.[01].*)
  10776. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10777. echo ' yes '
  10778. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10779. :
  10780. else
  10781. can_build_shared=no
  10782. fi
  10783. ;;
  10784. esac
  10785. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10786. # soname into executable. Probably we can add versioning support to
  10787. # collect2, so additional links can be useful in future.
  10788. if test "$aix_use_runtimelinking" = yes; then
  10789. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10790. # instead of lib<name>.a to let people know that these are not
  10791. # typical AIX shared libraries.
  10792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10793. else
  10794. # We preserve .a as extension for shared libraries through AIX4.2
  10795. # and later when we are not doing run time linking.
  10796. library_names_spec='${libname}${release}.a $libname.a'
  10797. soname_spec='${libname}${release}${shared_ext}$major'
  10798. fi
  10799. shlibpath_var=LIBPATH
  10800. fi
  10801. ;;
  10802. amigaos*)
  10803. case $host_cpu in
  10804. powerpc)
  10805. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10806. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10808. ;;
  10809. m68k)
  10810. library_names_spec='$libname.ixlibrary $libname.a'
  10811. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10812. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  10813. ;;
  10814. esac
  10815. ;;
  10816. beos*)
  10817. library_names_spec='${libname}${shared_ext}'
  10818. dynamic_linker="$host_os ld.so"
  10819. shlibpath_var=LIBRARY_PATH
  10820. ;;
  10821. bsdi[45]*)
  10822. version_type=linux
  10823. need_version=no
  10824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10825. soname_spec='${libname}${release}${shared_ext}$major'
  10826. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10827. shlibpath_var=LD_LIBRARY_PATH
  10828. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10829. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10830. # the default ld.so.conf also contains /usr/contrib/lib and
  10831. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10832. # libtool to hard-code these into programs
  10833. ;;
  10834. cygwin* | mingw* | pw32* | cegcc*)
  10835. version_type=windows
  10836. shrext_cmds=".dll"
  10837. need_version=no
  10838. need_lib_prefix=no
  10839. case $GCC,$host_os in
  10840. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  10841. library_names_spec='$libname.dll.a'
  10842. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10843. postinstall_cmds='base_file=`basename \${file}`~
  10844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10845. dldir=$destdir/`dirname \$dlpath`~
  10846. test -d \$dldir || mkdir -p \$dldir~
  10847. $install_prog $dir/$dlname \$dldir/$dlname~
  10848. chmod a+x \$dldir/$dlname~
  10849. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10850. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10851. fi'
  10852. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10853. dlpath=$dir/\$dldll~
  10854. $RM \$dlpath'
  10855. shlibpath_overrides_runpath=yes
  10856. case $host_os in
  10857. cygwin*)
  10858. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10859. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10860. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10861. ;;
  10862. mingw* | cegcc*)
  10863. # MinGW DLLs use traditional 'lib' prefix
  10864. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10865. ;;
  10866. pw32*)
  10867. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10868. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10869. ;;
  10870. esac
  10871. ;;
  10872. *)
  10873. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10874. ;;
  10875. esac
  10876. dynamic_linker='Win32 ld.exe'
  10877. # FIXME: first we should search . and the directory the executable is in
  10878. shlibpath_var=PATH
  10879. ;;
  10880. darwin* | rhapsody*)
  10881. dynamic_linker="$host_os dyld"
  10882. version_type=darwin
  10883. need_lib_prefix=no
  10884. need_version=no
  10885. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10886. soname_spec='${libname}${release}${major}$shared_ext'
  10887. shlibpath_overrides_runpath=yes
  10888. shlibpath_var=DYLD_LIBRARY_PATH
  10889. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10890. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10891. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10892. ;;
  10893. dgux*)
  10894. version_type=linux
  10895. need_lib_prefix=no
  10896. need_version=no
  10897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10898. soname_spec='${libname}${release}${shared_ext}$major'
  10899. shlibpath_var=LD_LIBRARY_PATH
  10900. ;;
  10901. freebsd* | dragonfly*)
  10902. # DragonFly does not have aout. When/if they implement a new
  10903. # versioning mechanism, adjust this.
  10904. if test -x /usr/bin/objformat; then
  10905. objformat=`/usr/bin/objformat`
  10906. else
  10907. case $host_os in
  10908. freebsd[23].*) objformat=aout ;;
  10909. *) objformat=elf ;;
  10910. esac
  10911. fi
  10912. version_type=freebsd-$objformat
  10913. case $version_type in
  10914. freebsd-elf*)
  10915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10916. need_version=no
  10917. need_lib_prefix=no
  10918. ;;
  10919. freebsd-*)
  10920. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10921. need_version=yes
  10922. ;;
  10923. esac
  10924. shlibpath_var=LD_LIBRARY_PATH
  10925. case $host_os in
  10926. freebsd2.*)
  10927. shlibpath_overrides_runpath=yes
  10928. ;;
  10929. freebsd3.[01]* | freebsdelf3.[01]*)
  10930. shlibpath_overrides_runpath=yes
  10931. hardcode_into_libs=yes
  10932. ;;
  10933. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10934. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10935. shlibpath_overrides_runpath=no
  10936. hardcode_into_libs=yes
  10937. ;;
  10938. *) # from 4.6 on, and DragonFly
  10939. shlibpath_overrides_runpath=yes
  10940. hardcode_into_libs=yes
  10941. ;;
  10942. esac
  10943. ;;
  10944. gnu*)
  10945. version_type=linux
  10946. need_lib_prefix=no
  10947. need_version=no
  10948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10949. soname_spec='${libname}${release}${shared_ext}$major'
  10950. shlibpath_var=LD_LIBRARY_PATH
  10951. hardcode_into_libs=yes
  10952. ;;
  10953. haiku*)
  10954. version_type=linux
  10955. need_lib_prefix=no
  10956. need_version=no
  10957. dynamic_linker="$host_os runtime_loader"
  10958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10959. soname_spec='${libname}${release}${shared_ext}$major'
  10960. shlibpath_var=LIBRARY_PATH
  10961. shlibpath_overrides_runpath=yes
  10962. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  10963. hardcode_into_libs=yes
  10964. ;;
  10965. hpux9* | hpux10* | hpux11*)
  10966. # Give a soname corresponding to the major version so that dld.sl refuses to
  10967. # link against other versions.
  10968. version_type=sunos
  10969. need_lib_prefix=no
  10970. need_version=no
  10971. case $host_cpu in
  10972. ia64*)
  10973. shrext_cmds='.so'
  10974. hardcode_into_libs=yes
  10975. dynamic_linker="$host_os dld.so"
  10976. shlibpath_var=LD_LIBRARY_PATH
  10977. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10979. soname_spec='${libname}${release}${shared_ext}$major'
  10980. if test "X$HPUX_IA64_MODE" = X32; then
  10981. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10982. else
  10983. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10984. fi
  10985. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10986. ;;
  10987. hppa*64*)
  10988. shrext_cmds='.sl'
  10989. hardcode_into_libs=yes
  10990. dynamic_linker="$host_os dld.sl"
  10991. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10992. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10994. soname_spec='${libname}${release}${shared_ext}$major'
  10995. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10996. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10997. ;;
  10998. *)
  10999. shrext_cmds='.sl'
  11000. dynamic_linker="$host_os dld.sl"
  11001. shlibpath_var=SHLIB_PATH
  11002. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11004. soname_spec='${libname}${release}${shared_ext}$major'
  11005. ;;
  11006. esac
  11007. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11008. postinstall_cmds='chmod 555 $lib'
  11009. # or fails outright, so override atomically:
  11010. install_override_mode=555
  11011. ;;
  11012. interix[3-9]*)
  11013. version_type=linux
  11014. need_lib_prefix=no
  11015. need_version=no
  11016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11017. soname_spec='${libname}${release}${shared_ext}$major'
  11018. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11019. shlibpath_var=LD_LIBRARY_PATH
  11020. shlibpath_overrides_runpath=no
  11021. hardcode_into_libs=yes
  11022. ;;
  11023. irix5* | irix6* | nonstopux*)
  11024. case $host_os in
  11025. nonstopux*) version_type=nonstopux ;;
  11026. *)
  11027. if test "$lt_cv_prog_gnu_ld" = yes; then
  11028. version_type=linux
  11029. else
  11030. version_type=irix
  11031. fi ;;
  11032. esac
  11033. need_lib_prefix=no
  11034. need_version=no
  11035. soname_spec='${libname}${release}${shared_ext}$major'
  11036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11037. case $host_os in
  11038. irix5* | nonstopux*)
  11039. libsuff= shlibsuff=
  11040. ;;
  11041. *)
  11042. case $LD in # libtool.m4 will add one of these switches to LD
  11043. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11044. libsuff= shlibsuff= libmagic=32-bit;;
  11045. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11046. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11047. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11048. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11049. *) libsuff= shlibsuff= libmagic=never-match;;
  11050. esac
  11051. ;;
  11052. esac
  11053. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11054. shlibpath_overrides_runpath=no
  11055. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11056. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11057. hardcode_into_libs=yes
  11058. ;;
  11059. # No shared lib support for Linux oldld, aout, or coff.
  11060. linux*oldld* | linux*aout* | linux*coff*)
  11061. dynamic_linker=no
  11062. ;;
  11063. # This must be Linux ELF.
  11064. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11065. version_type=linux
  11066. need_lib_prefix=no
  11067. need_version=no
  11068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11069. soname_spec='${libname}${release}${shared_ext}$major'
  11070. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11071. shlibpath_var=LD_LIBRARY_PATH
  11072. shlibpath_overrides_runpath=no
  11073. # Some binutils ld are patched to set DT_RUNPATH
  11074. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  11075. $as_echo_n "(cached) " >&6
  11076. else
  11077. lt_cv_shlibpath_overrides_runpath=no
  11078. save_LDFLAGS=$LDFLAGS
  11079. save_libdir=$libdir
  11080. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11081. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11082. if test x$gcc_no_link = xyes; then
  11083. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11084. fi
  11085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11086. /* end confdefs.h. */
  11087. int
  11088. main ()
  11089. {
  11090. ;
  11091. return 0;
  11092. }
  11093. _ACEOF
  11094. if ac_fn_c_try_link "$LINENO"; then :
  11095. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11096. lt_cv_shlibpath_overrides_runpath=yes
  11097. fi
  11098. fi
  11099. rm -f core conftest.err conftest.$ac_objext \
  11100. conftest$ac_exeext conftest.$ac_ext
  11101. LDFLAGS=$save_LDFLAGS
  11102. libdir=$save_libdir
  11103. fi
  11104. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11105. # This implies no fast_install, which is unacceptable.
  11106. # Some rework will be needed to allow for fast_install
  11107. # before this can be enabled.
  11108. hardcode_into_libs=yes
  11109. # Append ld.so.conf contents to the search path
  11110. if test -f /etc/ld.so.conf; then
  11111. 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;s/"//g;/^$/d' | tr '\n' ' '`
  11112. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11113. fi
  11114. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11115. # powerpc, because MkLinux only supported shared libraries with the
  11116. # GNU dynamic linker. Since this was broken with cross compilers,
  11117. # most powerpc-linux boxes support dynamic linking these days and
  11118. # people can always --disable-shared, the test was removed, and we
  11119. # assume the GNU/Linux dynamic linker is in use.
  11120. dynamic_linker='GNU/Linux ld.so'
  11121. ;;
  11122. netbsd*)
  11123. version_type=sunos
  11124. need_lib_prefix=no
  11125. need_version=no
  11126. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11128. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11129. dynamic_linker='NetBSD (a.out) ld.so'
  11130. else
  11131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11132. soname_spec='${libname}${release}${shared_ext}$major'
  11133. dynamic_linker='NetBSD ld.elf_so'
  11134. fi
  11135. shlibpath_var=LD_LIBRARY_PATH
  11136. shlibpath_overrides_runpath=yes
  11137. hardcode_into_libs=yes
  11138. ;;
  11139. newsos6)
  11140. version_type=linux
  11141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11142. shlibpath_var=LD_LIBRARY_PATH
  11143. shlibpath_overrides_runpath=yes
  11144. ;;
  11145. *nto* | *qnx*)
  11146. version_type=qnx
  11147. need_lib_prefix=no
  11148. need_version=no
  11149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11150. soname_spec='${libname}${release}${shared_ext}$major'
  11151. shlibpath_var=LD_LIBRARY_PATH
  11152. shlibpath_overrides_runpath=no
  11153. hardcode_into_libs=yes
  11154. dynamic_linker='ldqnx.so'
  11155. ;;
  11156. openbsd*)
  11157. version_type=sunos
  11158. sys_lib_dlsearch_path_spec="/usr/lib"
  11159. need_lib_prefix=no
  11160. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11161. case $host_os in
  11162. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11163. *) need_version=no ;;
  11164. esac
  11165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11166. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11167. shlibpath_var=LD_LIBRARY_PATH
  11168. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11169. case $host_os in
  11170. openbsd2.[89] | openbsd2.[89].*)
  11171. shlibpath_overrides_runpath=no
  11172. ;;
  11173. *)
  11174. shlibpath_overrides_runpath=yes
  11175. ;;
  11176. esac
  11177. else
  11178. shlibpath_overrides_runpath=yes
  11179. fi
  11180. ;;
  11181. os2*)
  11182. libname_spec='$name'
  11183. shrext_cmds=".dll"
  11184. need_lib_prefix=no
  11185. library_names_spec='$libname${shared_ext} $libname.a'
  11186. dynamic_linker='OS/2 ld.exe'
  11187. shlibpath_var=LIBPATH
  11188. ;;
  11189. osf3* | osf4* | osf5*)
  11190. version_type=osf
  11191. need_lib_prefix=no
  11192. need_version=no
  11193. soname_spec='${libname}${release}${shared_ext}$major'
  11194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11195. shlibpath_var=LD_LIBRARY_PATH
  11196. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11197. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11198. ;;
  11199. rdos*)
  11200. dynamic_linker=no
  11201. ;;
  11202. solaris*)
  11203. version_type=linux
  11204. need_lib_prefix=no
  11205. need_version=no
  11206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11207. soname_spec='${libname}${release}${shared_ext}$major'
  11208. shlibpath_var=LD_LIBRARY_PATH
  11209. shlibpath_overrides_runpath=yes
  11210. hardcode_into_libs=yes
  11211. # ldd complains unless libraries are executable
  11212. postinstall_cmds='chmod +x $lib'
  11213. ;;
  11214. sunos4*)
  11215. version_type=sunos
  11216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11217. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11218. shlibpath_var=LD_LIBRARY_PATH
  11219. shlibpath_overrides_runpath=yes
  11220. if test "$with_gnu_ld" = yes; then
  11221. need_lib_prefix=no
  11222. fi
  11223. need_version=yes
  11224. ;;
  11225. sysv4 | sysv4.3*)
  11226. version_type=linux
  11227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11228. soname_spec='${libname}${release}${shared_ext}$major'
  11229. shlibpath_var=LD_LIBRARY_PATH
  11230. case $host_vendor in
  11231. sni)
  11232. shlibpath_overrides_runpath=no
  11233. need_lib_prefix=no
  11234. runpath_var=LD_RUN_PATH
  11235. ;;
  11236. siemens)
  11237. need_lib_prefix=no
  11238. ;;
  11239. motorola)
  11240. need_lib_prefix=no
  11241. need_version=no
  11242. shlibpath_overrides_runpath=no
  11243. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11244. ;;
  11245. esac
  11246. ;;
  11247. sysv4*MP*)
  11248. if test -d /usr/nec ;then
  11249. version_type=linux
  11250. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11251. soname_spec='$libname${shared_ext}.$major'
  11252. shlibpath_var=LD_LIBRARY_PATH
  11253. fi
  11254. ;;
  11255. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11256. version_type=freebsd-elf
  11257. need_lib_prefix=no
  11258. need_version=no
  11259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11260. soname_spec='${libname}${release}${shared_ext}$major'
  11261. shlibpath_var=LD_LIBRARY_PATH
  11262. shlibpath_overrides_runpath=yes
  11263. hardcode_into_libs=yes
  11264. if test "$with_gnu_ld" = yes; then
  11265. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11266. else
  11267. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11268. case $host_os in
  11269. sco3.2v5*)
  11270. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11271. ;;
  11272. esac
  11273. fi
  11274. sys_lib_dlsearch_path_spec='/usr/lib'
  11275. ;;
  11276. tpf*)
  11277. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11278. version_type=linux
  11279. need_lib_prefix=no
  11280. need_version=no
  11281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11282. shlibpath_var=LD_LIBRARY_PATH
  11283. shlibpath_overrides_runpath=no
  11284. hardcode_into_libs=yes
  11285. ;;
  11286. uts4*)
  11287. version_type=linux
  11288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11289. soname_spec='${libname}${release}${shared_ext}$major'
  11290. shlibpath_var=LD_LIBRARY_PATH
  11291. ;;
  11292. *)
  11293. dynamic_linker=no
  11294. ;;
  11295. esac
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11297. $as_echo "$dynamic_linker" >&6; }
  11298. test "$dynamic_linker" = no && can_build_shared=no
  11299. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11300. if test "$GCC" = yes; then
  11301. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11302. fi
  11303. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11304. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11305. fi
  11306. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11307. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11308. fi
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11310. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11311. hardcode_action=
  11312. if test -n "$hardcode_libdir_flag_spec" ||
  11313. test -n "$runpath_var" ||
  11314. test "X$hardcode_automatic" = "Xyes" ; then
  11315. # We can hardcode non-existent directories.
  11316. if test "$hardcode_direct" != no &&
  11317. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11318. # have to relink, otherwise we might link with an installed library
  11319. # when we should be linking with a yet-to-be-installed one
  11320. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11321. test "$hardcode_minus_L" != no; then
  11322. # Linking always hardcodes the temporary library directory.
  11323. hardcode_action=relink
  11324. else
  11325. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11326. hardcode_action=immediate
  11327. fi
  11328. else
  11329. # We cannot hardcode anything, or else we can only hardcode existing
  11330. # directories.
  11331. hardcode_action=unsupported
  11332. fi
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11334. $as_echo "$hardcode_action" >&6; }
  11335. if test "$hardcode_action" = relink ||
  11336. test "$inherit_rpath" = yes; then
  11337. # Fast installation is not supported
  11338. enable_fast_install=no
  11339. elif test "$shlibpath_overrides_runpath" = yes ||
  11340. test "$enable_shared" = no; then
  11341. # Fast installation is not necessary
  11342. enable_fast_install=needless
  11343. fi
  11344. if test "x$enable_dlopen" != xyes; then
  11345. enable_dlopen=unknown
  11346. enable_dlopen_self=unknown
  11347. enable_dlopen_self_static=unknown
  11348. else
  11349. lt_cv_dlopen=no
  11350. lt_cv_dlopen_libs=
  11351. case $host_os in
  11352. beos*)
  11353. lt_cv_dlopen="load_add_on"
  11354. lt_cv_dlopen_libs=
  11355. lt_cv_dlopen_self=yes
  11356. ;;
  11357. mingw* | pw32* | cegcc*)
  11358. lt_cv_dlopen="LoadLibrary"
  11359. lt_cv_dlopen_libs=
  11360. ;;
  11361. cygwin*)
  11362. lt_cv_dlopen="dlopen"
  11363. lt_cv_dlopen_libs=
  11364. ;;
  11365. darwin*)
  11366. # if libdl is installed we need to link against it
  11367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11368. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11369. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  11370. $as_echo_n "(cached) " >&6
  11371. else
  11372. ac_check_lib_save_LIBS=$LIBS
  11373. LIBS="-ldl $LIBS"
  11374. if test x$gcc_no_link = xyes; then
  11375. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11376. fi
  11377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11378. /* end confdefs.h. */
  11379. /* Override any GCC internal prototype to avoid an error.
  11380. Use char because int might match the return type of a GCC
  11381. builtin and then its argument prototype would still apply. */
  11382. #ifdef __cplusplus
  11383. extern "C"
  11384. #endif
  11385. char dlopen ();
  11386. int
  11387. main ()
  11388. {
  11389. return dlopen ();
  11390. ;
  11391. return 0;
  11392. }
  11393. _ACEOF
  11394. if ac_fn_c_try_link "$LINENO"; then :
  11395. ac_cv_lib_dl_dlopen=yes
  11396. else
  11397. ac_cv_lib_dl_dlopen=no
  11398. fi
  11399. rm -f core conftest.err conftest.$ac_objext \
  11400. conftest$ac_exeext conftest.$ac_ext
  11401. LIBS=$ac_check_lib_save_LIBS
  11402. fi
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11404. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11405. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  11406. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11407. else
  11408. lt_cv_dlopen="dyld"
  11409. lt_cv_dlopen_libs=
  11410. lt_cv_dlopen_self=yes
  11411. fi
  11412. ;;
  11413. *)
  11414. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11415. if test "x$ac_cv_func_shl_load" = x""yes; then :
  11416. lt_cv_dlopen="shl_load"
  11417. else
  11418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11419. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11420. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  11421. $as_echo_n "(cached) " >&6
  11422. else
  11423. ac_check_lib_save_LIBS=$LIBS
  11424. LIBS="-ldld $LIBS"
  11425. if test x$gcc_no_link = xyes; then
  11426. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11427. fi
  11428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11429. /* end confdefs.h. */
  11430. /* Override any GCC internal prototype to avoid an error.
  11431. Use char because int might match the return type of a GCC
  11432. builtin and then its argument prototype would still apply. */
  11433. #ifdef __cplusplus
  11434. extern "C"
  11435. #endif
  11436. char shl_load ();
  11437. int
  11438. main ()
  11439. {
  11440. return shl_load ();
  11441. ;
  11442. return 0;
  11443. }
  11444. _ACEOF
  11445. if ac_fn_c_try_link "$LINENO"; then :
  11446. ac_cv_lib_dld_shl_load=yes
  11447. else
  11448. ac_cv_lib_dld_shl_load=no
  11449. fi
  11450. rm -f core conftest.err conftest.$ac_objext \
  11451. conftest$ac_exeext conftest.$ac_ext
  11452. LIBS=$ac_check_lib_save_LIBS
  11453. fi
  11454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11455. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11456. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  11457. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11458. else
  11459. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11460. if test "x$ac_cv_func_dlopen" = x""yes; then :
  11461. lt_cv_dlopen="dlopen"
  11462. else
  11463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11464. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11465. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  11466. $as_echo_n "(cached) " >&6
  11467. else
  11468. ac_check_lib_save_LIBS=$LIBS
  11469. LIBS="-ldl $LIBS"
  11470. if test x$gcc_no_link = xyes; then
  11471. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11472. fi
  11473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11474. /* end confdefs.h. */
  11475. /* Override any GCC internal prototype to avoid an error.
  11476. Use char because int might match the return type of a GCC
  11477. builtin and then its argument prototype would still apply. */
  11478. #ifdef __cplusplus
  11479. extern "C"
  11480. #endif
  11481. char dlopen ();
  11482. int
  11483. main ()
  11484. {
  11485. return dlopen ();
  11486. ;
  11487. return 0;
  11488. }
  11489. _ACEOF
  11490. if ac_fn_c_try_link "$LINENO"; then :
  11491. ac_cv_lib_dl_dlopen=yes
  11492. else
  11493. ac_cv_lib_dl_dlopen=no
  11494. fi
  11495. rm -f core conftest.err conftest.$ac_objext \
  11496. conftest$ac_exeext conftest.$ac_ext
  11497. LIBS=$ac_check_lib_save_LIBS
  11498. fi
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11500. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11501. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  11502. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11503. else
  11504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11505. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11506. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  11507. $as_echo_n "(cached) " >&6
  11508. else
  11509. ac_check_lib_save_LIBS=$LIBS
  11510. LIBS="-lsvld $LIBS"
  11511. if test x$gcc_no_link = xyes; then
  11512. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11513. fi
  11514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11515. /* end confdefs.h. */
  11516. /* Override any GCC internal prototype to avoid an error.
  11517. Use char because int might match the return type of a GCC
  11518. builtin and then its argument prototype would still apply. */
  11519. #ifdef __cplusplus
  11520. extern "C"
  11521. #endif
  11522. char dlopen ();
  11523. int
  11524. main ()
  11525. {
  11526. return dlopen ();
  11527. ;
  11528. return 0;
  11529. }
  11530. _ACEOF
  11531. if ac_fn_c_try_link "$LINENO"; then :
  11532. ac_cv_lib_svld_dlopen=yes
  11533. else
  11534. ac_cv_lib_svld_dlopen=no
  11535. fi
  11536. rm -f core conftest.err conftest.$ac_objext \
  11537. conftest$ac_exeext conftest.$ac_ext
  11538. LIBS=$ac_check_lib_save_LIBS
  11539. fi
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11541. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11542. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  11543. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11544. else
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11546. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11547. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  11548. $as_echo_n "(cached) " >&6
  11549. else
  11550. ac_check_lib_save_LIBS=$LIBS
  11551. LIBS="-ldld $LIBS"
  11552. if test x$gcc_no_link = xyes; then
  11553. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11554. fi
  11555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11556. /* end confdefs.h. */
  11557. /* Override any GCC internal prototype to avoid an error.
  11558. Use char because int might match the return type of a GCC
  11559. builtin and then its argument prototype would still apply. */
  11560. #ifdef __cplusplus
  11561. extern "C"
  11562. #endif
  11563. char dld_link ();
  11564. int
  11565. main ()
  11566. {
  11567. return dld_link ();
  11568. ;
  11569. return 0;
  11570. }
  11571. _ACEOF
  11572. if ac_fn_c_try_link "$LINENO"; then :
  11573. ac_cv_lib_dld_dld_link=yes
  11574. else
  11575. ac_cv_lib_dld_dld_link=no
  11576. fi
  11577. rm -f core conftest.err conftest.$ac_objext \
  11578. conftest$ac_exeext conftest.$ac_ext
  11579. LIBS=$ac_check_lib_save_LIBS
  11580. fi
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11582. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11583. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  11584. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11585. fi
  11586. fi
  11587. fi
  11588. fi
  11589. fi
  11590. fi
  11591. ;;
  11592. esac
  11593. if test "x$lt_cv_dlopen" != xno; then
  11594. enable_dlopen=yes
  11595. else
  11596. enable_dlopen=no
  11597. fi
  11598. case $lt_cv_dlopen in
  11599. dlopen)
  11600. save_CPPFLAGS="$CPPFLAGS"
  11601. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11602. save_LDFLAGS="$LDFLAGS"
  11603. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11604. save_LIBS="$LIBS"
  11605. LIBS="$lt_cv_dlopen_libs $LIBS"
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11607. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11608. if test "${lt_cv_dlopen_self+set}" = set; then :
  11609. $as_echo_n "(cached) " >&6
  11610. else
  11611. if test "$cross_compiling" = yes; then :
  11612. lt_cv_dlopen_self=cross
  11613. else
  11614. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11615. lt_status=$lt_dlunknown
  11616. cat > conftest.$ac_ext <<_LT_EOF
  11617. #line 13391 "configure"
  11618. #include "confdefs.h"
  11619. #if HAVE_DLFCN_H
  11620. #include <dlfcn.h>
  11621. #endif
  11622. #include <stdio.h>
  11623. #ifdef RTLD_GLOBAL
  11624. # define LT_DLGLOBAL RTLD_GLOBAL
  11625. #else
  11626. # ifdef DL_GLOBAL
  11627. # define LT_DLGLOBAL DL_GLOBAL
  11628. # else
  11629. # define LT_DLGLOBAL 0
  11630. # endif
  11631. #endif
  11632. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11633. find out it does not work in some platform. */
  11634. #ifndef LT_DLLAZY_OR_NOW
  11635. # ifdef RTLD_LAZY
  11636. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11637. # else
  11638. # ifdef DL_LAZY
  11639. # define LT_DLLAZY_OR_NOW DL_LAZY
  11640. # else
  11641. # ifdef RTLD_NOW
  11642. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11643. # else
  11644. # ifdef DL_NOW
  11645. # define LT_DLLAZY_OR_NOW DL_NOW
  11646. # else
  11647. # define LT_DLLAZY_OR_NOW 0
  11648. # endif
  11649. # endif
  11650. # endif
  11651. # endif
  11652. #endif
  11653. /* When -fvisbility=hidden is used, assume the code has been annotated
  11654. correspondingly for the symbols needed. */
  11655. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11656. void fnord () __attribute__((visibility("default")));
  11657. #endif
  11658. void fnord () { int i=42; }
  11659. int main ()
  11660. {
  11661. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11662. int status = $lt_dlunknown;
  11663. if (self)
  11664. {
  11665. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11666. else
  11667. {
  11668. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11669. else puts (dlerror ());
  11670. }
  11671. /* dlclose (self); */
  11672. }
  11673. else
  11674. puts (dlerror ());
  11675. return status;
  11676. }
  11677. _LT_EOF
  11678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11679. (eval $ac_link) 2>&5
  11680. ac_status=$?
  11681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11682. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11683. (./conftest; exit; ) >&5 2>/dev/null
  11684. lt_status=$?
  11685. case x$lt_status in
  11686. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11687. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11688. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11689. esac
  11690. else :
  11691. # compilation failed
  11692. lt_cv_dlopen_self=no
  11693. fi
  11694. fi
  11695. rm -fr conftest*
  11696. fi
  11697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11698. $as_echo "$lt_cv_dlopen_self" >&6; }
  11699. if test "x$lt_cv_dlopen_self" = xyes; then
  11700. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11702. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11703. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  11704. $as_echo_n "(cached) " >&6
  11705. else
  11706. if test "$cross_compiling" = yes; then :
  11707. lt_cv_dlopen_self_static=cross
  11708. else
  11709. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11710. lt_status=$lt_dlunknown
  11711. cat > conftest.$ac_ext <<_LT_EOF
  11712. #line 13497 "configure"
  11713. #include "confdefs.h"
  11714. #if HAVE_DLFCN_H
  11715. #include <dlfcn.h>
  11716. #endif
  11717. #include <stdio.h>
  11718. #ifdef RTLD_GLOBAL
  11719. # define LT_DLGLOBAL RTLD_GLOBAL
  11720. #else
  11721. # ifdef DL_GLOBAL
  11722. # define LT_DLGLOBAL DL_GLOBAL
  11723. # else
  11724. # define LT_DLGLOBAL 0
  11725. # endif
  11726. #endif
  11727. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11728. find out it does not work in some platform. */
  11729. #ifndef LT_DLLAZY_OR_NOW
  11730. # ifdef RTLD_LAZY
  11731. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11732. # else
  11733. # ifdef DL_LAZY
  11734. # define LT_DLLAZY_OR_NOW DL_LAZY
  11735. # else
  11736. # ifdef RTLD_NOW
  11737. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11738. # else
  11739. # ifdef DL_NOW
  11740. # define LT_DLLAZY_OR_NOW DL_NOW
  11741. # else
  11742. # define LT_DLLAZY_OR_NOW 0
  11743. # endif
  11744. # endif
  11745. # endif
  11746. # endif
  11747. #endif
  11748. /* When -fvisbility=hidden is used, assume the code has been annotated
  11749. correspondingly for the symbols needed. */
  11750. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11751. void fnord () __attribute__((visibility("default")));
  11752. #endif
  11753. void fnord () { int i=42; }
  11754. int main ()
  11755. {
  11756. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11757. int status = $lt_dlunknown;
  11758. if (self)
  11759. {
  11760. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11761. else
  11762. {
  11763. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11764. else puts (dlerror ());
  11765. }
  11766. /* dlclose (self); */
  11767. }
  11768. else
  11769. puts (dlerror ());
  11770. return status;
  11771. }
  11772. _LT_EOF
  11773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11774. (eval $ac_link) 2>&5
  11775. ac_status=$?
  11776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11777. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11778. (./conftest; exit; ) >&5 2>/dev/null
  11779. lt_status=$?
  11780. case x$lt_status in
  11781. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11782. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11783. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11784. esac
  11785. else :
  11786. # compilation failed
  11787. lt_cv_dlopen_self_static=no
  11788. fi
  11789. fi
  11790. rm -fr conftest*
  11791. fi
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11793. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11794. fi
  11795. CPPFLAGS="$save_CPPFLAGS"
  11796. LDFLAGS="$save_LDFLAGS"
  11797. LIBS="$save_LIBS"
  11798. ;;
  11799. esac
  11800. case $lt_cv_dlopen_self in
  11801. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11802. *) enable_dlopen_self=unknown ;;
  11803. esac
  11804. case $lt_cv_dlopen_self_static in
  11805. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11806. *) enable_dlopen_self_static=unknown ;;
  11807. esac
  11808. fi
  11809. striplib=
  11810. old_striplib=
  11811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11812. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11813. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11814. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11815. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11817. $as_echo "yes" >&6; }
  11818. else
  11819. # FIXME - insert some real tests, host_os isn't really good enough
  11820. case $host_os in
  11821. darwin*)
  11822. if test -n "$STRIP" ; then
  11823. striplib="$STRIP -x"
  11824. old_striplib="$STRIP -S"
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11826. $as_echo "yes" >&6; }
  11827. else
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11829. $as_echo "no" >&6; }
  11830. fi
  11831. ;;
  11832. *)
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11834. $as_echo "no" >&6; }
  11835. ;;
  11836. esac
  11837. fi
  11838. # Report which library types will actually be built
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11840. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11842. $as_echo "$can_build_shared" >&6; }
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11844. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11845. test "$can_build_shared" = "no" && enable_shared=no
  11846. # On AIX, shared libraries and static libraries use the same namespace, and
  11847. # are all built from PIC.
  11848. case $host_os in
  11849. aix3*)
  11850. test "$enable_shared" = yes && enable_static=no
  11851. if test -n "$RANLIB"; then
  11852. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11853. postinstall_cmds='$RANLIB $lib'
  11854. fi
  11855. ;;
  11856. aix[4-9]*)
  11857. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11858. test "$enable_shared" = yes && enable_static=no
  11859. fi
  11860. ;;
  11861. esac
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11863. $as_echo "$enable_shared" >&6; }
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11865. $as_echo_n "checking whether to build static libraries... " >&6; }
  11866. # Make sure either enable_shared or enable_static is yes.
  11867. test "$enable_shared" = yes || enable_static=yes
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11869. $as_echo "$enable_static" >&6; }
  11870. fi
  11871. ac_ext=c
  11872. ac_cpp='$CPP $CPPFLAGS'
  11873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11876. CC="$lt_save_CC"
  11877. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11878. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11879. (test "X$CXX" != "Xg++"))) ; then
  11880. ac_ext=cpp
  11881. ac_cpp='$CXXCPP $CPPFLAGS'
  11882. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11883. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11884. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11886. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11887. if test -z "$CXXCPP"; then
  11888. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  11889. $as_echo_n "(cached) " >&6
  11890. else
  11891. # Double quotes because CXXCPP needs to be expanded
  11892. for CXXCPP in "$CXX -E" "/lib/cpp"
  11893. do
  11894. ac_preproc_ok=false
  11895. for ac_cxx_preproc_warn_flag in '' yes
  11896. do
  11897. # Use a header file that comes with gcc, so configuring glibc
  11898. # with a fresh cross-compiler works.
  11899. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11900. # <limits.h> exists even on freestanding compilers.
  11901. # On the NeXT, cc -E runs the code through the compiler's parser,
  11902. # not just through cpp. "Syntax error" is here to catch this case.
  11903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11904. /* end confdefs.h. */
  11905. #ifdef __STDC__
  11906. # include <limits.h>
  11907. #else
  11908. # include <assert.h>
  11909. #endif
  11910. Syntax error
  11911. _ACEOF
  11912. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11913. else
  11914. # Broken: fails on valid input.
  11915. continue
  11916. fi
  11917. rm -f conftest.err conftest.$ac_ext
  11918. # OK, works on sane cases. Now check whether nonexistent headers
  11919. # can be detected and how.
  11920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11921. /* end confdefs.h. */
  11922. #include <ac_nonexistent.h>
  11923. _ACEOF
  11924. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11925. # Broken: success on invalid input.
  11926. continue
  11927. else
  11928. # Passes both tests.
  11929. ac_preproc_ok=:
  11930. break
  11931. fi
  11932. rm -f conftest.err conftest.$ac_ext
  11933. done
  11934. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11935. rm -f conftest.err conftest.$ac_ext
  11936. if $ac_preproc_ok; then :
  11937. break
  11938. fi
  11939. done
  11940. ac_cv_prog_CXXCPP=$CXXCPP
  11941. fi
  11942. CXXCPP=$ac_cv_prog_CXXCPP
  11943. else
  11944. ac_cv_prog_CXXCPP=$CXXCPP
  11945. fi
  11946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11947. $as_echo "$CXXCPP" >&6; }
  11948. ac_preproc_ok=false
  11949. for ac_cxx_preproc_warn_flag in '' yes
  11950. do
  11951. # Use a header file that comes with gcc, so configuring glibc
  11952. # with a fresh cross-compiler works.
  11953. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11954. # <limits.h> exists even on freestanding compilers.
  11955. # On the NeXT, cc -E runs the code through the compiler's parser,
  11956. # not just through cpp. "Syntax error" is here to catch this case.
  11957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11958. /* end confdefs.h. */
  11959. #ifdef __STDC__
  11960. # include <limits.h>
  11961. #else
  11962. # include <assert.h>
  11963. #endif
  11964. Syntax error
  11965. _ACEOF
  11966. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11967. else
  11968. # Broken: fails on valid input.
  11969. continue
  11970. fi
  11971. rm -f conftest.err conftest.$ac_ext
  11972. # OK, works on sane cases. Now check whether nonexistent headers
  11973. # can be detected and how.
  11974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11975. /* end confdefs.h. */
  11976. #include <ac_nonexistent.h>
  11977. _ACEOF
  11978. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11979. # Broken: success on invalid input.
  11980. continue
  11981. else
  11982. # Passes both tests.
  11983. ac_preproc_ok=:
  11984. break
  11985. fi
  11986. rm -f conftest.err conftest.$ac_ext
  11987. done
  11988. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11989. rm -f conftest.err conftest.$ac_ext
  11990. if $ac_preproc_ok; then :
  11991. else
  11992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11994. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  11995. See \`config.log' for more details." "$LINENO" 5; }
  11996. fi
  11997. ac_ext=c
  11998. ac_cpp='$CPP $CPPFLAGS'
  11999. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12000. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12001. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12002. else
  12003. _lt_caught_CXX_error=yes
  12004. fi
  12005. ac_ext=cpp
  12006. ac_cpp='$CXXCPP $CPPFLAGS'
  12007. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12008. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12009. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12010. archive_cmds_need_lc_CXX=no
  12011. allow_undefined_flag_CXX=
  12012. always_export_symbols_CXX=no
  12013. archive_expsym_cmds_CXX=
  12014. compiler_needs_object_CXX=no
  12015. export_dynamic_flag_spec_CXX=
  12016. hardcode_direct_CXX=no
  12017. hardcode_direct_absolute_CXX=no
  12018. hardcode_libdir_flag_spec_CXX=
  12019. hardcode_libdir_flag_spec_ld_CXX=
  12020. hardcode_libdir_separator_CXX=
  12021. hardcode_minus_L_CXX=no
  12022. hardcode_shlibpath_var_CXX=unsupported
  12023. hardcode_automatic_CXX=no
  12024. inherit_rpath_CXX=no
  12025. module_cmds_CXX=
  12026. module_expsym_cmds_CXX=
  12027. link_all_deplibs_CXX=unknown
  12028. old_archive_cmds_CXX=$old_archive_cmds
  12029. reload_flag_CXX=$reload_flag
  12030. reload_cmds_CXX=$reload_cmds
  12031. no_undefined_flag_CXX=
  12032. whole_archive_flag_spec_CXX=
  12033. enable_shared_with_static_runtimes_CXX=no
  12034. # Source file extension for C++ test sources.
  12035. ac_ext=cpp
  12036. # Object file extension for compiled C++ test sources.
  12037. objext=o
  12038. objext_CXX=$objext
  12039. # No sense in running all these tests if we already determined that
  12040. # the CXX compiler isn't working. Some variables (like enable_shared)
  12041. # are currently assumed to apply to all compilers on this platform,
  12042. # and will be corrupted by setting them based on a non-working compiler.
  12043. if test "$_lt_caught_CXX_error" != yes; then
  12044. # Code to be used in simple compile tests
  12045. lt_simple_compile_test_code="int some_variable = 0;"
  12046. # Code to be used in simple link tests
  12047. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12048. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12049. # If no C compiler was specified, use CC.
  12050. LTCC=${LTCC-"$CC"}
  12051. # If no C compiler flags were specified, use CFLAGS.
  12052. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12053. # Allow CC to be a program name with arguments.
  12054. compiler=$CC
  12055. # save warnings/boilerplate of simple test code
  12056. ac_outfile=conftest.$ac_objext
  12057. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12058. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12059. _lt_compiler_boilerplate=`cat conftest.err`
  12060. $RM conftest*
  12061. ac_outfile=conftest.$ac_objext
  12062. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12063. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12064. _lt_linker_boilerplate=`cat conftest.err`
  12065. $RM -r conftest*
  12066. # Allow CC to be a program name with arguments.
  12067. lt_save_CC=$CC
  12068. lt_save_LD=$LD
  12069. lt_save_GCC=$GCC
  12070. GCC=$GXX
  12071. lt_save_with_gnu_ld=$with_gnu_ld
  12072. lt_save_path_LD=$lt_cv_path_LD
  12073. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12074. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12075. else
  12076. $as_unset lt_cv_prog_gnu_ld
  12077. fi
  12078. if test -n "${lt_cv_path_LDCXX+set}"; then
  12079. lt_cv_path_LD=$lt_cv_path_LDCXX
  12080. else
  12081. $as_unset lt_cv_path_LD
  12082. fi
  12083. test -z "${LDCXX+set}" || LD=$LDCXX
  12084. CC=${CXX-"c++"}
  12085. compiler=$CC
  12086. compiler_CXX=$CC
  12087. for cc_temp in $compiler""; do
  12088. case $cc_temp in
  12089. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12090. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12091. \-*) ;;
  12092. *) break;;
  12093. esac
  12094. done
  12095. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12096. if test -n "$compiler"; then
  12097. # We don't want -fno-exception when compiling C++ code, so set the
  12098. # no_builtin_flag separately
  12099. if test "$GXX" = yes; then
  12100. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12101. else
  12102. lt_prog_compiler_no_builtin_flag_CXX=
  12103. fi
  12104. if test "$GXX" = yes; then
  12105. # Set up default GNU C++ configuration
  12106. # Check whether --with-gnu-ld was given.
  12107. if test "${with_gnu_ld+set}" = set; then :
  12108. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12109. else
  12110. with_gnu_ld=no
  12111. fi
  12112. ac_prog=ld
  12113. if test "$GCC" = yes; then
  12114. # Check if gcc -print-prog-name=ld gives a path.
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12116. $as_echo_n "checking for ld used by $CC... " >&6; }
  12117. case $host in
  12118. *-*-mingw*)
  12119. # gcc leaves a trailing carriage return which upsets mingw
  12120. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12121. *)
  12122. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12123. esac
  12124. case $ac_prog in
  12125. # Accept absolute paths.
  12126. [\\/]* | ?:[\\/]*)
  12127. re_direlt='/[^/][^/]*/\.\./'
  12128. # Canonicalize the pathname of ld
  12129. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12130. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12131. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12132. done
  12133. test -z "$LD" && LD="$ac_prog"
  12134. ;;
  12135. "")
  12136. # If it fails, then pretend we aren't using GCC.
  12137. ac_prog=ld
  12138. ;;
  12139. *)
  12140. # If it is relative, then search for the first ld in PATH.
  12141. with_gnu_ld=unknown
  12142. ;;
  12143. esac
  12144. elif test "$with_gnu_ld" = yes; then
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12146. $as_echo_n "checking for GNU ld... " >&6; }
  12147. else
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12149. $as_echo_n "checking for non-GNU ld... " >&6; }
  12150. fi
  12151. if test "${lt_cv_path_LD+set}" = set; then :
  12152. $as_echo_n "(cached) " >&6
  12153. else
  12154. if test -z "$LD"; then
  12155. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12156. for ac_dir in $PATH; do
  12157. IFS="$lt_save_ifs"
  12158. test -z "$ac_dir" && ac_dir=.
  12159. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12160. lt_cv_path_LD="$ac_dir/$ac_prog"
  12161. # Check to see if the program is GNU ld. I'd rather use --version,
  12162. # but apparently some variants of GNU ld only accept -v.
  12163. # Break only if it was the GNU/non-GNU ld that we prefer.
  12164. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12165. *GNU* | *'with BFD'*)
  12166. test "$with_gnu_ld" != no && break
  12167. ;;
  12168. *)
  12169. test "$with_gnu_ld" != yes && break
  12170. ;;
  12171. esac
  12172. fi
  12173. done
  12174. IFS="$lt_save_ifs"
  12175. else
  12176. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12177. fi
  12178. fi
  12179. LD="$lt_cv_path_LD"
  12180. if test -n "$LD"; then
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12182. $as_echo "$LD" >&6; }
  12183. else
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12185. $as_echo "no" >&6; }
  12186. fi
  12187. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  12188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12189. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12190. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  12191. $as_echo_n "(cached) " >&6
  12192. else
  12193. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12194. case `$LD -v 2>&1 </dev/null` in
  12195. *GNU* | *'with BFD'*)
  12196. lt_cv_prog_gnu_ld=yes
  12197. ;;
  12198. *)
  12199. lt_cv_prog_gnu_ld=no
  12200. ;;
  12201. esac
  12202. fi
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12204. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12205. with_gnu_ld=$lt_cv_prog_gnu_ld
  12206. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12207. # archiving commands below assume that GNU ld is being used.
  12208. if test "$with_gnu_ld" = yes; then
  12209. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12210. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12211. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12212. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12213. # If archive_cmds runs LD, not CC, wlarc should be empty
  12214. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12215. # investigate it a little bit more. (MM)
  12216. wlarc='${wl}'
  12217. # ancient GNU ld didn't support --whole-archive et. al.
  12218. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12219. $GREP 'no-whole-archive' > /dev/null; then
  12220. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12221. else
  12222. whole_archive_flag_spec_CXX=
  12223. fi
  12224. else
  12225. with_gnu_ld=no
  12226. wlarc=
  12227. # A generic and very simple default shared library creation
  12228. # command for GNU C++ for the case where it uses the native
  12229. # linker, instead of GNU ld. If possible, this setting should
  12230. # overridden to take advantage of the native linker features on
  12231. # the platform it is being used on.
  12232. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12233. fi
  12234. # Commands to make compiler produce verbose output that lists
  12235. # what "hidden" libraries, object files and flags are used when
  12236. # linking a shared library.
  12237. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12238. else
  12239. GXX=no
  12240. with_gnu_ld=no
  12241. wlarc=
  12242. fi
  12243. # PORTME: fill in a description of your system's C++ link characteristics
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12245. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12246. ld_shlibs_CXX=yes
  12247. case $host_os in
  12248. aix3*)
  12249. # FIXME: insert proper C++ library support
  12250. ld_shlibs_CXX=no
  12251. ;;
  12252. aix[4-9]*)
  12253. if test "$host_cpu" = ia64; then
  12254. # On IA64, the linker does run time linking by default, so we don't
  12255. # have to do anything special.
  12256. aix_use_runtimelinking=no
  12257. exp_sym_flag='-Bexport'
  12258. no_entry_flag=""
  12259. else
  12260. aix_use_runtimelinking=no
  12261. # Test if we are trying to use run time linking or normal
  12262. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12263. # need to do runtime linking.
  12264. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12265. for ld_flag in $LDFLAGS; do
  12266. case $ld_flag in
  12267. *-brtl*)
  12268. aix_use_runtimelinking=yes
  12269. break
  12270. ;;
  12271. esac
  12272. done
  12273. ;;
  12274. esac
  12275. exp_sym_flag='-bexport'
  12276. no_entry_flag='-bnoentry'
  12277. fi
  12278. # When large executables or shared objects are built, AIX ld can
  12279. # have problems creating the table of contents. If linking a library
  12280. # or program results in "error TOC overflow" add -mminimal-toc to
  12281. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12282. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12283. archive_cmds_CXX=''
  12284. hardcode_direct_CXX=yes
  12285. hardcode_direct_absolute_CXX=yes
  12286. hardcode_libdir_separator_CXX=':'
  12287. link_all_deplibs_CXX=yes
  12288. file_list_spec_CXX='${wl}-f,'
  12289. if test "$GXX" = yes; then
  12290. case $host_os in aix4.[012]|aix4.[012].*)
  12291. # We only want to do this on AIX 4.2 and lower, the check
  12292. # below for broken collect2 doesn't work under 4.3+
  12293. collect2name=`${CC} -print-prog-name=collect2`
  12294. if test -f "$collect2name" &&
  12295. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12296. then
  12297. # We have reworked collect2
  12298. :
  12299. else
  12300. # We have old collect2
  12301. hardcode_direct_CXX=unsupported
  12302. # It fails to find uninstalled libraries when the uninstalled
  12303. # path is not listed in the libpath. Setting hardcode_minus_L
  12304. # to unsupported forces relinking
  12305. hardcode_minus_L_CXX=yes
  12306. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12307. hardcode_libdir_separator_CXX=
  12308. fi
  12309. esac
  12310. shared_flag='-shared'
  12311. if test "$aix_use_runtimelinking" = yes; then
  12312. shared_flag="$shared_flag "'${wl}-G'
  12313. fi
  12314. else
  12315. # not using gcc
  12316. if test "$host_cpu" = ia64; then
  12317. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12318. # chokes on -Wl,-G. The following line is correct:
  12319. shared_flag='-G'
  12320. else
  12321. if test "$aix_use_runtimelinking" = yes; then
  12322. shared_flag='${wl}-G'
  12323. else
  12324. shared_flag='${wl}-bM:SRE'
  12325. fi
  12326. fi
  12327. fi
  12328. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  12329. # It seems that -bexpall does not export symbols beginning with
  12330. # underscore (_), so it is better to generate a list of symbols to
  12331. # export.
  12332. always_export_symbols_CXX=yes
  12333. if test "$aix_use_runtimelinking" = yes; then
  12334. # Warning - without using the other runtime loading flags (-brtl),
  12335. # -berok will link without error, but may produce a broken library.
  12336. allow_undefined_flag_CXX='-berok'
  12337. # Determine the default libpath from the value encoded in an empty
  12338. # executable.
  12339. if test x$gcc_no_link = xyes; then
  12340. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12341. fi
  12342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12343. /* end confdefs.h. */
  12344. int
  12345. main ()
  12346. {
  12347. ;
  12348. return 0;
  12349. }
  12350. _ACEOF
  12351. if ac_fn_cxx_try_link "$LINENO"; then :
  12352. lt_aix_libpath_sed='
  12353. /Import File Strings/,/^$/ {
  12354. /^0/ {
  12355. s/^0 *\(.*\)$/\1/
  12356. p
  12357. }
  12358. }'
  12359. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12360. # Check for a 64-bit object if we didn't find anything.
  12361. if test -z "$aix_libpath"; then
  12362. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12363. fi
  12364. fi
  12365. rm -f core conftest.err conftest.$ac_objext \
  12366. conftest$ac_exeext conftest.$ac_ext
  12367. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12368. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12369. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12370. else
  12371. if test "$host_cpu" = ia64; then
  12372. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  12373. allow_undefined_flag_CXX="-z nodefs"
  12374. 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"
  12375. else
  12376. # Determine the default libpath from the value encoded in an
  12377. # empty executable.
  12378. if test x$gcc_no_link = xyes; then
  12379. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12380. fi
  12381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12382. /* end confdefs.h. */
  12383. int
  12384. main ()
  12385. {
  12386. ;
  12387. return 0;
  12388. }
  12389. _ACEOF
  12390. if ac_fn_cxx_try_link "$LINENO"; then :
  12391. lt_aix_libpath_sed='
  12392. /Import File Strings/,/^$/ {
  12393. /^0/ {
  12394. s/^0 *\(.*\)$/\1/
  12395. p
  12396. }
  12397. }'
  12398. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12399. # Check for a 64-bit object if we didn't find anything.
  12400. if test -z "$aix_libpath"; then
  12401. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12402. fi
  12403. fi
  12404. rm -f core conftest.err conftest.$ac_objext \
  12405. conftest$ac_exeext conftest.$ac_ext
  12406. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12407. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12408. # Warning - without using the other run time loading flags,
  12409. # -berok will link without error, but may produce a broken library.
  12410. no_undefined_flag_CXX=' ${wl}-bernotok'
  12411. allow_undefined_flag_CXX=' ${wl}-berok'
  12412. if test "$with_gnu_ld" = yes; then
  12413. # We only use this code for GNU lds that support --whole-archive.
  12414. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12415. else
  12416. # Exported symbols can be pulled into shared objects from archives
  12417. whole_archive_flag_spec_CXX='$convenience'
  12418. fi
  12419. archive_cmds_need_lc_CXX=yes
  12420. # This is similar to how AIX traditionally builds its shared
  12421. # libraries.
  12422. 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'
  12423. fi
  12424. fi
  12425. ;;
  12426. beos*)
  12427. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12428. allow_undefined_flag_CXX=unsupported
  12429. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12430. # support --undefined. This deserves some investigation. FIXME
  12431. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12432. else
  12433. ld_shlibs_CXX=no
  12434. fi
  12435. ;;
  12436. chorus*)
  12437. case $cc_basename in
  12438. *)
  12439. # FIXME: insert proper C++ library support
  12440. ld_shlibs_CXX=no
  12441. ;;
  12442. esac
  12443. ;;
  12444. cygwin* | mingw* | pw32* | cegcc*)
  12445. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12446. # as there is no search path for DLLs.
  12447. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12448. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  12449. allow_undefined_flag_CXX=unsupported
  12450. always_export_symbols_CXX=no
  12451. enable_shared_with_static_runtimes_CXX=yes
  12452. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12453. 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'
  12454. # If the export-symbols file already is a .def file (1st line
  12455. # is EXPORTS), use it as is; otherwise, prepend...
  12456. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12457. cp $export_symbols $output_objdir/$soname.def;
  12458. else
  12459. echo EXPORTS > $output_objdir/$soname.def;
  12460. cat $export_symbols >> $output_objdir/$soname.def;
  12461. fi~
  12462. $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'
  12463. else
  12464. ld_shlibs_CXX=no
  12465. fi
  12466. ;;
  12467. darwin* | rhapsody*)
  12468. archive_cmds_need_lc_CXX=no
  12469. hardcode_direct_CXX=no
  12470. hardcode_automatic_CXX=yes
  12471. hardcode_shlibpath_var_CXX=unsupported
  12472. if test "$lt_cv_ld_force_load" = "yes"; then
  12473. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12474. else
  12475. whole_archive_flag_spec_CXX=''
  12476. fi
  12477. link_all_deplibs_CXX=yes
  12478. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  12479. case $cc_basename in
  12480. ifort*) _lt_dar_can_shared=yes ;;
  12481. *) _lt_dar_can_shared=$GCC ;;
  12482. esac
  12483. if test "$_lt_dar_can_shared" = "yes"; then
  12484. output_verbose_link_cmd=func_echo_all
  12485. 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}"
  12486. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12487. 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}"
  12488. 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}"
  12489. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12490. 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}"
  12491. 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}"
  12492. fi
  12493. else
  12494. ld_shlibs_CXX=no
  12495. fi
  12496. ;;
  12497. dgux*)
  12498. case $cc_basename in
  12499. ec++*)
  12500. # FIXME: insert proper C++ library support
  12501. ld_shlibs_CXX=no
  12502. ;;
  12503. ghcx*)
  12504. # Green Hills C++ Compiler
  12505. # FIXME: insert proper C++ library support
  12506. ld_shlibs_CXX=no
  12507. ;;
  12508. *)
  12509. # FIXME: insert proper C++ library support
  12510. ld_shlibs_CXX=no
  12511. ;;
  12512. esac
  12513. ;;
  12514. freebsd2.*)
  12515. # C++ shared libraries reported to be fairly broken before
  12516. # switch to ELF
  12517. ld_shlibs_CXX=no
  12518. ;;
  12519. freebsd-elf*)
  12520. archive_cmds_need_lc_CXX=no
  12521. ;;
  12522. freebsd* | dragonfly*)
  12523. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12524. # conventions
  12525. ld_shlibs_CXX=yes
  12526. ;;
  12527. gnu*)
  12528. ;;
  12529. haiku*)
  12530. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12531. link_all_deplibs_CXX=yes
  12532. ;;
  12533. hpux9*)
  12534. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12535. hardcode_libdir_separator_CXX=:
  12536. export_dynamic_flag_spec_CXX='${wl}-E'
  12537. hardcode_direct_CXX=yes
  12538. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12539. # but as the default
  12540. # location of the library.
  12541. case $cc_basename in
  12542. CC*)
  12543. # FIXME: insert proper C++ library support
  12544. ld_shlibs_CXX=no
  12545. ;;
  12546. aCC*)
  12547. 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'
  12548. # Commands to make compiler produce verbose output that lists
  12549. # what "hidden" libraries, object files and flags are used when
  12550. # linking a shared library.
  12551. #
  12552. # There doesn't appear to be a way to prevent this compiler from
  12553. # explicitly linking system object files so we need to strip them
  12554. # from the output so that they don't get included in the library
  12555. # dependencies.
  12556. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12557. ;;
  12558. *)
  12559. if test "$GXX" = yes; then
  12560. 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'
  12561. else
  12562. # FIXME: insert proper C++ library support
  12563. ld_shlibs_CXX=no
  12564. fi
  12565. ;;
  12566. esac
  12567. ;;
  12568. hpux10*|hpux11*)
  12569. if test $with_gnu_ld = no; then
  12570. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12571. hardcode_libdir_separator_CXX=:
  12572. case $host_cpu in
  12573. hppa*64*|ia64*)
  12574. ;;
  12575. *)
  12576. export_dynamic_flag_spec_CXX='${wl}-E'
  12577. ;;
  12578. esac
  12579. fi
  12580. case $host_cpu in
  12581. hppa*64*|ia64*)
  12582. hardcode_direct_CXX=no
  12583. hardcode_shlibpath_var_CXX=no
  12584. ;;
  12585. *)
  12586. hardcode_direct_CXX=yes
  12587. hardcode_direct_absolute_CXX=yes
  12588. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12589. # but as the default
  12590. # location of the library.
  12591. ;;
  12592. esac
  12593. case $cc_basename in
  12594. CC*)
  12595. # FIXME: insert proper C++ library support
  12596. ld_shlibs_CXX=no
  12597. ;;
  12598. aCC*)
  12599. case $host_cpu in
  12600. hppa*64*)
  12601. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12602. ;;
  12603. ia64*)
  12604. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12605. ;;
  12606. *)
  12607. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12608. ;;
  12609. esac
  12610. # Commands to make compiler produce verbose output that lists
  12611. # what "hidden" libraries, object files and flags are used when
  12612. # linking a shared library.
  12613. #
  12614. # There doesn't appear to be a way to prevent this compiler from
  12615. # explicitly linking system object files so we need to strip them
  12616. # from the output so that they don't get included in the library
  12617. # dependencies.
  12618. 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; func_echo_all "$list"'
  12619. ;;
  12620. *)
  12621. if test "$GXX" = yes; then
  12622. if test $with_gnu_ld = no; then
  12623. case $host_cpu in
  12624. hppa*64*)
  12625. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12626. ;;
  12627. ia64*)
  12628. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12629. ;;
  12630. *)
  12631. 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'
  12632. ;;
  12633. esac
  12634. fi
  12635. else
  12636. # FIXME: insert proper C++ library support
  12637. ld_shlibs_CXX=no
  12638. fi
  12639. ;;
  12640. esac
  12641. ;;
  12642. interix[3-9]*)
  12643. hardcode_direct_CXX=no
  12644. hardcode_shlibpath_var_CXX=no
  12645. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12646. export_dynamic_flag_spec_CXX='${wl}-E'
  12647. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12648. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12649. # default) and relocated if they conflict, which is a slow very memory
  12650. # consuming and fragmenting process. To avoid this, we pick a random,
  12651. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12652. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12653. 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'
  12654. 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'
  12655. ;;
  12656. irix5* | irix6*)
  12657. case $cc_basename in
  12658. CC*)
  12659. # SGI C++
  12660. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12661. # Archives containing C++ object files must be created using
  12662. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12663. # necessary to make sure instantiated templates are included
  12664. # in the archive.
  12665. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12666. ;;
  12667. *)
  12668. if test "$GXX" = yes; then
  12669. if test "$with_gnu_ld" = no; then
  12670. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12671. else
  12672. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  12673. fi
  12674. fi
  12675. link_all_deplibs_CXX=yes
  12676. ;;
  12677. esac
  12678. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12679. hardcode_libdir_separator_CXX=:
  12680. inherit_rpath_CXX=yes
  12681. ;;
  12682. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12683. case $cc_basename in
  12684. KCC*)
  12685. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12686. # KCC will only create a shared library if the output file
  12687. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12688. # to its proper name (with version) after linking.
  12689. 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'
  12690. 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'
  12691. # Commands to make compiler produce verbose output that lists
  12692. # what "hidden" libraries, object files and flags are used when
  12693. # linking a shared library.
  12694. #
  12695. # There doesn't appear to be a way to prevent this compiler from
  12696. # explicitly linking system object files so we need to strip them
  12697. # from the output so that they don't get included in the library
  12698. # dependencies.
  12699. 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; func_echo_all "$list"'
  12700. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12701. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12702. # Archives containing C++ object files must be created using
  12703. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12704. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12705. ;;
  12706. icpc* | ecpc* )
  12707. # Intel C++
  12708. with_gnu_ld=yes
  12709. # version 8.0 and above of icpc choke on multiply defined symbols
  12710. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12711. # earlier do not add the objects themselves.
  12712. case `$CC -V 2>&1` in
  12713. *"Version 7."*)
  12714. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12715. 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'
  12716. ;;
  12717. *) # Version 8.0 or newer
  12718. tmp_idyn=
  12719. case $host_cpu in
  12720. ia64*) tmp_idyn=' -i_dynamic';;
  12721. esac
  12722. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12723. 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'
  12724. ;;
  12725. esac
  12726. archive_cmds_need_lc_CXX=no
  12727. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12728. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12729. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12730. ;;
  12731. pgCC* | pgcpp*)
  12732. # Portland Group C++ compiler
  12733. case `$CC -V` in
  12734. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12735. prelink_cmds_CXX='tpldir=Template.dir~
  12736. rm -rf $tpldir~
  12737. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12738. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  12739. old_archive_cmds_CXX='tpldir=Template.dir~
  12740. rm -rf $tpldir~
  12741. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12742. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  12743. $RANLIB $oldlib'
  12744. archive_cmds_CXX='tpldir=Template.dir~
  12745. rm -rf $tpldir~
  12746. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12747. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12748. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12749. rm -rf $tpldir~
  12750. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12751. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  12752. ;;
  12753. *) # Version 6 and above use weak symbols
  12754. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12755. 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'
  12756. ;;
  12757. esac
  12758. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12759. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12760. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12761. ;;
  12762. cxx*)
  12763. # Compaq C++
  12764. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12765. 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'
  12766. runpath_var=LD_RUN_PATH
  12767. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12768. hardcode_libdir_separator_CXX=:
  12769. # Commands to make compiler produce verbose output that lists
  12770. # what "hidden" libraries, object files and flags are used when
  12771. # linking a shared library.
  12772. #
  12773. # There doesn't appear to be a way to prevent this compiler from
  12774. # explicitly linking system object files so we need to strip them
  12775. # from the output so that they don't get included in the library
  12776. # dependencies.
  12777. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
  12778. ;;
  12779. xl* | mpixl* | bgxl*)
  12780. # IBM XL 8.0 on PPC, with GNU ld
  12781. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12782. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12783. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12784. if test "x$supports_anon_versioning" = xyes; then
  12785. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12786. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12787. echo "local: *; };" >> $output_objdir/$libname.ver~
  12788. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12789. fi
  12790. ;;
  12791. *)
  12792. case `$CC -V 2>&1 | sed 5q` in
  12793. *Sun\ C*)
  12794. # Sun C++ 5.9
  12795. no_undefined_flag_CXX=' -zdefs'
  12796. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12797. 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'
  12798. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12799. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12800. compiler_needs_object_CXX=yes
  12801. # Not sure whether something based on
  12802. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12803. # would be better.
  12804. output_verbose_link_cmd='func_echo_all'
  12805. # Archives containing C++ object files must be created using
  12806. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12807. # necessary to make sure instantiated templates are included
  12808. # in the archive.
  12809. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12810. ;;
  12811. esac
  12812. ;;
  12813. esac
  12814. ;;
  12815. lynxos*)
  12816. # FIXME: insert proper C++ library support
  12817. ld_shlibs_CXX=no
  12818. ;;
  12819. m88k*)
  12820. # FIXME: insert proper C++ library support
  12821. ld_shlibs_CXX=no
  12822. ;;
  12823. mvs*)
  12824. case $cc_basename in
  12825. cxx*)
  12826. # FIXME: insert proper C++ library support
  12827. ld_shlibs_CXX=no
  12828. ;;
  12829. *)
  12830. # FIXME: insert proper C++ library support
  12831. ld_shlibs_CXX=no
  12832. ;;
  12833. esac
  12834. ;;
  12835. netbsd*)
  12836. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12837. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12838. wlarc=
  12839. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12840. hardcode_direct_CXX=yes
  12841. hardcode_shlibpath_var_CXX=no
  12842. fi
  12843. # Workaround some broken pre-1.5 toolchains
  12844. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12845. ;;
  12846. *nto* | *qnx*)
  12847. ld_shlibs_CXX=yes
  12848. ;;
  12849. openbsd2*)
  12850. # C++ shared libraries are fairly broken
  12851. ld_shlibs_CXX=no
  12852. ;;
  12853. openbsd*)
  12854. if test -f /usr/libexec/ld.so; then
  12855. hardcode_direct_CXX=yes
  12856. hardcode_shlibpath_var_CXX=no
  12857. hardcode_direct_absolute_CXX=yes
  12858. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12859. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12860. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12861. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12862. export_dynamic_flag_spec_CXX='${wl}-E'
  12863. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12864. fi
  12865. output_verbose_link_cmd=func_echo_all
  12866. else
  12867. ld_shlibs_CXX=no
  12868. fi
  12869. ;;
  12870. osf3* | osf4* | osf5*)
  12871. case $cc_basename in
  12872. KCC*)
  12873. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12874. # KCC will only create a shared library if the output file
  12875. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12876. # to its proper name (with version) after linking.
  12877. 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'
  12878. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12879. hardcode_libdir_separator_CXX=:
  12880. # Archives containing C++ object files must be created using
  12881. # the KAI C++ compiler.
  12882. case $host in
  12883. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12884. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12885. esac
  12886. ;;
  12887. RCC*)
  12888. # Rational C++ 2.4.1
  12889. # FIXME: insert proper C++ library support
  12890. ld_shlibs_CXX=no
  12891. ;;
  12892. cxx*)
  12893. case $host in
  12894. osf3*)
  12895. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12896. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12897. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12898. ;;
  12899. *)
  12900. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12901. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12902. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12903. echo "-hidden">> $lib.exp~
  12904. $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~
  12905. $RM $lib.exp'
  12906. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12907. ;;
  12908. esac
  12909. hardcode_libdir_separator_CXX=:
  12910. # Commands to make compiler produce verbose output that lists
  12911. # what "hidden" libraries, object files and flags are used when
  12912. # linking a shared library.
  12913. #
  12914. # There doesn't appear to be a way to prevent this compiler from
  12915. # explicitly linking system object files so we need to strip them
  12916. # from the output so that they don't get included in the library
  12917. # dependencies.
  12918. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
  12919. ;;
  12920. *)
  12921. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12922. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12923. case $host in
  12924. osf3*)
  12925. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12926. ;;
  12927. *)
  12928. 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12929. ;;
  12930. esac
  12931. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12932. hardcode_libdir_separator_CXX=:
  12933. # Commands to make compiler produce verbose output that lists
  12934. # what "hidden" libraries, object files and flags are used when
  12935. # linking a shared library.
  12936. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12937. else
  12938. # FIXME: insert proper C++ library support
  12939. ld_shlibs_CXX=no
  12940. fi
  12941. ;;
  12942. esac
  12943. ;;
  12944. psos*)
  12945. # FIXME: insert proper C++ library support
  12946. ld_shlibs_CXX=no
  12947. ;;
  12948. sunos4*)
  12949. case $cc_basename in
  12950. CC*)
  12951. # Sun C++ 4.x
  12952. # FIXME: insert proper C++ library support
  12953. ld_shlibs_CXX=no
  12954. ;;
  12955. lcc*)
  12956. # Lucid
  12957. # FIXME: insert proper C++ library support
  12958. ld_shlibs_CXX=no
  12959. ;;
  12960. *)
  12961. # FIXME: insert proper C++ library support
  12962. ld_shlibs_CXX=no
  12963. ;;
  12964. esac
  12965. ;;
  12966. solaris*)
  12967. case $cc_basename in
  12968. CC*)
  12969. # Sun C++ 4.2, 5.x and Centerline C++
  12970. archive_cmds_need_lc_CXX=yes
  12971. no_undefined_flag_CXX=' -zdefs'
  12972. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12973. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12974. $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'
  12975. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12976. hardcode_shlibpath_var_CXX=no
  12977. case $host_os in
  12978. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12979. *)
  12980. # The compiler driver will combine and reorder linker options,
  12981. # but understands `-z linker_flag'.
  12982. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12983. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12984. ;;
  12985. esac
  12986. link_all_deplibs_CXX=yes
  12987. output_verbose_link_cmd='func_echo_all'
  12988. # Archives containing C++ object files must be created using
  12989. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12990. # necessary to make sure instantiated templates are included
  12991. # in the archive.
  12992. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12993. ;;
  12994. gcx*)
  12995. # Green Hills C++ Compiler
  12996. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12997. # The C++ compiler must be used to create the archive.
  12998. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12999. ;;
  13000. *)
  13001. # GNU C++ compiler with Solaris linker
  13002. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13003. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  13004. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13005. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13006. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13007. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13008. # Commands to make compiler produce verbose output that lists
  13009. # what "hidden" libraries, object files and flags are used when
  13010. # linking a shared library.
  13011. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13012. else
  13013. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  13014. # platform.
  13015. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13016. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13017. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13018. # Commands to make compiler produce verbose output that lists
  13019. # what "hidden" libraries, object files and flags are used when
  13020. # linking a shared library.
  13021. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13022. fi
  13023. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  13024. case $host_os in
  13025. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13026. *)
  13027. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13028. ;;
  13029. esac
  13030. fi
  13031. ;;
  13032. esac
  13033. ;;
  13034. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13035. no_undefined_flag_CXX='${wl}-z,text'
  13036. archive_cmds_need_lc_CXX=no
  13037. hardcode_shlibpath_var_CXX=no
  13038. runpath_var='LD_RUN_PATH'
  13039. case $cc_basename in
  13040. CC*)
  13041. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13042. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13043. ;;
  13044. *)
  13045. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13046. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13047. ;;
  13048. esac
  13049. ;;
  13050. sysv5* | sco3.2v5* | sco5v6*)
  13051. # Note: We can NOT use -z defs as we might desire, because we do not
  13052. # link with -lc, and that would cause any symbols used from libc to
  13053. # always be unresolved, which means just about no library would
  13054. # ever link correctly. If we're not using GNU ld we use -z text
  13055. # though, which does catch some bad symbols but isn't as heavy-handed
  13056. # as -z defs.
  13057. no_undefined_flag_CXX='${wl}-z,text'
  13058. allow_undefined_flag_CXX='${wl}-z,nodefs'
  13059. archive_cmds_need_lc_CXX=no
  13060. hardcode_shlibpath_var_CXX=no
  13061. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  13062. hardcode_libdir_separator_CXX=':'
  13063. link_all_deplibs_CXX=yes
  13064. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  13065. runpath_var='LD_RUN_PATH'
  13066. case $cc_basename in
  13067. CC*)
  13068. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13069. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13070. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13071. '"$old_archive_cmds_CXX"
  13072. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13073. '"$reload_cmds_CXX"
  13074. ;;
  13075. *)
  13076. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13077. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13078. ;;
  13079. esac
  13080. ;;
  13081. tandem*)
  13082. case $cc_basename in
  13083. NCC*)
  13084. # NonStop-UX NCC 3.20
  13085. # FIXME: insert proper C++ library support
  13086. ld_shlibs_CXX=no
  13087. ;;
  13088. *)
  13089. # FIXME: insert proper C++ library support
  13090. ld_shlibs_CXX=no
  13091. ;;
  13092. esac
  13093. ;;
  13094. vxworks*)
  13095. # FIXME: insert proper C++ library support
  13096. ld_shlibs_CXX=no
  13097. ;;
  13098. *)
  13099. # FIXME: insert proper C++ library support
  13100. ld_shlibs_CXX=no
  13101. ;;
  13102. esac
  13103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13104. $as_echo "$ld_shlibs_CXX" >&6; }
  13105. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13106. GCC_CXX="$GXX"
  13107. LD_CXX="$LD"
  13108. ## CAVEAT EMPTOR:
  13109. ## There is no encapsulation within the following macros, do not change
  13110. ## the running order or otherwise move them around unless you know exactly
  13111. ## what you are doing...
  13112. # Dependencies to place before and after the object being linked:
  13113. predep_objects_CXX=
  13114. postdep_objects_CXX=
  13115. predeps_CXX=
  13116. postdeps_CXX=
  13117. compiler_lib_search_path_CXX=
  13118. cat > conftest.$ac_ext <<_LT_EOF
  13119. class Foo
  13120. {
  13121. public:
  13122. Foo (void) { a = 0; }
  13123. private:
  13124. int a;
  13125. };
  13126. _LT_EOF
  13127. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13128. (eval $ac_compile) 2>&5
  13129. ac_status=$?
  13130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13131. test $ac_status = 0; }; then
  13132. # Parse the compiler output and extract the necessary
  13133. # objects, libraries and library flags.
  13134. # Sentinel used to keep track of whether or not we are before
  13135. # the conftest object file.
  13136. pre_test_object_deps_done=no
  13137. for p in `eval "$output_verbose_link_cmd"`; do
  13138. case $p in
  13139. -L* | -R* | -l*)
  13140. # Some compilers place space between "-{L,R}" and the path.
  13141. # Remove the space.
  13142. if test $p = "-L" ||
  13143. test $p = "-R"; then
  13144. prev=$p
  13145. continue
  13146. else
  13147. prev=
  13148. fi
  13149. if test "$pre_test_object_deps_done" = no; then
  13150. case $p in
  13151. -L* | -R*)
  13152. # Internal compiler library paths should come after those
  13153. # provided the user. The postdeps already come after the
  13154. # user supplied libs so there is no need to process them.
  13155. if test -z "$compiler_lib_search_path_CXX"; then
  13156. compiler_lib_search_path_CXX="${prev}${p}"
  13157. else
  13158. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  13159. fi
  13160. ;;
  13161. # The "-l" case would never come before the object being
  13162. # linked, so don't bother handling this case.
  13163. esac
  13164. else
  13165. if test -z "$postdeps_CXX"; then
  13166. postdeps_CXX="${prev}${p}"
  13167. else
  13168. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  13169. fi
  13170. fi
  13171. ;;
  13172. *.$objext)
  13173. # This assumes that the test object file only shows up
  13174. # once in the compiler output.
  13175. if test "$p" = "conftest.$objext"; then
  13176. pre_test_object_deps_done=yes
  13177. continue
  13178. fi
  13179. if test "$pre_test_object_deps_done" = no; then
  13180. if test -z "$predep_objects_CXX"; then
  13181. predep_objects_CXX="$p"
  13182. else
  13183. predep_objects_CXX="$predep_objects_CXX $p"
  13184. fi
  13185. else
  13186. if test -z "$postdep_objects_CXX"; then
  13187. postdep_objects_CXX="$p"
  13188. else
  13189. postdep_objects_CXX="$postdep_objects_CXX $p"
  13190. fi
  13191. fi
  13192. ;;
  13193. *) ;; # Ignore the rest.
  13194. esac
  13195. done
  13196. # Clean up.
  13197. rm -f a.out a.exe
  13198. else
  13199. echo "libtool.m4: error: problem compiling CXX test program"
  13200. fi
  13201. $RM -f confest.$objext
  13202. # PORTME: override above test on systems where it is broken
  13203. case $host_os in
  13204. interix[3-9]*)
  13205. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13206. # hack all around it, let's just trust "g++" to DTRT.
  13207. predep_objects_CXX=
  13208. postdep_objects_CXX=
  13209. postdeps_CXX=
  13210. ;;
  13211. linux*)
  13212. case `$CC -V 2>&1 | sed 5q` in
  13213. *Sun\ C*)
  13214. # Sun C++ 5.9
  13215. # The more standards-conforming stlport4 library is
  13216. # incompatible with the Cstd library. Avoid specifying
  13217. # it if it's in CXXFLAGS. Ignore libCrun as
  13218. # -library=stlport4 depends on it.
  13219. case " $CXX $CXXFLAGS " in
  13220. *" -library=stlport4 "*)
  13221. solaris_use_stlport4=yes
  13222. ;;
  13223. esac
  13224. if test "$solaris_use_stlport4" != yes; then
  13225. postdeps_CXX='-library=Cstd -library=Crun'
  13226. fi
  13227. ;;
  13228. esac
  13229. ;;
  13230. solaris*)
  13231. case $cc_basename in
  13232. CC*)
  13233. # The more standards-conforming stlport4 library is
  13234. # incompatible with the Cstd library. Avoid specifying
  13235. # it if it's in CXXFLAGS. Ignore libCrun as
  13236. # -library=stlport4 depends on it.
  13237. case " $CXX $CXXFLAGS " in
  13238. *" -library=stlport4 "*)
  13239. solaris_use_stlport4=yes
  13240. ;;
  13241. esac
  13242. # Adding this requires a known-good setup of shared libraries for
  13243. # Sun compiler versions before 5.6, else PIC objects from an old
  13244. # archive will be linked into the output, leading to subtle bugs.
  13245. if test "$solaris_use_stlport4" != yes; then
  13246. postdeps_CXX='-library=Cstd -library=Crun'
  13247. fi
  13248. ;;
  13249. esac
  13250. ;;
  13251. esac
  13252. case " $postdeps_CXX " in
  13253. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13254. esac
  13255. compiler_lib_search_dirs_CXX=
  13256. if test -n "${compiler_lib_search_path_CXX}"; then
  13257. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  13258. fi
  13259. lt_prog_compiler_wl_CXX=
  13260. lt_prog_compiler_pic_CXX=
  13261. lt_prog_compiler_static_CXX=
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13263. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13264. # C++ specific cases for pic, static, wl, etc.
  13265. if test "$GXX" = yes; then
  13266. lt_prog_compiler_wl_CXX='-Wl,'
  13267. lt_prog_compiler_static_CXX='-static'
  13268. case $host_os in
  13269. aix*)
  13270. # All AIX code is PIC.
  13271. if test "$host_cpu" = ia64; then
  13272. # AIX 5 now supports IA64 processor
  13273. lt_prog_compiler_static_CXX='-Bstatic'
  13274. fi
  13275. lt_prog_compiler_pic_CXX='-fPIC'
  13276. ;;
  13277. amigaos*)
  13278. case $host_cpu in
  13279. powerpc)
  13280. # see comment about AmigaOS4 .so support
  13281. lt_prog_compiler_pic_CXX='-fPIC'
  13282. ;;
  13283. m68k)
  13284. # FIXME: we need at least 68020 code to build shared libraries, but
  13285. # adding the `-m68020' flag to GCC prevents building anything better,
  13286. # like `-m68040'.
  13287. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13288. ;;
  13289. esac
  13290. ;;
  13291. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13292. # PIC is the default for these OSes.
  13293. ;;
  13294. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13295. # This hack is so that the source file can tell whether it is being
  13296. # built for inclusion in a dll (and should export symbols for example).
  13297. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13298. # (--disable-auto-import) libraries
  13299. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13300. ;;
  13301. darwin* | rhapsody*)
  13302. # PIC is the default on this platform
  13303. # Common symbols not allowed in MH_DYLIB files
  13304. lt_prog_compiler_pic_CXX='-fno-common'
  13305. ;;
  13306. *djgpp*)
  13307. # DJGPP does not support shared libraries at all
  13308. lt_prog_compiler_pic_CXX=
  13309. ;;
  13310. haiku*)
  13311. # PIC is the default for Haiku.
  13312. # The "-static" flag exists, but is broken.
  13313. lt_prog_compiler_static_CXX=
  13314. ;;
  13315. interix[3-9]*)
  13316. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13317. # Instead, we relocate shared libraries at runtime.
  13318. ;;
  13319. sysv4*MP*)
  13320. if test -d /usr/nec; then
  13321. lt_prog_compiler_pic_CXX=-Kconform_pic
  13322. fi
  13323. ;;
  13324. hpux*)
  13325. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13326. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13327. # sets the default TLS model and affects inlining.
  13328. case $host_cpu in
  13329. hppa*64*)
  13330. ;;
  13331. *)
  13332. lt_prog_compiler_pic_CXX='-fPIC'
  13333. ;;
  13334. esac
  13335. ;;
  13336. *qnx* | *nto*)
  13337. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13338. # it will coredump.
  13339. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13340. ;;
  13341. *)
  13342. lt_prog_compiler_pic_CXX='-fPIC'
  13343. ;;
  13344. esac
  13345. else
  13346. case $host_os in
  13347. aix[4-9]*)
  13348. # All AIX code is PIC.
  13349. if test "$host_cpu" = ia64; then
  13350. # AIX 5 now supports IA64 processor
  13351. lt_prog_compiler_static_CXX='-Bstatic'
  13352. else
  13353. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13354. fi
  13355. ;;
  13356. chorus*)
  13357. case $cc_basename in
  13358. cxch68*)
  13359. # Green Hills C++ Compiler
  13360. # _LT_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"
  13361. ;;
  13362. esac
  13363. ;;
  13364. dgux*)
  13365. case $cc_basename in
  13366. ec++*)
  13367. lt_prog_compiler_pic_CXX='-KPIC'
  13368. ;;
  13369. ghcx*)
  13370. # Green Hills C++ Compiler
  13371. lt_prog_compiler_pic_CXX='-pic'
  13372. ;;
  13373. *)
  13374. ;;
  13375. esac
  13376. ;;
  13377. freebsd* | dragonfly*)
  13378. # FreeBSD uses GNU C++
  13379. ;;
  13380. hpux9* | hpux10* | hpux11*)
  13381. case $cc_basename in
  13382. CC*)
  13383. lt_prog_compiler_wl_CXX='-Wl,'
  13384. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13385. if test "$host_cpu" != ia64; then
  13386. lt_prog_compiler_pic_CXX='+Z'
  13387. fi
  13388. ;;
  13389. aCC*)
  13390. lt_prog_compiler_wl_CXX='-Wl,'
  13391. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13392. case $host_cpu in
  13393. hppa*64*|ia64*)
  13394. # +Z the default
  13395. ;;
  13396. *)
  13397. lt_prog_compiler_pic_CXX='+Z'
  13398. ;;
  13399. esac
  13400. ;;
  13401. *)
  13402. ;;
  13403. esac
  13404. ;;
  13405. interix*)
  13406. # This is c89, which is MS Visual C++ (no shared libs)
  13407. # Anyone wants to do a port?
  13408. ;;
  13409. irix5* | irix6* | nonstopux*)
  13410. case $cc_basename in
  13411. CC*)
  13412. lt_prog_compiler_wl_CXX='-Wl,'
  13413. lt_prog_compiler_static_CXX='-non_shared'
  13414. # CC pic flag -KPIC is the default.
  13415. ;;
  13416. *)
  13417. ;;
  13418. esac
  13419. ;;
  13420. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13421. case $cc_basename in
  13422. KCC*)
  13423. # KAI C++ Compiler
  13424. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13425. lt_prog_compiler_pic_CXX='-fPIC'
  13426. ;;
  13427. ecpc* )
  13428. # old Intel C++ for x86_64 which still supported -KPIC.
  13429. lt_prog_compiler_wl_CXX='-Wl,'
  13430. lt_prog_compiler_pic_CXX='-KPIC'
  13431. lt_prog_compiler_static_CXX='-static'
  13432. ;;
  13433. icpc* )
  13434. # Intel C++, used to be incompatible with GCC.
  13435. # ICC 10 doesn't accept -KPIC any more.
  13436. lt_prog_compiler_wl_CXX='-Wl,'
  13437. lt_prog_compiler_pic_CXX='-fPIC'
  13438. lt_prog_compiler_static_CXX='-static'
  13439. ;;
  13440. pgCC* | pgcpp*)
  13441. # Portland Group C++ compiler
  13442. lt_prog_compiler_wl_CXX='-Wl,'
  13443. lt_prog_compiler_pic_CXX='-fpic'
  13444. lt_prog_compiler_static_CXX='-Bstatic'
  13445. ;;
  13446. cxx*)
  13447. # Compaq C++
  13448. # Make sure the PIC flag is empty. It appears that all Alpha
  13449. # Linux and Compaq Tru64 Unix objects are PIC.
  13450. lt_prog_compiler_pic_CXX=
  13451. lt_prog_compiler_static_CXX='-non_shared'
  13452. ;;
  13453. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13454. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13455. lt_prog_compiler_wl_CXX='-Wl,'
  13456. lt_prog_compiler_pic_CXX='-qpic'
  13457. lt_prog_compiler_static_CXX='-qstaticlink'
  13458. ;;
  13459. *)
  13460. case `$CC -V 2>&1 | sed 5q` in
  13461. *Sun\ C*)
  13462. # Sun C++ 5.9
  13463. lt_prog_compiler_pic_CXX='-KPIC'
  13464. lt_prog_compiler_static_CXX='-Bstatic'
  13465. lt_prog_compiler_wl_CXX='-Qoption ld '
  13466. ;;
  13467. esac
  13468. ;;
  13469. esac
  13470. ;;
  13471. lynxos*)
  13472. ;;
  13473. m88k*)
  13474. ;;
  13475. mvs*)
  13476. case $cc_basename in
  13477. cxx*)
  13478. lt_prog_compiler_pic_CXX='-W c,exportall'
  13479. ;;
  13480. *)
  13481. ;;
  13482. esac
  13483. ;;
  13484. netbsd*)
  13485. ;;
  13486. *qnx* | *nto*)
  13487. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13488. # it will coredump.
  13489. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13490. ;;
  13491. osf3* | osf4* | osf5*)
  13492. case $cc_basename in
  13493. KCC*)
  13494. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13495. ;;
  13496. RCC*)
  13497. # Rational C++ 2.4.1
  13498. lt_prog_compiler_pic_CXX='-pic'
  13499. ;;
  13500. cxx*)
  13501. # Digital/Compaq C++
  13502. lt_prog_compiler_wl_CXX='-Wl,'
  13503. # Make sure the PIC flag is empty. It appears that all Alpha
  13504. # Linux and Compaq Tru64 Unix objects are PIC.
  13505. lt_prog_compiler_pic_CXX=
  13506. lt_prog_compiler_static_CXX='-non_shared'
  13507. ;;
  13508. *)
  13509. ;;
  13510. esac
  13511. ;;
  13512. psos*)
  13513. ;;
  13514. solaris*)
  13515. case $cc_basename in
  13516. CC*)
  13517. # Sun C++ 4.2, 5.x and Centerline C++
  13518. lt_prog_compiler_pic_CXX='-KPIC'
  13519. lt_prog_compiler_static_CXX='-Bstatic'
  13520. lt_prog_compiler_wl_CXX='-Qoption ld '
  13521. ;;
  13522. gcx*)
  13523. # Green Hills C++ Compiler
  13524. lt_prog_compiler_pic_CXX='-PIC'
  13525. ;;
  13526. *)
  13527. ;;
  13528. esac
  13529. ;;
  13530. sunos4*)
  13531. case $cc_basename in
  13532. CC*)
  13533. # Sun C++ 4.x
  13534. lt_prog_compiler_pic_CXX='-pic'
  13535. lt_prog_compiler_static_CXX='-Bstatic'
  13536. ;;
  13537. lcc*)
  13538. # Lucid
  13539. lt_prog_compiler_pic_CXX='-pic'
  13540. ;;
  13541. *)
  13542. ;;
  13543. esac
  13544. ;;
  13545. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13546. case $cc_basename in
  13547. CC*)
  13548. lt_prog_compiler_wl_CXX='-Wl,'
  13549. lt_prog_compiler_pic_CXX='-KPIC'
  13550. lt_prog_compiler_static_CXX='-Bstatic'
  13551. ;;
  13552. esac
  13553. ;;
  13554. tandem*)
  13555. case $cc_basename in
  13556. NCC*)
  13557. # NonStop-UX NCC 3.20
  13558. lt_prog_compiler_pic_CXX='-KPIC'
  13559. ;;
  13560. *)
  13561. ;;
  13562. esac
  13563. ;;
  13564. vxworks*)
  13565. ;;
  13566. *)
  13567. lt_prog_compiler_can_build_shared_CXX=no
  13568. ;;
  13569. esac
  13570. fi
  13571. case $host_os in
  13572. # For platforms which do not support PIC, -DPIC is meaningless:
  13573. *djgpp*)
  13574. lt_prog_compiler_pic_CXX=
  13575. ;;
  13576. *)
  13577. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13578. ;;
  13579. esac
  13580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  13581. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  13582. #
  13583. # Check to make sure the PIC flag actually works.
  13584. #
  13585. if test -n "$lt_prog_compiler_pic_CXX"; then
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13587. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13588. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  13589. $as_echo_n "(cached) " >&6
  13590. else
  13591. lt_cv_prog_compiler_pic_works_CXX=no
  13592. ac_outfile=conftest.$ac_objext
  13593. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13594. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  13595. # Insert the option either (1) after the last *FLAGS variable, or
  13596. # (2) before a word containing "conftest.", or (3) at the end.
  13597. # Note that $ac_compile itself does not contain backslashes and begins
  13598. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13599. # The option is referenced via a variable to avoid confusing sed.
  13600. lt_compile=`echo "$ac_compile" | $SED \
  13601. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13602. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13603. -e 's:$: $lt_compiler_flag:'`
  13604. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13605. (eval "$lt_compile" 2>conftest.err)
  13606. ac_status=$?
  13607. cat conftest.err >&5
  13608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13609. if (exit $ac_status) && test -s "$ac_outfile"; then
  13610. # The compiler can only warn and ignore the option if not recognized
  13611. # So say no if there are warnings other than the usual output.
  13612. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13613. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13614. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13615. lt_cv_prog_compiler_pic_works_CXX=yes
  13616. fi
  13617. fi
  13618. $RM conftest*
  13619. fi
  13620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13621. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13622. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  13623. case $lt_prog_compiler_pic_CXX in
  13624. "" | " "*) ;;
  13625. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13626. esac
  13627. else
  13628. lt_prog_compiler_pic_CXX=
  13629. lt_prog_compiler_can_build_shared_CXX=no
  13630. fi
  13631. fi
  13632. #
  13633. # Check to make sure the static flag actually works.
  13634. #
  13635. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13637. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13638. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  13639. $as_echo_n "(cached) " >&6
  13640. else
  13641. lt_cv_prog_compiler_static_works_CXX=no
  13642. save_LDFLAGS="$LDFLAGS"
  13643. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13644. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13645. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13646. # The linker can only warn and ignore the option if not recognized
  13647. # So say no if there are warnings
  13648. if test -s conftest.err; then
  13649. # Append any errors to the config.log.
  13650. cat conftest.err 1>&5
  13651. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13652. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13653. if diff conftest.exp conftest.er2 >/dev/null; then
  13654. lt_cv_prog_compiler_static_works_CXX=yes
  13655. fi
  13656. else
  13657. lt_cv_prog_compiler_static_works_CXX=yes
  13658. fi
  13659. fi
  13660. $RM -r conftest*
  13661. LDFLAGS="$save_LDFLAGS"
  13662. fi
  13663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13664. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13665. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  13666. :
  13667. else
  13668. lt_prog_compiler_static_CXX=
  13669. fi
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13671. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13672. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13673. $as_echo_n "(cached) " >&6
  13674. else
  13675. lt_cv_prog_compiler_c_o_CXX=no
  13676. $RM -r conftest 2>/dev/null
  13677. mkdir conftest
  13678. cd conftest
  13679. mkdir out
  13680. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13681. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13682. # Insert the option either (1) after the last *FLAGS variable, or
  13683. # (2) before a word containing "conftest.", or (3) at the end.
  13684. # Note that $ac_compile itself does not contain backslashes and begins
  13685. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13686. lt_compile=`echo "$ac_compile" | $SED \
  13687. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13688. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13689. -e 's:$: $lt_compiler_flag:'`
  13690. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13691. (eval "$lt_compile" 2>out/conftest.err)
  13692. ac_status=$?
  13693. cat out/conftest.err >&5
  13694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13695. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13696. then
  13697. # The compiler can only warn and ignore the option if not recognized
  13698. # So say no if there are warnings
  13699. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13700. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13701. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13702. lt_cv_prog_compiler_c_o_CXX=yes
  13703. fi
  13704. fi
  13705. chmod u+w . 2>&5
  13706. $RM conftest*
  13707. # SGI C++ compiler will create directory out/ii_files/ for
  13708. # template instantiation
  13709. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13710. $RM out/* && rmdir out
  13711. cd ..
  13712. $RM -r conftest
  13713. $RM conftest*
  13714. fi
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13716. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13718. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13719. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13720. $as_echo_n "(cached) " >&6
  13721. else
  13722. lt_cv_prog_compiler_c_o_CXX=no
  13723. $RM -r conftest 2>/dev/null
  13724. mkdir conftest
  13725. cd conftest
  13726. mkdir out
  13727. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13728. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13729. # Insert the option either (1) after the last *FLAGS variable, or
  13730. # (2) before a word containing "conftest.", or (3) at the end.
  13731. # Note that $ac_compile itself does not contain backslashes and begins
  13732. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13733. lt_compile=`echo "$ac_compile" | $SED \
  13734. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13735. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13736. -e 's:$: $lt_compiler_flag:'`
  13737. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13738. (eval "$lt_compile" 2>out/conftest.err)
  13739. ac_status=$?
  13740. cat out/conftest.err >&5
  13741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13742. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13743. then
  13744. # The compiler can only warn and ignore the option if not recognized
  13745. # So say no if there are warnings
  13746. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13747. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13748. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13749. lt_cv_prog_compiler_c_o_CXX=yes
  13750. fi
  13751. fi
  13752. chmod u+w . 2>&5
  13753. $RM conftest*
  13754. # SGI C++ compiler will create directory out/ii_files/ for
  13755. # template instantiation
  13756. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13757. $RM out/* && rmdir out
  13758. cd ..
  13759. $RM -r conftest
  13760. $RM conftest*
  13761. fi
  13762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13763. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13764. hard_links="nottested"
  13765. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13766. # do not overwrite the value of need_locks provided by the user
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13768. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13769. hard_links=yes
  13770. $RM conftest*
  13771. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13772. touch conftest.a
  13773. ln conftest.a conftest.b 2>&5 || hard_links=no
  13774. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13776. $as_echo "$hard_links" >&6; }
  13777. if test "$hard_links" = no; then
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13779. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13780. need_locks=warn
  13781. fi
  13782. else
  13783. need_locks=no
  13784. fi
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13786. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13787. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13788. case $host_os in
  13789. aix[4-9]*)
  13790. # If we're using GNU nm, then we don't want the "-C" option.
  13791. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13792. # Also, AIX nm treats weak defined symbols like other global defined
  13793. # symbols, whereas GNU nm marks them as "W".
  13794. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13795. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13796. else
  13797. 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'
  13798. fi
  13799. ;;
  13800. pw32*)
  13801. export_symbols_cmds_CXX="$ltdll_cmds"
  13802. ;;
  13803. cygwin* | mingw* | cegcc*)
  13804. 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'
  13805. ;;
  13806. *)
  13807. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13808. ;;
  13809. esac
  13810. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13812. $as_echo "$ld_shlibs_CXX" >&6; }
  13813. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13814. with_gnu_ld_CXX=$with_gnu_ld
  13815. #
  13816. # Do we need to explicitly link libc?
  13817. #
  13818. case "x$archive_cmds_need_lc_CXX" in
  13819. x|xyes)
  13820. # Assume -lc should be added
  13821. archive_cmds_need_lc_CXX=yes
  13822. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13823. case $archive_cmds_CXX in
  13824. *'~'*)
  13825. # FIXME: we may have to deal with multi-command sequences.
  13826. ;;
  13827. '$CC '*)
  13828. # Test whether the compiler implicitly links with -lc since on some
  13829. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13830. # to ld, don't add -lc before -lgcc.
  13831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13832. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13833. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  13834. $as_echo_n "(cached) " >&6
  13835. else
  13836. $RM conftest*
  13837. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13838. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13839. (eval $ac_compile) 2>&5
  13840. ac_status=$?
  13841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13842. test $ac_status = 0; } 2>conftest.err; then
  13843. soname=conftest
  13844. lib=conftest
  13845. libobjs=conftest.$ac_objext
  13846. deplibs=
  13847. wl=$lt_prog_compiler_wl_CXX
  13848. pic_flag=$lt_prog_compiler_pic_CXX
  13849. compiler_flags=-v
  13850. linker_flags=-v
  13851. verstring=
  13852. output_objdir=.
  13853. libname=conftest
  13854. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13855. allow_undefined_flag_CXX=
  13856. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13857. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13858. ac_status=$?
  13859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13860. test $ac_status = 0; }
  13861. then
  13862. lt_cv_archive_cmds_need_lc_CXX=no
  13863. else
  13864. lt_cv_archive_cmds_need_lc_CXX=yes
  13865. fi
  13866. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13867. else
  13868. cat conftest.err 1>&5
  13869. fi
  13870. $RM conftest*
  13871. fi
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13873. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13874. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13875. ;;
  13876. esac
  13877. fi
  13878. ;;
  13879. esac
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13881. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13882. library_names_spec=
  13883. libname_spec='lib$name'
  13884. soname_spec=
  13885. shrext_cmds=".so"
  13886. postinstall_cmds=
  13887. postuninstall_cmds=
  13888. finish_cmds=
  13889. finish_eval=
  13890. shlibpath_var=
  13891. shlibpath_overrides_runpath=unknown
  13892. version_type=none
  13893. dynamic_linker="$host_os ld.so"
  13894. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13895. need_lib_prefix=unknown
  13896. hardcode_into_libs=no
  13897. # when you set need_version to no, make sure it does not cause -set_version
  13898. # flags to be left without arguments
  13899. need_version=unknown
  13900. case $host_os in
  13901. aix3*)
  13902. version_type=linux
  13903. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13904. shlibpath_var=LIBPATH
  13905. # AIX 3 has no versioning support, so we append a major version to the name.
  13906. soname_spec='${libname}${release}${shared_ext}$major'
  13907. ;;
  13908. aix[4-9]*)
  13909. version_type=linux
  13910. need_lib_prefix=no
  13911. need_version=no
  13912. hardcode_into_libs=yes
  13913. if test "$host_cpu" = ia64; then
  13914. # AIX 5 supports IA64
  13915. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13916. shlibpath_var=LD_LIBRARY_PATH
  13917. else
  13918. # With GCC up to 2.95.x, collect2 would create an import file
  13919. # for dependence libraries. The import file would start with
  13920. # the line `#! .'. This would cause the generated library to
  13921. # depend on `.', always an invalid library. This was fixed in
  13922. # development snapshots of GCC prior to 3.0.
  13923. case $host_os in
  13924. aix4 | aix4.[01] | aix4.[01].*)
  13925. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13926. echo ' yes '
  13927. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13928. :
  13929. else
  13930. can_build_shared=no
  13931. fi
  13932. ;;
  13933. esac
  13934. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13935. # soname into executable. Probably we can add versioning support to
  13936. # collect2, so additional links can be useful in future.
  13937. if test "$aix_use_runtimelinking" = yes; then
  13938. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13939. # instead of lib<name>.a to let people know that these are not
  13940. # typical AIX shared libraries.
  13941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13942. else
  13943. # We preserve .a as extension for shared libraries through AIX4.2
  13944. # and later when we are not doing run time linking.
  13945. library_names_spec='${libname}${release}.a $libname.a'
  13946. soname_spec='${libname}${release}${shared_ext}$major'
  13947. fi
  13948. shlibpath_var=LIBPATH
  13949. fi
  13950. ;;
  13951. amigaos*)
  13952. case $host_cpu in
  13953. powerpc)
  13954. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13955. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13957. ;;
  13958. m68k)
  13959. library_names_spec='$libname.ixlibrary $libname.a'
  13960. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13961. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  13962. ;;
  13963. esac
  13964. ;;
  13965. beos*)
  13966. library_names_spec='${libname}${shared_ext}'
  13967. dynamic_linker="$host_os ld.so"
  13968. shlibpath_var=LIBRARY_PATH
  13969. ;;
  13970. bsdi[45]*)
  13971. version_type=linux
  13972. need_version=no
  13973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13974. soname_spec='${libname}${release}${shared_ext}$major'
  13975. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13976. shlibpath_var=LD_LIBRARY_PATH
  13977. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13978. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13979. # the default ld.so.conf also contains /usr/contrib/lib and
  13980. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13981. # libtool to hard-code these into programs
  13982. ;;
  13983. cygwin* | mingw* | pw32* | cegcc*)
  13984. version_type=windows
  13985. shrext_cmds=".dll"
  13986. need_version=no
  13987. need_lib_prefix=no
  13988. case $GCC,$host_os in
  13989. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13990. library_names_spec='$libname.dll.a'
  13991. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13992. postinstall_cmds='base_file=`basename \${file}`~
  13993. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13994. dldir=$destdir/`dirname \$dlpath`~
  13995. test -d \$dldir || mkdir -p \$dldir~
  13996. $install_prog $dir/$dlname \$dldir/$dlname~
  13997. chmod a+x \$dldir/$dlname~
  13998. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13999. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14000. fi'
  14001. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14002. dlpath=$dir/\$dldll~
  14003. $RM \$dlpath'
  14004. shlibpath_overrides_runpath=yes
  14005. case $host_os in
  14006. cygwin*)
  14007. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14008. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14009. ;;
  14010. mingw* | cegcc*)
  14011. # MinGW DLLs use traditional 'lib' prefix
  14012. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14013. ;;
  14014. pw32*)
  14015. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14016. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14017. ;;
  14018. esac
  14019. ;;
  14020. *)
  14021. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14022. ;;
  14023. esac
  14024. dynamic_linker='Win32 ld.exe'
  14025. # FIXME: first we should search . and the directory the executable is in
  14026. shlibpath_var=PATH
  14027. ;;
  14028. darwin* | rhapsody*)
  14029. dynamic_linker="$host_os dyld"
  14030. version_type=darwin
  14031. need_lib_prefix=no
  14032. need_version=no
  14033. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14034. soname_spec='${libname}${release}${major}$shared_ext'
  14035. shlibpath_overrides_runpath=yes
  14036. shlibpath_var=DYLD_LIBRARY_PATH
  14037. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14038. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14039. ;;
  14040. dgux*)
  14041. version_type=linux
  14042. need_lib_prefix=no
  14043. need_version=no
  14044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14045. soname_spec='${libname}${release}${shared_ext}$major'
  14046. shlibpath_var=LD_LIBRARY_PATH
  14047. ;;
  14048. freebsd* | dragonfly*)
  14049. # DragonFly does not have aout. When/if they implement a new
  14050. # versioning mechanism, adjust this.
  14051. if test -x /usr/bin/objformat; then
  14052. objformat=`/usr/bin/objformat`
  14053. else
  14054. case $host_os in
  14055. freebsd[23].*) objformat=aout ;;
  14056. *) objformat=elf ;;
  14057. esac
  14058. fi
  14059. version_type=freebsd-$objformat
  14060. case $version_type in
  14061. freebsd-elf*)
  14062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14063. need_version=no
  14064. need_lib_prefix=no
  14065. ;;
  14066. freebsd-*)
  14067. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14068. need_version=yes
  14069. ;;
  14070. esac
  14071. shlibpath_var=LD_LIBRARY_PATH
  14072. case $host_os in
  14073. freebsd2.*)
  14074. shlibpath_overrides_runpath=yes
  14075. ;;
  14076. freebsd3.[01]* | freebsdelf3.[01]*)
  14077. shlibpath_overrides_runpath=yes
  14078. hardcode_into_libs=yes
  14079. ;;
  14080. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14081. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14082. shlibpath_overrides_runpath=no
  14083. hardcode_into_libs=yes
  14084. ;;
  14085. *) # from 4.6 on, and DragonFly
  14086. shlibpath_overrides_runpath=yes
  14087. hardcode_into_libs=yes
  14088. ;;
  14089. esac
  14090. ;;
  14091. gnu*)
  14092. version_type=linux
  14093. need_lib_prefix=no
  14094. need_version=no
  14095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14096. soname_spec='${libname}${release}${shared_ext}$major'
  14097. shlibpath_var=LD_LIBRARY_PATH
  14098. hardcode_into_libs=yes
  14099. ;;
  14100. haiku*)
  14101. version_type=linux
  14102. need_lib_prefix=no
  14103. need_version=no
  14104. dynamic_linker="$host_os runtime_loader"
  14105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14106. soname_spec='${libname}${release}${shared_ext}$major'
  14107. shlibpath_var=LIBRARY_PATH
  14108. shlibpath_overrides_runpath=yes
  14109. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  14110. hardcode_into_libs=yes
  14111. ;;
  14112. hpux9* | hpux10* | hpux11*)
  14113. # Give a soname corresponding to the major version so that dld.sl refuses to
  14114. # link against other versions.
  14115. version_type=sunos
  14116. need_lib_prefix=no
  14117. need_version=no
  14118. case $host_cpu in
  14119. ia64*)
  14120. shrext_cmds='.so'
  14121. hardcode_into_libs=yes
  14122. dynamic_linker="$host_os dld.so"
  14123. shlibpath_var=LD_LIBRARY_PATH
  14124. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14126. soname_spec='${libname}${release}${shared_ext}$major'
  14127. if test "X$HPUX_IA64_MODE" = X32; then
  14128. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14129. else
  14130. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14131. fi
  14132. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14133. ;;
  14134. hppa*64*)
  14135. shrext_cmds='.sl'
  14136. hardcode_into_libs=yes
  14137. dynamic_linker="$host_os dld.sl"
  14138. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14139. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14141. soname_spec='${libname}${release}${shared_ext}$major'
  14142. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14143. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14144. ;;
  14145. *)
  14146. shrext_cmds='.sl'
  14147. dynamic_linker="$host_os dld.sl"
  14148. shlibpath_var=SHLIB_PATH
  14149. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14151. soname_spec='${libname}${release}${shared_ext}$major'
  14152. ;;
  14153. esac
  14154. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14155. postinstall_cmds='chmod 555 $lib'
  14156. # or fails outright, so override atomically:
  14157. install_override_mode=555
  14158. ;;
  14159. interix[3-9]*)
  14160. version_type=linux
  14161. need_lib_prefix=no
  14162. need_version=no
  14163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14164. soname_spec='${libname}${release}${shared_ext}$major'
  14165. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14166. shlibpath_var=LD_LIBRARY_PATH
  14167. shlibpath_overrides_runpath=no
  14168. hardcode_into_libs=yes
  14169. ;;
  14170. irix5* | irix6* | nonstopux*)
  14171. case $host_os in
  14172. nonstopux*) version_type=nonstopux ;;
  14173. *)
  14174. if test "$lt_cv_prog_gnu_ld" = yes; then
  14175. version_type=linux
  14176. else
  14177. version_type=irix
  14178. fi ;;
  14179. esac
  14180. need_lib_prefix=no
  14181. need_version=no
  14182. soname_spec='${libname}${release}${shared_ext}$major'
  14183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14184. case $host_os in
  14185. irix5* | nonstopux*)
  14186. libsuff= shlibsuff=
  14187. ;;
  14188. *)
  14189. case $LD in # libtool.m4 will add one of these switches to LD
  14190. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14191. libsuff= shlibsuff= libmagic=32-bit;;
  14192. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14193. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14194. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14195. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14196. *) libsuff= shlibsuff= libmagic=never-match;;
  14197. esac
  14198. ;;
  14199. esac
  14200. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14201. shlibpath_overrides_runpath=no
  14202. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14203. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14204. hardcode_into_libs=yes
  14205. ;;
  14206. # No shared lib support for Linux oldld, aout, or coff.
  14207. linux*oldld* | linux*aout* | linux*coff*)
  14208. dynamic_linker=no
  14209. ;;
  14210. # This must be Linux ELF.
  14211. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14212. version_type=linux
  14213. need_lib_prefix=no
  14214. need_version=no
  14215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14216. soname_spec='${libname}${release}${shared_ext}$major'
  14217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14218. shlibpath_var=LD_LIBRARY_PATH
  14219. shlibpath_overrides_runpath=no
  14220. # Some binutils ld are patched to set DT_RUNPATH
  14221. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  14222. $as_echo_n "(cached) " >&6
  14223. else
  14224. lt_cv_shlibpath_overrides_runpath=no
  14225. save_LDFLAGS=$LDFLAGS
  14226. save_libdir=$libdir
  14227. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14228. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14229. if test x$gcc_no_link = xyes; then
  14230. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14231. fi
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. int
  14235. main ()
  14236. {
  14237. ;
  14238. return 0;
  14239. }
  14240. _ACEOF
  14241. if ac_fn_cxx_try_link "$LINENO"; then :
  14242. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14243. lt_cv_shlibpath_overrides_runpath=yes
  14244. fi
  14245. fi
  14246. rm -f core conftest.err conftest.$ac_objext \
  14247. conftest$ac_exeext conftest.$ac_ext
  14248. LDFLAGS=$save_LDFLAGS
  14249. libdir=$save_libdir
  14250. fi
  14251. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14252. # This implies no fast_install, which is unacceptable.
  14253. # Some rework will be needed to allow for fast_install
  14254. # before this can be enabled.
  14255. hardcode_into_libs=yes
  14256. # Append ld.so.conf contents to the search path
  14257. if test -f /etc/ld.so.conf; then
  14258. 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;s/"//g;/^$/d' | tr '\n' ' '`
  14259. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14260. fi
  14261. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14262. # powerpc, because MkLinux only supported shared libraries with the
  14263. # GNU dynamic linker. Since this was broken with cross compilers,
  14264. # most powerpc-linux boxes support dynamic linking these days and
  14265. # people can always --disable-shared, the test was removed, and we
  14266. # assume the GNU/Linux dynamic linker is in use.
  14267. dynamic_linker='GNU/Linux ld.so'
  14268. ;;
  14269. netbsd*)
  14270. version_type=sunos
  14271. need_lib_prefix=no
  14272. need_version=no
  14273. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14275. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14276. dynamic_linker='NetBSD (a.out) ld.so'
  14277. else
  14278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14279. soname_spec='${libname}${release}${shared_ext}$major'
  14280. dynamic_linker='NetBSD ld.elf_so'
  14281. fi
  14282. shlibpath_var=LD_LIBRARY_PATH
  14283. shlibpath_overrides_runpath=yes
  14284. hardcode_into_libs=yes
  14285. ;;
  14286. newsos6)
  14287. version_type=linux
  14288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14289. shlibpath_var=LD_LIBRARY_PATH
  14290. shlibpath_overrides_runpath=yes
  14291. ;;
  14292. *nto* | *qnx*)
  14293. version_type=qnx
  14294. need_lib_prefix=no
  14295. need_version=no
  14296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14297. soname_spec='${libname}${release}${shared_ext}$major'
  14298. shlibpath_var=LD_LIBRARY_PATH
  14299. shlibpath_overrides_runpath=no
  14300. hardcode_into_libs=yes
  14301. dynamic_linker='ldqnx.so'
  14302. ;;
  14303. openbsd*)
  14304. version_type=sunos
  14305. sys_lib_dlsearch_path_spec="/usr/lib"
  14306. need_lib_prefix=no
  14307. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14308. case $host_os in
  14309. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14310. *) need_version=no ;;
  14311. esac
  14312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14313. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14314. shlibpath_var=LD_LIBRARY_PATH
  14315. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14316. case $host_os in
  14317. openbsd2.[89] | openbsd2.[89].*)
  14318. shlibpath_overrides_runpath=no
  14319. ;;
  14320. *)
  14321. shlibpath_overrides_runpath=yes
  14322. ;;
  14323. esac
  14324. else
  14325. shlibpath_overrides_runpath=yes
  14326. fi
  14327. ;;
  14328. os2*)
  14329. libname_spec='$name'
  14330. shrext_cmds=".dll"
  14331. need_lib_prefix=no
  14332. library_names_spec='$libname${shared_ext} $libname.a'
  14333. dynamic_linker='OS/2 ld.exe'
  14334. shlibpath_var=LIBPATH
  14335. ;;
  14336. osf3* | osf4* | osf5*)
  14337. version_type=osf
  14338. need_lib_prefix=no
  14339. need_version=no
  14340. soname_spec='${libname}${release}${shared_ext}$major'
  14341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14342. shlibpath_var=LD_LIBRARY_PATH
  14343. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14344. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14345. ;;
  14346. rdos*)
  14347. dynamic_linker=no
  14348. ;;
  14349. solaris*)
  14350. version_type=linux
  14351. need_lib_prefix=no
  14352. need_version=no
  14353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14354. soname_spec='${libname}${release}${shared_ext}$major'
  14355. shlibpath_var=LD_LIBRARY_PATH
  14356. shlibpath_overrides_runpath=yes
  14357. hardcode_into_libs=yes
  14358. # ldd complains unless libraries are executable
  14359. postinstall_cmds='chmod +x $lib'
  14360. ;;
  14361. sunos4*)
  14362. version_type=sunos
  14363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14364. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14365. shlibpath_var=LD_LIBRARY_PATH
  14366. shlibpath_overrides_runpath=yes
  14367. if test "$with_gnu_ld" = yes; then
  14368. need_lib_prefix=no
  14369. fi
  14370. need_version=yes
  14371. ;;
  14372. sysv4 | sysv4.3*)
  14373. version_type=linux
  14374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14375. soname_spec='${libname}${release}${shared_ext}$major'
  14376. shlibpath_var=LD_LIBRARY_PATH
  14377. case $host_vendor in
  14378. sni)
  14379. shlibpath_overrides_runpath=no
  14380. need_lib_prefix=no
  14381. runpath_var=LD_RUN_PATH
  14382. ;;
  14383. siemens)
  14384. need_lib_prefix=no
  14385. ;;
  14386. motorola)
  14387. need_lib_prefix=no
  14388. need_version=no
  14389. shlibpath_overrides_runpath=no
  14390. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14391. ;;
  14392. esac
  14393. ;;
  14394. sysv4*MP*)
  14395. if test -d /usr/nec ;then
  14396. version_type=linux
  14397. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14398. soname_spec='$libname${shared_ext}.$major'
  14399. shlibpath_var=LD_LIBRARY_PATH
  14400. fi
  14401. ;;
  14402. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14403. version_type=freebsd-elf
  14404. need_lib_prefix=no
  14405. need_version=no
  14406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14407. soname_spec='${libname}${release}${shared_ext}$major'
  14408. shlibpath_var=LD_LIBRARY_PATH
  14409. shlibpath_overrides_runpath=yes
  14410. hardcode_into_libs=yes
  14411. if test "$with_gnu_ld" = yes; then
  14412. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14413. else
  14414. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14415. case $host_os in
  14416. sco3.2v5*)
  14417. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14418. ;;
  14419. esac
  14420. fi
  14421. sys_lib_dlsearch_path_spec='/usr/lib'
  14422. ;;
  14423. tpf*)
  14424. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14425. version_type=linux
  14426. need_lib_prefix=no
  14427. need_version=no
  14428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14429. shlibpath_var=LD_LIBRARY_PATH
  14430. shlibpath_overrides_runpath=no
  14431. hardcode_into_libs=yes
  14432. ;;
  14433. uts4*)
  14434. version_type=linux
  14435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14436. soname_spec='${libname}${release}${shared_ext}$major'
  14437. shlibpath_var=LD_LIBRARY_PATH
  14438. ;;
  14439. *)
  14440. dynamic_linker=no
  14441. ;;
  14442. esac
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14444. $as_echo "$dynamic_linker" >&6; }
  14445. test "$dynamic_linker" = no && can_build_shared=no
  14446. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14447. if test "$GCC" = yes; then
  14448. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14449. fi
  14450. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14451. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14452. fi
  14453. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14454. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14455. fi
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14457. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14458. hardcode_action_CXX=
  14459. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14460. test -n "$runpath_var_CXX" ||
  14461. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  14462. # We can hardcode non-existent directories.
  14463. if test "$hardcode_direct_CXX" != no &&
  14464. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14465. # have to relink, otherwise we might link with an installed library
  14466. # when we should be linking with a yet-to-be-installed one
  14467. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  14468. test "$hardcode_minus_L_CXX" != no; then
  14469. # Linking always hardcodes the temporary library directory.
  14470. hardcode_action_CXX=relink
  14471. else
  14472. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14473. hardcode_action_CXX=immediate
  14474. fi
  14475. else
  14476. # We cannot hardcode anything, or else we can only hardcode existing
  14477. # directories.
  14478. hardcode_action_CXX=unsupported
  14479. fi
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14481. $as_echo "$hardcode_action_CXX" >&6; }
  14482. if test "$hardcode_action_CXX" = relink ||
  14483. test "$inherit_rpath_CXX" = yes; then
  14484. # Fast installation is not supported
  14485. enable_fast_install=no
  14486. elif test "$shlibpath_overrides_runpath" = yes ||
  14487. test "$enable_shared" = no; then
  14488. # Fast installation is not necessary
  14489. enable_fast_install=needless
  14490. fi
  14491. fi # test -n "$compiler"
  14492. CC=$lt_save_CC
  14493. LDCXX=$LD
  14494. LD=$lt_save_LD
  14495. GCC=$lt_save_GCC
  14496. with_gnu_ld=$lt_save_with_gnu_ld
  14497. lt_cv_path_LDCXX=$lt_cv_path_LD
  14498. lt_cv_path_LD=$lt_save_path_LD
  14499. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14500. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14501. fi # test "$_lt_caught_CXX_error" != yes
  14502. ac_ext=c
  14503. ac_cpp='$CPP $CPPFLAGS'
  14504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14507. ac_config_commands="$ac_config_commands libtool"
  14508. # Only expand once:
  14509. case $host in
  14510. *-cygwin* | *-mingw*)
  14511. # 'host' will be top-level target in the case of a target lib,
  14512. # we must compare to with_cross_host to decide if this is a native
  14513. # or cross-compiler and select where to install dlls appropriately.
  14514. if test -n "$with_cross_host" &&
  14515. test x"$with_cross_host" != x"no"; then
  14516. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  14517. else
  14518. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  14519. fi
  14520. ;;
  14521. *)
  14522. lt_host_flags=
  14523. ;;
  14524. esac
  14525. if test -n "$ac_tool_prefix"; then
  14526. for ac_prog in gcj
  14527. do
  14528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14531. $as_echo_n "checking for $ac_word... " >&6; }
  14532. if test "${ac_cv_prog_GCJ+set}" = set; then :
  14533. $as_echo_n "(cached) " >&6
  14534. else
  14535. if test -n "$GCJ"; then
  14536. ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
  14537. else
  14538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14539. for as_dir in $PATH
  14540. do
  14541. IFS=$as_save_IFS
  14542. test -z "$as_dir" && as_dir=.
  14543. for ac_exec_ext in '' $ac_executable_extensions; do
  14544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14545. ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
  14546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14547. break 2
  14548. fi
  14549. done
  14550. done
  14551. IFS=$as_save_IFS
  14552. fi
  14553. fi
  14554. GCJ=$ac_cv_prog_GCJ
  14555. if test -n "$GCJ"; then
  14556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
  14557. $as_echo "$GCJ" >&6; }
  14558. else
  14559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14560. $as_echo "no" >&6; }
  14561. fi
  14562. test -n "$GCJ" && break
  14563. done
  14564. fi
  14565. if test -z "$GCJ"; then
  14566. ac_ct_GCJ=$GCJ
  14567. for ac_prog in gcj
  14568. do
  14569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14570. set dummy $ac_prog; ac_word=$2
  14571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14572. $as_echo_n "checking for $ac_word... " >&6; }
  14573. if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
  14574. $as_echo_n "(cached) " >&6
  14575. else
  14576. if test -n "$ac_ct_GCJ"; then
  14577. ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
  14578. else
  14579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14580. for as_dir in $PATH
  14581. do
  14582. IFS=$as_save_IFS
  14583. test -z "$as_dir" && as_dir=.
  14584. for ac_exec_ext in '' $ac_executable_extensions; do
  14585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14586. ac_cv_prog_ac_ct_GCJ="$ac_prog"
  14587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14588. break 2
  14589. fi
  14590. done
  14591. done
  14592. IFS=$as_save_IFS
  14593. fi
  14594. fi
  14595. ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
  14596. if test -n "$ac_ct_GCJ"; then
  14597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
  14598. $as_echo "$ac_ct_GCJ" >&6; }
  14599. else
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14601. $as_echo "no" >&6; }
  14602. fi
  14603. test -n "$ac_ct_GCJ" && break
  14604. done
  14605. if test "x$ac_ct_GCJ" = x; then
  14606. GCJ="gcj"
  14607. else
  14608. case $cross_compiling:$ac_tool_warned in
  14609. yes:)
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14612. ac_tool_warned=yes ;;
  14613. esac
  14614. GCJ=$ac_ct_GCJ
  14615. fi
  14616. fi
  14617. test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
  14618. if test "x${GCJFLAGS-unset}" = xunset; then
  14619. GCJFLAGS="-g -O2"
  14620. fi
  14621. depcc="$GCJ" am_compiler_list='gcc3 gcc'
  14622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  14623. $as_echo_n "checking dependency style of $depcc... " >&6; }
  14624. if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
  14625. $as_echo_n "(cached) " >&6
  14626. else
  14627. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  14628. # We make a subdir and do the tests there. Otherwise we can end up
  14629. # making bogus files that we don't know about and never remove. For
  14630. # instance it was reported that on HP-UX the gcc test will end up
  14631. # making a dummy file named `D' -- because `-MD' means `put the output
  14632. # in D'.
  14633. mkdir conftest.dir
  14634. # Copy depcomp to subdir because otherwise we won't find it if we're
  14635. # using a relative directory.
  14636. cp "$am_depcomp" conftest.dir
  14637. cd conftest.dir
  14638. # We will build objects and dependencies in a subdirectory because
  14639. # it helps to detect inapplicable dependency modes. For instance
  14640. # both Tru64's cc and ICC support -MD to output dependencies as a
  14641. # side effect of compilation, but ICC will put the dependencies in
  14642. # the current directory while Tru64 will put them in the object
  14643. # directory.
  14644. mkdir sub
  14645. am_cv_GCJ_dependencies_compiler_type=none
  14646. if test "$am_compiler_list" = ""; then
  14647. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  14648. fi
  14649. am__universal=false
  14650. for depmode in $am_compiler_list; do
  14651. # Setup a source with many dependencies, because some compilers
  14652. # like to wrap large dependency lists on column 80 (with \), and
  14653. # we should not choose a depcomp mode which is confused by this.
  14654. #
  14655. # We need to recreate these files for each test, as the compiler may
  14656. # overwrite some of them when testing with obscure command lines.
  14657. # This happens at least with the AIX C compiler.
  14658. : > sub/conftest.c
  14659. for i in 1 2 3 4 5 6; do
  14660. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  14661. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  14662. # Solaris 8's {/usr,}/bin/sh.
  14663. touch sub/conftst$i.h
  14664. done
  14665. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  14666. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  14667. # mode. It turns out that the SunPro C++ compiler does not properly
  14668. # handle `-M -o', and we need to detect this. Also, some Intel
  14669. # versions had trouble with output in subdirs
  14670. am__obj=sub/conftest.${OBJEXT-o}
  14671. am__minus_obj="-o $am__obj"
  14672. case $depmode in
  14673. gcc)
  14674. # This depmode causes a compiler race in universal mode.
  14675. test "$am__universal" = false || continue
  14676. ;;
  14677. nosideeffect)
  14678. # after this tag, mechanisms are not by side-effect, so they'll
  14679. # only be used when explicitly requested
  14680. if test "x$enable_dependency_tracking" = xyes; then
  14681. continue
  14682. else
  14683. break
  14684. fi
  14685. ;;
  14686. msvisualcpp | msvcmsys)
  14687. # This compiler won't grok `-c -o', but also, the minuso test has
  14688. # not run yet. These depmodes are late enough in the game, and
  14689. # so weak that their functioning should not be impacted.
  14690. am__obj=conftest.${OBJEXT-o}
  14691. am__minus_obj=
  14692. ;;
  14693. none) break ;;
  14694. esac
  14695. if depmode=$depmode \
  14696. source=sub/conftest.c object=$am__obj \
  14697. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  14698. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  14699. >/dev/null 2>conftest.err &&
  14700. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  14701. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  14702. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  14703. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  14704. # icc doesn't choke on unknown options, it will just issue warnings
  14705. # or remarks (even with -Werror). So we grep stderr for any message
  14706. # that says an option was ignored or not supported.
  14707. # When given -MP, icc 7.0 and 7.1 complain thusly:
  14708. # icc: Command line warning: ignoring option '-M'; no argument required
  14709. # The diagnosis changed in icc 8.0:
  14710. # icc: Command line remark: option '-MP' not supported
  14711. if (grep 'ignoring option' conftest.err ||
  14712. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  14713. am_cv_GCJ_dependencies_compiler_type=$depmode
  14714. break
  14715. fi
  14716. fi
  14717. done
  14718. cd ..
  14719. rm -rf conftest.dir
  14720. else
  14721. am_cv_GCJ_dependencies_compiler_type=none
  14722. fi
  14723. fi
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
  14725. $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
  14726. GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
  14727. if
  14728. test "x$enable_dependency_tracking" != xno \
  14729. && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
  14730. am__fastdepGCJ_TRUE=
  14731. am__fastdepGCJ_FALSE='#'
  14732. else
  14733. am__fastdepGCJ_TRUE='#'
  14734. am__fastdepGCJ_FALSE=
  14735. fi
  14736. if test -n "$ac_tool_prefix"; then
  14737. for ac_prog in gcj
  14738. do
  14739. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14740. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14742. $as_echo_n "checking for $ac_word... " >&6; }
  14743. if test "${ac_cv_prog_GCJ+set}" = set; then :
  14744. $as_echo_n "(cached) " >&6
  14745. else
  14746. if test -n "$GCJ"; then
  14747. ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
  14748. else
  14749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14750. for as_dir in $PATH
  14751. do
  14752. IFS=$as_save_IFS
  14753. test -z "$as_dir" && as_dir=.
  14754. for ac_exec_ext in '' $ac_executable_extensions; do
  14755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14756. ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
  14757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14758. break 2
  14759. fi
  14760. done
  14761. done
  14762. IFS=$as_save_IFS
  14763. fi
  14764. fi
  14765. GCJ=$ac_cv_prog_GCJ
  14766. if test -n "$GCJ"; then
  14767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
  14768. $as_echo "$GCJ" >&6; }
  14769. else
  14770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14771. $as_echo "no" >&6; }
  14772. fi
  14773. test -n "$GCJ" && break
  14774. done
  14775. fi
  14776. if test -z "$GCJ"; then
  14777. ac_ct_GCJ=$GCJ
  14778. for ac_prog in gcj
  14779. do
  14780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14781. set dummy $ac_prog; ac_word=$2
  14782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14783. $as_echo_n "checking for $ac_word... " >&6; }
  14784. if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
  14785. $as_echo_n "(cached) " >&6
  14786. else
  14787. if test -n "$ac_ct_GCJ"; then
  14788. ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
  14789. else
  14790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14791. for as_dir in $PATH
  14792. do
  14793. IFS=$as_save_IFS
  14794. test -z "$as_dir" && as_dir=.
  14795. for ac_exec_ext in '' $ac_executable_extensions; do
  14796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14797. ac_cv_prog_ac_ct_GCJ="$ac_prog"
  14798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14799. break 2
  14800. fi
  14801. done
  14802. done
  14803. IFS=$as_save_IFS
  14804. fi
  14805. fi
  14806. ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
  14807. if test -n "$ac_ct_GCJ"; then
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
  14809. $as_echo "$ac_ct_GCJ" >&6; }
  14810. else
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14812. $as_echo "no" >&6; }
  14813. fi
  14814. test -n "$ac_ct_GCJ" && break
  14815. done
  14816. if test "x$ac_ct_GCJ" = x; then
  14817. GCJ="gcj"
  14818. else
  14819. case $cross_compiling:$ac_tool_warned in
  14820. yes:)
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14823. ac_tool_warned=yes ;;
  14824. esac
  14825. GCJ=$ac_ct_GCJ
  14826. fi
  14827. fi
  14828. test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
  14829. if test "x${GCJFLAGS-unset}" = xunset; then
  14830. GCJFLAGS="-g -O2"
  14831. fi
  14832. depcc="$GCJ" am_compiler_list='gcc3 gcc'
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  14834. $as_echo_n "checking dependency style of $depcc... " >&6; }
  14835. if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
  14836. $as_echo_n "(cached) " >&6
  14837. else
  14838. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  14839. # We make a subdir and do the tests there. Otherwise we can end up
  14840. # making bogus files that we don't know about and never remove. For
  14841. # instance it was reported that on HP-UX the gcc test will end up
  14842. # making a dummy file named `D' -- because `-MD' means `put the output
  14843. # in D'.
  14844. mkdir conftest.dir
  14845. # Copy depcomp to subdir because otherwise we won't find it if we're
  14846. # using a relative directory.
  14847. cp "$am_depcomp" conftest.dir
  14848. cd conftest.dir
  14849. # We will build objects and dependencies in a subdirectory because
  14850. # it helps to detect inapplicable dependency modes. For instance
  14851. # both Tru64's cc and ICC support -MD to output dependencies as a
  14852. # side effect of compilation, but ICC will put the dependencies in
  14853. # the current directory while Tru64 will put them in the object
  14854. # directory.
  14855. mkdir sub
  14856. am_cv_GCJ_dependencies_compiler_type=none
  14857. if test "$am_compiler_list" = ""; then
  14858. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  14859. fi
  14860. am__universal=false
  14861. for depmode in $am_compiler_list; do
  14862. # Setup a source with many dependencies, because some compilers
  14863. # like to wrap large dependency lists on column 80 (with \), and
  14864. # we should not choose a depcomp mode which is confused by this.
  14865. #
  14866. # We need to recreate these files for each test, as the compiler may
  14867. # overwrite some of them when testing with obscure command lines.
  14868. # This happens at least with the AIX C compiler.
  14869. : > sub/conftest.c
  14870. for i in 1 2 3 4 5 6; do
  14871. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  14872. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  14873. # Solaris 8's {/usr,}/bin/sh.
  14874. touch sub/conftst$i.h
  14875. done
  14876. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  14877. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  14878. # mode. It turns out that the SunPro C++ compiler does not properly
  14879. # handle `-M -o', and we need to detect this. Also, some Intel
  14880. # versions had trouble with output in subdirs
  14881. am__obj=sub/conftest.${OBJEXT-o}
  14882. am__minus_obj="-o $am__obj"
  14883. case $depmode in
  14884. gcc)
  14885. # This depmode causes a compiler race in universal mode.
  14886. test "$am__universal" = false || continue
  14887. ;;
  14888. nosideeffect)
  14889. # after this tag, mechanisms are not by side-effect, so they'll
  14890. # only be used when explicitly requested
  14891. if test "x$enable_dependency_tracking" = xyes; then
  14892. continue
  14893. else
  14894. break
  14895. fi
  14896. ;;
  14897. msvisualcpp | msvcmsys)
  14898. # This compiler won't grok `-c -o', but also, the minuso test has
  14899. # not run yet. These depmodes are late enough in the game, and
  14900. # so weak that their functioning should not be impacted.
  14901. am__obj=conftest.${OBJEXT-o}
  14902. am__minus_obj=
  14903. ;;
  14904. none) break ;;
  14905. esac
  14906. if depmode=$depmode \
  14907. source=sub/conftest.c object=$am__obj \
  14908. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  14909. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  14910. >/dev/null 2>conftest.err &&
  14911. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  14912. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  14913. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  14914. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  14915. # icc doesn't choke on unknown options, it will just issue warnings
  14916. # or remarks (even with -Werror). So we grep stderr for any message
  14917. # that says an option was ignored or not supported.
  14918. # When given -MP, icc 7.0 and 7.1 complain thusly:
  14919. # icc: Command line warning: ignoring option '-M'; no argument required
  14920. # The diagnosis changed in icc 8.0:
  14921. # icc: Command line remark: option '-MP' not supported
  14922. if (grep 'ignoring option' conftest.err ||
  14923. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  14924. am_cv_GCJ_dependencies_compiler_type=$depmode
  14925. break
  14926. fi
  14927. fi
  14928. done
  14929. cd ..
  14930. rm -rf conftest.dir
  14931. else
  14932. am_cv_GCJ_dependencies_compiler_type=none
  14933. fi
  14934. fi
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
  14936. $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
  14937. GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
  14938. if
  14939. test "x$enable_dependency_tracking" != xno \
  14940. && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
  14941. am__fastdepGCJ_TRUE=
  14942. am__fastdepGCJ_FALSE='#'
  14943. else
  14944. am__fastdepGCJ_TRUE='#'
  14945. am__fastdepGCJ_FALSE=
  14946. fi
  14947. # Source file extension for Java test sources.
  14948. ac_ext=c
  14949. # Object file extension for compiled Java test sources.
  14950. objext=o
  14951. objext_GCJ=$objext
  14952. # Code to be used in simple compile tests
  14953. lt_simple_compile_test_code="int some_variable = 0;"
  14954. # Code to be used in simple link tests
  14955. lt_simple_link_test_code='int main(){return(0);}'
  14956. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14957. # If no C compiler was specified, use CC.
  14958. LTCC=${LTCC-"$CC"}
  14959. # If no C compiler flags were specified, use CFLAGS.
  14960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14961. # Allow CC to be a program name with arguments.
  14962. compiler=$CC
  14963. # save warnings/boilerplate of simple test code
  14964. ac_outfile=conftest.$ac_objext
  14965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14967. _lt_compiler_boilerplate=`cat conftest.err`
  14968. $RM conftest*
  14969. ac_outfile=conftest.$ac_objext
  14970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14972. _lt_linker_boilerplate=`cat conftest.err`
  14973. $RM -r conftest*
  14974. # Allow CC to be a program name with arguments.
  14975. GCC=yes
  14976. compiler=$CC
  14977. compiler_GCJ=$CC
  14978. for cc_temp in $compiler""; do
  14979. case $cc_temp in
  14980. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14981. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14982. \-*) ;;
  14983. *) break;;
  14984. esac
  14985. done
  14986. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14987. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14988. archive_cmds_need_lc_GCJ=no
  14989. old_archive_cmds_GCJ=$old_archive_cmds
  14990. ## CAVEAT EMPTOR:
  14991. ## There is no encapsulation within the following macros, do not change
  14992. ## the running order or otherwise move them around unless you know exactly
  14993. ## what you are doing...
  14994. if test -n "$compiler"; then
  14995. lt_prog_compiler_no_builtin_flag_GCJ=
  14996. if test "$GCC" = yes; then
  14997. case $cc_basename in
  14998. nvcc*)
  14999. lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
  15000. *)
  15001. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
  15002. esac
  15003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15004. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  15005. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  15006. $as_echo_n "(cached) " >&6
  15007. else
  15008. lt_cv_prog_compiler_rtti_exceptions=no
  15009. ac_outfile=conftest.$ac_objext
  15010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15011. lt_compiler_flag="-fno-rtti -fno-exceptions"
  15012. # Insert the option either (1) after the last *FLAGS variable, or
  15013. # (2) before a word containing "conftest.", or (3) at the end.
  15014. # Note that $ac_compile itself does not contain backslashes and begins
  15015. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15016. # The option is referenced via a variable to avoid confusing sed.
  15017. lt_compile=`echo "$ac_compile" | $SED \
  15018. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15019. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15020. -e 's:$: $lt_compiler_flag:'`
  15021. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15022. (eval "$lt_compile" 2>conftest.err)
  15023. ac_status=$?
  15024. cat conftest.err >&5
  15025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15026. if (exit $ac_status) && test -s "$ac_outfile"; then
  15027. # The compiler can only warn and ignore the option if not recognized
  15028. # So say no if there are warnings other than the usual output.
  15029. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15030. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15031. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15032. lt_cv_prog_compiler_rtti_exceptions=yes
  15033. fi
  15034. fi
  15035. $RM conftest*
  15036. fi
  15037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15038. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  15039. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15040. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15041. else
  15042. :
  15043. fi
  15044. fi
  15045. lt_prog_compiler_wl_GCJ=
  15046. lt_prog_compiler_pic_GCJ=
  15047. lt_prog_compiler_static_GCJ=
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15049. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  15050. if test "$GCC" = yes; then
  15051. lt_prog_compiler_wl_GCJ='-Wl,'
  15052. lt_prog_compiler_static_GCJ='-static'
  15053. case $host_os in
  15054. aix*)
  15055. # All AIX code is PIC.
  15056. if test "$host_cpu" = ia64; then
  15057. # AIX 5 now supports IA64 processor
  15058. lt_prog_compiler_static_GCJ='-Bstatic'
  15059. fi
  15060. lt_prog_compiler_pic_GCJ='-fPIC'
  15061. ;;
  15062. amigaos*)
  15063. case $host_cpu in
  15064. powerpc)
  15065. # see comment about AmigaOS4 .so support
  15066. lt_prog_compiler_pic_GCJ='-fPIC'
  15067. ;;
  15068. m68k)
  15069. # FIXME: we need at least 68020 code to build shared libraries, but
  15070. # adding the `-m68020' flag to GCC prevents building anything better,
  15071. # like `-m68040'.
  15072. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15073. ;;
  15074. esac
  15075. ;;
  15076. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15077. # PIC is the default for these OSes.
  15078. ;;
  15079. mingw* | cygwin* | pw32* | os2* | cegcc*)
  15080. # This hack is so that the source file can tell whether it is being
  15081. # built for inclusion in a dll (and should export symbols for example).
  15082. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  15083. # (--disable-auto-import) libraries
  15084. ;;
  15085. darwin* | rhapsody*)
  15086. # PIC is the default on this platform
  15087. # Common symbols not allowed in MH_DYLIB files
  15088. lt_prog_compiler_pic_GCJ='-fno-common'
  15089. ;;
  15090. haiku*)
  15091. # PIC is the default for Haiku.
  15092. # The "-static" flag exists, but is broken.
  15093. lt_prog_compiler_static_GCJ=
  15094. ;;
  15095. hpux*)
  15096. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  15097. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  15098. # sets the default TLS model and affects inlining.
  15099. case $host_cpu in
  15100. hppa*64*)
  15101. # +Z the default
  15102. ;;
  15103. *)
  15104. lt_prog_compiler_pic_GCJ='-fPIC'
  15105. ;;
  15106. esac
  15107. ;;
  15108. interix[3-9]*)
  15109. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15110. # Instead, we relocate shared libraries at runtime.
  15111. ;;
  15112. msdosdjgpp*)
  15113. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15114. # on systems that don't support them.
  15115. lt_prog_compiler_can_build_shared_GCJ=no
  15116. enable_shared=no
  15117. ;;
  15118. *nto* | *qnx*)
  15119. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15120. # it will coredump.
  15121. lt_prog_compiler_pic_GCJ='-fPIC -shared'
  15122. ;;
  15123. sysv4*MP*)
  15124. if test -d /usr/nec; then
  15125. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15126. fi
  15127. ;;
  15128. *)
  15129. lt_prog_compiler_pic_GCJ='-fPIC'
  15130. ;;
  15131. esac
  15132. case $cc_basename in
  15133. nvcc*) # Cuda Compiler Driver 2.2
  15134. lt_prog_compiler_wl_GCJ='-Xlinker '
  15135. lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
  15136. ;;
  15137. esac
  15138. else
  15139. # PORTME Check for flag to pass linker flags through the system compiler.
  15140. case $host_os in
  15141. aix*)
  15142. lt_prog_compiler_wl_GCJ='-Wl,'
  15143. if test "$host_cpu" = ia64; then
  15144. # AIX 5 now supports IA64 processor
  15145. lt_prog_compiler_static_GCJ='-Bstatic'
  15146. else
  15147. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15148. fi
  15149. ;;
  15150. mingw* | cygwin* | pw32* | os2* | cegcc*)
  15151. # This hack is so that the source file can tell whether it is being
  15152. # built for inclusion in a dll (and should export symbols for example).
  15153. ;;
  15154. hpux9* | hpux10* | hpux11*)
  15155. lt_prog_compiler_wl_GCJ='-Wl,'
  15156. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15157. # not for PA HP-UX.
  15158. case $host_cpu in
  15159. hppa*64*|ia64*)
  15160. # +Z the default
  15161. ;;
  15162. *)
  15163. lt_prog_compiler_pic_GCJ='+Z'
  15164. ;;
  15165. esac
  15166. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15167. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15168. ;;
  15169. irix5* | irix6* | nonstopux*)
  15170. lt_prog_compiler_wl_GCJ='-Wl,'
  15171. # PIC (with -KPIC) is the default.
  15172. lt_prog_compiler_static_GCJ='-non_shared'
  15173. ;;
  15174. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15175. case $cc_basename in
  15176. # old Intel for x86_64 which still supported -KPIC.
  15177. ecc*)
  15178. lt_prog_compiler_wl_GCJ='-Wl,'
  15179. lt_prog_compiler_pic_GCJ='-KPIC'
  15180. lt_prog_compiler_static_GCJ='-static'
  15181. ;;
  15182. # icc used to be incompatible with GCC.
  15183. # ICC 10 doesn't accept -KPIC any more.
  15184. icc* | ifort*)
  15185. lt_prog_compiler_wl_GCJ='-Wl,'
  15186. lt_prog_compiler_pic_GCJ='-fPIC'
  15187. lt_prog_compiler_static_GCJ='-static'
  15188. ;;
  15189. # Lahey Fortran 8.1.
  15190. lf95*)
  15191. lt_prog_compiler_wl_GCJ='-Wl,'
  15192. lt_prog_compiler_pic_GCJ='--shared'
  15193. lt_prog_compiler_static_GCJ='--static'
  15194. ;;
  15195. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  15196. # Portland Group compilers (*not* the Pentium gcc compiler,
  15197. # which looks to be a dead project)
  15198. lt_prog_compiler_wl_GCJ='-Wl,'
  15199. lt_prog_compiler_pic_GCJ='-fpic'
  15200. lt_prog_compiler_static_GCJ='-Bstatic'
  15201. ;;
  15202. ccc*)
  15203. lt_prog_compiler_wl_GCJ='-Wl,'
  15204. # All Alpha code is PIC.
  15205. lt_prog_compiler_static_GCJ='-non_shared'
  15206. ;;
  15207. xl* | bgxl* | bgf* | mpixl*)
  15208. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  15209. lt_prog_compiler_wl_GCJ='-Wl,'
  15210. lt_prog_compiler_pic_GCJ='-qpic'
  15211. lt_prog_compiler_static_GCJ='-qstaticlink'
  15212. ;;
  15213. *)
  15214. case `$CC -V 2>&1 | sed 5q` in
  15215. *Sun\ F* | *Sun*Fortran*)
  15216. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15217. lt_prog_compiler_pic_GCJ='-KPIC'
  15218. lt_prog_compiler_static_GCJ='-Bstatic'
  15219. lt_prog_compiler_wl_GCJ=''
  15220. ;;
  15221. *Sun\ C*)
  15222. # Sun C 5.9
  15223. lt_prog_compiler_pic_GCJ='-KPIC'
  15224. lt_prog_compiler_static_GCJ='-Bstatic'
  15225. lt_prog_compiler_wl_GCJ='-Wl,'
  15226. ;;
  15227. esac
  15228. ;;
  15229. esac
  15230. ;;
  15231. newsos6)
  15232. lt_prog_compiler_pic_GCJ='-KPIC'
  15233. lt_prog_compiler_static_GCJ='-Bstatic'
  15234. ;;
  15235. *nto* | *qnx*)
  15236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15237. # it will coredump.
  15238. lt_prog_compiler_pic_GCJ='-fPIC -shared'
  15239. ;;
  15240. osf3* | osf4* | osf5*)
  15241. lt_prog_compiler_wl_GCJ='-Wl,'
  15242. # All OSF/1 code is PIC.
  15243. lt_prog_compiler_static_GCJ='-non_shared'
  15244. ;;
  15245. rdos*)
  15246. lt_prog_compiler_static_GCJ='-non_shared'
  15247. ;;
  15248. solaris*)
  15249. lt_prog_compiler_pic_GCJ='-KPIC'
  15250. lt_prog_compiler_static_GCJ='-Bstatic'
  15251. case $cc_basename in
  15252. f77* | f90* | f95*)
  15253. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15254. *)
  15255. lt_prog_compiler_wl_GCJ='-Wl,';;
  15256. esac
  15257. ;;
  15258. sunos4*)
  15259. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15260. lt_prog_compiler_pic_GCJ='-PIC'
  15261. lt_prog_compiler_static_GCJ='-Bstatic'
  15262. ;;
  15263. sysv4 | sysv4.2uw2* | sysv4.3*)
  15264. lt_prog_compiler_wl_GCJ='-Wl,'
  15265. lt_prog_compiler_pic_GCJ='-KPIC'
  15266. lt_prog_compiler_static_GCJ='-Bstatic'
  15267. ;;
  15268. sysv4*MP*)
  15269. if test -d /usr/nec ;then
  15270. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15271. lt_prog_compiler_static_GCJ='-Bstatic'
  15272. fi
  15273. ;;
  15274. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15275. lt_prog_compiler_wl_GCJ='-Wl,'
  15276. lt_prog_compiler_pic_GCJ='-KPIC'
  15277. lt_prog_compiler_static_GCJ='-Bstatic'
  15278. ;;
  15279. unicos*)
  15280. lt_prog_compiler_wl_GCJ='-Wl,'
  15281. lt_prog_compiler_can_build_shared_GCJ=no
  15282. ;;
  15283. uts4*)
  15284. lt_prog_compiler_pic_GCJ='-pic'
  15285. lt_prog_compiler_static_GCJ='-Bstatic'
  15286. ;;
  15287. *)
  15288. lt_prog_compiler_can_build_shared_GCJ=no
  15289. ;;
  15290. esac
  15291. fi
  15292. case $host_os in
  15293. # For platforms which do not support PIC, -DPIC is meaningless:
  15294. *djgpp*)
  15295. lt_prog_compiler_pic_GCJ=
  15296. ;;
  15297. *)
  15298. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15299. ;;
  15300. esac
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
  15302. $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  15303. #
  15304. # Check to make sure the PIC flag actually works.
  15305. #
  15306. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15308. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  15309. if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
  15310. $as_echo_n "(cached) " >&6
  15311. else
  15312. lt_cv_prog_compiler_pic_works_GCJ=no
  15313. ac_outfile=conftest.$ac_objext
  15314. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15315. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15316. # Insert the option either (1) after the last *FLAGS variable, or
  15317. # (2) before a word containing "conftest.", or (3) at the end.
  15318. # Note that $ac_compile itself does not contain backslashes and begins
  15319. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15320. # The option is referenced via a variable to avoid confusing sed.
  15321. lt_compile=`echo "$ac_compile" | $SED \
  15322. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15323. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15324. -e 's:$: $lt_compiler_flag:'`
  15325. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15326. (eval "$lt_compile" 2>conftest.err)
  15327. ac_status=$?
  15328. cat conftest.err >&5
  15329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15330. if (exit $ac_status) && test -s "$ac_outfile"; then
  15331. # The compiler can only warn and ignore the option if not recognized
  15332. # So say no if there are warnings other than the usual output.
  15333. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15334. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15335. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15336. lt_cv_prog_compiler_pic_works_GCJ=yes
  15337. fi
  15338. fi
  15339. $RM conftest*
  15340. fi
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  15342. $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  15343. if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  15344. case $lt_prog_compiler_pic_GCJ in
  15345. "" | " "*) ;;
  15346. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15347. esac
  15348. else
  15349. lt_prog_compiler_pic_GCJ=
  15350. lt_prog_compiler_can_build_shared_GCJ=no
  15351. fi
  15352. fi
  15353. #
  15354. # Check to make sure the static flag actually works.
  15355. #
  15356. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15358. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15359. if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
  15360. $as_echo_n "(cached) " >&6
  15361. else
  15362. lt_cv_prog_compiler_static_works_GCJ=no
  15363. save_LDFLAGS="$LDFLAGS"
  15364. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15365. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15366. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15367. # The linker can only warn and ignore the option if not recognized
  15368. # So say no if there are warnings
  15369. if test -s conftest.err; then
  15370. # Append any errors to the config.log.
  15371. cat conftest.err 1>&5
  15372. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15373. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15374. if diff conftest.exp conftest.er2 >/dev/null; then
  15375. lt_cv_prog_compiler_static_works_GCJ=yes
  15376. fi
  15377. else
  15378. lt_cv_prog_compiler_static_works_GCJ=yes
  15379. fi
  15380. fi
  15381. $RM -r conftest*
  15382. LDFLAGS="$save_LDFLAGS"
  15383. fi
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  15385. $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  15386. if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  15387. :
  15388. else
  15389. lt_prog_compiler_static_GCJ=
  15390. fi
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15392. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15393. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  15394. $as_echo_n "(cached) " >&6
  15395. else
  15396. lt_cv_prog_compiler_c_o_GCJ=no
  15397. $RM -r conftest 2>/dev/null
  15398. mkdir conftest
  15399. cd conftest
  15400. mkdir out
  15401. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15402. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15403. # Insert the option either (1) after the last *FLAGS variable, or
  15404. # (2) before a word containing "conftest.", or (3) at the end.
  15405. # Note that $ac_compile itself does not contain backslashes and begins
  15406. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15407. lt_compile=`echo "$ac_compile" | $SED \
  15408. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15409. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15410. -e 's:$: $lt_compiler_flag:'`
  15411. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15412. (eval "$lt_compile" 2>out/conftest.err)
  15413. ac_status=$?
  15414. cat out/conftest.err >&5
  15415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15416. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15417. then
  15418. # The compiler can only warn and ignore the option if not recognized
  15419. # So say no if there are warnings
  15420. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15421. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15422. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15423. lt_cv_prog_compiler_c_o_GCJ=yes
  15424. fi
  15425. fi
  15426. chmod u+w . 2>&5
  15427. $RM conftest*
  15428. # SGI C++ compiler will create directory out/ii_files/ for
  15429. # template instantiation
  15430. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15431. $RM out/* && rmdir out
  15432. cd ..
  15433. $RM -r conftest
  15434. $RM conftest*
  15435. fi
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15437. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15439. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15440. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  15441. $as_echo_n "(cached) " >&6
  15442. else
  15443. lt_cv_prog_compiler_c_o_GCJ=no
  15444. $RM -r conftest 2>/dev/null
  15445. mkdir conftest
  15446. cd conftest
  15447. mkdir out
  15448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15449. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15450. # Insert the option either (1) after the last *FLAGS variable, or
  15451. # (2) before a word containing "conftest.", or (3) at the end.
  15452. # Note that $ac_compile itself does not contain backslashes and begins
  15453. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15454. lt_compile=`echo "$ac_compile" | $SED \
  15455. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15457. -e 's:$: $lt_compiler_flag:'`
  15458. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15459. (eval "$lt_compile" 2>out/conftest.err)
  15460. ac_status=$?
  15461. cat out/conftest.err >&5
  15462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15463. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15464. then
  15465. # The compiler can only warn and ignore the option if not recognized
  15466. # So say no if there are warnings
  15467. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15468. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15469. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15470. lt_cv_prog_compiler_c_o_GCJ=yes
  15471. fi
  15472. fi
  15473. chmod u+w . 2>&5
  15474. $RM conftest*
  15475. # SGI C++ compiler will create directory out/ii_files/ for
  15476. # template instantiation
  15477. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15478. $RM out/* && rmdir out
  15479. cd ..
  15480. $RM -r conftest
  15481. $RM conftest*
  15482. fi
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15484. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15485. hard_links="nottested"
  15486. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15487. # do not overwrite the value of need_locks provided by the user
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15489. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15490. hard_links=yes
  15491. $RM conftest*
  15492. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15493. touch conftest.a
  15494. ln conftest.a conftest.b 2>&5 || hard_links=no
  15495. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15497. $as_echo "$hard_links" >&6; }
  15498. if test "$hard_links" = no; then
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15500. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15501. need_locks=warn
  15502. fi
  15503. else
  15504. need_locks=no
  15505. fi
  15506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15507. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15508. runpath_var=
  15509. allow_undefined_flag_GCJ=
  15510. always_export_symbols_GCJ=no
  15511. archive_cmds_GCJ=
  15512. archive_expsym_cmds_GCJ=
  15513. compiler_needs_object_GCJ=no
  15514. enable_shared_with_static_runtimes_GCJ=no
  15515. export_dynamic_flag_spec_GCJ=
  15516. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15517. hardcode_automatic_GCJ=no
  15518. hardcode_direct_GCJ=no
  15519. hardcode_direct_absolute_GCJ=no
  15520. hardcode_libdir_flag_spec_GCJ=
  15521. hardcode_libdir_flag_spec_ld_GCJ=
  15522. hardcode_libdir_separator_GCJ=
  15523. hardcode_minus_L_GCJ=no
  15524. hardcode_shlibpath_var_GCJ=unsupported
  15525. inherit_rpath_GCJ=no
  15526. link_all_deplibs_GCJ=unknown
  15527. module_cmds_GCJ=
  15528. module_expsym_cmds_GCJ=
  15529. old_archive_from_new_cmds_GCJ=
  15530. old_archive_from_expsyms_cmds_GCJ=
  15531. thread_safe_flag_spec_GCJ=
  15532. whole_archive_flag_spec_GCJ=
  15533. # include_expsyms should be a list of space-separated symbols to be *always*
  15534. # included in the symbol list
  15535. include_expsyms_GCJ=
  15536. # exclude_expsyms can be an extended regexp of symbols to exclude
  15537. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15538. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15539. # as well as any symbol that contains `d'.
  15540. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15541. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15542. # platforms (ab)use it in PIC code, but their linkers get confused if
  15543. # the symbol is explicitly referenced. Since portable code cannot
  15544. # rely on this symbol name, it's probably fine to never include it in
  15545. # preloaded symbol tables.
  15546. # Exclude shared library initialization/finalization symbols.
  15547. extract_expsyms_cmds=
  15548. case $host_os in
  15549. cygwin* | mingw* | pw32* | cegcc*)
  15550. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15551. # When not using gcc, we currently assume that we are using
  15552. # Microsoft Visual C++.
  15553. if test "$GCC" != yes; then
  15554. with_gnu_ld=no
  15555. fi
  15556. ;;
  15557. interix*)
  15558. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15559. with_gnu_ld=yes
  15560. ;;
  15561. openbsd*)
  15562. with_gnu_ld=no
  15563. ;;
  15564. esac
  15565. ld_shlibs_GCJ=yes
  15566. # On some targets, GNU ld is compatible enough with the native linker
  15567. # that we're better off using the native interface for both.
  15568. lt_use_gnu_ld_interface=no
  15569. if test "$with_gnu_ld" = yes; then
  15570. case $host_os in
  15571. aix*)
  15572. # The AIX port of GNU ld has always aspired to compatibility
  15573. # with the native linker. However, as the warning in the GNU ld
  15574. # block says, versions before 2.19.5* couldn't really create working
  15575. # shared libraries, regardless of the interface used.
  15576. case `$LD -v 2>&1` in
  15577. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  15578. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  15579. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  15580. *)
  15581. lt_use_gnu_ld_interface=yes
  15582. ;;
  15583. esac
  15584. ;;
  15585. *)
  15586. lt_use_gnu_ld_interface=yes
  15587. ;;
  15588. esac
  15589. fi
  15590. if test "$lt_use_gnu_ld_interface" = yes; then
  15591. # If archive_cmds runs LD, not CC, wlarc should be empty
  15592. wlarc='${wl}'
  15593. # Set some defaults for GNU ld with shared library support. These
  15594. # are reset later if shared libraries are not supported. Putting them
  15595. # here allows them to be overridden if necessary.
  15596. runpath_var=LD_RUN_PATH
  15597. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15598. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15599. # ancient GNU ld didn't support --whole-archive et. al.
  15600. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  15601. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15602. else
  15603. whole_archive_flag_spec_GCJ=
  15604. fi
  15605. supports_anon_versioning=no
  15606. case `$LD -v 2>&1` in
  15607. *GNU\ gold*) supports_anon_versioning=yes ;;
  15608. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15609. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15610. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15611. *\ 2.11.*) ;; # other 2.11 versions
  15612. *) supports_anon_versioning=yes ;;
  15613. esac
  15614. # See if GNU ld supports shared libraries.
  15615. case $host_os in
  15616. aix[3-9]*)
  15617. # On AIX/PPC, the GNU linker is very broken
  15618. if test "$host_cpu" != ia64; then
  15619. ld_shlibs_GCJ=no
  15620. cat <<_LT_EOF 1>&2
  15621. *** Warning: the GNU linker, at least up to release 2.19, is reported
  15622. *** to be unable to reliably create shared libraries on AIX.
  15623. *** Therefore, libtool is disabling shared libraries support. If you
  15624. *** really care for shared libraries, you may want to install binutils
  15625. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  15626. *** You will then need to restart the configuration process.
  15627. _LT_EOF
  15628. fi
  15629. ;;
  15630. amigaos*)
  15631. case $host_cpu in
  15632. powerpc)
  15633. # see comment about AmigaOS4 .so support
  15634. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15635. archive_expsym_cmds_GCJ=''
  15636. ;;
  15637. m68k)
  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. ;;
  15642. esac
  15643. ;;
  15644. beos*)
  15645. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15646. allow_undefined_flag_GCJ=unsupported
  15647. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15648. # support --undefined. This deserves some investigation. FIXME
  15649. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15650. else
  15651. ld_shlibs_GCJ=no
  15652. fi
  15653. ;;
  15654. cygwin* | mingw* | pw32* | cegcc*)
  15655. # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15656. # as there is no search path for DLLs.
  15657. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15658. export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
  15659. allow_undefined_flag_GCJ=unsupported
  15660. always_export_symbols_GCJ=no
  15661. enable_shared_with_static_runtimes_GCJ=yes
  15662. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15663. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  15664. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15665. # If the export-symbols file already is a .def file (1st line
  15666. # is EXPORTS), use it as is; otherwise, prepend...
  15667. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15668. cp $export_symbols $output_objdir/$soname.def;
  15669. else
  15670. echo EXPORTS > $output_objdir/$soname.def;
  15671. cat $export_symbols >> $output_objdir/$soname.def;
  15672. fi~
  15673. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15674. else
  15675. ld_shlibs_GCJ=no
  15676. fi
  15677. ;;
  15678. haiku*)
  15679. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15680. link_all_deplibs_GCJ=yes
  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* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  15697. tmp_diet=no
  15698. if test "$host_os" = linux-dietlibc; then
  15699. case $cc_basename in
  15700. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  15701. esac
  15702. fi
  15703. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  15704. && test "$tmp_diet" = no
  15705. then
  15706. tmp_addflag=' $pic_flag'
  15707. tmp_sharedflag='-shared'
  15708. case $cc_basename,$host_cpu in
  15709. pgcc*) # Portland Group C compiler
  15710. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  15711. tmp_addflag=' $pic_flag'
  15712. ;;
  15713. pgf77* | pgf90* | pgf95* | pgfortran*)
  15714. # Portland Group f77 and f90 compilers
  15715. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  15716. tmp_addflag=' $pic_flag -Mnomain' ;;
  15717. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15718. tmp_addflag=' -i_dynamic' ;;
  15719. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15720. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15721. ifc* | ifort*) # Intel Fortran compiler
  15722. tmp_addflag=' -nofor_main' ;;
  15723. lf95*) # Lahey Fortran 8.1
  15724. whole_archive_flag_spec_GCJ=
  15725. tmp_sharedflag='--shared' ;;
  15726. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  15727. tmp_sharedflag='-qmkshrobj'
  15728. tmp_addflag= ;;
  15729. nvcc*) # Cuda Compiler Driver 2.2
  15730. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  15731. compiler_needs_object_GCJ=yes
  15732. ;;
  15733. esac
  15734. case `$CC -V 2>&1 | sed 5q` in
  15735. *Sun\ C*) # Sun C 5.9
  15736. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  15737. compiler_needs_object_GCJ=yes
  15738. tmp_sharedflag='-G' ;;
  15739. *Sun\ F*) # Sun Fortran 8.3
  15740. tmp_sharedflag='-G' ;;
  15741. esac
  15742. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15743. if test "x$supports_anon_versioning" = xyes; then
  15744. archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
  15745. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15746. echo "local: *; };" >> $output_objdir/$libname.ver~
  15747. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15748. fi
  15749. case $cc_basename in
  15750. xlf* | bgf* | bgxlf* | mpixlf*)
  15751. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  15752. whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
  15753. hardcode_libdir_flag_spec_GCJ=
  15754. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15755. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  15756. if test "x$supports_anon_versioning" = xyes; then
  15757. archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
  15758. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15759. echo "local: *; };" >> $output_objdir/$libname.ver~
  15760. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  15761. fi
  15762. ;;
  15763. esac
  15764. else
  15765. ld_shlibs_GCJ=no
  15766. fi
  15767. ;;
  15768. netbsd*)
  15769. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15770. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15771. wlarc=
  15772. else
  15773. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15774. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15775. fi
  15776. ;;
  15777. solaris*)
  15778. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  15779. ld_shlibs_GCJ=no
  15780. cat <<_LT_EOF 1>&2
  15781. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15782. *** create shared libraries on Solaris systems. Therefore, libtool
  15783. *** is disabling shared libraries support. We urge you to upgrade GNU
  15784. *** binutils to release 2.9.1 or newer. Another option is to modify
  15785. *** your PATH or compiler configuration so that the native linker is
  15786. *** used, and then restart.
  15787. _LT_EOF
  15788. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15789. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15790. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15791. else
  15792. ld_shlibs_GCJ=no
  15793. fi
  15794. ;;
  15795. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15796. case `$LD -v 2>&1` in
  15797. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15798. ld_shlibs_GCJ=no
  15799. cat <<_LT_EOF 1>&2
  15800. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15801. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15802. *** is disabling shared libraries support. We urge you to upgrade GNU
  15803. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15804. *** your PATH or compiler configuration so that the native linker is
  15805. *** used, and then restart.
  15806. _LT_EOF
  15807. ;;
  15808. *)
  15809. # For security reasons, it is highly recommended that you always
  15810. # use absolute paths for naming shared libraries, and exclude the
  15811. # DT_RUNPATH tag from executables and libraries. But doing so
  15812. # requires that you compile everything twice, which is a pain.
  15813. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15814. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15815. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15816. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15817. else
  15818. ld_shlibs_GCJ=no
  15819. fi
  15820. ;;
  15821. esac
  15822. ;;
  15823. sunos4*)
  15824. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15825. wlarc=
  15826. hardcode_direct_GCJ=yes
  15827. hardcode_shlibpath_var_GCJ=no
  15828. ;;
  15829. *)
  15830. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15831. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15832. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15833. else
  15834. ld_shlibs_GCJ=no
  15835. fi
  15836. ;;
  15837. esac
  15838. if test "$ld_shlibs_GCJ" = no; then
  15839. runpath_var=
  15840. hardcode_libdir_flag_spec_GCJ=
  15841. export_dynamic_flag_spec_GCJ=
  15842. whole_archive_flag_spec_GCJ=
  15843. fi
  15844. else
  15845. # PORTME fill in a description of your system's linker (not GNU ld)
  15846. case $host_os in
  15847. aix3*)
  15848. allow_undefined_flag_GCJ=unsupported
  15849. always_export_symbols_GCJ=yes
  15850. 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'
  15851. # Note: this linker hardcodes the directories in LIBPATH if there
  15852. # are no directories specified by -L.
  15853. hardcode_minus_L_GCJ=yes
  15854. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15855. # Neither direct hardcoding nor static linking is supported with a
  15856. # broken collect2.
  15857. hardcode_direct_GCJ=unsupported
  15858. fi
  15859. ;;
  15860. aix[4-9]*)
  15861. if test "$host_cpu" = ia64; then
  15862. # On IA64, the linker does run time linking by default, so we don't
  15863. # have to do anything special.
  15864. aix_use_runtimelinking=no
  15865. exp_sym_flag='-Bexport'
  15866. no_entry_flag=""
  15867. else
  15868. # If we're using GNU nm, then we don't want the "-C" option.
  15869. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15870. # Also, AIX nm treats weak defined symbols like other global
  15871. # defined symbols, whereas GNU nm marks them as "W".
  15872. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15873. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  15874. else
  15875. 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'
  15876. fi
  15877. aix_use_runtimelinking=no
  15878. # Test if we are trying to use run time linking or normal
  15879. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15880. # need to do runtime linking.
  15881. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  15882. for ld_flag in $LDFLAGS; do
  15883. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15884. aix_use_runtimelinking=yes
  15885. break
  15886. fi
  15887. done
  15888. ;;
  15889. esac
  15890. exp_sym_flag='-bexport'
  15891. no_entry_flag='-bnoentry'
  15892. fi
  15893. # When large executables or shared objects are built, AIX ld can
  15894. # have problems creating the table of contents. If linking a library
  15895. # or program results in "error TOC overflow" add -mminimal-toc to
  15896. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15897. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15898. archive_cmds_GCJ=''
  15899. hardcode_direct_GCJ=yes
  15900. hardcode_direct_absolute_GCJ=yes
  15901. hardcode_libdir_separator_GCJ=':'
  15902. link_all_deplibs_GCJ=yes
  15903. file_list_spec_GCJ='${wl}-f,'
  15904. if test "$GCC" = yes; then
  15905. case $host_os in aix4.[012]|aix4.[012].*)
  15906. # We only want to do this on AIX 4.2 and lower, the check
  15907. # below for broken collect2 doesn't work under 4.3+
  15908. collect2name=`${CC} -print-prog-name=collect2`
  15909. if test -f "$collect2name" &&
  15910. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  15911. then
  15912. # We have reworked collect2
  15913. :
  15914. else
  15915. # We have old collect2
  15916. hardcode_direct_GCJ=unsupported
  15917. # It fails to find uninstalled libraries when the uninstalled
  15918. # path is not listed in the libpath. Setting hardcode_minus_L
  15919. # to unsupported forces relinking
  15920. hardcode_minus_L_GCJ=yes
  15921. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15922. hardcode_libdir_separator_GCJ=
  15923. fi
  15924. ;;
  15925. esac
  15926. shared_flag='-shared'
  15927. if test "$aix_use_runtimelinking" = yes; then
  15928. shared_flag="$shared_flag "'${wl}-G'
  15929. fi
  15930. else
  15931. # not using gcc
  15932. if test "$host_cpu" = ia64; then
  15933. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15934. # chokes on -Wl,-G. The following line is correct:
  15935. shared_flag='-G'
  15936. else
  15937. if test "$aix_use_runtimelinking" = yes; then
  15938. shared_flag='${wl}-G'
  15939. else
  15940. shared_flag='${wl}-bM:SRE'
  15941. fi
  15942. fi
  15943. fi
  15944. export_dynamic_flag_spec_GCJ='${wl}-bexpall'
  15945. # It seems that -bexpall does not export symbols beginning with
  15946. # underscore (_), so it is better to generate a list of symbols to export.
  15947. always_export_symbols_GCJ=yes
  15948. if test "$aix_use_runtimelinking" = yes; then
  15949. # Warning - without using the other runtime loading flags (-brtl),
  15950. # -berok will link without error, but may produce a broken library.
  15951. allow_undefined_flag_GCJ='-berok'
  15952. # Determine the default libpath from the value encoded in an
  15953. # empty executable.
  15954. if test x$gcc_no_link = xyes; then
  15955. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15956. fi
  15957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15958. /* end confdefs.h. */
  15959. int
  15960. main ()
  15961. {
  15962. ;
  15963. return 0;
  15964. }
  15965. _ACEOF
  15966. if ac_fn_c_try_link "$LINENO"; then :
  15967. lt_aix_libpath_sed='
  15968. /Import File Strings/,/^$/ {
  15969. /^0/ {
  15970. s/^0 *\(.*\)$/\1/
  15971. p
  15972. }
  15973. }'
  15974. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15975. # Check for a 64-bit object if we didn't find anything.
  15976. if test -z "$aix_libpath"; then
  15977. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15978. fi
  15979. fi
  15980. rm -f core conftest.err conftest.$ac_objext \
  15981. conftest$ac_exeext conftest.$ac_ext
  15982. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15983. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15984. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15985. else
  15986. if test "$host_cpu" = ia64; then
  15987. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15988. allow_undefined_flag_GCJ="-z nodefs"
  15989. 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"
  15990. else
  15991. # Determine the default libpath from the value encoded in an
  15992. # empty executable.
  15993. if test x$gcc_no_link = xyes; then
  15994. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15995. fi
  15996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15997. /* end confdefs.h. */
  15998. int
  15999. main ()
  16000. {
  16001. ;
  16002. return 0;
  16003. }
  16004. _ACEOF
  16005. if ac_fn_c_try_link "$LINENO"; then :
  16006. lt_aix_libpath_sed='
  16007. /Import File Strings/,/^$/ {
  16008. /^0/ {
  16009. s/^0 *\(.*\)$/\1/
  16010. p
  16011. }
  16012. }'
  16013. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16014. # Check for a 64-bit object if we didn't find anything.
  16015. if test -z "$aix_libpath"; then
  16016. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16017. fi
  16018. fi
  16019. rm -f core conftest.err conftest.$ac_objext \
  16020. conftest$ac_exeext conftest.$ac_ext
  16021. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16022. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16023. # Warning - without using the other run time loading flags,
  16024. # -berok will link without error, but may produce a broken library.
  16025. no_undefined_flag_GCJ=' ${wl}-bernotok'
  16026. allow_undefined_flag_GCJ=' ${wl}-berok'
  16027. if test "$with_gnu_ld" = yes; then
  16028. # We only use this code for GNU lds that support --whole-archive.
  16029. whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16030. else
  16031. # Exported symbols can be pulled into shared objects from archives
  16032. whole_archive_flag_spec_GCJ='$convenience'
  16033. fi
  16034. archive_cmds_need_lc_GCJ=yes
  16035. # This is similar to how AIX traditionally builds its shared libraries.
  16036. 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'
  16037. fi
  16038. fi
  16039. ;;
  16040. amigaos*)
  16041. case $host_cpu in
  16042. powerpc)
  16043. # see comment about AmigaOS4 .so support
  16044. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16045. archive_expsym_cmds_GCJ=''
  16046. ;;
  16047. m68k)
  16048. 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)'
  16049. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16050. hardcode_minus_L_GCJ=yes
  16051. ;;
  16052. esac
  16053. ;;
  16054. bsdi[45]*)
  16055. export_dynamic_flag_spec_GCJ=-rdynamic
  16056. ;;
  16057. cygwin* | mingw* | pw32* | cegcc*)
  16058. # When not using gcc, we currently assume that we are using
  16059. # Microsoft Visual C++.
  16060. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16061. # no search path for DLLs.
  16062. hardcode_libdir_flag_spec_GCJ=' '
  16063. allow_undefined_flag_GCJ=unsupported
  16064. # Tell ltmain to make .lib files, not .a files.
  16065. libext=lib
  16066. # Tell ltmain to make .dll files, not .so files.
  16067. shrext_cmds=".dll"
  16068. # FIXME: Setting linknames here is a bad hack.
  16069. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  16070. # The linker will automatically build a .lib file if we build a DLL.
  16071. old_archive_from_new_cmds_GCJ='true'
  16072. # FIXME: Should let the user specify the lib program.
  16073. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16074. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  16075. enable_shared_with_static_runtimes_GCJ=yes
  16076. ;;
  16077. darwin* | rhapsody*)
  16078. archive_cmds_need_lc_GCJ=no
  16079. hardcode_direct_GCJ=no
  16080. hardcode_automatic_GCJ=yes
  16081. hardcode_shlibpath_var_GCJ=unsupported
  16082. if test "$lt_cv_ld_force_load" = "yes"; then
  16083. whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  16084. else
  16085. whole_archive_flag_spec_GCJ=''
  16086. fi
  16087. link_all_deplibs_GCJ=yes
  16088. allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
  16089. case $cc_basename in
  16090. ifort*) _lt_dar_can_shared=yes ;;
  16091. *) _lt_dar_can_shared=$GCC ;;
  16092. esac
  16093. if test "$_lt_dar_can_shared" = "yes"; then
  16094. output_verbose_link_cmd=func_echo_all
  16095. 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}"
  16096. module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16097. 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}"
  16098. 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}"
  16099. else
  16100. ld_shlibs_GCJ=no
  16101. fi
  16102. ;;
  16103. dgux*)
  16104. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16105. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16106. hardcode_shlibpath_var_GCJ=no
  16107. ;;
  16108. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16109. # support. Future versions do this automatically, but an explicit c++rt0.o
  16110. # does not break anything, and helps significantly (at the cost of a little
  16111. # extra space).
  16112. freebsd2.2*)
  16113. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16114. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16115. hardcode_direct_GCJ=yes
  16116. hardcode_shlibpath_var_GCJ=no
  16117. ;;
  16118. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16119. freebsd2.*)
  16120. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16121. hardcode_direct_GCJ=yes
  16122. hardcode_minus_L_GCJ=yes
  16123. hardcode_shlibpath_var_GCJ=no
  16124. ;;
  16125. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16126. freebsd* | dragonfly*)
  16127. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16128. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16129. hardcode_direct_GCJ=yes
  16130. hardcode_shlibpath_var_GCJ=no
  16131. ;;
  16132. hpux9*)
  16133. if test "$GCC" = yes; then
  16134. 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'
  16135. else
  16136. 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'
  16137. fi
  16138. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16139. hardcode_libdir_separator_GCJ=:
  16140. hardcode_direct_GCJ=yes
  16141. # hardcode_minus_L: Not really in the search PATH,
  16142. # but as the default location of the library.
  16143. hardcode_minus_L_GCJ=yes
  16144. export_dynamic_flag_spec_GCJ='${wl}-E'
  16145. ;;
  16146. hpux10*)
  16147. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  16148. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16149. else
  16150. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16151. fi
  16152. if test "$with_gnu_ld" = no; then
  16153. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16154. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16155. hardcode_libdir_separator_GCJ=:
  16156. hardcode_direct_GCJ=yes
  16157. hardcode_direct_absolute_GCJ=yes
  16158. export_dynamic_flag_spec_GCJ='${wl}-E'
  16159. # hardcode_minus_L: Not really in the search PATH,
  16160. # but as the default location of the library.
  16161. hardcode_minus_L_GCJ=yes
  16162. fi
  16163. ;;
  16164. hpux11*)
  16165. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  16166. case $host_cpu in
  16167. hppa*64*)
  16168. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16169. ;;
  16170. ia64*)
  16171. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16172. ;;
  16173. *)
  16174. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16175. ;;
  16176. esac
  16177. else
  16178. case $host_cpu in
  16179. hppa*64*)
  16180. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16181. ;;
  16182. ia64*)
  16183. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16184. ;;
  16185. *)
  16186. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16187. ;;
  16188. esac
  16189. fi
  16190. if test "$with_gnu_ld" = no; then
  16191. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16192. hardcode_libdir_separator_GCJ=:
  16193. case $host_cpu in
  16194. hppa*64*|ia64*)
  16195. hardcode_direct_GCJ=no
  16196. hardcode_shlibpath_var_GCJ=no
  16197. ;;
  16198. *)
  16199. hardcode_direct_GCJ=yes
  16200. hardcode_direct_absolute_GCJ=yes
  16201. export_dynamic_flag_spec_GCJ='${wl}-E'
  16202. # hardcode_minus_L: Not really in the search PATH,
  16203. # but as the default location of the library.
  16204. hardcode_minus_L_GCJ=yes
  16205. ;;
  16206. esac
  16207. fi
  16208. ;;
  16209. irix5* | irix6* | nonstopux*)
  16210. if test "$GCC" = yes; then
  16211. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16212. # Try to use the -exported_symbol ld option, if it does not
  16213. # work, assume that -exports_file does not work either and
  16214. # implicitly export all symbols.
  16215. save_LDFLAGS="$LDFLAGS"
  16216. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  16217. if test x$gcc_no_link = xyes; then
  16218. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16219. fi
  16220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16221. /* end confdefs.h. */
  16222. int foo(void) {}
  16223. _ACEOF
  16224. if ac_fn_c_try_link "$LINENO"; then :
  16225. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  16226. fi
  16227. rm -f core conftest.err conftest.$ac_objext \
  16228. conftest$ac_exeext conftest.$ac_ext
  16229. LDFLAGS="$save_LDFLAGS"
  16230. else
  16231. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16232. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  16233. fi
  16234. archive_cmds_need_lc_GCJ='no'
  16235. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16236. hardcode_libdir_separator_GCJ=:
  16237. inherit_rpath_GCJ=yes
  16238. link_all_deplibs_GCJ=yes
  16239. ;;
  16240. netbsd*)
  16241. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16242. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16243. else
  16244. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16245. fi
  16246. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16247. hardcode_direct_GCJ=yes
  16248. hardcode_shlibpath_var_GCJ=no
  16249. ;;
  16250. newsos6)
  16251. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16252. hardcode_direct_GCJ=yes
  16253. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16254. hardcode_libdir_separator_GCJ=:
  16255. hardcode_shlibpath_var_GCJ=no
  16256. ;;
  16257. *nto* | *qnx*)
  16258. ;;
  16259. openbsd*)
  16260. if test -f /usr/libexec/ld.so; then
  16261. hardcode_direct_GCJ=yes
  16262. hardcode_shlibpath_var_GCJ=no
  16263. hardcode_direct_absolute_GCJ=yes
  16264. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16265. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16266. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16267. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16268. export_dynamic_flag_spec_GCJ='${wl}-E'
  16269. else
  16270. case $host_os in
  16271. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16272. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16273. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16274. ;;
  16275. *)
  16276. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16277. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16278. ;;
  16279. esac
  16280. fi
  16281. else
  16282. ld_shlibs_GCJ=no
  16283. fi
  16284. ;;
  16285. os2*)
  16286. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16287. hardcode_minus_L_GCJ=yes
  16288. allow_undefined_flag_GCJ=unsupported
  16289. 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'
  16290. old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16291. ;;
  16292. osf3*)
  16293. if test "$GCC" = yes; then
  16294. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16295. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16296. else
  16297. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16298. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16299. fi
  16300. archive_cmds_need_lc_GCJ='no'
  16301. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16302. hardcode_libdir_separator_GCJ=:
  16303. ;;
  16304. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16305. if test "$GCC" = yes; then
  16306. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16307. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16308. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16309. else
  16310. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16311. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16312. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  16313. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  16314. # Both c and cxx compiler support -rpath directly
  16315. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16316. fi
  16317. archive_cmds_need_lc_GCJ='no'
  16318. hardcode_libdir_separator_GCJ=:
  16319. ;;
  16320. solaris*)
  16321. no_undefined_flag_GCJ=' -z defs'
  16322. if test "$GCC" = yes; then
  16323. wlarc='${wl}'
  16324. archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16325. archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16326. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  16327. else
  16328. case `$CC -V 2>&1` in
  16329. *"Compilers 5.0"*)
  16330. wlarc=''
  16331. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16332. archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16333. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  16334. ;;
  16335. *)
  16336. wlarc='${wl}'
  16337. archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16338. archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16339. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  16340. ;;
  16341. esac
  16342. fi
  16343. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16344. hardcode_shlibpath_var_GCJ=no
  16345. case $host_os in
  16346. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16347. *)
  16348. # The compiler driver will combine and reorder linker options,
  16349. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16350. # but is careful enough not to reorder.
  16351. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16352. if test "$GCC" = yes; then
  16353. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16354. else
  16355. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  16356. fi
  16357. ;;
  16358. esac
  16359. link_all_deplibs_GCJ=yes
  16360. ;;
  16361. sunos4*)
  16362. if test "x$host_vendor" = xsequent; then
  16363. # Use $CC to link under sequent, because it throws in some extra .o
  16364. # files that make .init and .fini sections work.
  16365. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16366. else
  16367. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16368. fi
  16369. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16370. hardcode_direct_GCJ=yes
  16371. hardcode_minus_L_GCJ=yes
  16372. hardcode_shlibpath_var_GCJ=no
  16373. ;;
  16374. sysv4)
  16375. case $host_vendor in
  16376. sni)
  16377. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16378. hardcode_direct_GCJ=yes # is this really true???
  16379. ;;
  16380. siemens)
  16381. ## LD is ld it makes a PLAMLIB
  16382. ## CC just makes a GrossModule.
  16383. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16384. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16385. hardcode_direct_GCJ=no
  16386. ;;
  16387. motorola)
  16388. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16389. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16390. ;;
  16391. esac
  16392. runpath_var='LD_RUN_PATH'
  16393. hardcode_shlibpath_var_GCJ=no
  16394. ;;
  16395. sysv4.3*)
  16396. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16397. hardcode_shlibpath_var_GCJ=no
  16398. export_dynamic_flag_spec_GCJ='-Bexport'
  16399. ;;
  16400. sysv4*MP*)
  16401. if test -d /usr/nec; then
  16402. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16403. hardcode_shlibpath_var_GCJ=no
  16404. runpath_var=LD_RUN_PATH
  16405. hardcode_runpath_var=yes
  16406. ld_shlibs_GCJ=yes
  16407. fi
  16408. ;;
  16409. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16410. no_undefined_flag_GCJ='${wl}-z,text'
  16411. archive_cmds_need_lc_GCJ=no
  16412. hardcode_shlibpath_var_GCJ=no
  16413. runpath_var='LD_RUN_PATH'
  16414. if test "$GCC" = yes; then
  16415. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16416. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16417. else
  16418. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16419. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16420. fi
  16421. ;;
  16422. sysv5* | sco3.2v5* | sco5v6*)
  16423. # Note: We can NOT use -z defs as we might desire, because we do not
  16424. # link with -lc, and that would cause any symbols used from libc to
  16425. # always be unresolved, which means just about no library would
  16426. # ever link correctly. If we're not using GNU ld we use -z text
  16427. # though, which does catch some bad symbols but isn't as heavy-handed
  16428. # as -z defs.
  16429. no_undefined_flag_GCJ='${wl}-z,text'
  16430. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16431. archive_cmds_need_lc_GCJ=no
  16432. hardcode_shlibpath_var_GCJ=no
  16433. hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
  16434. hardcode_libdir_separator_GCJ=':'
  16435. link_all_deplibs_GCJ=yes
  16436. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16437. runpath_var='LD_RUN_PATH'
  16438. if test "$GCC" = yes; then
  16439. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16440. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16441. else
  16442. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16443. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16444. fi
  16445. ;;
  16446. uts4*)
  16447. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16448. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16449. hardcode_shlibpath_var_GCJ=no
  16450. ;;
  16451. *)
  16452. ld_shlibs_GCJ=no
  16453. ;;
  16454. esac
  16455. if test x$host_vendor = xsni; then
  16456. case $host in
  16457. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16458. export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
  16459. ;;
  16460. esac
  16461. fi
  16462. fi
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
  16464. $as_echo "$ld_shlibs_GCJ" >&6; }
  16465. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16466. with_gnu_ld_GCJ=$with_gnu_ld
  16467. #
  16468. # Do we need to explicitly link libc?
  16469. #
  16470. case "x$archive_cmds_need_lc_GCJ" in
  16471. x|xyes)
  16472. # Assume -lc should be added
  16473. archive_cmds_need_lc_GCJ=yes
  16474. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16475. case $archive_cmds_GCJ in
  16476. *'~'*)
  16477. # FIXME: we may have to deal with multi-command sequences.
  16478. ;;
  16479. '$CC '*)
  16480. # Test whether the compiler implicitly links with -lc since on some
  16481. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16482. # to ld, don't add -lc before -lgcc.
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  16484. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  16485. if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
  16486. $as_echo_n "(cached) " >&6
  16487. else
  16488. $RM conftest*
  16489. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16490. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16491. (eval $ac_compile) 2>&5
  16492. ac_status=$?
  16493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16494. test $ac_status = 0; } 2>conftest.err; then
  16495. soname=conftest
  16496. lib=conftest
  16497. libobjs=conftest.$ac_objext
  16498. deplibs=
  16499. wl=$lt_prog_compiler_wl_GCJ
  16500. pic_flag=$lt_prog_compiler_pic_GCJ
  16501. compiler_flags=-v
  16502. linker_flags=-v
  16503. verstring=
  16504. output_objdir=.
  16505. libname=conftest
  16506. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16507. allow_undefined_flag_GCJ=
  16508. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  16509. (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16510. ac_status=$?
  16511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16512. test $ac_status = 0; }
  16513. then
  16514. lt_cv_archive_cmds_need_lc_GCJ=no
  16515. else
  16516. lt_cv_archive_cmds_need_lc_GCJ=yes
  16517. fi
  16518. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16519. else
  16520. cat conftest.err 1>&5
  16521. fi
  16522. $RM conftest*
  16523. fi
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
  16525. $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
  16526. archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
  16527. ;;
  16528. esac
  16529. fi
  16530. ;;
  16531. esac
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16533. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  16534. hardcode_action_GCJ=
  16535. if test -n "$hardcode_libdir_flag_spec_GCJ" ||
  16536. test -n "$runpath_var_GCJ" ||
  16537. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16538. # We can hardcode non-existent directories.
  16539. if test "$hardcode_direct_GCJ" != no &&
  16540. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16541. # have to relink, otherwise we might link with an installed library
  16542. # when we should be linking with a yet-to-be-installed one
  16543. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16544. test "$hardcode_minus_L_GCJ" != no; then
  16545. # Linking always hardcodes the temporary library directory.
  16546. hardcode_action_GCJ=relink
  16547. else
  16548. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16549. hardcode_action_GCJ=immediate
  16550. fi
  16551. else
  16552. # We cannot hardcode anything, or else we can only hardcode existing
  16553. # directories.
  16554. hardcode_action_GCJ=unsupported
  16555. fi
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
  16557. $as_echo "$hardcode_action_GCJ" >&6; }
  16558. if test "$hardcode_action_GCJ" = relink ||
  16559. test "$inherit_rpath_GCJ" = yes; then
  16560. # Fast installation is not supported
  16561. enable_fast_install=no
  16562. elif test "$shlibpath_overrides_runpath" = yes ||
  16563. test "$enable_shared" = no; then
  16564. # Fast installation is not necessary
  16565. enable_fast_install=needless
  16566. fi
  16567. fi
  16568. compiler_GCJ=${GCJ-gcj}
  16569. ac_ext=c
  16570. ac_cpp='$CPP $CPPFLAGS'
  16571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16574. if test "x$CC" != xcc; then
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  16576. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  16577. else
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  16579. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  16580. fi
  16581. set dummy $CC; ac_cc=`$as_echo "$2" |
  16582. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  16583. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  16584. $as_echo_n "(cached) " >&6
  16585. else
  16586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16587. /* end confdefs.h. */
  16588. int
  16589. main ()
  16590. {
  16591. ;
  16592. return 0;
  16593. }
  16594. _ACEOF
  16595. # Make sure it works both with $CC and with simple cc.
  16596. # We do the test twice because some compilers refuse to overwrite an
  16597. # existing .o file with -o, though they will create one.
  16598. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  16599. rm -f conftest2.*
  16600. if { { case "(($ac_try" in
  16601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16602. *) ac_try_echo=$ac_try;;
  16603. esac
  16604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16605. $as_echo "$ac_try_echo"; } >&5
  16606. (eval "$ac_try") 2>&5
  16607. ac_status=$?
  16608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16609. test $ac_status = 0; } &&
  16610. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  16611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16612. *) ac_try_echo=$ac_try;;
  16613. esac
  16614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16615. $as_echo "$ac_try_echo"; } >&5
  16616. (eval "$ac_try") 2>&5
  16617. ac_status=$?
  16618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16619. test $ac_status = 0; };
  16620. then
  16621. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  16622. if test "x$CC" != xcc; then
  16623. # Test first that cc exists at all.
  16624. if { ac_try='cc -c conftest.$ac_ext >&5'
  16625. { { case "(($ac_try" in
  16626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16627. *) ac_try_echo=$ac_try;;
  16628. esac
  16629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16630. $as_echo "$ac_try_echo"; } >&5
  16631. (eval "$ac_try") 2>&5
  16632. ac_status=$?
  16633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16634. test $ac_status = 0; }; }; then
  16635. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  16636. rm -f conftest2.*
  16637. if { { case "(($ac_try" in
  16638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16639. *) ac_try_echo=$ac_try;;
  16640. esac
  16641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16642. $as_echo "$ac_try_echo"; } >&5
  16643. (eval "$ac_try") 2>&5
  16644. ac_status=$?
  16645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16646. test $ac_status = 0; } &&
  16647. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  16648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16649. *) ac_try_echo=$ac_try;;
  16650. esac
  16651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16652. $as_echo "$ac_try_echo"; } >&5
  16653. (eval "$ac_try") 2>&5
  16654. ac_status=$?
  16655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16656. test $ac_status = 0; };
  16657. then
  16658. # cc works too.
  16659. :
  16660. else
  16661. # cc exists but doesn't like -o.
  16662. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  16663. fi
  16664. fi
  16665. fi
  16666. else
  16667. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  16668. fi
  16669. rm -f core conftest*
  16670. fi
  16671. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  16672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16673. $as_echo "yes" >&6; }
  16674. else
  16675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16676. $as_echo "no" >&6; }
  16677. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  16678. fi
  16679. # FIXME: we rely on the cache variable name because
  16680. # there is no other way.
  16681. set dummy $CC
  16682. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  16683. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  16684. if test "$am_t" != yes; then
  16685. # Losing compiler, so override with the script.
  16686. # FIXME: It is wrong to rewrite CC.
  16687. # But if we don't then we get into trouble of one sort or another.
  16688. # A longer-term fix would be to have automake use am__CC in this case,
  16689. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  16690. CC="$am_aux_dir/compile $CC"
  16691. fi
  16692. subdirs="$subdirs classpath libltdl"
  16693. # The -no-testsuite modules omit the test subdir.
  16694. if test -d $srcdir/testsuite; then
  16695. TESTSUBDIR_TRUE=
  16696. TESTSUBDIR_FALSE='#'
  16697. else
  16698. TESTSUBDIR_TRUE='#'
  16699. TESTSUBDIR_FALSE=
  16700. fi
  16701. # Should the runtime set system properties by examining the
  16702. # environment variable GCJ_PROPERTIES?
  16703. # Check whether --enable-getenv-properties was given.
  16704. if test "${enable_getenv_properties+set}" = set; then :
  16705. enableval=$enable_getenv_properties;
  16706. fi
  16707. # Whether GCJ_PROPERTIES is used depends on the target.
  16708. if test -z "$enable_getenv_properties"; then
  16709. enable_getenv_properties=${enable_getenv_properties_default-yes}
  16710. fi
  16711. if test "$enable_getenv_properties" = no; then
  16712. $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
  16713. fi
  16714. # Whether we should use arguments to main()
  16715. if test -z "$enable_main_args"; then
  16716. enable_main_args=${enable_main_args_default-yes}
  16717. fi
  16718. if test "$enable_main_args" = no; then
  16719. $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
  16720. fi
  16721. # Should we use hashtable-based synchronization?
  16722. # Currently works only for Linux X86/ia64
  16723. # Typically faster and more space-efficient
  16724. # Check whether --enable-hash-synchronization was given.
  16725. if test "${enable_hash_synchronization+set}" = set; then :
  16726. enableval=$enable_hash_synchronization;
  16727. fi
  16728. if test -z "$enable_hash_synchronization"; then
  16729. enable_hash_synchronization=$enable_hash_synchronization_default
  16730. fi
  16731. install_ecj_jar=no
  16732. ECJ_BUILD_JAR=
  16733. ECJ_JAR=
  16734. # Check whether --with-ecj-jar was given.
  16735. if test "${with_ecj_jar+set}" = set; then :
  16736. withval=$with_ecj_jar; ECJ_JAR=$withval
  16737. else
  16738. if test -f $multi_basedir/ecj.jar; then
  16739. ECJ_BUILD_JAR=$multi_basedir/ecj.jar
  16740. ECJ_JAR='$(jardir)/ecj.jar'
  16741. install_ecj_jar=yes
  16742. fi
  16743. fi
  16744. if test "$ECJ_JAR" != ""; then
  16745. BUILD_ECJ1_TRUE=
  16746. BUILD_ECJ1_FALSE='#'
  16747. else
  16748. BUILD_ECJ1_TRUE='#'
  16749. BUILD_ECJ1_FALSE=
  16750. fi
  16751. if test $install_ecj_jar = yes; then
  16752. INSTALL_ECJ_JAR_TRUE=
  16753. INSTALL_ECJ_JAR_FALSE='#'
  16754. else
  16755. INSTALL_ECJ_JAR_TRUE='#'
  16756. INSTALL_ECJ_JAR_FALSE=
  16757. fi
  16758. # Check whether --with-java-home was given.
  16759. if test "${with_java_home+set}" = set; then :
  16760. withval=$with_java_home; JAVA_HOME="${withval}"
  16761. else
  16762. JAVA_HOME=""
  16763. fi
  16764. if test ! -z "$JAVA_HOME"; then
  16765. JAVA_HOME_SET_TRUE=
  16766. JAVA_HOME_SET_FALSE='#'
  16767. else
  16768. JAVA_HOME_SET_TRUE='#'
  16769. JAVA_HOME_SET_FALSE=
  16770. fi
  16771. suppress_libgcj_bc=no
  16772. # Check whether --enable-libgcj-bc was given.
  16773. if test "${enable_libgcj_bc+set}" = set; then :
  16774. enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
  16775. suppress_libgcj_bc=yes
  16776. fi
  16777. fi
  16778. if test "$suppress_libgcj_bc" = "yes"; then
  16779. SUPPRESS_LIBGCJ_BC_TRUE=
  16780. SUPPRESS_LIBGCJ_BC_FALSE='#'
  16781. else
  16782. SUPPRESS_LIBGCJ_BC_TRUE='#'
  16783. SUPPRESS_LIBGCJ_BC_FALSE=
  16784. fi
  16785. build_libgcj_reduced_reflection=no
  16786. # Check whether --enable-reduced-reflection was given.
  16787. if test "${enable_reduced_reflection+set}" = set; then :
  16788. enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
  16789. build_libgcj_reduced_reflection=yes
  16790. fi
  16791. fi
  16792. if test "$build_libgcj_reduced_reflection" = "yes"; then
  16793. BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
  16794. BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
  16795. else
  16796. BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
  16797. BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
  16798. fi
  16799. # What is the native OS API for MinGW?
  16800. # Check whether --with-win32-nlsapi was given.
  16801. if test "${with_win32_nlsapi+set}" = set; then :
  16802. withval=$with_win32_nlsapi; case "${withval}" in
  16803. ansi) with_win32_nlsapi=ansi ;;
  16804. unicows) with_win32_nlsapi=unicows ;;
  16805. unicode) with_win32_nlsapi=unicode ;;
  16806. *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
  16807. esac
  16808. else
  16809. with_win32_nlsapi=ansi
  16810. fi
  16811. case "${with_win32_nlsapi}" in
  16812. unicows | unicode)
  16813. $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
  16814. ;;
  16815. esac
  16816. # configure.host sets slow_pthread_self if the synchronization code should
  16817. # try to avoid pthread_self calls by caching thread IDs in a hashtable.
  16818. if test "${slow_pthread_self}" = "yes"; then
  16819. $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
  16820. fi
  16821. # Check for gc debugging. This option is handled both here and in the GC.
  16822. # Check whether --enable-gc-debug was given.
  16823. if test "${enable_gc_debug+set}" = set; then :
  16824. enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
  16825. $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
  16826. fi
  16827. fi
  16828. # See if the user has the interpreter included.
  16829. # Check whether --enable-interpreter was given.
  16830. if test "${enable_interpreter+set}" = set; then :
  16831. enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
  16832. # This can also be set in configure.host.
  16833. libgcj_interpreter=yes
  16834. elif test "$enable_interpreter" = no; then
  16835. libgcj_interpreter=no
  16836. fi
  16837. fi
  16838. if test "$libgcj_interpreter" = yes; then
  16839. $as_echo "#define INTERPRETER 1" >>confdefs.h
  16840. fi
  16841. INTERPRETER="$libgcj_interpreter"
  16842. if test "$libgcj_interpreter" = yes; then
  16843. INTERPRETER_TRUE=
  16844. INTERPRETER_FALSE='#'
  16845. else
  16846. INTERPRETER_TRUE='#'
  16847. INTERPRETER_FALSE=
  16848. fi
  16849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
  16850. $as_echo_n "checking for exception model to use... " >&6; }
  16851. ac_ext=cpp
  16852. ac_cpp='$CXXCPP $CPPFLAGS'
  16853. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16854. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16855. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16856. # Check whether --enable-sjlj-exceptions was given.
  16857. if test "${enable_sjlj_exceptions+set}" = set; then :
  16858. enableval=$enable_sjlj_exceptions; :
  16859. else
  16860. cat > conftest.$ac_ext << EOF
  16861. #line 19492 "configure"
  16862. struct S { ~S(); };
  16863. void bar();
  16864. void foo()
  16865. {
  16866. S s;
  16867. bar();
  16868. }
  16869. EOF
  16870. old_CXXFLAGS="$CXXFLAGS"
  16871. CXXFLAGS=-S
  16872. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16873. (eval $ac_compile) 2>&5
  16874. ac_status=$?
  16875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16876. test $ac_status = 0; }; then
  16877. if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
  16878. enable_sjlj_exceptions=yes
  16879. elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
  16880. enable_sjlj_exceptions=no
  16881. elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
  16882. # ARM EH ABI.
  16883. enable_sjlj_exceptions=no
  16884. fi
  16885. fi
  16886. CXXFLAGS="$old_CXXFLAGS"
  16887. rm -f conftest*
  16888. fi
  16889. if test x$enable_sjlj_exceptions = xyes; then
  16890. $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
  16891. ac_exception_model_name=sjlj
  16892. elif test x$enable_sjlj_exceptions = xno; then
  16893. ac_exception_model_name="call frame"
  16894. else
  16895. as_fn_error "unable to detect exception model" "$LINENO" 5
  16896. fi
  16897. ac_ext=c
  16898. ac_cpp='$CPP $CPPFLAGS'
  16899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
  16903. $as_echo "$ac_exception_model_name" >&6; }
  16904. # If we are non using SJLJ exceptions, and this host does not have support
  16905. # for unwinding from a signal handler, enable checked dereferences and divides.
  16906. if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
  16907. CHECKREFSPEC=-fcheck-references
  16908. DIVIDESPEC=-fuse-divide-subroutine
  16909. EXCEPTIONSPEC=
  16910. fi
  16911. # See if the user wants to disable java.net. This is the mildly
  16912. # ugly way that we admit that target-side configuration sucks.
  16913. # Check whether --enable-java-net was given.
  16914. if test "${enable_java_net+set}" = set; then :
  16915. enableval=$enable_java_net;
  16916. fi
  16917. # Whether java.net is built by default can depend on the target.
  16918. if test -z "$enable_java_net"; then
  16919. enable_java_net=${enable_java_net_default-yes}
  16920. fi
  16921. if test "$enable_java_net" = no; then
  16922. $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
  16923. fi
  16924. # See if the user wants to configure without libffi. Some
  16925. # architectures don't support it, and default values are set in
  16926. # configure.host.
  16927. # Check whether --with-libffi was given.
  16928. if test "${with_libffi+set}" = set; then :
  16929. withval=$with_libffi; :
  16930. else
  16931. with_libffi=${with_libffi_default-yes}
  16932. fi
  16933. LIBFFI=
  16934. LIBFFIINCS=
  16935. if test "$with_libffi" != no; then
  16936. $as_echo "#define USE_LIBFFI 1" >>confdefs.h
  16937. LIBFFI=../libffi/libffi_convenience.la
  16938. LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
  16939. fi
  16940. # See if the user wants to disable JVMPI support.
  16941. # Check whether --enable-jvmpi was given.
  16942. if test "${enable_jvmpi+set}" = set; then :
  16943. enableval=$enable_jvmpi;
  16944. fi
  16945. if test "$enable_jvmpi" != no; then
  16946. $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
  16947. fi
  16948. # If the target is an eCos system, use the appropriate eCos
  16949. # I/O routines.
  16950. # FIXME: this should not be a local option but a global target
  16951. # system; at present there is no eCos target.
  16952. TARGET_ECOS=${PROCESS-"no"}
  16953. # Check whether --with-ecos was given.
  16954. if test "${with_ecos+set}" = set; then :
  16955. withval=$with_ecos; TARGET_ECOS="$with_ecos"
  16956. fi
  16957. case "$TARGET_ECOS" in
  16958. no) case "$host" in
  16959. *mingw*)
  16960. PLATFORM=Win32
  16961. PLATFORMNET=Win32
  16962. PLATFORMH=win32.h
  16963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
  16964. $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
  16965. LD_PROG=`$CC --print-prog-name=ld`
  16966. LD_VERSION=`$LD_PROG --version`
  16967. LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  16968. LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  16969. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  16970. LD_OK="ok"
  16971. else
  16972. if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
  16973. LD_OK="ok"
  16974. fi
  16975. fi
  16976. if test "x$LD_OK" != x; then
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
  16978. $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
  16979. else
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
  16981. $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
  16983. $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
  16984. $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
  16985. fi
  16986. ;;
  16987. *)
  16988. PLATFORM=Posix
  16989. PLATFORMNET=Posix
  16990. PLATFORMH=posix.h
  16991. ;;
  16992. esac
  16993. ;;
  16994. *)
  16995. PLATFORM=Ecos
  16996. PLATFORMNET=NoNet
  16997. $as_echo "#define ECOS 1" >>confdefs.h
  16998. PLATFORMH=posix.h
  16999. ;;
  17000. esac
  17001. ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
  17002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17003. /* end confdefs.h. */
  17004. #include <stdint.h>
  17005. _ACEOF
  17006. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17007. $EGREP "uint32_t" >/dev/null 2>&1; then :
  17008. $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
  17009. fi
  17010. rm -f conftest*
  17011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17012. /* end confdefs.h. */
  17013. #include <inttypes.h>
  17014. _ACEOF
  17015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17016. $EGREP "uint32_t" >/dev/null 2>&1; then :
  17017. $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
  17018. fi
  17019. rm -f conftest*
  17020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17021. /* end confdefs.h. */
  17022. #include <sys/types.h>
  17023. _ACEOF
  17024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17025. $EGREP "u_int32_t" >/dev/null 2>&1; then :
  17026. $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
  17027. fi
  17028. rm -f conftest*
  17029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17030. /* end confdefs.h. */
  17031. #include <sys/config.h>
  17032. _ACEOF
  17033. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17034. $EGREP "u_int32_t" >/dev/null 2>&1; then :
  17035. $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
  17036. fi
  17037. rm -f conftest*
  17038. if test "$PLATFORM" = Win32; then
  17039. USING_WIN32_PLATFORM_TRUE=
  17040. USING_WIN32_PLATFORM_FALSE='#'
  17041. else
  17042. USING_WIN32_PLATFORM_TRUE='#'
  17043. USING_WIN32_PLATFORM_FALSE=
  17044. fi
  17045. if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
  17046. USING_POSIX_PLATFORM_TRUE=
  17047. USING_POSIX_PLATFORM_FALSE='#'
  17048. else
  17049. USING_POSIX_PLATFORM_TRUE='#'
  17050. USING_POSIX_PLATFORM_FALSE=
  17051. fi
  17052. case "$host" in
  17053. *-darwin*) DARWIN_CRT=true ;;
  17054. *) DARWIN_CRT=false ;;
  17055. esac
  17056. if $DARWIN_CRT; then
  17057. USING_DARWIN_CRT_TRUE=
  17058. USING_DARWIN_CRT_FALSE='#'
  17059. else
  17060. USING_DARWIN_CRT_TRUE='#'
  17061. USING_DARWIN_CRT_FALSE=
  17062. fi
  17063. # This may not be defined in a non-ANS conformant embedded system.
  17064. # FIXME: Should these case a runtime exception in that case?
  17065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17066. /* end confdefs.h. */
  17067. #include <time.h>
  17068. _ACEOF
  17069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17070. $EGREP "localtime" >/dev/null 2>&1; then :
  17071. $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
  17072. fi
  17073. rm -f conftest*
  17074. # Create the subdirectory for natFile.cc, or the attempt
  17075. # to create the link will fail.
  17076. test -d java || mkdir java
  17077. test -d java/io || mkdir java/io
  17078. test -d gnu || mkdir gnu
  17079. ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
  17080. # Likewise for natConcreteProcess.cc.
  17081. test -d java/lang || mkdir java/lang
  17082. ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
  17083. # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
  17084. test -d java/net || mkdir java/net
  17085. ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
  17086. ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
  17087. # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
  17088. test -d gnu/java || mkdir gnu/java
  17089. test -d gnu/java/net || mkdir gnu/java/net
  17090. ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
  17091. ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
  17092. # Likewise for natVMPipe.cc and natVMSelector.cc.
  17093. test -d gnu/java/nio || mkdir gnu/java/nio
  17094. ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
  17095. ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
  17096. # Likewise for natFileChannelImpl.cc
  17097. test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
  17098. ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
  17099. # Likewise for natVMSecureRandom.cc
  17100. test -d gnu/java/security || mkdir gnu/java/security
  17101. test -d gnu/java/security/jce || mkdir gnu/java/security/jce
  17102. test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
  17103. ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
  17104. case "${host}" in
  17105. *mingw*)
  17106. SYSTEMSPEC="-lgdi32 -lws2_32"
  17107. if test "${with_win32_nlsapi}" = "unicows"; then
  17108. SYSTEMSPEC="-lunicows $SYSTEMSPEC"
  17109. fi
  17110. ;;
  17111. *-*-darwin[912]*)
  17112. SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
  17113. ;;
  17114. *)
  17115. SYSTEMSPEC=
  17116. ;;
  17117. esac
  17118. # Check whether --with-system-zlib was given.
  17119. if test "${with_system_zlib+set}" = set; then :
  17120. withval=$with_system_zlib;
  17121. fi
  17122. ZLIBSPEC=
  17123. ZLIBTESTSPEC=
  17124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17125. $as_echo_n "checking for X... " >&6; }
  17126. # Check whether --with-x was given.
  17127. if test "${with_x+set}" = set; then :
  17128. withval=$with_x;
  17129. fi
  17130. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17131. if test "x$with_x" = xno; then
  17132. # The user explicitly disabled X.
  17133. have_x=disabled
  17134. else
  17135. case $x_includes,$x_libraries in #(
  17136. *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
  17137. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. # One or both of the vars are not set, and there is no cached value.
  17141. ac_x_includes=no ac_x_libraries=no
  17142. rm -f -r conftest.dir
  17143. if mkdir conftest.dir; then
  17144. cd conftest.dir
  17145. cat >Imakefile <<'_ACEOF'
  17146. incroot:
  17147. @echo incroot='${INCROOT}'
  17148. usrlibdir:
  17149. @echo usrlibdir='${USRLIBDIR}'
  17150. libdir:
  17151. @echo libdir='${LIBDIR}'
  17152. _ACEOF
  17153. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17154. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17155. for ac_var in incroot usrlibdir libdir; do
  17156. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17157. done
  17158. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17159. for ac_extension in a so sl dylib la dll; do
  17160. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17161. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17162. ac_im_usrlibdir=$ac_im_libdir; break
  17163. fi
  17164. done
  17165. # Screen out bogus values from the imake configuration. They are
  17166. # bogus both because they are the default anyway, and because
  17167. # using them would break gcc on systems where it needs fixed includes.
  17168. case $ac_im_incroot in
  17169. /usr/include) ac_x_includes= ;;
  17170. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17171. esac
  17172. case $ac_im_usrlibdir in
  17173. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17174. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17175. esac
  17176. fi
  17177. cd ..
  17178. rm -f -r conftest.dir
  17179. fi
  17180. # Standard set of common directories for X headers.
  17181. # Check X11 before X11Rn because it is often a symlink to the current release.
  17182. ac_x_header_dirs='
  17183. /usr/X11/include
  17184. /usr/X11R7/include
  17185. /usr/X11R6/include
  17186. /usr/X11R5/include
  17187. /usr/X11R4/include
  17188. /usr/include/X11
  17189. /usr/include/X11R7
  17190. /usr/include/X11R6
  17191. /usr/include/X11R5
  17192. /usr/include/X11R4
  17193. /usr/local/X11/include
  17194. /usr/local/X11R7/include
  17195. /usr/local/X11R6/include
  17196. /usr/local/X11R5/include
  17197. /usr/local/X11R4/include
  17198. /usr/local/include/X11
  17199. /usr/local/include/X11R7
  17200. /usr/local/include/X11R6
  17201. /usr/local/include/X11R5
  17202. /usr/local/include/X11R4
  17203. /usr/X386/include
  17204. /usr/x386/include
  17205. /usr/XFree86/include/X11
  17206. /usr/include
  17207. /usr/local/include
  17208. /usr/unsupported/include
  17209. /usr/athena/include
  17210. /usr/local/x11r5/include
  17211. /usr/lpp/Xamples/include
  17212. /usr/openwin/include
  17213. /usr/openwin/share/include'
  17214. if test "$ac_x_includes" = no; then
  17215. # Guess where to find include files, by looking for Xlib.h.
  17216. # First, try using that file with no special directory specified.
  17217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17218. /* end confdefs.h. */
  17219. #include <X11/Xlib.h>
  17220. _ACEOF
  17221. if ac_fn_c_try_cpp "$LINENO"; then :
  17222. # We can compile using X headers with no special include directory.
  17223. ac_x_includes=
  17224. else
  17225. for ac_dir in $ac_x_header_dirs; do
  17226. if test -r "$ac_dir/X11/Xlib.h"; then
  17227. ac_x_includes=$ac_dir
  17228. break
  17229. fi
  17230. done
  17231. fi
  17232. rm -f conftest.err conftest.$ac_ext
  17233. fi # $ac_x_includes = no
  17234. if test "$ac_x_libraries" = no; then
  17235. # Check for the libraries.
  17236. # See if we find them without any special options.
  17237. # Don't add to $LIBS permanently.
  17238. ac_save_LIBS=$LIBS
  17239. LIBS="-lX11 $LIBS"
  17240. if test x$gcc_no_link = xyes; then
  17241. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17242. fi
  17243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17244. /* end confdefs.h. */
  17245. #include <X11/Xlib.h>
  17246. int
  17247. main ()
  17248. {
  17249. XrmInitialize ()
  17250. ;
  17251. return 0;
  17252. }
  17253. _ACEOF
  17254. if ac_fn_c_try_link "$LINENO"; then :
  17255. LIBS=$ac_save_LIBS
  17256. # We can link X programs with no special library path.
  17257. ac_x_libraries=
  17258. else
  17259. LIBS=$ac_save_LIBS
  17260. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17261. do
  17262. # Don't even attempt the hair of trying to link an X program!
  17263. for ac_extension in a so sl dylib la dll; do
  17264. if test -r "$ac_dir/libX11.$ac_extension"; then
  17265. ac_x_libraries=$ac_dir
  17266. break 2
  17267. fi
  17268. done
  17269. done
  17270. fi
  17271. rm -f core conftest.err conftest.$ac_objext \
  17272. conftest$ac_exeext conftest.$ac_ext
  17273. fi # $ac_x_libraries = no
  17274. case $ac_x_includes,$ac_x_libraries in #(
  17275. no,* | *,no | *\'*)
  17276. # Didn't find X, or a directory has "'" in its name.
  17277. ac_cv_have_x="have_x=no";; #(
  17278. *)
  17279. # Record where we found X for the cache.
  17280. ac_cv_have_x="have_x=yes\
  17281. ac_x_includes='$ac_x_includes'\
  17282. ac_x_libraries='$ac_x_libraries'"
  17283. esac
  17284. fi
  17285. ;; #(
  17286. *) have_x=yes;;
  17287. esac
  17288. eval "$ac_cv_have_x"
  17289. fi # $with_x != no
  17290. if test "$have_x" != yes; then
  17291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17292. $as_echo "$have_x" >&6; }
  17293. no_x=yes
  17294. else
  17295. # If each of the values was on the command line, it overrides each guess.
  17296. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17297. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17298. # Update the cache value to reflect the command line values.
  17299. ac_cv_have_x="have_x=yes\
  17300. ac_x_includes='$x_includes'\
  17301. ac_x_libraries='$x_libraries'"
  17302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17303. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17304. fi
  17305. if test "$no_x" = yes; then
  17306. # Not all programs may use this symbol, but it does not hurt to define it.
  17307. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17308. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17309. else
  17310. if test -n "$x_includes"; then
  17311. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17312. fi
  17313. # It would also be nice to do this for all -L options, not just this one.
  17314. if test -n "$x_libraries"; then
  17315. X_LIBS="$X_LIBS -L$x_libraries"
  17316. # For Solaris; some versions of Sun CC require a space after -R and
  17317. # others require no space. Words are not sufficient . . . .
  17318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17319. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17320. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17321. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17322. ac_c_werror_flag=yes
  17323. if test x$gcc_no_link = xyes; then
  17324. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17325. fi
  17326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17327. /* end confdefs.h. */
  17328. int
  17329. main ()
  17330. {
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. if ac_fn_c_try_link "$LINENO"; then :
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17337. $as_echo "no" >&6; }
  17338. X_LIBS="$X_LIBS -R$x_libraries"
  17339. else
  17340. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17341. if test x$gcc_no_link = xyes; then
  17342. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17343. fi
  17344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17345. /* end confdefs.h. */
  17346. int
  17347. main ()
  17348. {
  17349. ;
  17350. return 0;
  17351. }
  17352. _ACEOF
  17353. if ac_fn_c_try_link "$LINENO"; then :
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17355. $as_echo "yes" >&6; }
  17356. X_LIBS="$X_LIBS -R $x_libraries"
  17357. else
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17359. $as_echo "neither works" >&6; }
  17360. fi
  17361. rm -f core conftest.err conftest.$ac_objext \
  17362. conftest$ac_exeext conftest.$ac_ext
  17363. fi
  17364. rm -f core conftest.err conftest.$ac_objext \
  17365. conftest$ac_exeext conftest.$ac_ext
  17366. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17367. LIBS=$ac_xsave_LIBS
  17368. fi
  17369. # Check for system-dependent libraries X programs must link with.
  17370. # Do this before checking for the system-independent R6 libraries
  17371. # (-lICE), since we may need -lsocket or whatever for X linking.
  17372. if test "$ISC" = yes; then
  17373. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17374. else
  17375. # Martyn Johnson says this is needed for Ultrix, if the X
  17376. # libraries were built with DECnet support. And Karl Berry says
  17377. # the Alpha needs dnet_stub (dnet does not exist).
  17378. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17379. if test x$gcc_no_link = xyes; then
  17380. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17381. fi
  17382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17383. /* end confdefs.h. */
  17384. /* Override any GCC internal prototype to avoid an error.
  17385. Use char because int might match the return type of a GCC
  17386. builtin and then its argument prototype would still apply. */
  17387. #ifdef __cplusplus
  17388. extern "C"
  17389. #endif
  17390. char XOpenDisplay ();
  17391. int
  17392. main ()
  17393. {
  17394. return XOpenDisplay ();
  17395. ;
  17396. return 0;
  17397. }
  17398. _ACEOF
  17399. if ac_fn_c_try_link "$LINENO"; then :
  17400. else
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17402. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17403. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
  17404. $as_echo_n "(cached) " >&6
  17405. else
  17406. ac_check_lib_save_LIBS=$LIBS
  17407. LIBS="-ldnet $LIBS"
  17408. if test x$gcc_no_link = xyes; then
  17409. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17410. fi
  17411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17412. /* end confdefs.h. */
  17413. /* Override any GCC internal prototype to avoid an error.
  17414. Use char because int might match the return type of a GCC
  17415. builtin and then its argument prototype would still apply. */
  17416. #ifdef __cplusplus
  17417. extern "C"
  17418. #endif
  17419. char dnet_ntoa ();
  17420. int
  17421. main ()
  17422. {
  17423. return dnet_ntoa ();
  17424. ;
  17425. return 0;
  17426. }
  17427. _ACEOF
  17428. if ac_fn_c_try_link "$LINENO"; then :
  17429. ac_cv_lib_dnet_dnet_ntoa=yes
  17430. else
  17431. ac_cv_lib_dnet_dnet_ntoa=no
  17432. fi
  17433. rm -f core conftest.err conftest.$ac_objext \
  17434. conftest$ac_exeext conftest.$ac_ext
  17435. LIBS=$ac_check_lib_save_LIBS
  17436. fi
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17438. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17439. if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
  17440. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17441. fi
  17442. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17444. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17445. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
  17446. $as_echo_n "(cached) " >&6
  17447. else
  17448. ac_check_lib_save_LIBS=$LIBS
  17449. LIBS="-ldnet_stub $LIBS"
  17450. if test x$gcc_no_link = xyes; then
  17451. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17452. fi
  17453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17454. /* end confdefs.h. */
  17455. /* Override any GCC internal prototype to avoid an error.
  17456. Use char because int might match the return type of a GCC
  17457. builtin and then its argument prototype would still apply. */
  17458. #ifdef __cplusplus
  17459. extern "C"
  17460. #endif
  17461. char dnet_ntoa ();
  17462. int
  17463. main ()
  17464. {
  17465. return dnet_ntoa ();
  17466. ;
  17467. return 0;
  17468. }
  17469. _ACEOF
  17470. if ac_fn_c_try_link "$LINENO"; then :
  17471. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17472. else
  17473. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext \
  17476. conftest$ac_exeext conftest.$ac_ext
  17477. LIBS=$ac_check_lib_save_LIBS
  17478. fi
  17479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17480. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17481. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
  17482. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17483. fi
  17484. fi
  17485. fi
  17486. rm -f core conftest.err conftest.$ac_objext \
  17487. conftest$ac_exeext conftest.$ac_ext
  17488. LIBS="$ac_xsave_LIBS"
  17489. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17490. # to get the SysV transport functions.
  17491. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17492. # needs -lnsl.
  17493. # The nsl library prevents programs from opening the X display
  17494. # on Irix 5.2, according to T.E. Dickey.
  17495. # The functions gethostbyname, getservbyname, and inet_addr are
  17496. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17497. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17498. if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  17499. fi
  17500. if test $ac_cv_func_gethostbyname = no; then
  17501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17502. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17503. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  17504. $as_echo_n "(cached) " >&6
  17505. else
  17506. ac_check_lib_save_LIBS=$LIBS
  17507. LIBS="-lnsl $LIBS"
  17508. if test x$gcc_no_link = xyes; then
  17509. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17510. fi
  17511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17512. /* end confdefs.h. */
  17513. /* Override any GCC internal prototype to avoid an error.
  17514. Use char because int might match the return type of a GCC
  17515. builtin and then its argument prototype would still apply. */
  17516. #ifdef __cplusplus
  17517. extern "C"
  17518. #endif
  17519. char gethostbyname ();
  17520. int
  17521. main ()
  17522. {
  17523. return gethostbyname ();
  17524. ;
  17525. return 0;
  17526. }
  17527. _ACEOF
  17528. if ac_fn_c_try_link "$LINENO"; then :
  17529. ac_cv_lib_nsl_gethostbyname=yes
  17530. else
  17531. ac_cv_lib_nsl_gethostbyname=no
  17532. fi
  17533. rm -f core conftest.err conftest.$ac_objext \
  17534. conftest$ac_exeext conftest.$ac_ext
  17535. LIBS=$ac_check_lib_save_LIBS
  17536. fi
  17537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17538. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17539. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  17540. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17541. fi
  17542. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17544. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17545. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
  17546. $as_echo_n "(cached) " >&6
  17547. else
  17548. ac_check_lib_save_LIBS=$LIBS
  17549. LIBS="-lbsd $LIBS"
  17550. if test x$gcc_no_link = xyes; then
  17551. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17552. fi
  17553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17554. /* end confdefs.h. */
  17555. /* Override any GCC internal prototype to avoid an error.
  17556. Use char because int might match the return type of a GCC
  17557. builtin and then its argument prototype would still apply. */
  17558. #ifdef __cplusplus
  17559. extern "C"
  17560. #endif
  17561. char gethostbyname ();
  17562. int
  17563. main ()
  17564. {
  17565. return gethostbyname ();
  17566. ;
  17567. return 0;
  17568. }
  17569. _ACEOF
  17570. if ac_fn_c_try_link "$LINENO"; then :
  17571. ac_cv_lib_bsd_gethostbyname=yes
  17572. else
  17573. ac_cv_lib_bsd_gethostbyname=no
  17574. fi
  17575. rm -f core conftest.err conftest.$ac_objext \
  17576. conftest$ac_exeext conftest.$ac_ext
  17577. LIBS=$ac_check_lib_save_LIBS
  17578. fi
  17579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17580. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17581. if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
  17582. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17583. fi
  17584. fi
  17585. fi
  17586. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17587. # socket/setsockopt and other routines are undefined under SCO ODT
  17588. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17589. # on later versions), says Simon Leinen: it contains gethostby*
  17590. # variants that don't use the name server (or something). -lsocket
  17591. # must be given before -lnsl if both are needed. We assume that
  17592. # if connect needs -lnsl, so does gethostbyname.
  17593. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17594. if test "x$ac_cv_func_connect" = x""yes; then :
  17595. fi
  17596. if test $ac_cv_func_connect = no; then
  17597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17598. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17599. if test "${ac_cv_lib_socket_connect+set}" = set; then :
  17600. $as_echo_n "(cached) " >&6
  17601. else
  17602. ac_check_lib_save_LIBS=$LIBS
  17603. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17604. if test x$gcc_no_link = xyes; then
  17605. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17606. fi
  17607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17608. /* end confdefs.h. */
  17609. /* Override any GCC internal prototype to avoid an error.
  17610. Use char because int might match the return type of a GCC
  17611. builtin and then its argument prototype would still apply. */
  17612. #ifdef __cplusplus
  17613. extern "C"
  17614. #endif
  17615. char connect ();
  17616. int
  17617. main ()
  17618. {
  17619. return connect ();
  17620. ;
  17621. return 0;
  17622. }
  17623. _ACEOF
  17624. if ac_fn_c_try_link "$LINENO"; then :
  17625. ac_cv_lib_socket_connect=yes
  17626. else
  17627. ac_cv_lib_socket_connect=no
  17628. fi
  17629. rm -f core conftest.err conftest.$ac_objext \
  17630. conftest$ac_exeext conftest.$ac_ext
  17631. LIBS=$ac_check_lib_save_LIBS
  17632. fi
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17634. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17635. if test "x$ac_cv_lib_socket_connect" = x""yes; then :
  17636. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17637. fi
  17638. fi
  17639. # Guillermo Gomez says -lposix is necessary on A/UX.
  17640. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17641. if test "x$ac_cv_func_remove" = x""yes; then :
  17642. fi
  17643. if test $ac_cv_func_remove = no; then
  17644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17645. $as_echo_n "checking for remove in -lposix... " >&6; }
  17646. if test "${ac_cv_lib_posix_remove+set}" = set; then :
  17647. $as_echo_n "(cached) " >&6
  17648. else
  17649. ac_check_lib_save_LIBS=$LIBS
  17650. LIBS="-lposix $LIBS"
  17651. if test x$gcc_no_link = xyes; then
  17652. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17653. fi
  17654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17655. /* end confdefs.h. */
  17656. /* Override any GCC internal prototype to avoid an error.
  17657. Use char because int might match the return type of a GCC
  17658. builtin and then its argument prototype would still apply. */
  17659. #ifdef __cplusplus
  17660. extern "C"
  17661. #endif
  17662. char remove ();
  17663. int
  17664. main ()
  17665. {
  17666. return remove ();
  17667. ;
  17668. return 0;
  17669. }
  17670. _ACEOF
  17671. if ac_fn_c_try_link "$LINENO"; then :
  17672. ac_cv_lib_posix_remove=yes
  17673. else
  17674. ac_cv_lib_posix_remove=no
  17675. fi
  17676. rm -f core conftest.err conftest.$ac_objext \
  17677. conftest$ac_exeext conftest.$ac_ext
  17678. LIBS=$ac_check_lib_save_LIBS
  17679. fi
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17681. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17682. if test "x$ac_cv_lib_posix_remove" = x""yes; then :
  17683. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17684. fi
  17685. fi
  17686. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17687. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17688. if test "x$ac_cv_func_shmat" = x""yes; then :
  17689. fi
  17690. if test $ac_cv_func_shmat = no; then
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17692. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17693. if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
  17694. $as_echo_n "(cached) " >&6
  17695. else
  17696. ac_check_lib_save_LIBS=$LIBS
  17697. LIBS="-lipc $LIBS"
  17698. if test x$gcc_no_link = xyes; then
  17699. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17700. fi
  17701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17702. /* end confdefs.h. */
  17703. /* Override any GCC internal prototype to avoid an error.
  17704. Use char because int might match the return type of a GCC
  17705. builtin and then its argument prototype would still apply. */
  17706. #ifdef __cplusplus
  17707. extern "C"
  17708. #endif
  17709. char shmat ();
  17710. int
  17711. main ()
  17712. {
  17713. return shmat ();
  17714. ;
  17715. return 0;
  17716. }
  17717. _ACEOF
  17718. if ac_fn_c_try_link "$LINENO"; then :
  17719. ac_cv_lib_ipc_shmat=yes
  17720. else
  17721. ac_cv_lib_ipc_shmat=no
  17722. fi
  17723. rm -f core conftest.err conftest.$ac_objext \
  17724. conftest$ac_exeext conftest.$ac_ext
  17725. LIBS=$ac_check_lib_save_LIBS
  17726. fi
  17727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17728. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17729. if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
  17730. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17731. fi
  17732. fi
  17733. fi
  17734. # Check for libraries that X11R6 Xt/Xaw programs need.
  17735. ac_save_LDFLAGS=$LDFLAGS
  17736. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17737. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17738. # check for ICE first), but we must link in the order -lSM -lICE or
  17739. # we get undefined symbols. So assume we have SM if we have ICE.
  17740. # These have to be linked with before -lX11, unlike the other
  17741. # libraries we check for below, so use a different variable.
  17742. # John Interrante, Karl Berry
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17744. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17745. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
  17746. $as_echo_n "(cached) " >&6
  17747. else
  17748. ac_check_lib_save_LIBS=$LIBS
  17749. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17750. if test x$gcc_no_link = xyes; then
  17751. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17752. fi
  17753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17754. /* end confdefs.h. */
  17755. /* Override any GCC internal prototype to avoid an error.
  17756. Use char because int might match the return type of a GCC
  17757. builtin and then its argument prototype would still apply. */
  17758. #ifdef __cplusplus
  17759. extern "C"
  17760. #endif
  17761. char IceConnectionNumber ();
  17762. int
  17763. main ()
  17764. {
  17765. return IceConnectionNumber ();
  17766. ;
  17767. return 0;
  17768. }
  17769. _ACEOF
  17770. if ac_fn_c_try_link "$LINENO"; then :
  17771. ac_cv_lib_ICE_IceConnectionNumber=yes
  17772. else
  17773. ac_cv_lib_ICE_IceConnectionNumber=no
  17774. fi
  17775. rm -f core conftest.err conftest.$ac_objext \
  17776. conftest$ac_exeext conftest.$ac_ext
  17777. LIBS=$ac_check_lib_save_LIBS
  17778. fi
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17780. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17781. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
  17782. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17783. fi
  17784. LDFLAGS=$ac_save_LDFLAGS
  17785. fi
  17786. # FIXME: this should be _libs on some hosts.
  17787. libsubdir=.libs
  17788. LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
  17789. LIBSTDCXXSPEC=
  17790. # extra LD Flags which are required for targets
  17791. case "${host}" in
  17792. *-*-darwin[0-7].*)
  17793. # For now we have to disable it on darwin[8-9] because it slows down
  17794. # the linking phase. A possible bug in ld?
  17795. # on Darwin -single_module speeds up loading of the dynamic libraries.
  17796. extra_ldflags_libjava=-Wl,-single_module
  17797. ;;
  17798. arm*-*-linux-*)
  17799. # Some of the ARM unwinder code is actually in libstdc++. We
  17800. # could in principle replicate it in libgcj, but it's better to
  17801. # have a dependency on libstdc++.
  17802. extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
  17803. LIBSTDCXXSPEC=-lstdc++
  17804. LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
  17805. ;;
  17806. *-*-cygwin)
  17807. extra_ldflags_libjava=-liconv
  17808. ;;
  17809. *-*-mingw*)
  17810. extra_ldflags_libjava=-lws2_32
  17811. ;;
  17812. esac
  17813. LIBMATHSPEC=
  17814. # extra LD Flags which are required for targets
  17815. case "${host}" in
  17816. *-*-darwin*)
  17817. ;;
  17818. *)
  17819. LIBMATHSPEC=-lm
  17820. ;;
  17821. esac
  17822. # Check for --no-merge-exidx-entries, an ARM-specific linker option.
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
  17824. $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
  17825. if test "${libgcj_cv_exidx+set}" = set; then :
  17826. $as_echo_n "(cached) " >&6
  17827. else
  17828. saved_ldflags="$LDFLAGS"
  17829. LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
  17830. if test x$gcc_no_link = xyes; then
  17831. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17832. fi
  17833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17834. /* end confdefs.h. */
  17835. int main(void){ return 0;}
  17836. _ACEOF
  17837. if ac_fn_c_try_link "$LINENO"; then :
  17838. eval "libgcj_cv_exidx=yes"
  17839. else
  17840. eval "libgcj_cv_exidx=no"
  17841. fi
  17842. rm -f core conftest.err conftest.$ac_objext \
  17843. conftest$ac_exeext conftest.$ac_ext
  17844. LDFLAGS="${saved_ldflags}"
  17845. fi
  17846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
  17847. $as_echo "$libgcj_cv_exidx" >&6; }
  17848. if test "${libgcj_cv_exidx}" = "yes"; then
  17849. SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
  17850. extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
  17851. fi
  17852. # Allow the GC to be disabled. Can be useful when debugging.
  17853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
  17854. $as_echo_n "checking for garbage collector to use... " >&6; }
  17855. # Check whether --enable-java-gc was given.
  17856. if test "${enable_java_gc+set}" = set; then :
  17857. enableval=$enable_java_gc; GC=$enableval
  17858. else
  17859. GC=boehm
  17860. fi
  17861. GCLIBS=
  17862. GCINCS=
  17863. GCDEPS=
  17864. GCSPEC=
  17865. JC1GCSPEC=
  17866. GCTESTSPEC=
  17867. case "$GC" in
  17868. boehm)
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
  17870. $as_echo "boehm" >&6; }
  17871. GCLIBS=../boehm-gc/libgcjgc_convenience.la
  17872. JC1GCSPEC='-fuse-boehm-gc'
  17873. GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
  17874. GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
  17875. GCOBJS=boehm.lo
  17876. GCHDR=boehm-gc.h
  17877. # The POSIX thread support needs to know this.
  17878. $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
  17879. ;;
  17880. no)
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17882. $as_echo "none" >&6; }
  17883. GCHDR=no-gc.h
  17884. ;;
  17885. *)
  17886. as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
  17887. ;;
  17888. esac
  17889. ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
  17890. if test "$GC" = boehm; then
  17891. USING_BOEHMGC_TRUE=
  17892. USING_BOEHMGC_FALSE='#'
  17893. else
  17894. USING_BOEHMGC_TRUE='#'
  17895. USING_BOEHMGC_FALSE=
  17896. fi
  17897. if test "$GC" = no; then
  17898. USING_NOGC_TRUE=
  17899. USING_NOGC_FALSE='#'
  17900. else
  17901. USING_NOGC_TRUE='#'
  17902. USING_NOGC_FALSE=
  17903. fi
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
  17905. $as_echo_n "checking for thread model used by GCC... " >&6; }
  17906. THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
  17908. $as_echo "$THREADS" >&6; }
  17909. case "$THREADS" in
  17910. no | none | single)
  17911. THREADS=none
  17912. ;;
  17913. aix | posix | pthreads)
  17914. THREADS=posix
  17915. case "$host" in
  17916. *-*-linux*)
  17917. $as_echo "#define LINUX_THREADS 1" >>confdefs.h
  17918. ;;
  17919. esac
  17920. ;;
  17921. win32)
  17922. ;;
  17923. dce | vxworks)
  17924. as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
  17925. ;;
  17926. *)
  17927. as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
  17928. ;;
  17929. esac
  17930. THREADCXXFLAGS=
  17931. THREADLDFLAGS=
  17932. THREADLIBS=
  17933. THREADINCS=
  17934. THREADDEPS=
  17935. THREADH=
  17936. THREADSPEC=
  17937. THREADSTARTFILESPEC=
  17938. case "$THREADS" in
  17939. posix)
  17940. case "$host" in
  17941. *-*-cygwin*)
  17942. # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
  17943. ;;
  17944. *-*-freebsd[34].*)
  17945. # Before FreeBSD 5, it didn't have -lpthread (or any library which
  17946. # merely adds pthread_* functions) but it does have a -pthread switch
  17947. # which is required at link-time to select -lc_r *instead* of -lc.
  17948. THREADLDFLAGS=-pthread
  17949. # Don't set THREADSPEC here as might be expected since -pthread is
  17950. # not processed when found within a spec file, it must come from
  17951. # the command line. For now, the user must provide the -pthread
  17952. # switch to link code compiled with gcj. In future, consider adding
  17953. # support for weak references to pthread_* functions ala gthr.h API.
  17954. THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
  17955. ;;
  17956. *-*-freebsd*)
  17957. # FreeBSD >=5.3 implements a model much closer to other modern UNIX
  17958. # systems which support threads and -lpthread.
  17959. THREADLDFLAGS=-pthread
  17960. THREADSPEC=-lpthread
  17961. ;;
  17962. hppa*-hp-hpux*)
  17963. THREADCXXFLAGS=-pthread
  17964. # boehm-gc needs some functions from librt, so link that too.
  17965. THREADLIBS='-lpthread -lrt'
  17966. THREADSPEC='-lpthread -lrt'
  17967. ;;
  17968. *-*-darwin*)
  17969. # Don't set THREADLIBS or THREADSPEC as Darwin already
  17970. # provides pthread via libSystem.
  17971. ;;
  17972. *)
  17973. THREADLIBS=-lpthread
  17974. THREADSPEC=-lpthread
  17975. ;;
  17976. esac
  17977. THREADH=posix-threads.h
  17978. # MIT pthreads doesn't seem to have the mutexattr functions.
  17979. # But for now we don't check for it. We just assume you aren't
  17980. # using MIT pthreads.
  17981. $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
  17982. # If we're using the Boehm GC, then we happen to know that it
  17983. # defines _REENTRANT, so we don't bother. Eww.
  17984. if test "$GC" != boehm; then
  17985. $as_echo "#define _REENTRANT 1" >>confdefs.h
  17986. fi
  17987. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  17988. ;;
  17989. win32)
  17990. THREADH=win32-threads.h
  17991. THREADCXXFLAGS=-mthreads
  17992. # We need thread-safe exception handling so _CRT_MT should be set to 1.
  17993. # But we do not want the executables created to be dependent on
  17994. # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
  17995. # exception handling contexts. The following kludge achieves this effect
  17996. # and causes a dummy __mingwthr_key_dtor() to be linked in from
  17997. # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
  17998. # A workaround is to explicitly use -mthreads while linking Java programs.
  17999. # See PR libgcj/28263.
  18000. #
  18001. # FIXME: In Java we are able to detect thread death at the end of
  18002. # Thread.run() so we should be able to clean up the exception handling
  18003. # contexts ourselves.
  18004. case "$host" in
  18005. *-w64-mingw*)
  18006. ;;
  18007. *)
  18008. THREADSTARTFILESPEC='crtmt%O%s'
  18009. ;;
  18010. esac
  18011. ;;
  18012. none)
  18013. THREADH=no-threads.h
  18014. ;;
  18015. esac
  18016. ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
  18017. if test "$THREADS" = posix; then
  18018. USING_POSIX_THREADS_TRUE=
  18019. USING_POSIX_THREADS_FALSE='#'
  18020. else
  18021. USING_POSIX_THREADS_TRUE='#'
  18022. USING_POSIX_THREADS_FALSE=
  18023. fi
  18024. if test "$THREADS" = win32; then
  18025. USING_WIN32_THREADS_TRUE=
  18026. USING_WIN32_THREADS_FALSE='#'
  18027. else
  18028. USING_WIN32_THREADS_TRUE='#'
  18029. USING_WIN32_THREADS_FALSE=
  18030. fi
  18031. if test "$THREADS" = none; then
  18032. USING_NO_THREADS_TRUE=
  18033. USING_NO_THREADS_FALSE='#'
  18034. else
  18035. USING_NO_THREADS_TRUE='#'
  18036. USING_NO_THREADS_FALSE=
  18037. fi
  18038. if test "$enable_shared" != yes; then
  18039. use_libgcj_bc=no
  18040. fi
  18041. if test "$use_libgcj_bc" = yes; then
  18042. USE_LIBGCJ_BC_TRUE=
  18043. USE_LIBGCJ_BC_FALSE='#'
  18044. else
  18045. USE_LIBGCJ_BC_TRUE='#'
  18046. USE_LIBGCJ_BC_FALSE=
  18047. fi
  18048. if test -d sysdep; then true; else mkdir sysdep; fi
  18049. ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
  18050. ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
  18051. ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
  18052. LIBGCJ_SPEC_LGCJ=-lgcj
  18053. LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
  18054. if test x"$libgcj_spec_lgcj_override" != x ; then
  18055. LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
  18056. fi
  18057. if test x"$libgcj_spec_lgcj_bc_override" != x ; then
  18058. LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
  18059. fi
  18060. LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
  18061. if test "$use_libgcj_bc" = yes; then
  18062. LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
  18063. LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
  18064. fi
  18065. HASH_SYNC_SPEC=
  18066. # Hash synchronization is only useful with posix threads right now.
  18067. if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
  18068. HASH_SYNC_SPEC=-fhash-synchronization
  18069. $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
  18070. fi
  18071. if test "$GCC" = yes; then
  18072. USING_GCC_TRUE=
  18073. USING_GCC_FALSE='#'
  18074. else
  18075. USING_GCC_TRUE='#'
  18076. USING_GCC_FALSE=
  18077. fi
  18078. # We're in the tree with libgcc, and need to include some of its headers.
  18079. LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
  18080. if test "x${with_newlib}" = "xyes"; then
  18081. # We are being configured with a cross compiler. AC_REPLACE_FUNCS
  18082. # may not work correctly, because the compiler may not be able to
  18083. # link executables.
  18084. # We assume newlib. This lets us hard-code the functions we know
  18085. # we'll have.
  18086. $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
  18087. $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
  18088. $as_echo "#define HAVE_TIME 1" >>confdefs.h
  18089. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  18090. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  18091. $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
  18092. # This is only for POSIX threads.
  18093. $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
  18094. # Assume we do not have getuid and friends.
  18095. $as_echo "#define NO_GETUID 1" >>confdefs.h
  18096. PLATFORMNET=NoNet
  18097. else
  18098. for ac_func in strerror_r select fstat open fsync sleep opendir \
  18099. localtime_r getpwuid_r getcwd \
  18100. access stat lstat mkdir rename rmdir unlink utime chmod readlink \
  18101. nl_langinfo setlocale \
  18102. inet_pton uname inet_ntoa \
  18103. getrlimit sigaction ftruncate mmap \
  18104. getifaddrs
  18105. do :
  18106. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18107. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18108. eval as_val=\$$as_ac_var
  18109. if test "x$as_val" = x""yes; then :
  18110. cat >>confdefs.h <<_ACEOF
  18111. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18112. _ACEOF
  18113. fi
  18114. done
  18115. for ac_func in inet_aton inet_addr
  18116. do :
  18117. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18118. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18119. eval as_val=\$$as_ac_var
  18120. if test "x$as_val" = x""yes; then :
  18121. cat >>confdefs.h <<_ACEOF
  18122. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18123. _ACEOF
  18124. break
  18125. fi
  18126. done
  18127. for ac_header in unistd.h dlfcn.h sys/resource.h
  18128. do :
  18129. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18130. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18131. eval as_val=\$$as_ac_Header
  18132. if test "x$as_val" = x""yes; then :
  18133. cat >>confdefs.h <<_ACEOF
  18134. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18135. _ACEOF
  18136. fi
  18137. done
  18138. # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
  18140. $as_echo_n "checking for dladdr in -ldl... " >&6; }
  18141. if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
  18142. $as_echo_n "(cached) " >&6
  18143. else
  18144. ac_check_lib_save_LIBS=$LIBS
  18145. LIBS="-ldl $LIBS"
  18146. if test x$gcc_no_link = xyes; then
  18147. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18148. fi
  18149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18150. /* end confdefs.h. */
  18151. /* Override any GCC internal prototype to avoid an error.
  18152. Use char because int might match the return type of a GCC
  18153. builtin and then its argument prototype would still apply. */
  18154. #ifdef __cplusplus
  18155. extern "C"
  18156. #endif
  18157. char dladdr ();
  18158. int
  18159. main ()
  18160. {
  18161. return dladdr ();
  18162. ;
  18163. return 0;
  18164. }
  18165. _ACEOF
  18166. if ac_fn_c_try_link "$LINENO"; then :
  18167. ac_cv_lib_dl_dladdr=yes
  18168. else
  18169. ac_cv_lib_dl_dladdr=no
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext \
  18172. conftest$ac_exeext conftest.$ac_ext
  18173. LIBS=$ac_check_lib_save_LIBS
  18174. fi
  18175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
  18176. $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
  18177. if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
  18178. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  18179. else
  18180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
  18181. $as_echo_n "checking for dladdr in -ldld... " >&6; }
  18182. if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
  18183. $as_echo_n "(cached) " >&6
  18184. else
  18185. ac_check_lib_save_LIBS=$LIBS
  18186. LIBS="-ldld $LIBS"
  18187. if test x$gcc_no_link = xyes; then
  18188. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18189. fi
  18190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18191. /* end confdefs.h. */
  18192. /* Override any GCC internal prototype to avoid an error.
  18193. Use char because int might match the return type of a GCC
  18194. builtin and then its argument prototype would still apply. */
  18195. #ifdef __cplusplus
  18196. extern "C"
  18197. #endif
  18198. char dladdr ();
  18199. int
  18200. main ()
  18201. {
  18202. return dladdr ();
  18203. ;
  18204. return 0;
  18205. }
  18206. _ACEOF
  18207. if ac_fn_c_try_link "$LINENO"; then :
  18208. ac_cv_lib_dld_dladdr=yes
  18209. else
  18210. ac_cv_lib_dld_dladdr=no
  18211. fi
  18212. rm -f core conftest.err conftest.$ac_objext \
  18213. conftest$ac_exeext conftest.$ac_ext
  18214. LIBS=$ac_check_lib_save_LIBS
  18215. fi
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
  18217. $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
  18218. if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
  18219. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  18220. fi
  18221. fi
  18222. if test x"$cross_compiling" = x"no"; then
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
  18224. $as_echo_n "checking for /proc/self/exe... " >&6; }
  18225. if test "${ac_cv_file__proc_self_exe+set}" = set; then :
  18226. $as_echo_n "(cached) " >&6
  18227. else
  18228. test "$cross_compiling" = yes &&
  18229. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  18230. if test -r "/proc/self/exe"; then
  18231. ac_cv_file__proc_self_exe=yes
  18232. else
  18233. ac_cv_file__proc_self_exe=no
  18234. fi
  18235. fi
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
  18237. $as_echo "$ac_cv_file__proc_self_exe" >&6; }
  18238. if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
  18239. cat >>confdefs.h <<_ACEOF
  18240. #define HAVE__PROC_SELF_EXE 1
  18241. _ACEOF
  18242. $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
  18243. fi
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
  18245. $as_echo_n "checking for /proc/self/maps... " >&6; }
  18246. if test "${ac_cv_file__proc_self_maps+set}" = set; then :
  18247. $as_echo_n "(cached) " >&6
  18248. else
  18249. test "$cross_compiling" = yes &&
  18250. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  18251. if test -r "/proc/self/maps"; then
  18252. ac_cv_file__proc_self_maps=yes
  18253. else
  18254. ac_cv_file__proc_self_maps=no
  18255. fi
  18256. fi
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
  18258. $as_echo "$ac_cv_file__proc_self_maps" >&6; }
  18259. if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
  18260. cat >>confdefs.h <<_ACEOF
  18261. #define HAVE__PROC_SELF_MAPS 1
  18262. _ACEOF
  18263. $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
  18264. fi
  18265. else
  18266. case $host in
  18267. *-linux*)
  18268. $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
  18269. $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
  18270. ;;
  18271. esac
  18272. fi
  18273. if test "X$prefix" = "XNONE"; then
  18274. acl_final_prefix="$ac_default_prefix"
  18275. else
  18276. acl_final_prefix="$prefix"
  18277. fi
  18278. if test "X$exec_prefix" = "XNONE"; then
  18279. acl_final_exec_prefix='${prefix}'
  18280. else
  18281. acl_final_exec_prefix="$exec_prefix"
  18282. fi
  18283. acl_save_prefix="$prefix"
  18284. prefix="$acl_final_prefix"
  18285. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  18286. prefix="$acl_save_prefix"
  18287. # Check whether --with-gnu-ld was given.
  18288. if test "${with_gnu_ld+set}" = set; then :
  18289. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  18290. else
  18291. with_gnu_ld=no
  18292. fi
  18293. # Prepare PATH_SEPARATOR.
  18294. # The user is always right.
  18295. if test "${PATH_SEPARATOR+set}" != set; then
  18296. echo "#! /bin/sh" >conf$$.sh
  18297. echo "exit 0" >>conf$$.sh
  18298. chmod +x conf$$.sh
  18299. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  18300. PATH_SEPARATOR=';'
  18301. else
  18302. PATH_SEPARATOR=:
  18303. fi
  18304. rm -f conf$$.sh
  18305. fi
  18306. ac_prog=ld
  18307. if test "$GCC" = yes; then
  18308. # Check if gcc -print-prog-name=ld gives a path.
  18309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  18310. $as_echo_n "checking for ld used by GCC... " >&6; }
  18311. case $host in
  18312. *-*-mingw*)
  18313. # gcc leaves a trailing carriage return which upsets mingw
  18314. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  18315. *)
  18316. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  18317. esac
  18318. case $ac_prog in
  18319. # Accept absolute paths.
  18320. [\\/]* | [A-Za-z]:[\\/]*)
  18321. re_direlt='/[^/][^/]*/\.\./'
  18322. # Canonicalize the path of ld
  18323. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  18324. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  18325. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  18326. done
  18327. test -z "$LD" && LD="$ac_prog"
  18328. ;;
  18329. "")
  18330. # If it fails, then pretend we aren't using GCC.
  18331. ac_prog=ld
  18332. ;;
  18333. *)
  18334. # If it is relative, then search for the first ld in PATH.
  18335. with_gnu_ld=unknown
  18336. ;;
  18337. esac
  18338. elif test "$with_gnu_ld" = yes; then
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  18340. $as_echo_n "checking for GNU ld... " >&6; }
  18341. else
  18342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  18343. $as_echo_n "checking for non-GNU ld... " >&6; }
  18344. fi
  18345. if test "${acl_cv_path_LD+set}" = set; then :
  18346. $as_echo_n "(cached) " >&6
  18347. else
  18348. if test -z "$LD"; then
  18349. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  18350. for ac_dir in $PATH; do
  18351. test -z "$ac_dir" && ac_dir=.
  18352. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  18353. acl_cv_path_LD="$ac_dir/$ac_prog"
  18354. # Check to see if the program is GNU ld. I'd rather use --version,
  18355. # but apparently some GNU ld's only accept -v.
  18356. # Break only if it was the GNU/non-GNU ld that we prefer.
  18357. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  18358. test "$with_gnu_ld" != no && break
  18359. else
  18360. test "$with_gnu_ld" != yes && break
  18361. fi
  18362. fi
  18363. done
  18364. IFS="$ac_save_ifs"
  18365. else
  18366. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  18367. fi
  18368. fi
  18369. LD="$acl_cv_path_LD"
  18370. if test -n "$LD"; then
  18371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  18372. $as_echo "$LD" >&6; }
  18373. else
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18375. $as_echo "no" >&6; }
  18376. fi
  18377. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  18378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  18379. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  18380. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  18381. $as_echo_n "(cached) " >&6
  18382. else
  18383. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  18384. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  18385. acl_cv_prog_gnu_ld=yes
  18386. else
  18387. acl_cv_prog_gnu_ld=no
  18388. fi
  18389. fi
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  18391. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  18392. with_gnu_ld=$acl_cv_prog_gnu_ld
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  18394. $as_echo_n "checking for shared library run path origin... " >&6; }
  18395. if test "${acl_cv_rpath+set}" = set; then :
  18396. $as_echo_n "(cached) " >&6
  18397. else
  18398. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  18399. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  18400. . ./conftest.sh
  18401. rm -f ./conftest.sh
  18402. acl_cv_rpath=done
  18403. fi
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  18405. $as_echo "$acl_cv_rpath" >&6; }
  18406. wl="$acl_cv_wl"
  18407. libext="$acl_cv_libext"
  18408. shlibext="$acl_cv_shlibext"
  18409. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  18410. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  18411. hardcode_direct="$acl_cv_hardcode_direct"
  18412. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  18413. # Check whether --enable-rpath was given.
  18414. if test "${enable_rpath+set}" = set; then :
  18415. enableval=$enable_rpath; :
  18416. else
  18417. enable_rpath=yes
  18418. fi
  18419. use_additional=yes
  18420. acl_save_prefix="$prefix"
  18421. prefix="$acl_final_prefix"
  18422. acl_save_exec_prefix="$exec_prefix"
  18423. exec_prefix="$acl_final_exec_prefix"
  18424. eval additional_includedir=\"$includedir\"
  18425. eval additional_libdir=\"$libdir\"
  18426. exec_prefix="$acl_save_exec_prefix"
  18427. prefix="$acl_save_prefix"
  18428. # Check whether --with-libiconv-prefix was given.
  18429. if test "${with_libiconv_prefix+set}" = set; then :
  18430. withval=$with_libiconv_prefix;
  18431. if test "X$withval" = "Xno"; then
  18432. use_additional=no
  18433. else
  18434. if test "X$withval" = "X"; then
  18435. acl_save_prefix="$prefix"
  18436. prefix="$acl_final_prefix"
  18437. acl_save_exec_prefix="$exec_prefix"
  18438. exec_prefix="$acl_final_exec_prefix"
  18439. eval additional_includedir=\"$includedir\"
  18440. eval additional_libdir=\"$libdir\"
  18441. exec_prefix="$acl_save_exec_prefix"
  18442. prefix="$acl_save_prefix"
  18443. else
  18444. additional_includedir="$withval/include"
  18445. additional_libdir="$withval/lib"
  18446. fi
  18447. fi
  18448. fi
  18449. LIBICONV=
  18450. LTLIBICONV=
  18451. INCICONV=
  18452. rpathdirs=
  18453. ltrpathdirs=
  18454. names_already_handled=
  18455. names_next_round='iconv '
  18456. while test -n "$names_next_round"; do
  18457. names_this_round="$names_next_round"
  18458. names_next_round=
  18459. for name in $names_this_round; do
  18460. already_handled=
  18461. for n in $names_already_handled; do
  18462. if test "$n" = "$name"; then
  18463. already_handled=yes
  18464. break
  18465. fi
  18466. done
  18467. if test -z "$already_handled"; then
  18468. names_already_handled="$names_already_handled $name"
  18469. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  18470. eval value=\"\$HAVE_LIB$uppername\"
  18471. if test -n "$value"; then
  18472. if test "$value" = yes; then
  18473. eval value=\"\$LIB$uppername\"
  18474. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  18475. eval value=\"\$LTLIB$uppername\"
  18476. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  18477. else
  18478. :
  18479. fi
  18480. else
  18481. found_dir=
  18482. found_la=
  18483. found_so=
  18484. found_a=
  18485. if test $use_additional = yes; then
  18486. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  18487. found_dir="$additional_libdir"
  18488. found_so="$additional_libdir/lib$name.$shlibext"
  18489. if test -f "$additional_libdir/lib$name.la"; then
  18490. found_la="$additional_libdir/lib$name.la"
  18491. fi
  18492. else
  18493. if test -f "$additional_libdir/lib$name.$libext"; then
  18494. found_dir="$additional_libdir"
  18495. found_a="$additional_libdir/lib$name.$libext"
  18496. if test -f "$additional_libdir/lib$name.la"; then
  18497. found_la="$additional_libdir/lib$name.la"
  18498. fi
  18499. fi
  18500. fi
  18501. fi
  18502. if test "X$found_dir" = "X"; then
  18503. for x in $LDFLAGS $LTLIBICONV; do
  18504. acl_save_prefix="$prefix"
  18505. prefix="$acl_final_prefix"
  18506. acl_save_exec_prefix="$exec_prefix"
  18507. exec_prefix="$acl_final_exec_prefix"
  18508. eval x=\"$x\"
  18509. exec_prefix="$acl_save_exec_prefix"
  18510. prefix="$acl_save_prefix"
  18511. case "$x" in
  18512. -L*)
  18513. dir=`echo "X$x" | sed -e 's/^X-L//'`
  18514. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  18515. found_dir="$dir"
  18516. found_so="$dir/lib$name.$shlibext"
  18517. if test -f "$dir/lib$name.la"; then
  18518. found_la="$dir/lib$name.la"
  18519. fi
  18520. else
  18521. if test -f "$dir/lib$name.$libext"; then
  18522. found_dir="$dir"
  18523. found_a="$dir/lib$name.$libext"
  18524. if test -f "$dir/lib$name.la"; then
  18525. found_la="$dir/lib$name.la"
  18526. fi
  18527. fi
  18528. fi
  18529. ;;
  18530. esac
  18531. if test "X$found_dir" != "X"; then
  18532. break
  18533. fi
  18534. done
  18535. fi
  18536. if test "X$found_dir" != "X"; then
  18537. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  18538. if test "X$found_so" != "X"; then
  18539. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  18540. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  18541. else
  18542. haveit=
  18543. for x in $ltrpathdirs; do
  18544. if test "X$x" = "X$found_dir"; then
  18545. haveit=yes
  18546. break
  18547. fi
  18548. done
  18549. if test -z "$haveit"; then
  18550. ltrpathdirs="$ltrpathdirs $found_dir"
  18551. fi
  18552. if test "$hardcode_direct" = yes; then
  18553. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  18554. else
  18555. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  18556. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  18557. haveit=
  18558. for x in $rpathdirs; do
  18559. if test "X$x" = "X$found_dir"; then
  18560. haveit=yes
  18561. break
  18562. fi
  18563. done
  18564. if test -z "$haveit"; then
  18565. rpathdirs="$rpathdirs $found_dir"
  18566. fi
  18567. else
  18568. haveit=
  18569. for x in $LDFLAGS $LIBICONV; do
  18570. acl_save_prefix="$prefix"
  18571. prefix="$acl_final_prefix"
  18572. acl_save_exec_prefix="$exec_prefix"
  18573. exec_prefix="$acl_final_exec_prefix"
  18574. eval x=\"$x\"
  18575. exec_prefix="$acl_save_exec_prefix"
  18576. prefix="$acl_save_prefix"
  18577. if test "X$x" = "X-L$found_dir"; then
  18578. haveit=yes
  18579. break
  18580. fi
  18581. done
  18582. if test -z "$haveit"; then
  18583. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  18584. fi
  18585. if test "$hardcode_minus_L" != no; then
  18586. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  18587. else
  18588. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  18589. fi
  18590. fi
  18591. fi
  18592. fi
  18593. else
  18594. if test "X$found_a" != "X"; then
  18595. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  18596. else
  18597. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  18598. fi
  18599. fi
  18600. additional_includedir=
  18601. case "$found_dir" in
  18602. */lib | */lib/)
  18603. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  18604. additional_includedir="$basedir/include"
  18605. ;;
  18606. esac
  18607. if test "X$additional_includedir" != "X"; then
  18608. if test "X$additional_includedir" != "X/usr/include"; then
  18609. haveit=
  18610. if test "X$additional_includedir" = "X/usr/local/include"; then
  18611. if test -n "$GCC"; then
  18612. case $host_os in
  18613. linux*) haveit=yes;;
  18614. esac
  18615. fi
  18616. fi
  18617. if test -z "$haveit"; then
  18618. for x in $CPPFLAGS $INCICONV; do
  18619. acl_save_prefix="$prefix"
  18620. prefix="$acl_final_prefix"
  18621. acl_save_exec_prefix="$exec_prefix"
  18622. exec_prefix="$acl_final_exec_prefix"
  18623. eval x=\"$x\"
  18624. exec_prefix="$acl_save_exec_prefix"
  18625. prefix="$acl_save_prefix"
  18626. if test "X$x" = "X-I$additional_includedir"; then
  18627. haveit=yes
  18628. break
  18629. fi
  18630. done
  18631. if test -z "$haveit"; then
  18632. if test -d "$additional_includedir"; then
  18633. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  18634. fi
  18635. fi
  18636. fi
  18637. fi
  18638. fi
  18639. if test -n "$found_la"; then
  18640. save_libdir="$libdir"
  18641. case "$found_la" in
  18642. */* | *\\*) . "$found_la" ;;
  18643. *) . "./$found_la" ;;
  18644. esac
  18645. libdir="$save_libdir"
  18646. for dep in $dependency_libs; do
  18647. case "$dep" in
  18648. -L*)
  18649. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  18650. if test "X$additional_libdir" != "X/usr/lib"; then
  18651. haveit=
  18652. if test "X$additional_libdir" = "X/usr/local/lib"; then
  18653. if test -n "$GCC"; then
  18654. case $host_os in
  18655. linux*) haveit=yes;;
  18656. esac
  18657. fi
  18658. fi
  18659. if test -z "$haveit"; then
  18660. haveit=
  18661. for x in $LDFLAGS $LIBICONV; do
  18662. acl_save_prefix="$prefix"
  18663. prefix="$acl_final_prefix"
  18664. acl_save_exec_prefix="$exec_prefix"
  18665. exec_prefix="$acl_final_exec_prefix"
  18666. eval x=\"$x\"
  18667. exec_prefix="$acl_save_exec_prefix"
  18668. prefix="$acl_save_prefix"
  18669. if test "X$x" = "X-L$additional_libdir"; then
  18670. haveit=yes
  18671. break
  18672. fi
  18673. done
  18674. if test -z "$haveit"; then
  18675. if test -d "$additional_libdir"; then
  18676. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  18677. fi
  18678. fi
  18679. haveit=
  18680. for x in $LDFLAGS $LTLIBICONV; do
  18681. acl_save_prefix="$prefix"
  18682. prefix="$acl_final_prefix"
  18683. acl_save_exec_prefix="$exec_prefix"
  18684. exec_prefix="$acl_final_exec_prefix"
  18685. eval x=\"$x\"
  18686. exec_prefix="$acl_save_exec_prefix"
  18687. prefix="$acl_save_prefix"
  18688. if test "X$x" = "X-L$additional_libdir"; then
  18689. haveit=yes
  18690. break
  18691. fi
  18692. done
  18693. if test -z "$haveit"; then
  18694. if test -d "$additional_libdir"; then
  18695. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  18696. fi
  18697. fi
  18698. fi
  18699. fi
  18700. ;;
  18701. -R*)
  18702. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  18703. if test "$enable_rpath" != no; then
  18704. haveit=
  18705. for x in $rpathdirs; do
  18706. if test "X$x" = "X$dir"; then
  18707. haveit=yes
  18708. break
  18709. fi
  18710. done
  18711. if test -z "$haveit"; then
  18712. rpathdirs="$rpathdirs $dir"
  18713. fi
  18714. haveit=
  18715. for x in $ltrpathdirs; do
  18716. if test "X$x" = "X$dir"; then
  18717. haveit=yes
  18718. break
  18719. fi
  18720. done
  18721. if test -z "$haveit"; then
  18722. ltrpathdirs="$ltrpathdirs $dir"
  18723. fi
  18724. fi
  18725. ;;
  18726. -l*)
  18727. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  18728. ;;
  18729. *.la)
  18730. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  18731. ;;
  18732. *)
  18733. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  18734. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  18735. ;;
  18736. esac
  18737. done
  18738. fi
  18739. else
  18740. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  18741. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  18742. fi
  18743. fi
  18744. fi
  18745. done
  18746. done
  18747. if test "X$rpathdirs" != "X"; then
  18748. if test -n "$hardcode_libdir_separator"; then
  18749. alldirs=
  18750. for found_dir in $rpathdirs; do
  18751. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  18752. done
  18753. acl_save_libdir="$libdir"
  18754. libdir="$alldirs"
  18755. eval flag=\"$hardcode_libdir_flag_spec\"
  18756. libdir="$acl_save_libdir"
  18757. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  18758. else
  18759. for found_dir in $rpathdirs; do
  18760. acl_save_libdir="$libdir"
  18761. libdir="$found_dir"
  18762. eval flag=\"$hardcode_libdir_flag_spec\"
  18763. libdir="$acl_save_libdir"
  18764. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  18765. done
  18766. fi
  18767. fi
  18768. if test "X$ltrpathdirs" != "X"; then
  18769. for found_dir in $ltrpathdirs; do
  18770. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  18771. done
  18772. fi
  18773. am_save_CPPFLAGS="$CPPFLAGS"
  18774. for element in $INCICONV; do
  18775. haveit=
  18776. for x in $CPPFLAGS; do
  18777. acl_save_prefix="$prefix"
  18778. prefix="$acl_final_prefix"
  18779. acl_save_exec_prefix="$exec_prefix"
  18780. exec_prefix="$acl_final_exec_prefix"
  18781. eval x=\"$x\"
  18782. exec_prefix="$acl_save_exec_prefix"
  18783. prefix="$acl_save_prefix"
  18784. if test "X$x" = "X$element"; then
  18785. haveit=yes
  18786. break
  18787. fi
  18788. done
  18789. if test -z "$haveit"; then
  18790. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  18791. fi
  18792. done
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  18794. $as_echo_n "checking for iconv... " >&6; }
  18795. if test "${am_cv_func_iconv+set}" = set; then :
  18796. $as_echo_n "(cached) " >&6
  18797. else
  18798. am_cv_func_iconv="no, consider installing GNU libiconv"
  18799. am_cv_lib_iconv=no
  18800. if test x$gcc_no_link = xyes; then
  18801. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18802. fi
  18803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18804. /* end confdefs.h. */
  18805. #include <stdlib.h>
  18806. #include <iconv.h>
  18807. int
  18808. main ()
  18809. {
  18810. iconv_t cd = iconv_open("","");
  18811. iconv(cd,NULL,NULL,NULL,NULL);
  18812. iconv_close(cd);
  18813. ;
  18814. return 0;
  18815. }
  18816. _ACEOF
  18817. if ac_fn_c_try_link "$LINENO"; then :
  18818. am_cv_func_iconv=yes
  18819. fi
  18820. rm -f core conftest.err conftest.$ac_objext \
  18821. conftest$ac_exeext conftest.$ac_ext
  18822. if test "$am_cv_func_iconv" != yes; then
  18823. am_save_LIBS="$LIBS"
  18824. LIBS="$LIBS $LIBICONV"
  18825. if test x$gcc_no_link = xyes; then
  18826. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18827. fi
  18828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18829. /* end confdefs.h. */
  18830. #include <stdlib.h>
  18831. #include <iconv.h>
  18832. int
  18833. main ()
  18834. {
  18835. iconv_t cd = iconv_open("","");
  18836. iconv(cd,NULL,NULL,NULL,NULL);
  18837. iconv_close(cd);
  18838. ;
  18839. return 0;
  18840. }
  18841. _ACEOF
  18842. if ac_fn_c_try_link "$LINENO"; then :
  18843. am_cv_lib_iconv=yes
  18844. am_cv_func_iconv=yes
  18845. fi
  18846. rm -f core conftest.err conftest.$ac_objext \
  18847. conftest$ac_exeext conftest.$ac_ext
  18848. LIBS="$am_save_LIBS"
  18849. fi
  18850. fi
  18851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  18852. $as_echo "$am_cv_func_iconv" >&6; }
  18853. if test "$am_cv_func_iconv" = yes; then
  18854. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  18855. fi
  18856. if test "$am_cv_lib_iconv" = yes; then
  18857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  18858. $as_echo_n "checking how to link with libiconv... " >&6; }
  18859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  18860. $as_echo "$LIBICONV" >&6; }
  18861. else
  18862. CPPFLAGS="$am_save_CPPFLAGS"
  18863. LIBICONV=
  18864. LTLIBICONV=
  18865. fi
  18866. if test "$am_cv_func_iconv" = yes; then
  18867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  18868. $as_echo_n "checking for iconv declaration... " >&6; }
  18869. if test "${am_cv_proto_iconv+set}" = set; then :
  18870. $as_echo_n "(cached) " >&6
  18871. else
  18872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18873. /* end confdefs.h. */
  18874. #include <stdlib.h>
  18875. #include <iconv.h>
  18876. extern
  18877. #ifdef __cplusplus
  18878. "C"
  18879. #endif
  18880. #if defined(__STDC__) || defined(__cplusplus)
  18881. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  18882. #else
  18883. size_t iconv();
  18884. #endif
  18885. int
  18886. main ()
  18887. {
  18888. ;
  18889. return 0;
  18890. }
  18891. _ACEOF
  18892. if ac_fn_c_try_compile "$LINENO"; then :
  18893. am_cv_proto_iconv_arg1=""
  18894. else
  18895. am_cv_proto_iconv_arg1="const"
  18896. fi
  18897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18898. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  18899. fi
  18900. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  18901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  18902. }$am_cv_proto_iconv" >&5
  18903. $as_echo "${ac_t:-
  18904. }$am_cv_proto_iconv" >&6; }
  18905. cat >>confdefs.h <<_ACEOF
  18906. #define ICONV_CONST $am_cv_proto_iconv_arg1
  18907. _ACEOF
  18908. fi
  18909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  18910. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  18911. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  18912. $as_echo_n "(cached) " >&6
  18913. else
  18914. if test x$gcc_no_link = xyes; then
  18915. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18916. fi
  18917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18918. /* end confdefs.h. */
  18919. #include <locale.h>
  18920. int
  18921. main ()
  18922. {
  18923. return LC_MESSAGES
  18924. ;
  18925. return 0;
  18926. }
  18927. _ACEOF
  18928. if ac_fn_c_try_link "$LINENO"; then :
  18929. am_cv_val_LC_MESSAGES=yes
  18930. else
  18931. am_cv_val_LC_MESSAGES=no
  18932. fi
  18933. rm -f core conftest.err conftest.$ac_objext \
  18934. conftest$ac_exeext conftest.$ac_ext
  18935. fi
  18936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  18937. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  18938. if test $am_cv_val_LC_MESSAGES = yes; then
  18939. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  18940. fi
  18941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  18942. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  18943. if test "${ac_cv_struct_tm+set}" = set; then :
  18944. $as_echo_n "(cached) " >&6
  18945. else
  18946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18947. /* end confdefs.h. */
  18948. #include <sys/types.h>
  18949. #include <time.h>
  18950. int
  18951. main ()
  18952. {
  18953. struct tm tm;
  18954. int *p = &tm.tm_sec;
  18955. return !p;
  18956. ;
  18957. return 0;
  18958. }
  18959. _ACEOF
  18960. if ac_fn_c_try_compile "$LINENO"; then :
  18961. ac_cv_struct_tm=time.h
  18962. else
  18963. ac_cv_struct_tm=sys/time.h
  18964. fi
  18965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18966. fi
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  18968. $as_echo "$ac_cv_struct_tm" >&6; }
  18969. if test $ac_cv_struct_tm = sys/time.h; then
  18970. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  18971. fi
  18972. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  18973. #include <$ac_cv_struct_tm>
  18974. "
  18975. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  18976. cat >>confdefs.h <<_ACEOF
  18977. #define HAVE_STRUCT_TM_TM_ZONE 1
  18978. _ACEOF
  18979. fi
  18980. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  18981. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  18982. else
  18983. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  18984. "
  18985. if test "x$ac_cv_have_decl_tzname" = x""yes; then :
  18986. ac_have_decl=1
  18987. else
  18988. ac_have_decl=0
  18989. fi
  18990. cat >>confdefs.h <<_ACEOF
  18991. #define HAVE_DECL_TZNAME $ac_have_decl
  18992. _ACEOF
  18993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  18994. $as_echo_n "checking for tzname... " >&6; }
  18995. if test "${ac_cv_var_tzname+set}" = set; then :
  18996. $as_echo_n "(cached) " >&6
  18997. else
  18998. if test x$gcc_no_link = xyes; then
  18999. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19000. fi
  19001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19002. /* end confdefs.h. */
  19003. #include <time.h>
  19004. #if !HAVE_DECL_TZNAME
  19005. extern char *tzname[];
  19006. #endif
  19007. int
  19008. main ()
  19009. {
  19010. return tzname[0][0];
  19011. ;
  19012. return 0;
  19013. }
  19014. _ACEOF
  19015. if ac_fn_c_try_link "$LINENO"; then :
  19016. ac_cv_var_tzname=yes
  19017. else
  19018. ac_cv_var_tzname=no
  19019. fi
  19020. rm -f core conftest.err conftest.$ac_objext \
  19021. conftest$ac_exeext conftest.$ac_ext
  19022. fi
  19023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  19024. $as_echo "$ac_cv_var_tzname" >&6; }
  19025. if test $ac_cv_var_tzname = yes; then
  19026. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  19027. fi
  19028. fi
  19029. LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
  19030. for ac_func in gethostbyname_r
  19031. do :
  19032. ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
  19033. if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
  19034. cat >>confdefs.h <<_ACEOF
  19035. #define HAVE_GETHOSTBYNAME_R 1
  19036. _ACEOF
  19037. $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
  19038. # There are two different kinds of gethostbyname_r.
  19039. # We look for the one that returns `int'.
  19040. # Hopefully this check is robust enough.
  19041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19042. /* end confdefs.h. */
  19043. #include <netdb.h>
  19044. _ACEOF
  19045. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19046. $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
  19047. $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
  19048. fi
  19049. rm -f conftest*
  19050. case " $GCINCS " in
  19051. *" -D_REENTRANT "*) ;;
  19052. *)
  19053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
  19054. $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
  19055. if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
  19056. $as_echo_n "(cached) " >&6
  19057. else
  19058. ac_ext=cpp
  19059. ac_cpp='$CXXCPP $CPPFLAGS'
  19060. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19061. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19062. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19064. /* end confdefs.h. */
  19065. #include <netdb.h>
  19066. int
  19067. main ()
  19068. {
  19069. gethostbyname_r("", 0, 0);
  19070. ;
  19071. return 0;
  19072. }
  19073. _ACEOF
  19074. if ac_fn_cxx_try_compile "$LINENO"; then :
  19075. libjava_cv_gethostbyname_r_needs_reentrant=no
  19076. else
  19077. CPPFLAGS_SAVE="$CPPFLAGS"
  19078. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  19079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19080. /* end confdefs.h. */
  19081. #include <netdb.h>
  19082. int
  19083. main ()
  19084. {
  19085. gethostbyname_r("", 0, 0);
  19086. ;
  19087. return 0;
  19088. }
  19089. _ACEOF
  19090. if ac_fn_cxx_try_compile "$LINENO"; then :
  19091. libjava_cv_gethostbyname_r_needs_reentrant=yes
  19092. else
  19093. libjava_cv_gethostbyname_r_needs_reentrant=fail
  19094. fi
  19095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19096. CPPFLAGS="$CPPFLAGS_SAVE"
  19097. fi
  19098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19099. ac_ext=c
  19100. ac_cpp='$CPP $CPPFLAGS'
  19101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19104. fi
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
  19106. $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
  19107. if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
  19108. $as_echo "#define _REENTRANT 1" >>confdefs.h
  19109. fi
  19110. ;;
  19111. esac
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
  19113. $as_echo_n "checking for struct hostent_data... " >&6; }
  19114. if test "${libjava_cv_struct_hostent_data+set}" = set; then :
  19115. $as_echo_n "(cached) " >&6
  19116. else
  19117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19118. /* end confdefs.h. */
  19119. #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
  19120. # define _REENTRANT 1
  19121. #endif
  19122. #include <netdb.h>
  19123. int
  19124. main ()
  19125. {
  19126. struct hostent_data data;
  19127. ;
  19128. return 0;
  19129. }
  19130. _ACEOF
  19131. if ac_fn_c_try_compile "$LINENO"; then :
  19132. libjava_cv_struct_hostent_data=yes
  19133. else
  19134. libjava_cv_struct_hostent_data=no
  19135. fi
  19136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19137. fi
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
  19139. $as_echo "$libjava_cv_struct_hostent_data" >&6; }
  19140. if test "x$libjava_cv_struct_hostent_data" = xyes; then
  19141. $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
  19142. fi
  19143. fi
  19144. done
  19145. # FIXME: libjava source code expects to find a prototype for
  19146. # gethostbyaddr_r in netdb.h. The outer check ensures that
  19147. # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
  19148. # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
  19149. # linkage check is enough, yet C++ code requires proper prototypes.)
  19150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19151. /* end confdefs.h. */
  19152. #include <netdb.h>
  19153. _ACEOF
  19154. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19155. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  19156. for ac_func in gethostbyaddr_r
  19157. do :
  19158. ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
  19159. if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
  19160. cat >>confdefs.h <<_ACEOF
  19161. #define HAVE_GETHOSTBYADDR_R 1
  19162. _ACEOF
  19163. $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
  19164. # There are two different kinds of gethostbyaddr_r.
  19165. # We look for the one that returns `int'.
  19166. # Hopefully this check is robust enough.
  19167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19168. /* end confdefs.h. */
  19169. #include <netdb.h>
  19170. _ACEOF
  19171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19172. $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
  19173. $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
  19174. fi
  19175. rm -f conftest*
  19176. fi
  19177. done
  19178. fi
  19179. rm -f conftest*
  19180. for ac_func in gethostname
  19181. do :
  19182. ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
  19183. if test "x$ac_cv_func_gethostname" = x""yes; then :
  19184. cat >>confdefs.h <<_ACEOF
  19185. #define HAVE_GETHOSTNAME 1
  19186. _ACEOF
  19187. $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. #include <unistd.h>
  19191. _ACEOF
  19192. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19193. $EGREP "gethostname" >/dev/null 2>&1; then :
  19194. $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
  19195. fi
  19196. rm -f conftest*
  19197. fi
  19198. done
  19199. for ac_func in usleep
  19200. do :
  19201. ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
  19202. if test "x$ac_cv_func_usleep" = x""yes; then :
  19203. cat >>confdefs.h <<_ACEOF
  19204. #define HAVE_USLEEP 1
  19205. _ACEOF
  19206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19207. /* end confdefs.h. */
  19208. #include <unistd.h>
  19209. _ACEOF
  19210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19211. $EGREP "usleep" >/dev/null 2>&1; then :
  19212. $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
  19213. fi
  19214. rm -f conftest*
  19215. fi
  19216. done
  19217. # Look for these functions in the thread library, but only bother
  19218. # if using POSIX threads.
  19219. if test "$THREADS" = posix; then
  19220. save_LIBS="$LIBS"
  19221. LIBS="$LIBS $THREADLIBS"
  19222. # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
  19223. # Solaris 7 the name librt is preferred.
  19224. for ac_func in sched_yield
  19225. do :
  19226. ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
  19227. if test "x$ac_cv_func_sched_yield" = x""yes; then :
  19228. cat >>confdefs.h <<_ACEOF
  19229. #define HAVE_SCHED_YIELD 1
  19230. _ACEOF
  19231. else
  19232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
  19233. $as_echo_n "checking for sched_yield in -lrt... " >&6; }
  19234. if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
  19235. $as_echo_n "(cached) " >&6
  19236. else
  19237. ac_check_lib_save_LIBS=$LIBS
  19238. LIBS="-lrt $LIBS"
  19239. if test x$gcc_no_link = xyes; then
  19240. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19241. fi
  19242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19243. /* end confdefs.h. */
  19244. /* Override any GCC internal prototype to avoid an error.
  19245. Use char because int might match the return type of a GCC
  19246. builtin and then its argument prototype would still apply. */
  19247. #ifdef __cplusplus
  19248. extern "C"
  19249. #endif
  19250. char sched_yield ();
  19251. int
  19252. main ()
  19253. {
  19254. return sched_yield ();
  19255. ;
  19256. return 0;
  19257. }
  19258. _ACEOF
  19259. if ac_fn_c_try_link "$LINENO"; then :
  19260. ac_cv_lib_rt_sched_yield=yes
  19261. else
  19262. ac_cv_lib_rt_sched_yield=no
  19263. fi
  19264. rm -f core conftest.err conftest.$ac_objext \
  19265. conftest$ac_exeext conftest.$ac_ext
  19266. LIBS=$ac_check_lib_save_LIBS
  19267. fi
  19268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
  19269. $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
  19270. if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
  19271. $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
  19272. THREADLIBS="$THREADLIBS -lrt"
  19273. THREADSPEC="$THREADSPEC -lrt"
  19274. else
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
  19276. $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
  19277. if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
  19278. $as_echo_n "(cached) " >&6
  19279. else
  19280. ac_check_lib_save_LIBS=$LIBS
  19281. LIBS="-lposix4 $LIBS"
  19282. if test x$gcc_no_link = xyes; then
  19283. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19284. fi
  19285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19286. /* end confdefs.h. */
  19287. /* Override any GCC internal prototype to avoid an error.
  19288. Use char because int might match the return type of a GCC
  19289. builtin and then its argument prototype would still apply. */
  19290. #ifdef __cplusplus
  19291. extern "C"
  19292. #endif
  19293. char sched_yield ();
  19294. int
  19295. main ()
  19296. {
  19297. return sched_yield ();
  19298. ;
  19299. return 0;
  19300. }
  19301. _ACEOF
  19302. if ac_fn_c_try_link "$LINENO"; then :
  19303. ac_cv_lib_posix4_sched_yield=yes
  19304. else
  19305. ac_cv_lib_posix4_sched_yield=no
  19306. fi
  19307. rm -f core conftest.err conftest.$ac_objext \
  19308. conftest$ac_exeext conftest.$ac_ext
  19309. LIBS=$ac_check_lib_save_LIBS
  19310. fi
  19311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
  19312. $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
  19313. if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
  19314. $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
  19315. THREADLIBS="$THREADLIBS -lposix4"
  19316. THREADSPEC="$THREADSPEC -lposix4"
  19317. fi
  19318. fi
  19319. fi
  19320. done
  19321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19322. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19323. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  19324. $as_echo_n "(cached) " >&6
  19325. else
  19326. ac_check_lib_save_LIBS=$LIBS
  19327. LIBS="-lrt $LIBS"
  19328. if test x$gcc_no_link = xyes; then
  19329. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19330. fi
  19331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19332. /* end confdefs.h. */
  19333. /* Override any GCC internal prototype to avoid an error.
  19334. Use char because int might match the return type of a GCC
  19335. builtin and then its argument prototype would still apply. */
  19336. #ifdef __cplusplus
  19337. extern "C"
  19338. #endif
  19339. char clock_gettime ();
  19340. int
  19341. main ()
  19342. {
  19343. return clock_gettime ();
  19344. ;
  19345. return 0;
  19346. }
  19347. _ACEOF
  19348. if ac_fn_c_try_link "$LINENO"; then :
  19349. ac_cv_lib_rt_clock_gettime=yes
  19350. else
  19351. ac_cv_lib_rt_clock_gettime=no
  19352. fi
  19353. rm -f core conftest.err conftest.$ac_objext \
  19354. conftest$ac_exeext conftest.$ac_ext
  19355. LIBS=$ac_check_lib_save_LIBS
  19356. fi
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19358. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19359. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  19360. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19361. case "$THREADSPEC" in
  19362. *-lrt*) ;;
  19363. *)
  19364. THREADSPEC="$THREADSPEC -lrt"
  19365. THREADLIBS="$THREADLIBS -lrt"
  19366. ;;
  19367. esac
  19368. fi
  19369. LIBS="$save_LIBS"
  19370. # We can save a little space at runtime if the mutex has m_count
  19371. # or __m_count. This is a nice hack for Linux.
  19372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19373. /* end confdefs.h. */
  19374. #include <pthread.h>
  19375. int
  19376. main ()
  19377. {
  19378. extern pthread_mutex_t *mutex; int q = mutex->m_count;
  19379. ;
  19380. return 0;
  19381. }
  19382. _ACEOF
  19383. if ac_fn_c_try_compile "$LINENO"; then :
  19384. $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
  19385. else
  19386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19387. /* end confdefs.h. */
  19388. #include <pthread.h>
  19389. int
  19390. main ()
  19391. {
  19392. extern pthread_mutex_t *mutex; int q = mutex->__m_count;
  19393. ;
  19394. return 0;
  19395. }
  19396. _ACEOF
  19397. if ac_fn_c_try_compile "$LINENO"; then :
  19398. $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
  19399. fi
  19400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19401. fi
  19402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19403. fi
  19404. # We require a way to get the time.
  19405. time_found=no
  19406. for ac_func in gettimeofday time ftime
  19407. do :
  19408. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19409. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19410. eval as_val=\$$as_ac_var
  19411. if test "x$as_val" = x""yes; then :
  19412. cat >>confdefs.h <<_ACEOF
  19413. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19414. _ACEOF
  19415. time_found=yes
  19416. fi
  19417. done
  19418. if test "$time_found" = no; then
  19419. as_fn_error "no function found to get the time" "$LINENO" 5
  19420. fi
  19421. for ac_func in memmove
  19422. do :
  19423. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  19424. if test "x$ac_cv_func_memmove" = x""yes; then :
  19425. cat >>confdefs.h <<_ACEOF
  19426. #define HAVE_MEMMOVE 1
  19427. _ACEOF
  19428. fi
  19429. done
  19430. # We require memcpy.
  19431. memcpy_found=no
  19432. for ac_func in memcpy
  19433. do :
  19434. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  19435. if test "x$ac_cv_func_memcpy" = x""yes; then :
  19436. cat >>confdefs.h <<_ACEOF
  19437. #define HAVE_MEMCPY 1
  19438. _ACEOF
  19439. memcpy_found=yes
  19440. fi
  19441. done
  19442. if test "$memcpy_found" = no; then
  19443. as_fn_error "memcpy is required" "$LINENO" 5
  19444. fi
  19445. # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
  19446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19447. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19448. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  19449. $as_echo_n "(cached) " >&6
  19450. else
  19451. ac_check_lib_save_LIBS=$LIBS
  19452. LIBS="-ldl $LIBS"
  19453. if test x$gcc_no_link = xyes; then
  19454. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19455. fi
  19456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19457. /* end confdefs.h. */
  19458. /* Override any GCC internal prototype to avoid an error.
  19459. Use char because int might match the return type of a GCC
  19460. builtin and then its argument prototype would still apply. */
  19461. #ifdef __cplusplus
  19462. extern "C"
  19463. #endif
  19464. char dlopen ();
  19465. int
  19466. main ()
  19467. {
  19468. return dlopen ();
  19469. ;
  19470. return 0;
  19471. }
  19472. _ACEOF
  19473. if ac_fn_c_try_link "$LINENO"; then :
  19474. ac_cv_lib_dl_dlopen=yes
  19475. else
  19476. ac_cv_lib_dl_dlopen=no
  19477. fi
  19478. rm -f core conftest.err conftest.$ac_objext \
  19479. conftest$ac_exeext conftest.$ac_ext
  19480. LIBS=$ac_check_lib_save_LIBS
  19481. fi
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19483. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19484. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  19485. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  19486. else
  19487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
  19488. $as_echo_n "checking for dlopen in -ldld... " >&6; }
  19489. if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
  19490. $as_echo_n "(cached) " >&6
  19491. else
  19492. ac_check_lib_save_LIBS=$LIBS
  19493. LIBS="-ldld $LIBS"
  19494. if test x$gcc_no_link = xyes; then
  19495. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19496. fi
  19497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19498. /* end confdefs.h. */
  19499. /* Override any GCC internal prototype to avoid an error.
  19500. Use char because int might match the return type of a GCC
  19501. builtin and then its argument prototype would still apply. */
  19502. #ifdef __cplusplus
  19503. extern "C"
  19504. #endif
  19505. char dlopen ();
  19506. int
  19507. main ()
  19508. {
  19509. return dlopen ();
  19510. ;
  19511. return 0;
  19512. }
  19513. _ACEOF
  19514. if ac_fn_c_try_link "$LINENO"; then :
  19515. ac_cv_lib_dld_dlopen=yes
  19516. else
  19517. ac_cv_lib_dld_dlopen=no
  19518. fi
  19519. rm -f core conftest.err conftest.$ac_objext \
  19520. conftest$ac_exeext conftest.$ac_ext
  19521. LIBS=$ac_check_lib_save_LIBS
  19522. fi
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
  19524. $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
  19525. if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
  19526. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  19527. fi
  19528. fi
  19529. # Some library-finding code we stole from Tcl.
  19530. #--------------------------------------------------------------------
  19531. # Check for the existence of the -lsocket and -lnsl libraries.
  19532. # The order here is important, so that they end up in the right
  19533. # order in the command line generated by make. Here are some
  19534. # special considerations:
  19535. # 1. Use "connect" and "accept" to check for -lsocket, and
  19536. # "gethostbyname" to check for -lnsl.
  19537. # 2. Use each function name only once: can't redo a check because
  19538. # autoconf caches the results of the last check and won't redo it.
  19539. # 3. Use -lnsl and -lsocket only if they supply procedures that
  19540. # aren't already present in the normal libraries. This is because
  19541. # IRIX 5.2 has libraries, but they aren't needed and they're
  19542. # bogus: they goof up name resolution if used.
  19543. # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
  19544. # To get around this problem, check for both libraries together
  19545. # if -lsocket doesn't work by itself.
  19546. #--------------------------------------------------------------------
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
  19548. $as_echo_n "checking for socket libraries... " >&6; }
  19549. if test "${gcj_cv_lib_sockets+set}" = set; then :
  19550. $as_echo_n "(cached) " >&6
  19551. else
  19552. gcj_cv_lib_sockets=
  19553. gcj_checkBoth=0
  19554. unset ac_cv_func_connect
  19555. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19556. if test "x$ac_cv_func_connect" = x""yes; then :
  19557. gcj_checkSocket=0
  19558. else
  19559. gcj_checkSocket=1
  19560. fi
  19561. if test "$gcj_checkSocket" = 1; then
  19562. unset ac_cv_func_connect
  19563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  19564. $as_echo_n "checking for main in -lsocket... " >&6; }
  19565. if test "${ac_cv_lib_socket_main+set}" = set; then :
  19566. $as_echo_n "(cached) " >&6
  19567. else
  19568. ac_check_lib_save_LIBS=$LIBS
  19569. LIBS="-lsocket $LIBS"
  19570. if test x$gcc_no_link = xyes; then
  19571. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19572. fi
  19573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19574. /* end confdefs.h. */
  19575. int
  19576. main ()
  19577. {
  19578. return main ();
  19579. ;
  19580. return 0;
  19581. }
  19582. _ACEOF
  19583. if ac_fn_c_try_link "$LINENO"; then :
  19584. ac_cv_lib_socket_main=yes
  19585. else
  19586. ac_cv_lib_socket_main=no
  19587. fi
  19588. rm -f core conftest.err conftest.$ac_objext \
  19589. conftest$ac_exeext conftest.$ac_ext
  19590. LIBS=$ac_check_lib_save_LIBS
  19591. fi
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  19593. $as_echo "$ac_cv_lib_socket_main" >&6; }
  19594. if test "x$ac_cv_lib_socket_main" = x""yes; then :
  19595. gcj_cv_lib_sockets="-lsocket"
  19596. else
  19597. gcj_checkBoth=1
  19598. fi
  19599. fi
  19600. if test "$gcj_checkBoth" = 1; then
  19601. gcj_oldLibs=$LIBS
  19602. LIBS="$LIBS -lsocket -lnsl"
  19603. unset ac_cv_func_accept
  19604. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  19605. if test "x$ac_cv_func_accept" = x""yes; then :
  19606. gcj_checkNsl=0
  19607. gcj_cv_lib_sockets="-lsocket -lnsl"
  19608. fi
  19609. unset ac_cv_func_accept
  19610. LIBS=$gcj_oldLibs
  19611. fi
  19612. unset ac_cv_func_gethostbyname
  19613. gcj_oldLibs=$LIBS
  19614. LIBS="$LIBS $gcj_cv_lib_sockets"
  19615. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19616. if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  19617. else
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  19619. $as_echo_n "checking for main in -lnsl... " >&6; }
  19620. if test "${ac_cv_lib_nsl_main+set}" = set; then :
  19621. $as_echo_n "(cached) " >&6
  19622. else
  19623. ac_check_lib_save_LIBS=$LIBS
  19624. LIBS="-lnsl $LIBS"
  19625. if test x$gcc_no_link = xyes; then
  19626. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19627. fi
  19628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19629. /* end confdefs.h. */
  19630. int
  19631. main ()
  19632. {
  19633. return main ();
  19634. ;
  19635. return 0;
  19636. }
  19637. _ACEOF
  19638. if ac_fn_c_try_link "$LINENO"; then :
  19639. ac_cv_lib_nsl_main=yes
  19640. else
  19641. ac_cv_lib_nsl_main=no
  19642. fi
  19643. rm -f core conftest.err conftest.$ac_objext \
  19644. conftest$ac_exeext conftest.$ac_ext
  19645. LIBS=$ac_check_lib_save_LIBS
  19646. fi
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  19648. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  19649. if test "x$ac_cv_lib_nsl_main" = x""yes; then :
  19650. gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
  19651. fi
  19652. fi
  19653. unset ac_cv_func_gethostbyname
  19654. LIBS=$gcj_oldLIBS
  19655. fi
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
  19657. $as_echo "$gcj_cv_lib_sockets" >&6; }
  19658. SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
  19659. if test "$with_system_zlib" = yes; then
  19660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  19661. $as_echo_n "checking for deflate in -lz... " >&6; }
  19662. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  19663. $as_echo_n "(cached) " >&6
  19664. else
  19665. ac_check_lib_save_LIBS=$LIBS
  19666. LIBS="-lz $LIBS"
  19667. if test x$gcc_no_link = xyes; then
  19668. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19669. fi
  19670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19671. /* end confdefs.h. */
  19672. /* Override any GCC internal prototype to avoid an error.
  19673. Use char because int might match the return type of a GCC
  19674. builtin and then its argument prototype would still apply. */
  19675. #ifdef __cplusplus
  19676. extern "C"
  19677. #endif
  19678. char deflate ();
  19679. int
  19680. main ()
  19681. {
  19682. return deflate ();
  19683. ;
  19684. return 0;
  19685. }
  19686. _ACEOF
  19687. if ac_fn_c_try_link "$LINENO"; then :
  19688. ac_cv_lib_z_deflate=yes
  19689. else
  19690. ac_cv_lib_z_deflate=no
  19691. fi
  19692. rm -f core conftest.err conftest.$ac_objext \
  19693. conftest$ac_exeext conftest.$ac_ext
  19694. LIBS=$ac_check_lib_save_LIBS
  19695. fi
  19696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  19697. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  19698. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  19699. ZLIBSPEC=-lz
  19700. else
  19701. ZLIBSPEC=
  19702. fi
  19703. fi
  19704. # Test for Gtk stuff, if asked for.
  19705. if test "$use_gtk_awt" = yes; then
  19706. succeeded=no
  19707. if test -z "$PKG_CONFIG"; then
  19708. if test -n "$ac_tool_prefix"; then
  19709. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19710. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19712. $as_echo_n "checking for $ac_word... " >&6; }
  19713. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19714. $as_echo_n "(cached) " >&6
  19715. else
  19716. case $PKG_CONFIG in
  19717. [\\/]* | ?:[\\/]*)
  19718. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19719. ;;
  19720. *)
  19721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19722. for as_dir in $PATH
  19723. do
  19724. IFS=$as_save_IFS
  19725. test -z "$as_dir" && as_dir=.
  19726. for ac_exec_ext in '' $ac_executable_extensions; do
  19727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19728. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19730. break 2
  19731. fi
  19732. done
  19733. done
  19734. IFS=$as_save_IFS
  19735. ;;
  19736. esac
  19737. fi
  19738. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19739. if test -n "$PKG_CONFIG"; then
  19740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19741. $as_echo "$PKG_CONFIG" >&6; }
  19742. else
  19743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19744. $as_echo "no" >&6; }
  19745. fi
  19746. fi
  19747. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19748. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19749. # Extract the first word of "pkg-config", so it can be a program name with args.
  19750. set dummy pkg-config; ac_word=$2
  19751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19752. $as_echo_n "checking for $ac_word... " >&6; }
  19753. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19754. $as_echo_n "(cached) " >&6
  19755. else
  19756. case $ac_pt_PKG_CONFIG in
  19757. [\\/]* | ?:[\\/]*)
  19758. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19759. ;;
  19760. *)
  19761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19762. for as_dir in $PATH
  19763. do
  19764. IFS=$as_save_IFS
  19765. test -z "$as_dir" && as_dir=.
  19766. for ac_exec_ext in '' $ac_executable_extensions; do
  19767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19768. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19770. break 2
  19771. fi
  19772. done
  19773. done
  19774. IFS=$as_save_IFS
  19775. ;;
  19776. esac
  19777. fi
  19778. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19779. if test -n "$ac_pt_PKG_CONFIG"; then
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19781. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19782. else
  19783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19784. $as_echo "no" >&6; }
  19785. fi
  19786. if test "x$ac_pt_PKG_CONFIG" = x; then
  19787. PKG_CONFIG="no"
  19788. else
  19789. case $cross_compiling:$ac_tool_warned in
  19790. yes:)
  19791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19793. ac_tool_warned=yes ;;
  19794. esac
  19795. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19796. fi
  19797. else
  19798. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19799. fi
  19800. fi
  19801. if test "$PKG_CONFIG" = "no" ; then
  19802. echo "*** The pkg-config script could not be found. Make sure it is"
  19803. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19804. echo "*** to the full path to pkg-config."
  19805. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19806. else
  19807. PKG_CONFIG_MIN_VERSION=0.9.0
  19808. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
  19810. $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
  19811. if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
  19812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19813. $as_echo "yes" >&6; }
  19814. succeeded=yes
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  19816. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  19817. GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
  19818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  19819. $as_echo "$GTK_CFLAGS" >&6; }
  19820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  19821. $as_echo_n "checking GTK_LIBS... " >&6; }
  19822. GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  19824. $as_echo "$GTK_LIBS" >&6; }
  19825. else
  19826. GTK_CFLAGS=""
  19827. GTK_LIBS=""
  19828. ## If we have a custom action on failure, don't print errors, but
  19829. ## do set a variable so people can do so.
  19830. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
  19831. echo $GTK_PKG_ERRORS
  19832. fi
  19833. else
  19834. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19835. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19836. fi
  19837. fi
  19838. if test $succeeded = yes; then
  19839. :
  19840. else
  19841. as_fn_error "Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  19842. fi
  19843. succeeded=no
  19844. if test -z "$PKG_CONFIG"; then
  19845. if test -n "$ac_tool_prefix"; then
  19846. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19847. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19849. $as_echo_n "checking for $ac_word... " >&6; }
  19850. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19851. $as_echo_n "(cached) " >&6
  19852. else
  19853. case $PKG_CONFIG in
  19854. [\\/]* | ?:[\\/]*)
  19855. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19856. ;;
  19857. *)
  19858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19859. for as_dir in $PATH
  19860. do
  19861. IFS=$as_save_IFS
  19862. test -z "$as_dir" && as_dir=.
  19863. for ac_exec_ext in '' $ac_executable_extensions; do
  19864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19865. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19867. break 2
  19868. fi
  19869. done
  19870. done
  19871. IFS=$as_save_IFS
  19872. ;;
  19873. esac
  19874. fi
  19875. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19876. if test -n "$PKG_CONFIG"; then
  19877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19878. $as_echo "$PKG_CONFIG" >&6; }
  19879. else
  19880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19881. $as_echo "no" >&6; }
  19882. fi
  19883. fi
  19884. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19885. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19886. # Extract the first word of "pkg-config", so it can be a program name with args.
  19887. set dummy pkg-config; ac_word=$2
  19888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19889. $as_echo_n "checking for $ac_word... " >&6; }
  19890. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19891. $as_echo_n "(cached) " >&6
  19892. else
  19893. case $ac_pt_PKG_CONFIG in
  19894. [\\/]* | ?:[\\/]*)
  19895. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19896. ;;
  19897. *)
  19898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19899. for as_dir in $PATH
  19900. do
  19901. IFS=$as_save_IFS
  19902. test -z "$as_dir" && as_dir=.
  19903. for ac_exec_ext in '' $ac_executable_extensions; do
  19904. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19905. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19907. break 2
  19908. fi
  19909. done
  19910. done
  19911. IFS=$as_save_IFS
  19912. ;;
  19913. esac
  19914. fi
  19915. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19916. if test -n "$ac_pt_PKG_CONFIG"; then
  19917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19918. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19919. else
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19921. $as_echo "no" >&6; }
  19922. fi
  19923. if test "x$ac_pt_PKG_CONFIG" = x; then
  19924. PKG_CONFIG="no"
  19925. else
  19926. case $cross_compiling:$ac_tool_warned in
  19927. yes:)
  19928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19930. ac_tool_warned=yes ;;
  19931. esac
  19932. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19933. fi
  19934. else
  19935. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19936. fi
  19937. fi
  19938. if test "$PKG_CONFIG" = "no" ; then
  19939. echo "*** The pkg-config script could not be found. Make sure it is"
  19940. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19941. echo "*** to the full path to pkg-config."
  19942. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19943. else
  19944. PKG_CONFIG_MIN_VERSION=0.9.0
  19945. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
  19947. $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
  19948. if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
  19949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19950. $as_echo "yes" >&6; }
  19951. succeeded=yes
  19952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
  19953. $as_echo_n "checking GLIB_CFLAGS... " >&6; }
  19954. GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
  19955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
  19956. $as_echo "$GLIB_CFLAGS" >&6; }
  19957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
  19958. $as_echo_n "checking GLIB_LIBS... " >&6; }
  19959. GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
  19960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
  19961. $as_echo "$GLIB_LIBS" >&6; }
  19962. else
  19963. GLIB_CFLAGS=""
  19964. GLIB_LIBS=""
  19965. ## If we have a custom action on failure, don't print errors, but
  19966. ## do set a variable so people can do so.
  19967. GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
  19968. echo $GLIB_PKG_ERRORS
  19969. fi
  19970. else
  19971. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19972. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19973. fi
  19974. fi
  19975. if test $succeeded = yes; then
  19976. :
  19977. else
  19978. as_fn_error "Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  19979. fi
  19980. succeeded=no
  19981. if test -z "$PKG_CONFIG"; then
  19982. if test -n "$ac_tool_prefix"; then
  19983. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19984. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19986. $as_echo_n "checking for $ac_word... " >&6; }
  19987. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19988. $as_echo_n "(cached) " >&6
  19989. else
  19990. case $PKG_CONFIG in
  19991. [\\/]* | ?:[\\/]*)
  19992. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19993. ;;
  19994. *)
  19995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19996. for as_dir in $PATH
  19997. do
  19998. IFS=$as_save_IFS
  19999. test -z "$as_dir" && as_dir=.
  20000. for ac_exec_ext in '' $ac_executable_extensions; do
  20001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20002. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20004. break 2
  20005. fi
  20006. done
  20007. done
  20008. IFS=$as_save_IFS
  20009. ;;
  20010. esac
  20011. fi
  20012. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20013. if test -n "$PKG_CONFIG"; then
  20014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20015. $as_echo "$PKG_CONFIG" >&6; }
  20016. else
  20017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20018. $as_echo "no" >&6; }
  20019. fi
  20020. fi
  20021. if test -z "$ac_cv_path_PKG_CONFIG"; then
  20022. ac_pt_PKG_CONFIG=$PKG_CONFIG
  20023. # Extract the first word of "pkg-config", so it can be a program name with args.
  20024. set dummy pkg-config; ac_word=$2
  20025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20026. $as_echo_n "checking for $ac_word... " >&6; }
  20027. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  20028. $as_echo_n "(cached) " >&6
  20029. else
  20030. case $ac_pt_PKG_CONFIG in
  20031. [\\/]* | ?:[\\/]*)
  20032. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  20033. ;;
  20034. *)
  20035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20036. for as_dir in $PATH
  20037. do
  20038. IFS=$as_save_IFS
  20039. test -z "$as_dir" && as_dir=.
  20040. for ac_exec_ext in '' $ac_executable_extensions; do
  20041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20042. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20044. break 2
  20045. fi
  20046. done
  20047. done
  20048. IFS=$as_save_IFS
  20049. ;;
  20050. esac
  20051. fi
  20052. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  20053. if test -n "$ac_pt_PKG_CONFIG"; then
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  20055. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  20056. else
  20057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20058. $as_echo "no" >&6; }
  20059. fi
  20060. if test "x$ac_pt_PKG_CONFIG" = x; then
  20061. PKG_CONFIG="no"
  20062. else
  20063. case $cross_compiling:$ac_tool_warned in
  20064. yes:)
  20065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20067. ac_tool_warned=yes ;;
  20068. esac
  20069. PKG_CONFIG=$ac_pt_PKG_CONFIG
  20070. fi
  20071. else
  20072. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  20073. fi
  20074. fi
  20075. if test "$PKG_CONFIG" = "no" ; then
  20076. echo "*** The pkg-config script could not be found. Make sure it is"
  20077. echo "*** in your path, or set the PKG_CONFIG environment variable"
  20078. echo "*** to the full path to pkg-config."
  20079. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  20080. else
  20081. PKG_CONFIG_MIN_VERSION=0.9.0
  20082. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  20083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
  20084. $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
  20085. if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20087. $as_echo "yes" >&6; }
  20088. succeeded=yes
  20089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
  20090. $as_echo_n "checking LIBART_CFLAGS... " >&6; }
  20091. LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
  20092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
  20093. $as_echo "$LIBART_CFLAGS" >&6; }
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
  20095. $as_echo_n "checking LIBART_LIBS... " >&6; }
  20096. LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
  20098. $as_echo "$LIBART_LIBS" >&6; }
  20099. else
  20100. LIBART_CFLAGS=""
  20101. LIBART_LIBS=""
  20102. ## If we have a custom action on failure, don't print errors, but
  20103. ## do set a variable so people can do so.
  20104. LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
  20105. echo $LIBART_PKG_ERRORS
  20106. fi
  20107. else
  20108. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  20109. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  20110. fi
  20111. fi
  20112. if test $succeeded = yes; then
  20113. :
  20114. else
  20115. as_fn_error "Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  20116. fi
  20117. # We require the XTest Extension to support java.awt.Robot.
  20118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
  20119. $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
  20120. if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
  20121. $as_echo_n "(cached) " >&6
  20122. else
  20123. ac_check_lib_save_LIBS=$LIBS
  20124. LIBS="-lXtst ${X_LIBS} $LIBS"
  20125. if test x$gcc_no_link = xyes; then
  20126. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20127. fi
  20128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20129. /* end confdefs.h. */
  20130. /* Override any GCC internal prototype to avoid an error.
  20131. Use char because int might match the return type of a GCC
  20132. builtin and then its argument prototype would still apply. */
  20133. #ifdef __cplusplus
  20134. extern "C"
  20135. #endif
  20136. char XTestQueryExtension ();
  20137. int
  20138. main ()
  20139. {
  20140. return XTestQueryExtension ();
  20141. ;
  20142. return 0;
  20143. }
  20144. _ACEOF
  20145. if ac_fn_c_try_link "$LINENO"; then :
  20146. ac_cv_lib_Xtst_XTestQueryExtension=yes
  20147. else
  20148. ac_cv_lib_Xtst_XTestQueryExtension=no
  20149. fi
  20150. rm -f core conftest.err conftest.$ac_objext \
  20151. conftest$ac_exeext conftest.$ac_ext
  20152. LIBS=$ac_check_lib_save_LIBS
  20153. fi
  20154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
  20155. $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
  20156. if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
  20157. true
  20158. else
  20159. as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
  20160. fi
  20161. fi
  20162. # On Solaris, and maybe other architectures, the Boehm collector
  20163. # requires -ldl.
  20164. if test "$GC" = boehm; then
  20165. case "${host}" in
  20166. *-*-darwin*)
  20167. ;;
  20168. *)
  20169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  20170. $as_echo_n "checking for main in -ldl... " >&6; }
  20171. if test "${ac_cv_lib_dl_main+set}" = set; then :
  20172. $as_echo_n "(cached) " >&6
  20173. else
  20174. ac_check_lib_save_LIBS=$LIBS
  20175. LIBS="-ldl $LIBS"
  20176. if test x$gcc_no_link = xyes; then
  20177. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20178. fi
  20179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20180. /* end confdefs.h. */
  20181. int
  20182. main ()
  20183. {
  20184. return main ();
  20185. ;
  20186. return 0;
  20187. }
  20188. _ACEOF
  20189. if ac_fn_c_try_link "$LINENO"; then :
  20190. ac_cv_lib_dl_main=yes
  20191. else
  20192. ac_cv_lib_dl_main=no
  20193. fi
  20194. rm -f core conftest.err conftest.$ac_objext \
  20195. conftest$ac_exeext conftest.$ac_ext
  20196. LIBS=$ac_check_lib_save_LIBS
  20197. fi
  20198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  20199. $as_echo "$ac_cv_lib_dl_main" >&6; }
  20200. if test "x$ac_cv_lib_dl_main" = x""yes; then :
  20201. SYSTEMSPEC="$SYSTEMSPEC -ldl"
  20202. fi
  20203. ;;
  20204. esac
  20205. fi
  20206. fi
  20207. # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
  20208. case $build in
  20209. *-mingw32) CLASSPATH_SEPARATOR=';' ;;
  20210. *) CLASSPATH_SEPARATOR=':' ;;
  20211. esac
  20212. # We must search the source tree for java.lang, since we still don't
  20213. # have libgcj.jar nor java/lang/*.class
  20214. GCJ_SAVE_CPPFLAGS=$CPPFLAGS
  20215. CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
  20216. # Since some classes depend on this one, we need its source available
  20217. # before we can do any GCJ compilation test :-(
  20218. if test ! -f gnu/classpath/Configuration.java; then
  20219. test -d gnu || mkdir gnu
  20220. test -d gnu/classpath || mkdir gnu/classpath
  20221. # Note that it is not crucial that all the values here be correct.
  20222. sed -e "s,@prefix@,$expanded_prefix," \
  20223. -e "s,@VERSION@,$VERSION," \
  20224. -e "s,@LIBDEBUG@,false," \
  20225. -e "s,@INIT_LOAD_LIBRARY@,false," \
  20226. -e "s,@@,$LIBGCJDEBUG," \
  20227. -e "s,@default_toolkit@,$TOOLKIT," \
  20228. -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
  20229. -e "s,@GTK_CAIRO_ENABLED@,false," \
  20230. -e "s,@ECJ_JAR@,," \
  20231. -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
  20232. < $srcdir/classpath/gnu/classpath/Configuration.java.in \
  20233. > gnu/classpath/Configuration.java
  20234. # We do not want to redirect the output of the grep below to /dev/null,
  20235. # but we add /dev/null to the input list so that grep will print the
  20236. # filename of Configuration.java in case it finds any matches.
  20237. if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
  20238. as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
  20239. fi
  20240. fi
  20241. if test -n "$ac_tool_prefix"; then
  20242. for ac_prog in gcj
  20243. do
  20244. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20245. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20247. $as_echo_n "checking for $ac_word... " >&6; }
  20248. if test "${ac_cv_prog_GCJ+set}" = set; then :
  20249. $as_echo_n "(cached) " >&6
  20250. else
  20251. if test -n "$GCJ"; then
  20252. ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
  20253. else
  20254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20255. for as_dir in $PATH
  20256. do
  20257. IFS=$as_save_IFS
  20258. test -z "$as_dir" && as_dir=.
  20259. for ac_exec_ext in '' $ac_executable_extensions; do
  20260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20261. ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
  20262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20263. break 2
  20264. fi
  20265. done
  20266. done
  20267. IFS=$as_save_IFS
  20268. fi
  20269. fi
  20270. GCJ=$ac_cv_prog_GCJ
  20271. if test -n "$GCJ"; then
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
  20273. $as_echo "$GCJ" >&6; }
  20274. else
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20276. $as_echo "no" >&6; }
  20277. fi
  20278. test -n "$GCJ" && break
  20279. done
  20280. fi
  20281. if test -z "$GCJ"; then
  20282. ac_ct_GCJ=$GCJ
  20283. for ac_prog in gcj
  20284. do
  20285. # Extract the first word of "$ac_prog", so it can be a program name with args.
  20286. set dummy $ac_prog; ac_word=$2
  20287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20288. $as_echo_n "checking for $ac_word... " >&6; }
  20289. if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
  20290. $as_echo_n "(cached) " >&6
  20291. else
  20292. if test -n "$ac_ct_GCJ"; then
  20293. ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
  20294. else
  20295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20296. for as_dir in $PATH
  20297. do
  20298. IFS=$as_save_IFS
  20299. test -z "$as_dir" && as_dir=.
  20300. for ac_exec_ext in '' $ac_executable_extensions; do
  20301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20302. ac_cv_prog_ac_ct_GCJ="$ac_prog"
  20303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20304. break 2
  20305. fi
  20306. done
  20307. done
  20308. IFS=$as_save_IFS
  20309. fi
  20310. fi
  20311. ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
  20312. if test -n "$ac_ct_GCJ"; then
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
  20314. $as_echo "$ac_ct_GCJ" >&6; }
  20315. else
  20316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20317. $as_echo "no" >&6; }
  20318. fi
  20319. test -n "$ac_ct_GCJ" && break
  20320. done
  20321. if test "x$ac_ct_GCJ" = x; then
  20322. GCJ="gcj"
  20323. else
  20324. case $cross_compiling:$ac_tool_warned in
  20325. yes:)
  20326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20328. ac_tool_warned=yes ;;
  20329. esac
  20330. GCJ=$ac_ct_GCJ
  20331. fi
  20332. fi
  20333. test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
  20334. if test "x${GCJFLAGS-unset}" = xunset; then
  20335. GCJFLAGS="-g -O2"
  20336. fi
  20337. depcc="$GCJ" am_compiler_list='gcc3 gcc'
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20339. $as_echo_n "checking dependency style of $depcc... " >&6; }
  20340. if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
  20341. $as_echo_n "(cached) " >&6
  20342. else
  20343. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20344. # We make a subdir and do the tests there. Otherwise we can end up
  20345. # making bogus files that we don't know about and never remove. For
  20346. # instance it was reported that on HP-UX the gcc test will end up
  20347. # making a dummy file named `D' -- because `-MD' means `put the output
  20348. # in D'.
  20349. mkdir conftest.dir
  20350. # Copy depcomp to subdir because otherwise we won't find it if we're
  20351. # using a relative directory.
  20352. cp "$am_depcomp" conftest.dir
  20353. cd conftest.dir
  20354. # We will build objects and dependencies in a subdirectory because
  20355. # it helps to detect inapplicable dependency modes. For instance
  20356. # both Tru64's cc and ICC support -MD to output dependencies as a
  20357. # side effect of compilation, but ICC will put the dependencies in
  20358. # the current directory while Tru64 will put them in the object
  20359. # directory.
  20360. mkdir sub
  20361. am_cv_GCJ_dependencies_compiler_type=none
  20362. if test "$am_compiler_list" = ""; then
  20363. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  20364. fi
  20365. am__universal=false
  20366. for depmode in $am_compiler_list; do
  20367. # Setup a source with many dependencies, because some compilers
  20368. # like to wrap large dependency lists on column 80 (with \), and
  20369. # we should not choose a depcomp mode which is confused by this.
  20370. #
  20371. # We need to recreate these files for each test, as the compiler may
  20372. # overwrite some of them when testing with obscure command lines.
  20373. # This happens at least with the AIX C compiler.
  20374. : > sub/conftest.c
  20375. for i in 1 2 3 4 5 6; do
  20376. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  20377. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  20378. # Solaris 8's {/usr,}/bin/sh.
  20379. touch sub/conftst$i.h
  20380. done
  20381. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  20382. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20383. # mode. It turns out that the SunPro C++ compiler does not properly
  20384. # handle `-M -o', and we need to detect this. Also, some Intel
  20385. # versions had trouble with output in subdirs
  20386. am__obj=sub/conftest.${OBJEXT-o}
  20387. am__minus_obj="-o $am__obj"
  20388. case $depmode in
  20389. gcc)
  20390. # This depmode causes a compiler race in universal mode.
  20391. test "$am__universal" = false || continue
  20392. ;;
  20393. nosideeffect)
  20394. # after this tag, mechanisms are not by side-effect, so they'll
  20395. # only be used when explicitly requested
  20396. if test "x$enable_dependency_tracking" = xyes; then
  20397. continue
  20398. else
  20399. break
  20400. fi
  20401. ;;
  20402. msvisualcpp | msvcmsys)
  20403. # This compiler won't grok `-c -o', but also, the minuso test has
  20404. # not run yet. These depmodes are late enough in the game, and
  20405. # so weak that their functioning should not be impacted.
  20406. am__obj=conftest.${OBJEXT-o}
  20407. am__minus_obj=
  20408. ;;
  20409. none) break ;;
  20410. esac
  20411. if depmode=$depmode \
  20412. source=sub/conftest.c object=$am__obj \
  20413. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  20414. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  20415. >/dev/null 2>conftest.err &&
  20416. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  20417. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  20418. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  20419. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  20420. # icc doesn't choke on unknown options, it will just issue warnings
  20421. # or remarks (even with -Werror). So we grep stderr for any message
  20422. # that says an option was ignored or not supported.
  20423. # When given -MP, icc 7.0 and 7.1 complain thusly:
  20424. # icc: Command line warning: ignoring option '-M'; no argument required
  20425. # The diagnosis changed in icc 8.0:
  20426. # icc: Command line remark: option '-MP' not supported
  20427. if (grep 'ignoring option' conftest.err ||
  20428. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  20429. am_cv_GCJ_dependencies_compiler_type=$depmode
  20430. break
  20431. fi
  20432. fi
  20433. done
  20434. cd ..
  20435. rm -rf conftest.dir
  20436. else
  20437. am_cv_GCJ_dependencies_compiler_type=none
  20438. fi
  20439. fi
  20440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
  20441. $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
  20442. GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
  20443. if
  20444. test "x$enable_dependency_tracking" != xno \
  20445. && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
  20446. am__fastdepGCJ_TRUE=
  20447. am__fastdepGCJ_FALSE='#'
  20448. else
  20449. am__fastdepGCJ_TRUE='#'
  20450. am__fastdepGCJ_FALSE=
  20451. fi
  20452. # Now remove it.
  20453. rm -f gnu/classpath/Configuration.java
  20454. CPPFLAGS=$GCJ_SAVE_CPPFLAGS
  20455. # The cast to long int works around a bug in the HP C Compiler
  20456. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20457. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20458. # This bug is HP SR number 8606223364.
  20459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  20460. $as_echo_n "checking size of void *... " >&6; }
  20461. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  20462. $as_echo_n "(cached) " >&6
  20463. else
  20464. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  20465. else
  20466. if test "$ac_cv_type_void_p" = yes; then
  20467. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20468. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20469. { as_fn_set_status 77
  20470. as_fn_error "cannot compute sizeof (void *)
  20471. See \`config.log' for more details." "$LINENO" 5; }; }
  20472. else
  20473. ac_cv_sizeof_void_p=0
  20474. fi
  20475. fi
  20476. fi
  20477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  20478. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  20479. cat >>confdefs.h <<_ACEOF
  20480. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  20481. _ACEOF
  20482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  20483. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  20484. if test "${ac_cv_c_bigendian+set}" = set; then :
  20485. $as_echo_n "(cached) " >&6
  20486. else
  20487. ac_cv_c_bigendian=unknown
  20488. # See if we're dealing with a universal compiler.
  20489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20490. /* end confdefs.h. */
  20491. #ifndef __APPLE_CC__
  20492. not a universal capable compiler
  20493. #endif
  20494. typedef int dummy;
  20495. _ACEOF
  20496. if ac_fn_c_try_compile "$LINENO"; then :
  20497. # Check for potential -arch flags. It is not universal unless
  20498. # there are at least two -arch flags with different values.
  20499. ac_arch=
  20500. ac_prev=
  20501. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  20502. if test -n "$ac_prev"; then
  20503. case $ac_word in
  20504. i?86 | x86_64 | ppc | ppc64)
  20505. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  20506. ac_arch=$ac_word
  20507. else
  20508. ac_cv_c_bigendian=universal
  20509. break
  20510. fi
  20511. ;;
  20512. esac
  20513. ac_prev=
  20514. elif test "x$ac_word" = "x-arch"; then
  20515. ac_prev=arch
  20516. fi
  20517. done
  20518. fi
  20519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20520. if test $ac_cv_c_bigendian = unknown; then
  20521. # See if sys/param.h defines the BYTE_ORDER macro.
  20522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20523. /* end confdefs.h. */
  20524. #include <sys/types.h>
  20525. #include <sys/param.h>
  20526. int
  20527. main ()
  20528. {
  20529. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  20530. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  20531. && LITTLE_ENDIAN)
  20532. bogus endian macros
  20533. #endif
  20534. ;
  20535. return 0;
  20536. }
  20537. _ACEOF
  20538. if ac_fn_c_try_compile "$LINENO"; then :
  20539. # It does; now see whether it defined to BIG_ENDIAN or not.
  20540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20541. /* end confdefs.h. */
  20542. #include <sys/types.h>
  20543. #include <sys/param.h>
  20544. int
  20545. main ()
  20546. {
  20547. #if BYTE_ORDER != BIG_ENDIAN
  20548. not big endian
  20549. #endif
  20550. ;
  20551. return 0;
  20552. }
  20553. _ACEOF
  20554. if ac_fn_c_try_compile "$LINENO"; then :
  20555. ac_cv_c_bigendian=yes
  20556. else
  20557. ac_cv_c_bigendian=no
  20558. fi
  20559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20560. fi
  20561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20562. fi
  20563. if test $ac_cv_c_bigendian = unknown; then
  20564. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  20565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20566. /* end confdefs.h. */
  20567. #include <limits.h>
  20568. int
  20569. main ()
  20570. {
  20571. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  20572. bogus endian macros
  20573. #endif
  20574. ;
  20575. return 0;
  20576. }
  20577. _ACEOF
  20578. if ac_fn_c_try_compile "$LINENO"; then :
  20579. # It does; now see whether it defined to _BIG_ENDIAN or not.
  20580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20581. /* end confdefs.h. */
  20582. #include <limits.h>
  20583. int
  20584. main ()
  20585. {
  20586. #ifndef _BIG_ENDIAN
  20587. not big endian
  20588. #endif
  20589. ;
  20590. return 0;
  20591. }
  20592. _ACEOF
  20593. if ac_fn_c_try_compile "$LINENO"; then :
  20594. ac_cv_c_bigendian=yes
  20595. else
  20596. ac_cv_c_bigendian=no
  20597. fi
  20598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20599. fi
  20600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20601. fi
  20602. if test $ac_cv_c_bigendian = unknown; then
  20603. # Compile a test program.
  20604. if test "$cross_compiling" = yes; then :
  20605. # Try to guess by grepping values from an object file.
  20606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20607. /* end confdefs.h. */
  20608. short int ascii_mm[] =
  20609. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  20610. short int ascii_ii[] =
  20611. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  20612. int use_ascii (int i) {
  20613. return ascii_mm[i] + ascii_ii[i];
  20614. }
  20615. short int ebcdic_ii[] =
  20616. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  20617. short int ebcdic_mm[] =
  20618. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  20619. int use_ebcdic (int i) {
  20620. return ebcdic_mm[i] + ebcdic_ii[i];
  20621. }
  20622. extern int foo;
  20623. int
  20624. main ()
  20625. {
  20626. return use_ascii (foo) == use_ebcdic (foo);
  20627. ;
  20628. return 0;
  20629. }
  20630. _ACEOF
  20631. if ac_fn_c_try_compile "$LINENO"; then :
  20632. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  20633. ac_cv_c_bigendian=yes
  20634. fi
  20635. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  20636. if test "$ac_cv_c_bigendian" = unknown; then
  20637. ac_cv_c_bigendian=no
  20638. else
  20639. # finding both strings is unlikely to happen, but who knows?
  20640. ac_cv_c_bigendian=unknown
  20641. fi
  20642. fi
  20643. fi
  20644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20645. else
  20646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20647. /* end confdefs.h. */
  20648. $ac_includes_default
  20649. int
  20650. main ()
  20651. {
  20652. /* Are we little or big endian? From Harbison&Steele. */
  20653. union
  20654. {
  20655. long int l;
  20656. char c[sizeof (long int)];
  20657. } u;
  20658. u.l = 1;
  20659. return u.c[sizeof (long int) - 1] == 1;
  20660. ;
  20661. return 0;
  20662. }
  20663. _ACEOF
  20664. if ac_fn_c_try_run "$LINENO"; then :
  20665. ac_cv_c_bigendian=no
  20666. else
  20667. ac_cv_c_bigendian=yes
  20668. fi
  20669. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20670. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20671. fi
  20672. fi
  20673. fi
  20674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  20675. $as_echo "$ac_cv_c_bigendian" >&6; }
  20676. case $ac_cv_c_bigendian in #(
  20677. yes)
  20678. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  20679. ;; #(
  20680. no)
  20681. ;; #(
  20682. universal)
  20683. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  20684. ;; #(
  20685. *)
  20686. as_fn_error "unknown endianness
  20687. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  20688. esac
  20689. ZLIBS=
  20690. SYS_ZLIBS=
  20691. ZINCS=
  20692. if test -z "$ZLIBSPEC"; then
  20693. # Use zlib from the GCC tree.
  20694. ZINCS='-I$(top_srcdir)/../zlib'
  20695. ZLIBS=../zlib/libzgcj_convenience.la
  20696. else
  20697. # System's zlib.
  20698. SYS_ZLIBS="$ZLIBSPEC"
  20699. fi
  20700. if test "$NATIVE" = yes; then
  20701. NATIVE_TRUE=
  20702. NATIVE_FALSE='#'
  20703. else
  20704. NATIVE_TRUE='#'
  20705. NATIVE_FALSE=
  20706. fi
  20707. if test "$enable_shared" = yes; then
  20708. ENABLE_SHARED_TRUE=
  20709. ENABLE_SHARED_FALSE='#'
  20710. else
  20711. ENABLE_SHARED_TRUE='#'
  20712. ENABLE_SHARED_FALSE=
  20713. fi
  20714. if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
  20715. NEEDS_DATA_START_TRUE=
  20716. NEEDS_DATA_START_FALSE='#'
  20717. else
  20718. NEEDS_DATA_START_TRUE='#'
  20719. NEEDS_DATA_START_FALSE=
  20720. fi
  20721. if test -z "${with_multisubdir}"; then
  20722. INSTALL_BINARIES_TRUE=
  20723. INSTALL_BINARIES_FALSE='#'
  20724. else
  20725. INSTALL_BINARIES_TRUE='#'
  20726. INSTALL_BINARIES_FALSE=
  20727. fi
  20728. # Process the option "--enable-version-specific-runtime-libs"
  20729. # Calculate toolexeclibdir
  20730. case ${version_specific_libs} in
  20731. yes)
  20732. # Need the gcc compiler version to know where to install libraries
  20733. # and header files if --enable-version-specific-runtime-libs option
  20734. # is selected.
  20735. includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
  20736. toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
  20737. toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  20738. toolexeclibdir=$toolexecmainlibdir
  20739. ;;
  20740. no)
  20741. if test -n "$with_cross_host" &&
  20742. test x"$with_cross_host" != x"no"; then
  20743. # Install a library built with a cross compiler in tooldir, not libdir.
  20744. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  20745. toolexecmainlibdir='$(toolexecdir)/lib'
  20746. else
  20747. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  20748. toolexecmainlibdir='$(libdir)'
  20749. fi
  20750. multi_os_directory=`$CC -print-multi-os-directory`
  20751. case $multi_os_directory in
  20752. .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
  20753. *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
  20754. esac
  20755. ;;
  20756. esac
  20757. # Determine gcj and libgcj version number.
  20758. gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
  20759. libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
  20760. GCJVERSION=$gcjversion
  20761. cat >>confdefs.h <<_ACEOF
  20762. #define GCJVERSION "$GCJVERSION"
  20763. _ACEOF
  20764. # Determine where the standard .db file and GNU Classpath JNI
  20765. # libraries are found.
  20766. gcjsubdir=gcj-$gcjversion-$libgcj_soversion
  20767. dbexecdir='$(toolexeclibdir)/'$gcjsubdir
  20768. $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
  20769. $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
  20770. case "${with_gxx_include_dir}" in
  20771. yes)
  20772. as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
  20773. ;;
  20774. no | "")
  20775. case "${enable_version_specific_runtime_libs}" in
  20776. yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
  20777. *)
  20778. libstdcxx_incdir='c++/$(gcc_version)'
  20779. gxx_include_dir='include/$(libstdcxx_incdir)'
  20780. if test -n "$with_cross_host" &&
  20781. test x"$with_cross_host" != x"no"; then
  20782. gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
  20783. else
  20784. gxx_include_dir='${prefix}/'"$gxx_include_dir"
  20785. fi;;
  20786. esac ;;
  20787. *) gxx_include_dir=${with_gxx_include_dir} ;;
  20788. esac
  20789. # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
  20790. # On that system, sys/ioctl.h will not include sys/filio.h unless
  20791. # BSD_COMP is defined; just including sys/filio.h is simpler.
  20792. # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
  20793. # for now. If you change this, you also must update natFile.cc.
  20794. for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
  20795. sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
  20796. sys/socket.h netinet/in.h arpa/inet.h netdb.h \
  20797. pwd.h sys/config.h stdint.h langinfo.h locale.h \
  20798. dirent.h sys/rw_lock.h magic.h ifaddrs.h
  20799. do :
  20800. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20801. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20802. eval as_val=\$$as_ac_Header
  20803. if test "x$as_val" = x""yes; then :
  20804. cat >>confdefs.h <<_ACEOF
  20805. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20806. _ACEOF
  20807. fi
  20808. done
  20809. # sys/socket.h is a prerequisite for net/if.h on Solaris.
  20810. for ac_header in net/if.h
  20811. do :
  20812. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
  20813. #ifdef HAVE_SYS_SOCKET_H
  20814. #include <sys/socket.h>
  20815. #endif
  20816. "
  20817. if test "x$ac_cv_header_net_if_h" = x""yes; then :
  20818. cat >>confdefs.h <<_ACEOF
  20819. #define HAVE_NET_IF_H 1
  20820. _ACEOF
  20821. fi
  20822. done
  20823. for ac_header in inttypes.h
  20824. do :
  20825. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  20826. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  20827. cat >>confdefs.h <<_ACEOF
  20828. #define HAVE_INTTYPES_H 1
  20829. _ACEOF
  20830. $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
  20831. $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
  20832. fi
  20833. done
  20834. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  20835. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  20836. else
  20837. cat >>confdefs.h <<_ACEOF
  20838. #define ssize_t int
  20839. _ACEOF
  20840. fi
  20841. ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
  20842. #ifdef HAVE_MAGIC_H
  20843. #include <magic.h>
  20844. #endif
  20845. "
  20846. if test "x$ac_cv_type_magic_t" = x""yes; then :
  20847. $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
  20848. fi
  20849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
  20850. $as_echo_n "checking for in_addr_t... " >&6; }
  20851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20852. /* end confdefs.h. */
  20853. #include <sys/types.h>
  20854. #if STDC_HEADERS
  20855. #include <stdlib.h>
  20856. #include <stddef.h>
  20857. #endif
  20858. #if HAVE_NETINET_IN_H
  20859. #include <netinet/in.h>
  20860. #endif
  20861. int
  20862. main ()
  20863. {
  20864. in_addr_t foo;
  20865. ;
  20866. return 0;
  20867. }
  20868. _ACEOF
  20869. if ac_fn_c_try_compile "$LINENO"; then :
  20870. $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
  20871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20872. $as_echo "yes" >&6; }
  20873. else
  20874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20875. $as_echo "no" >&6; }
  20876. fi
  20877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
  20879. $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
  20880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20881. /* end confdefs.h. */
  20882. #include <netinet/in.h>
  20883. int
  20884. main ()
  20885. {
  20886. struct ip_mreq mreq;
  20887. ;
  20888. return 0;
  20889. }
  20890. _ACEOF
  20891. if ac_fn_c_try_compile "$LINENO"; then :
  20892. $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
  20893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20894. $as_echo "yes" >&6; }
  20895. else
  20896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20897. $as_echo "no" >&6; }
  20898. fi
  20899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
  20901. $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
  20902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20903. /* end confdefs.h. */
  20904. #include <netinet/in.h>
  20905. int
  20906. main ()
  20907. {
  20908. struct ipv6_mreq mreq6;
  20909. ;
  20910. return 0;
  20911. }
  20912. _ACEOF
  20913. if ac_fn_c_try_compile "$LINENO"; then :
  20914. $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
  20915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20916. $as_echo "yes" >&6; }
  20917. else
  20918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20919. $as_echo "no" >&6; }
  20920. fi
  20921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
  20923. $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
  20924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20925. /* end confdefs.h. */
  20926. #include <netinet/in.h>
  20927. int
  20928. main ()
  20929. {
  20930. struct sockaddr_in6 addr6;
  20931. ;
  20932. return 0;
  20933. }
  20934. _ACEOF
  20935. if ac_fn_c_try_compile "$LINENO"; then :
  20936. $as_echo "#define HAVE_INET6 1" >>confdefs.h
  20937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20938. $as_echo "yes" >&6; }
  20939. else
  20940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20941. $as_echo "no" >&6; }
  20942. fi
  20943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
  20945. $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
  20946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20947. /* end confdefs.h. */
  20948. #define _POSIX_PII_SOCKET
  20949. #include <sys/types.h>
  20950. #include <sys/socket.h>
  20951. int
  20952. main ()
  20953. {
  20954. socklen_t x = 5;
  20955. ;
  20956. return 0;
  20957. }
  20958. _ACEOF
  20959. if ac_fn_c_try_compile "$LINENO"; then :
  20960. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  20961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20962. $as_echo "yes" >&6; }
  20963. else
  20964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20965. $as_echo "no" >&6; }
  20966. fi
  20967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
  20969. $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
  20970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20971. /* end confdefs.h. */
  20972. #include <time.h>
  20973. int
  20974. main ()
  20975. {
  20976. struct tm tim; tim.tm_gmtoff = 0;
  20977. ;
  20978. return 0;
  20979. }
  20980. _ACEOF
  20981. if ac_fn_c_try_compile "$LINENO"; then :
  20982. $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
  20983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20984. $as_echo "yes" >&6; }
  20985. else
  20986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20987. $as_echo "no" >&6; }
  20988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
  20989. $as_echo_n "checking for global timezone variable... " >&6; }
  20990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20991. /* end confdefs.h. */
  20992. #include <time.h>
  20993. int
  20994. main ()
  20995. {
  20996. void i(){long z2 = 2*timezone;}
  20997. ;
  20998. return 0;
  20999. }
  21000. _ACEOF
  21001. if ac_fn_c_try_compile "$LINENO"; then :
  21002. $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
  21003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21004. $as_echo "yes" >&6; }
  21005. else
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21007. $as_echo "no" >&6; }
  21008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
  21009. $as_echo_n "checking for global _timezone variable... " >&6; }
  21010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21011. /* end confdefs.h. */
  21012. #include <time.h>
  21013. int
  21014. main ()
  21015. {
  21016. long z2 = _timezone;
  21017. ;
  21018. return 0;
  21019. }
  21020. _ACEOF
  21021. if ac_fn_c_try_compile "$LINENO"; then :
  21022. $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
  21023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21024. $as_echo "yes" >&6; }
  21025. else
  21026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21027. $as_echo "no" >&6; }
  21028. fi
  21029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21030. fi
  21031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21032. fi
  21033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21034. for ac_prog in perl
  21035. do
  21036. # Extract the first word of "$ac_prog", so it can be a program name with args.
  21037. set dummy $ac_prog; ac_word=$2
  21038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21039. $as_echo_n "checking for $ac_word... " >&6; }
  21040. if test "${ac_cv_prog_PERL+set}" = set; then :
  21041. $as_echo_n "(cached) " >&6
  21042. else
  21043. if test -n "$PERL"; then
  21044. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  21045. else
  21046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21047. for as_dir in $PATH
  21048. do
  21049. IFS=$as_save_IFS
  21050. test -z "$as_dir" && as_dir=.
  21051. for ac_exec_ext in '' $ac_executable_extensions; do
  21052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21053. ac_cv_prog_PERL="$ac_prog"
  21054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21055. break 2
  21056. fi
  21057. done
  21058. done
  21059. IFS=$as_save_IFS
  21060. fi
  21061. fi
  21062. PERL=$ac_cv_prog_PERL
  21063. if test -n "$PERL"; then
  21064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  21065. $as_echo "$PERL" >&6; }
  21066. else
  21067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21068. $as_echo "no" >&6; }
  21069. fi
  21070. test -n "$PERL" && break
  21071. done
  21072. test -n "$PERL" || PERL="false"
  21073. SYSDEP_SOURCES=
  21074. SIGNAL_HANDLER_AUX=
  21075. case "${host}" in
  21076. *-*-solaris2*)
  21077. SIGNAL_HANDLER=include/posix-signal.h
  21078. ;;
  21079. i?86-*-linux*)
  21080. SIGNAL_HANDLER=include/i386-signal.h
  21081. SIGNAL_HANDLER_AUX=include/x86_64-signal.h
  21082. ;;
  21083. # ia64-*)
  21084. # SYSDEP_SOURCES=sysdep/ia64.c
  21085. # test -d sysdep || mkdir sysdep
  21086. # ;;
  21087. hppa*-*-linux*)
  21088. SIGNAL_HANDLER=include/pa-signal.h
  21089. ;;
  21090. hppa*-hp-hpux*)
  21091. SIGNAL_HANDLER=include/hppa-signal.h
  21092. ;;
  21093. ia64-*-linux*)
  21094. SIGNAL_HANDLER=include/dwarf2-signal.h
  21095. ;;
  21096. powerpc*-*-linux*)
  21097. SIGNAL_HANDLER=include/powerpc-signal.h
  21098. ;;
  21099. alpha*-*-linux*)
  21100. SIGNAL_HANDLER=include/dwarf2-signal.h
  21101. ;;
  21102. s390*-*-linux*)
  21103. SIGNAL_HANDLER=include/s390-signal.h
  21104. ;;
  21105. x86_64*-*-linux*)
  21106. SIGNAL_HANDLER=include/x86_64-signal.h
  21107. SIGNAL_HANDLER_AUX=include/i386-signal.h
  21108. ;;
  21109. sparc*-*-linux*)
  21110. SIGNAL_HANDLER=include/dwarf2-signal.h
  21111. ;;
  21112. sh*-*-linux*)
  21113. SIGNAL_HANDLER=include/sh-signal.h
  21114. ;;
  21115. *mingw*)
  21116. SIGNAL_HANDLER=include/win32-signal.h
  21117. ;;
  21118. mips*-*-linux*)
  21119. SIGNAL_HANDLER=include/mips-signal.h
  21120. ;;
  21121. m68*-*-linux*)
  21122. SIGNAL_HANDLER=include/dwarf2-signal.h
  21123. ;;
  21124. powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
  21125. SIGNAL_HANDLER=include/darwin-signal.h
  21126. ;;
  21127. powerpc*-*-aix*)
  21128. SIGNAL_HANDLER=include/aix-signal.h
  21129. ;;
  21130. i?86-*-freebsd* | x86_64-*-freebsd*)
  21131. SIGNAL_HANDLER=include/freebsd-signal.h
  21132. ;;
  21133. *)
  21134. SIGNAL_HANDLER=include/default-signal.h
  21135. ;;
  21136. esac
  21137. # If we're using sjlj exceptions, forget what we just learned.
  21138. if test "$enable_sjlj_exceptions" = yes; then
  21139. SIGNAL_HANDLER=include/default-signal.h
  21140. SIGNAL_HANDLER_AUX=
  21141. fi
  21142. if test -z "$SIGNAL_HANDLER_AUX"; then
  21143. SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
  21144. fi
  21145. ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
  21146. if test "${multilib}" = "yes"; then
  21147. multilib_arg="--enable-multilib"
  21148. else
  21149. multilib_arg=
  21150. fi
  21151. # See if we support thread-local storage.
  21152. # Check whether --enable-tls was given.
  21153. if test "${enable_tls+set}" = set; then :
  21154. enableval=$enable_tls;
  21155. case "$enableval" in
  21156. yes|no) ;;
  21157. *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  21158. esac
  21159. else
  21160. enable_tls=yes
  21161. fi
  21162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  21163. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  21164. if test "${gcc_cv_have_tls+set}" = set; then :
  21165. $as_echo_n "(cached) " >&6
  21166. else
  21167. if test "$cross_compiling" = yes; then :
  21168. if test x$gcc_no_link = xyes; then
  21169. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21170. fi
  21171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21172. /* end confdefs.h. */
  21173. __thread int a; int b; int main() { return a = b; }
  21174. _ACEOF
  21175. if ac_fn_c_try_link "$LINENO"; then :
  21176. chktls_save_LDFLAGS="$LDFLAGS"
  21177. case $host in
  21178. *-*-linux*)
  21179. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  21180. ;;
  21181. esac
  21182. chktls_save_CFLAGS="$CFLAGS"
  21183. CFLAGS="-fPIC $CFLAGS"
  21184. if test x$gcc_no_link = xyes; then
  21185. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21186. fi
  21187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21188. /* end confdefs.h. */
  21189. int f() { return 0; }
  21190. _ACEOF
  21191. if ac_fn_c_try_link "$LINENO"; then :
  21192. if test x$gcc_no_link = xyes; then
  21193. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21194. fi
  21195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21196. /* end confdefs.h. */
  21197. __thread int a; int b; int f() { return a = b; }
  21198. _ACEOF
  21199. if ac_fn_c_try_link "$LINENO"; then :
  21200. gcc_cv_have_tls=yes
  21201. else
  21202. gcc_cv_have_tls=no
  21203. fi
  21204. rm -f core conftest.err conftest.$ac_objext \
  21205. conftest$ac_exeext conftest.$ac_ext
  21206. else
  21207. gcc_cv_have_tls=yes
  21208. fi
  21209. rm -f core conftest.err conftest.$ac_objext \
  21210. conftest$ac_exeext conftest.$ac_ext
  21211. CFLAGS="$chktls_save_CFLAGS"
  21212. LDFLAGS="$chktls_save_LDFLAGS"
  21213. else
  21214. gcc_cv_have_tls=no
  21215. fi
  21216. rm -f core conftest.err conftest.$ac_objext \
  21217. conftest$ac_exeext conftest.$ac_ext
  21218. else
  21219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21220. /* end confdefs.h. */
  21221. __thread int a; int b; int main() { return a = b; }
  21222. _ACEOF
  21223. if ac_fn_c_try_run "$LINENO"; then :
  21224. chktls_save_LDFLAGS="$LDFLAGS"
  21225. LDFLAGS="-static $LDFLAGS"
  21226. if test x$gcc_no_link = xyes; then
  21227. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21228. fi
  21229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21230. /* end confdefs.h. */
  21231. int main() { return 0; }
  21232. _ACEOF
  21233. if ac_fn_c_try_link "$LINENO"; then :
  21234. if test "$cross_compiling" = yes; then :
  21235. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21236. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21237. as_fn_error "cannot run test program while cross compiling
  21238. See \`config.log' for more details." "$LINENO" 5; }
  21239. else
  21240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21241. /* end confdefs.h. */
  21242. __thread int a; int b; int main() { return a = b; }
  21243. _ACEOF
  21244. if ac_fn_c_try_run "$LINENO"; then :
  21245. gcc_cv_have_tls=yes
  21246. else
  21247. gcc_cv_have_tls=no
  21248. fi
  21249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21251. fi
  21252. else
  21253. gcc_cv_have_tls=yes
  21254. fi
  21255. rm -f core conftest.err conftest.$ac_objext \
  21256. conftest$ac_exeext conftest.$ac_ext
  21257. LDFLAGS="$chktls_save_LDFLAGS"
  21258. if test $gcc_cv_have_tls = yes; then
  21259. chktls_save_CFLAGS="$CFLAGS"
  21260. thread_CFLAGS=failed
  21261. for flag in '' '-pthread' '-lpthread'; do
  21262. CFLAGS="$flag $chktls_save_CFLAGS"
  21263. if test x$gcc_no_link = xyes; then
  21264. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21265. fi
  21266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21267. /* end confdefs.h. */
  21268. #include <pthread.h>
  21269. void *g(void *d) { return NULL; }
  21270. int
  21271. main ()
  21272. {
  21273. pthread_t t; pthread_create(&t,NULL,g,NULL);
  21274. ;
  21275. return 0;
  21276. }
  21277. _ACEOF
  21278. if ac_fn_c_try_link "$LINENO"; then :
  21279. thread_CFLAGS="$flag"
  21280. fi
  21281. rm -f core conftest.err conftest.$ac_objext \
  21282. conftest$ac_exeext conftest.$ac_ext
  21283. if test "X$thread_CFLAGS" != Xfailed; then
  21284. break
  21285. fi
  21286. done
  21287. CFLAGS="$chktls_save_CFLAGS"
  21288. if test "X$thread_CFLAGS" != Xfailed; then
  21289. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  21290. if test "$cross_compiling" = yes; then :
  21291. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21292. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21293. as_fn_error "cannot run test program while cross compiling
  21294. See \`config.log' for more details." "$LINENO" 5; }
  21295. else
  21296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21297. /* end confdefs.h. */
  21298. #include <pthread.h>
  21299. __thread int a;
  21300. static int *volatile a_in_other_thread;
  21301. static void *
  21302. thread_func (void *arg)
  21303. {
  21304. a_in_other_thread = &a;
  21305. return (void *)0;
  21306. }
  21307. int
  21308. main ()
  21309. {
  21310. pthread_t thread;
  21311. void *thread_retval;
  21312. int *volatile a_in_main_thread;
  21313. a_in_main_thread = &a;
  21314. if (pthread_create (&thread, (pthread_attr_t *)0,
  21315. thread_func, (void *)0))
  21316. return 0;
  21317. if (pthread_join (thread, &thread_retval))
  21318. return 0;
  21319. return (a_in_other_thread == a_in_main_thread);
  21320. ;
  21321. return 0;
  21322. }
  21323. _ACEOF
  21324. if ac_fn_c_try_run "$LINENO"; then :
  21325. gcc_cv_have_tls=yes
  21326. else
  21327. gcc_cv_have_tls=no
  21328. fi
  21329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21330. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21331. fi
  21332. CFLAGS="$chktls_save_CFLAGS"
  21333. fi
  21334. fi
  21335. else
  21336. gcc_cv_have_tls=no
  21337. fi
  21338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21340. fi
  21341. fi
  21342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  21343. $as_echo "$gcc_cv_have_tls" >&6; }
  21344. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  21345. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  21346. fi
  21347. # For _Unwind_GetIPInfo.
  21348. # Check whether --with-system-libunwind was given.
  21349. if test "${with_system_libunwind+set}" = set; then :
  21350. withval=$with_system_libunwind;
  21351. fi
  21352. # If system-libunwind was not specifically set, pick a default setting.
  21353. if test x$with_system_libunwind = x; then
  21354. case ${target} in
  21355. ia64-*-hpux*) with_system_libunwind=yes ;;
  21356. *) with_system_libunwind=no ;;
  21357. esac
  21358. fi
  21359. # Based on system-libunwind and target, do we have ipinfo?
  21360. if test x$with_system_libunwind = xyes; then
  21361. case ${target} in
  21362. ia64-*-*) have_unwind_getipinfo=no ;;
  21363. *) have_unwind_getipinfo=yes ;;
  21364. esac
  21365. else
  21366. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  21367. case ${target} in
  21368. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  21369. *) have_unwind_getipinfo=yes ;;
  21370. esac
  21371. fi
  21372. if test x$have_unwind_getipinfo = xyes; then
  21373. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  21374. fi
  21375. # See if linker supports anonymous version scripts.
  21376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
  21377. $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
  21378. if test "${libjava_cv_anon_version_script+set}" = set; then :
  21379. $as_echo_n "(cached) " >&6
  21380. else
  21381. # Check whether --enable-symvers was given.
  21382. if test "${enable_symvers+set}" = set; then :
  21383. enableval=$enable_symvers; case "$enableval" in
  21384. yes|gnu*) libjava_cv_anon_version_script=yes ;;
  21385. no) libjava_cv_anon_version_script=no ;;
  21386. *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
  21387. esac
  21388. else
  21389. libjava_cv_anon_version_script=yes
  21390. fi
  21391. if test x$libjava_cv_anon_version_script = xyes; then
  21392. save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
  21393. CFLAGS="$CFLAGS -fPIC";
  21394. LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
  21395. echo '{ global: globalsymb*; local: *; };' > conftest.map
  21396. if test x$gcc_no_link = xyes; then
  21397. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21398. fi
  21399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21400. /* end confdefs.h. */
  21401. void globalsymbol (void) {} void localsymbol (void) {}
  21402. int
  21403. main ()
  21404. {
  21405. ;
  21406. return 0;
  21407. }
  21408. _ACEOF
  21409. if ac_fn_c_try_link "$LINENO"; then :
  21410. libjava_cv_anon_version_script=gnu
  21411. else
  21412. libjava_cv_anon_version_script=no
  21413. fi
  21414. rm -f core conftest.err conftest.$ac_objext \
  21415. conftest$ac_exeext conftest.$ac_ext
  21416. if test x$libjava_cv_anon_version_script = xno; then
  21417. case "$target_os" in
  21418. solaris2*)
  21419. LDFLAGS="$save_LDFLAGS"
  21420. LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
  21421. # Sun ld doesn't understand wildcards here.
  21422. echo '{ global: globalsymbol; local: *; };' > conftest.map
  21423. if test x$gcc_no_link = xyes; then
  21424. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21425. fi
  21426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21427. /* end confdefs.h. */
  21428. void globalsymbol (void) {} void localsymbol (void) {}
  21429. int
  21430. main ()
  21431. {
  21432. ;
  21433. return 0;
  21434. }
  21435. _ACEOF
  21436. if ac_fn_c_try_link "$LINENO"; then :
  21437. libjava_cv_anon_version_script=sun
  21438. fi
  21439. rm -f core conftest.err conftest.$ac_objext \
  21440. conftest$ac_exeext conftest.$ac_ext
  21441. ;;
  21442. esac
  21443. fi
  21444. CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
  21445. fi
  21446. fi
  21447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
  21448. $as_echo "$libjava_cv_anon_version_script" >&6; }
  21449. if test "$libjava_cv_anon_version_script" != no; then
  21450. ANONVERSCRIPT_TRUE=
  21451. ANONVERSCRIPT_FALSE='#'
  21452. else
  21453. ANONVERSCRIPT_TRUE='#'
  21454. ANONVERSCRIPT_FALSE=
  21455. fi
  21456. if test "$libjava_cv_anon_version_script" = gnu; then
  21457. ANONVERSCRIPT_GNU_TRUE=
  21458. ANONVERSCRIPT_GNU_FALSE='#'
  21459. else
  21460. ANONVERSCRIPT_GNU_TRUE='#'
  21461. ANONVERSCRIPT_GNU_FALSE=
  21462. fi
  21463. if test "$libjava_cv_anon_version_script" = sun; then
  21464. ANONVERSCRIPT_SUN_TRUE=
  21465. ANONVERSCRIPT_SUN_FALSE='#'
  21466. else
  21467. ANONVERSCRIPT_SUN_TRUE='#'
  21468. ANONVERSCRIPT_SUN_FALSE=
  21469. fi
  21470. # Check if linker supports static linking on a per library basis
  21471. LD_START_STATIC_SPEC=
  21472. LD_FINISH_STATIC_SPEC=
  21473. if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
  21474. if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
  21475. LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
  21476. LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
  21477. fi
  21478. fi
  21479. here=`${PWDCMD-pwd}`
  21480. # We get this from the environment.
  21481. default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
  21482. # Check whether --with-python-dir was given.
  21483. if test "${with_python_dir+set}" = set; then :
  21484. withval=$with_python_dir; with_python_dir=$withval
  21485. else
  21486. with_python_dir="${default_python_dir}"
  21487. fi
  21488. # Needed for installing Python modules during make install.
  21489. python_mod_dir="\${prefix}${with_python_dir}"
  21490. # Needed for substituting into aot-compile*
  21491. python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
  21492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
  21493. $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
  21494. # needed for aot-compile-rpm
  21495. MAKE=`which make`
  21496. # Check whether --enable-aot-compile-rpm was given.
  21497. if test "${enable_aot_compile_rpm+set}" = set; then :
  21498. enableval=$enable_aot_compile_rpm; case "${enableval}" in
  21499. yes) AOT_RPM_ENABLED=yes ;;
  21500. no) AOT_RPM_ENABLED=no ;;
  21501. *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
  21502. esac
  21503. else
  21504. AOT_RPM_ENABLED=no
  21505. fi
  21506. if test "x${AOT_RPM_ENABLED}" = xyes; then
  21507. INSTALL_AOT_RPM_TRUE=
  21508. INSTALL_AOT_RPM_FALSE='#'
  21509. else
  21510. INSTALL_AOT_RPM_TRUE='#'
  21511. INSTALL_AOT_RPM_FALSE=
  21512. fi
  21513. # Check whether --enable-java-home was given.
  21514. if test "${enable_java_home+set}" = set; then :
  21515. enableval=$enable_java_home; case "${enableval}" in
  21516. yes) JAVA_HOME_ENABLED=yes ;;
  21517. no) JAVA_HOME_ENABLED=no ;;
  21518. *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
  21519. esac
  21520. else
  21521. JAVA_HOME_ENABLED=no
  21522. fi
  21523. if test "x${JAVA_HOME_ENABLED}" = xyes; then
  21524. CREATE_JAVA_HOME_TRUE=
  21525. CREATE_JAVA_HOME_FALSE='#'
  21526. else
  21527. CREATE_JAVA_HOME_TRUE='#'
  21528. CREATE_JAVA_HOME_FALSE=
  21529. fi
  21530. # Only do these checks if java-home above is enabled.
  21531. if test "x${JAVA_HOME_ENABLED}" = xyes
  21532. then
  21533. # Check whether --with-gcc-suffix was given.
  21534. if test "${with_gcc_suffix+set}" = set; then :
  21535. withval=$with_gcc_suffix; gcc_suffix=$withval
  21536. else
  21537. gcc_suffix=""
  21538. fi
  21539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
  21540. $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
  21541. # Check whether --with-arch-directory was given.
  21542. if test "${with_arch_directory+set}" = set; then :
  21543. withval=$with_arch_directory; host_cpu=$withval
  21544. else
  21545. host_cpu=""
  21546. fi
  21547. # Check whether --with-os-directory was given.
  21548. if test "${with_os_directory+set}" = set; then :
  21549. withval=$with_os_directory; host_os=$withval
  21550. else
  21551. host_os=""
  21552. fi
  21553. # Check whether --with-origin-name was given.
  21554. if test "${with_origin_name+set}" = set; then :
  21555. withval=$with_origin_name; origin_name=$withval
  21556. else
  21557. origin_name=gcj${gcc_suffix}
  21558. fi
  21559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
  21560. $as_echo "JPackage origin name: ${origin_name}" >&6; }
  21561. # Check whether --with-arch-suffix was given.
  21562. if test "${with_arch_suffix+set}" = set; then :
  21563. withval=$with_arch_suffix; arch_suffix=$withval
  21564. else
  21565. arch_suffix=""
  21566. fi
  21567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
  21568. $as_echo "arch suffix: ${arch_suffix}" >&6; }
  21569. # Check whether --with-jvm-root-dir was given.
  21570. if test "${with_jvm_root_dir+set}" = set; then :
  21571. withval=$with_jvm_root_dir; jvm_root_dir=$withval
  21572. else
  21573. jvm_root_dir="\${prefix}/lib/jvm"
  21574. fi
  21575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
  21576. $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
  21577. # Check whether --with-jvm-jar-dir was given.
  21578. if test "${with_jvm_jar_dir+set}" = set; then :
  21579. withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
  21580. else
  21581. jvm_jar_dir=\${prefix}/lib/jvm-exports
  21582. fi
  21583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
  21584. $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
  21585. JAVA_VERSION=1.5.0
  21586. BUILD_VERSION=0
  21587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
  21588. $as_echo "Java version: ${JAVA_VERSION}" >&6; }
  21589. jre_dir=jre
  21590. jre_lnk=jre-${JAVA_VERSION}-${origin_name}
  21591. sdk_lnk=java-${JAVA_VERSION}-${origin_name}
  21592. JVM_ROOT_DIR=${jvm_root_dir}
  21593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
  21594. $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
  21595. JVM_JAR_ROOT_DIR=${jvm_jar_dir}
  21596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
  21597. $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
  21598. JVM_JAR_DIR=${jvm_jar_dir}
  21599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
  21600. $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
  21601. JRE_DIR=${jre_dir}
  21602. JRE_LNK=${jre_lnk}
  21603. SDK_LNK=${sdk_lnk}
  21604. SDK_BIN_DIR=${jvm_root_dir}/bin
  21605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
  21606. $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
  21607. SDK_LIB_DIR=${jvm_root_dir}/lib
  21608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
  21609. $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
  21610. SDK_INCLUDE_DIR=${jvm_root_dir}/include
  21611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
  21612. $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
  21613. JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
  21614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
  21615. $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
  21616. JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
  21617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
  21618. $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
  21619. # Find gcj prefix using gcj found in PATH.
  21620. gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
  21621. # Where do the gcj binaries live?
  21622. # For jhbuild based builds, they all live in a sibling of bin called
  21623. # gcj-bin. Check for gcj-bin first, and use bin otherwise.
  21624. GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
  21625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
  21626. $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
  21627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
  21628. $as_echo "host is ${host}" >&6; }
  21629. if test "x${host_cpu}" = "x"
  21630. then
  21631. case ${host} in
  21632. *-mingw* | *-cygwin*)
  21633. host_cpu=x86;;
  21634. i486-* | i586-* | i686-*)
  21635. host_cpu=i386;;
  21636. x86_64-*)
  21637. host_cpu=amd64;;
  21638. *)
  21639. host_cpu=${host_cpu};;
  21640. esac
  21641. fi
  21642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
  21643. $as_echo "arch directory: ${host_cpu}" >&6; }
  21644. CPU=${host_cpu}
  21645. if test "x${host_os}" = "x"
  21646. then
  21647. case ${host} in
  21648. *-mingw* | *-cygwin*)
  21649. host_os=win32;;
  21650. *-linux*)
  21651. host_os=linux;;
  21652. *)
  21653. host_os=${host_os};;
  21654. esac
  21655. fi
  21656. echo os directory: ${host_os}
  21657. OS=${host_os}
  21658. # make an expanded $libdir, for substituting into
  21659. # scripts (and other non-Makefile things).
  21660. LIBDIR=$libdir
  21661. if test "x${exec_prefix}" = "xNONE"
  21662. then
  21663. lib_exec_prefix=$expanded_prefix
  21664. else
  21665. lib_exec_prefix=$exec_prefix
  21666. fi
  21667. LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
  21668. fi
  21669. ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db"
  21670. if test ${multilib} = yes; then
  21671. multilib_arg="--enable-multilib"
  21672. else
  21673. multilib_arg=
  21674. fi
  21675. ac_config_files="$ac_config_files scripts/jar"
  21676. cat >confcache <<\_ACEOF
  21677. # This file is a shell script that caches the results of configure
  21678. # tests run on this system so they can be shared between configure
  21679. # scripts and configure runs, see configure's option --config-cache.
  21680. # It is not useful on other systems. If it contains results you don't
  21681. # want to keep, you may remove or edit it.
  21682. #
  21683. # config.status only pays attention to the cache file if you give it
  21684. # the --recheck option to rerun configure.
  21685. #
  21686. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21687. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21688. # following values.
  21689. _ACEOF
  21690. # The following way of writing the cache mishandles newlines in values,
  21691. # but we know of no workaround that is simple, portable, and efficient.
  21692. # So, we kill variables containing newlines.
  21693. # Ultrix sh set writes to stderr and can't be redirected directly,
  21694. # and sets the high bit in the cache file unless we assign to the vars.
  21695. (
  21696. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21697. eval ac_val=\$$ac_var
  21698. case $ac_val in #(
  21699. *${as_nl}*)
  21700. case $ac_var in #(
  21701. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21702. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21703. esac
  21704. case $ac_var in #(
  21705. _ | IFS | as_nl) ;; #(
  21706. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21707. *) { eval $ac_var=; unset $ac_var;} ;;
  21708. esac ;;
  21709. esac
  21710. done
  21711. (set) 2>&1 |
  21712. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21713. *${as_nl}ac_space=\ *)
  21714. # `set' does not quote correctly, so add quotes: double-quote
  21715. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21716. sed -n \
  21717. "s/'/'\\\\''/g;
  21718. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21719. ;; #(
  21720. *)
  21721. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21722. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21723. ;;
  21724. esac |
  21725. sort
  21726. ) |
  21727. sed '
  21728. /^ac_cv_env_/b end
  21729. t clear
  21730. :clear
  21731. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21732. t end
  21733. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21734. :end' >>confcache
  21735. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21736. if test -w "$cache_file"; then
  21737. test "x$cache_file" != "x/dev/null" &&
  21738. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21739. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21740. cat confcache >$cache_file
  21741. else
  21742. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21743. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21744. fi
  21745. fi
  21746. rm -f confcache
  21747. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21748. # Let make expand exec_prefix.
  21749. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21750. DEFS=-DHAVE_CONFIG_H
  21751. ac_libobjs=
  21752. ac_ltlibobjs=
  21753. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21754. # 1. Remove the extension, and $U if already installed.
  21755. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21756. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21757. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21758. # will be set to the directory where LIBOBJS objects are built.
  21759. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21760. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21761. done
  21762. LIBOBJS=$ac_libobjs
  21763. LTLIBOBJS=$ac_ltlibobjs
  21764. if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
  21765. as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
  21766. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21767. fi
  21768. if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
  21769. as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
  21770. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21771. fi
  21772. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21773. as_fn_error "conditional \"AMDEP\" was never defined.
  21774. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21775. fi
  21776. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21777. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  21778. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21779. fi
  21780. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21781. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  21782. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21783. fi
  21784. if test -n "$EXEEXT"; then
  21785. am__EXEEXT_TRUE=
  21786. am__EXEEXT_FALSE='#'
  21787. else
  21788. am__EXEEXT_TRUE='#'
  21789. am__EXEEXT_FALSE=
  21790. fi
  21791. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21792. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  21793. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21794. fi
  21795. if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
  21796. as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
  21797. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21798. fi
  21799. if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
  21800. as_fn_error "conditional \"XLIB_AWT\" was never defined.
  21801. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21802. fi
  21803. if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
  21804. as_fn_error "conditional \"X_AWT\" was never defined.
  21805. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21806. fi
  21807. if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
  21808. as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
  21809. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21810. fi
  21811. if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
  21812. as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
  21813. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21814. fi
  21815. if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
  21816. as_fn_error "conditional \"TESTSUBDIR\" was never defined.
  21817. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21818. fi
  21819. if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
  21820. as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
  21821. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21822. fi
  21823. if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
  21824. as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
  21825. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21826. fi
  21827. if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
  21828. as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
  21829. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21830. fi
  21831. if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
  21832. as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
  21833. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21834. fi
  21835. if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
  21836. as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
  21837. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21838. fi
  21839. if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
  21840. as_fn_error "conditional \"INTERPRETER\" was never defined.
  21841. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21842. fi
  21843. if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
  21844. as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
  21845. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21846. fi
  21847. if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
  21848. as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
  21849. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21850. fi
  21851. if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
  21852. as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
  21853. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21854. fi
  21855. if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
  21856. as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
  21857. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21858. fi
  21859. if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
  21860. as_fn_error "conditional \"USING_NOGC\" was never defined.
  21861. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21862. fi
  21863. if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
  21864. as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
  21865. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21866. fi
  21867. if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
  21868. as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
  21869. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21870. fi
  21871. if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
  21872. as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
  21873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21874. fi
  21875. if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
  21876. as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
  21877. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21878. fi
  21879. if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
  21880. as_fn_error "conditional \"USING_GCC\" was never defined.
  21881. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21882. fi
  21883. if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
  21884. as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
  21885. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21886. fi
  21887. if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
  21888. as_fn_error "conditional \"NATIVE\" was never defined.
  21889. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21890. fi
  21891. if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  21892. as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
  21893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21894. fi
  21895. if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
  21896. as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
  21897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21898. fi
  21899. if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
  21900. as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
  21901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21902. fi
  21903. if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
  21904. as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
  21905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21906. fi
  21907. if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
  21908. as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
  21909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21910. fi
  21911. if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
  21912. as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
  21913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21914. fi
  21915. if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
  21916. as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
  21917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21918. fi
  21919. if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
  21920. as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
  21921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21922. fi
  21923. : ${CONFIG_STATUS=./config.status}
  21924. ac_write_fail=0
  21925. ac_clean_files_save=$ac_clean_files
  21926. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21927. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21928. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21929. as_write_fail=0
  21930. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21931. #! $SHELL
  21932. # Generated by $as_me.
  21933. # Run this file to recreate the current configuration.
  21934. # Compiler output produced by configure, useful for debugging
  21935. # configure, is in config.log if it exists.
  21936. debug=false
  21937. ac_cs_recheck=false
  21938. ac_cs_silent=false
  21939. SHELL=\${CONFIG_SHELL-$SHELL}
  21940. export SHELL
  21941. _ASEOF
  21942. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21943. ## -------------------- ##
  21944. ## M4sh Initialization. ##
  21945. ## -------------------- ##
  21946. # Be more Bourne compatible
  21947. DUALCASE=1; export DUALCASE # for MKS sh
  21948. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21949. emulate sh
  21950. NULLCMD=:
  21951. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21952. # is contrary to our usage. Disable this feature.
  21953. alias -g '${1+"$@"}'='"$@"'
  21954. setopt NO_GLOB_SUBST
  21955. else
  21956. case `(set -o) 2>/dev/null` in #(
  21957. *posix*) :
  21958. set -o posix ;; #(
  21959. *) :
  21960. ;;
  21961. esac
  21962. fi
  21963. as_nl='
  21964. '
  21965. export as_nl
  21966. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21967. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21968. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21969. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21970. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21971. # but without wasting forks for bash or zsh.
  21972. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21973. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21974. as_echo='print -r --'
  21975. as_echo_n='print -rn --'
  21976. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21977. as_echo='printf %s\n'
  21978. as_echo_n='printf %s'
  21979. else
  21980. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21981. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21982. as_echo_n='/usr/ucb/echo -n'
  21983. else
  21984. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21985. as_echo_n_body='eval
  21986. arg=$1;
  21987. case $arg in #(
  21988. *"$as_nl"*)
  21989. expr "X$arg" : "X\\(.*\\)$as_nl";
  21990. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21991. esac;
  21992. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21993. '
  21994. export as_echo_n_body
  21995. as_echo_n='sh -c $as_echo_n_body as_echo'
  21996. fi
  21997. export as_echo_body
  21998. as_echo='sh -c $as_echo_body as_echo'
  21999. fi
  22000. # The user is always right.
  22001. if test "${PATH_SEPARATOR+set}" != set; then
  22002. PATH_SEPARATOR=:
  22003. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22004. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22005. PATH_SEPARATOR=';'
  22006. }
  22007. fi
  22008. # IFS
  22009. # We need space, tab and new line, in precisely that order. Quoting is
  22010. # there to prevent editors from complaining about space-tab.
  22011. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22012. # splitting by setting IFS to empty value.)
  22013. IFS=" "" $as_nl"
  22014. # Find who we are. Look in the path if we contain no directory separator.
  22015. case $0 in #((
  22016. *[\\/]* ) as_myself=$0 ;;
  22017. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22018. for as_dir in $PATH
  22019. do
  22020. IFS=$as_save_IFS
  22021. test -z "$as_dir" && as_dir=.
  22022. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22023. done
  22024. IFS=$as_save_IFS
  22025. ;;
  22026. esac
  22027. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22028. # in which case we are not to be found in the path.
  22029. if test "x$as_myself" = x; then
  22030. as_myself=$0
  22031. fi
  22032. if test ! -f "$as_myself"; then
  22033. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22034. exit 1
  22035. fi
  22036. # Unset variables that we do not need and which cause bugs (e.g. in
  22037. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22038. # suppresses any "Segmentation fault" message there. '((' could
  22039. # trigger a bug in pdksh 5.2.14.
  22040. for as_var in BASH_ENV ENV MAIL MAILPATH
  22041. do eval test x\${$as_var+set} = xset \
  22042. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22043. done
  22044. PS1='$ '
  22045. PS2='> '
  22046. PS4='+ '
  22047. # NLS nuisances.
  22048. LC_ALL=C
  22049. export LC_ALL
  22050. LANGUAGE=C
  22051. export LANGUAGE
  22052. # CDPATH.
  22053. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22054. # as_fn_error ERROR [LINENO LOG_FD]
  22055. # ---------------------------------
  22056. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22057. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22058. # script with status $?, using 1 if that was 0.
  22059. as_fn_error ()
  22060. {
  22061. as_status=$?; test $as_status -eq 0 && as_status=1
  22062. if test "$3"; then
  22063. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22064. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  22065. fi
  22066. $as_echo "$as_me: error: $1" >&2
  22067. as_fn_exit $as_status
  22068. } # as_fn_error
  22069. # as_fn_set_status STATUS
  22070. # -----------------------
  22071. # Set $? to STATUS, without forking.
  22072. as_fn_set_status ()
  22073. {
  22074. return $1
  22075. } # as_fn_set_status
  22076. # as_fn_exit STATUS
  22077. # -----------------
  22078. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22079. as_fn_exit ()
  22080. {
  22081. set +e
  22082. as_fn_set_status $1
  22083. exit $1
  22084. } # as_fn_exit
  22085. # as_fn_unset VAR
  22086. # ---------------
  22087. # Portably unset VAR.
  22088. as_fn_unset ()
  22089. {
  22090. { eval $1=; unset $1;}
  22091. }
  22092. as_unset=as_fn_unset
  22093. # as_fn_append VAR VALUE
  22094. # ----------------------
  22095. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22096. # advantage of any shell optimizations that allow amortized linear growth over
  22097. # repeated appends, instead of the typical quadratic growth present in naive
  22098. # implementations.
  22099. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22100. eval 'as_fn_append ()
  22101. {
  22102. eval $1+=\$2
  22103. }'
  22104. else
  22105. as_fn_append ()
  22106. {
  22107. eval $1=\$$1\$2
  22108. }
  22109. fi # as_fn_append
  22110. # as_fn_arith ARG...
  22111. # ------------------
  22112. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22113. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22114. # must be portable across $(()) and expr.
  22115. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22116. eval 'as_fn_arith ()
  22117. {
  22118. as_val=$(( $* ))
  22119. }'
  22120. else
  22121. as_fn_arith ()
  22122. {
  22123. as_val=`expr "$@" || test $? -eq 1`
  22124. }
  22125. fi # as_fn_arith
  22126. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22127. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22128. as_expr=expr
  22129. else
  22130. as_expr=false
  22131. fi
  22132. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22133. as_basename=basename
  22134. else
  22135. as_basename=false
  22136. fi
  22137. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22138. as_dirname=dirname
  22139. else
  22140. as_dirname=false
  22141. fi
  22142. as_me=`$as_basename -- "$0" ||
  22143. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22144. X"$0" : 'X\(//\)$' \| \
  22145. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22146. $as_echo X/"$0" |
  22147. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22148. s//\1/
  22149. q
  22150. }
  22151. /^X\/\(\/\/\)$/{
  22152. s//\1/
  22153. q
  22154. }
  22155. /^X\/\(\/\).*/{
  22156. s//\1/
  22157. q
  22158. }
  22159. s/.*/./; q'`
  22160. # Avoid depending upon Character Ranges.
  22161. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22162. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22163. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22164. as_cr_digits='0123456789'
  22165. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22166. ECHO_C= ECHO_N= ECHO_T=
  22167. case `echo -n x` in #(((((
  22168. -n*)
  22169. case `echo 'xy\c'` in
  22170. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22171. xy) ECHO_C='\c';;
  22172. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22173. ECHO_T=' ';;
  22174. esac;;
  22175. *)
  22176. ECHO_N='-n';;
  22177. esac
  22178. rm -f conf$$ conf$$.exe conf$$.file
  22179. if test -d conf$$.dir; then
  22180. rm -f conf$$.dir/conf$$.file
  22181. else
  22182. rm -f conf$$.dir
  22183. mkdir conf$$.dir 2>/dev/null
  22184. fi
  22185. if (echo >conf$$.file) 2>/dev/null; then
  22186. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22187. as_ln_s='ln -s'
  22188. # ... but there are two gotchas:
  22189. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22190. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22191. # In both cases, we have to default to `cp -p'.
  22192. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22193. as_ln_s='cp -p'
  22194. elif ln conf$$.file conf$$ 2>/dev/null; then
  22195. as_ln_s=ln
  22196. else
  22197. as_ln_s='cp -p'
  22198. fi
  22199. else
  22200. as_ln_s='cp -p'
  22201. fi
  22202. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22203. rmdir conf$$.dir 2>/dev/null
  22204. # as_fn_mkdir_p
  22205. # -------------
  22206. # Create "$as_dir" as a directory, including parents if necessary.
  22207. as_fn_mkdir_p ()
  22208. {
  22209. case $as_dir in #(
  22210. -*) as_dir=./$as_dir;;
  22211. esac
  22212. test -d "$as_dir" || eval $as_mkdir_p || {
  22213. as_dirs=
  22214. while :; do
  22215. case $as_dir in #(
  22216. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22217. *) as_qdir=$as_dir;;
  22218. esac
  22219. as_dirs="'$as_qdir' $as_dirs"
  22220. as_dir=`$as_dirname -- "$as_dir" ||
  22221. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22222. X"$as_dir" : 'X\(//\)[^/]' \| \
  22223. X"$as_dir" : 'X\(//\)$' \| \
  22224. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22225. $as_echo X"$as_dir" |
  22226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22227. s//\1/
  22228. q
  22229. }
  22230. /^X\(\/\/\)[^/].*/{
  22231. s//\1/
  22232. q
  22233. }
  22234. /^X\(\/\/\)$/{
  22235. s//\1/
  22236. q
  22237. }
  22238. /^X\(\/\).*/{
  22239. s//\1/
  22240. q
  22241. }
  22242. s/.*/./; q'`
  22243. test -d "$as_dir" && break
  22244. done
  22245. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22246. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  22247. } # as_fn_mkdir_p
  22248. if mkdir -p . 2>/dev/null; then
  22249. as_mkdir_p='mkdir -p "$as_dir"'
  22250. else
  22251. test -d ./-p && rmdir ./-p
  22252. as_mkdir_p=false
  22253. fi
  22254. if test -x / >/dev/null 2>&1; then
  22255. as_test_x='test -x'
  22256. else
  22257. if ls -dL / >/dev/null 2>&1; then
  22258. as_ls_L_option=L
  22259. else
  22260. as_ls_L_option=
  22261. fi
  22262. as_test_x='
  22263. eval sh -c '\''
  22264. if test -d "$1"; then
  22265. test -d "$1/.";
  22266. else
  22267. case $1 in #(
  22268. -*)set "./$1";;
  22269. esac;
  22270. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  22271. ???[sx]*):;;*)false;;esac;fi
  22272. '\'' sh
  22273. '
  22274. fi
  22275. as_executable_p=$as_test_x
  22276. # Sed expression to map a string onto a valid CPP name.
  22277. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22278. # Sed expression to map a string onto a valid variable name.
  22279. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22280. exec 6>&1
  22281. ## ----------------------------------- ##
  22282. ## Main body of $CONFIG_STATUS script. ##
  22283. ## ----------------------------------- ##
  22284. _ASEOF
  22285. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22286. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22287. # Save the log message, to keep $0 and so on meaningful, and to
  22288. # report actual input values of CONFIG_FILES etc. instead of their
  22289. # values after options handling.
  22290. ac_log="
  22291. This file was extended by libjava $as_me version-unused, which was
  22292. generated by GNU Autoconf 2.64. Invocation command line was
  22293. CONFIG_FILES = $CONFIG_FILES
  22294. CONFIG_HEADERS = $CONFIG_HEADERS
  22295. CONFIG_LINKS = $CONFIG_LINKS
  22296. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22297. $ $0 $@
  22298. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22299. "
  22300. _ACEOF
  22301. case $ac_config_files in *"
  22302. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22303. esac
  22304. case $ac_config_headers in *"
  22305. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22306. esac
  22307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22308. # Files that config.status was made for.
  22309. config_files="$ac_config_files"
  22310. config_headers="$ac_config_headers"
  22311. config_links="$ac_config_links"
  22312. config_commands="$ac_config_commands"
  22313. _ACEOF
  22314. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22315. ac_cs_usage="\
  22316. \`$as_me' instantiates files and other configuration actions
  22317. from templates according to the current configuration. Unless the files
  22318. and actions are specified as TAGs, all are instantiated by default.
  22319. Usage: $0 [OPTION]... [TAG]...
  22320. -h, --help print this help, then exit
  22321. -V, --version print version number and configuration settings, then exit
  22322. -q, --quiet, --silent
  22323. do not print progress messages
  22324. -d, --debug don't remove temporary files
  22325. --recheck update $as_me by reconfiguring in the same conditions
  22326. --file=FILE[:TEMPLATE]
  22327. instantiate the configuration file FILE
  22328. --header=FILE[:TEMPLATE]
  22329. instantiate the configuration header FILE
  22330. Configuration files:
  22331. $config_files
  22332. Configuration headers:
  22333. $config_headers
  22334. Configuration links:
  22335. $config_links
  22336. Configuration commands:
  22337. $config_commands
  22338. Report bugs to the package provider."
  22339. _ACEOF
  22340. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22341. ac_cs_version="\\
  22342. libjava config.status version-unused
  22343. configured by $0, generated by GNU Autoconf 2.64,
  22344. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22345. Copyright (C) 2009 Free Software Foundation, Inc.
  22346. This config.status script is free software; the Free Software Foundation
  22347. gives unlimited permission to copy, distribute and modify it."
  22348. ac_pwd='$ac_pwd'
  22349. srcdir='$srcdir'
  22350. INSTALL='$INSTALL'
  22351. MKDIR_P='$MKDIR_P'
  22352. AWK='$AWK'
  22353. test -n "\$AWK" || AWK=awk
  22354. _ACEOF
  22355. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22356. # The default lists apply if the user does not specify any file.
  22357. ac_need_defaults=:
  22358. while test $# != 0
  22359. do
  22360. case $1 in
  22361. --*=*)
  22362. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22363. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22364. ac_shift=:
  22365. ;;
  22366. *)
  22367. ac_option=$1
  22368. ac_optarg=$2
  22369. ac_shift=shift
  22370. ;;
  22371. esac
  22372. case $ac_option in
  22373. # Handling of the options.
  22374. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22375. ac_cs_recheck=: ;;
  22376. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22377. $as_echo "$ac_cs_version"; exit ;;
  22378. --debug | --debu | --deb | --de | --d | -d )
  22379. debug=: ;;
  22380. --file | --fil | --fi | --f )
  22381. $ac_shift
  22382. case $ac_optarg in
  22383. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22384. esac
  22385. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22386. ac_need_defaults=false;;
  22387. --header | --heade | --head | --hea )
  22388. $ac_shift
  22389. case $ac_optarg in
  22390. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22391. esac
  22392. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22393. ac_need_defaults=false;;
  22394. --he | --h)
  22395. # Conflict between --help and --header
  22396. as_fn_error "ambiguous option: \`$1'
  22397. Try \`$0 --help' for more information.";;
  22398. --help | --hel | -h )
  22399. $as_echo "$ac_cs_usage"; exit ;;
  22400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22401. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22402. ac_cs_silent=: ;;
  22403. # This is an error.
  22404. -*) as_fn_error "unrecognized option: \`$1'
  22405. Try \`$0 --help' for more information." ;;
  22406. *) as_fn_append ac_config_targets " $1"
  22407. ac_need_defaults=false ;;
  22408. esac
  22409. shift
  22410. done
  22411. ac_configure_extra_args=
  22412. if $ac_cs_silent; then
  22413. exec 6>/dev/null
  22414. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22415. fi
  22416. _ACEOF
  22417. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22418. if \$ac_cs_recheck; then
  22419. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22420. shift
  22421. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22422. CONFIG_SHELL='$SHELL'
  22423. export CONFIG_SHELL
  22424. exec "\$@"
  22425. fi
  22426. _ACEOF
  22427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22428. exec 5>>config.log
  22429. {
  22430. echo
  22431. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22432. ## Running $as_me. ##
  22433. _ASBOX
  22434. $as_echo "$ac_log"
  22435. } >&5
  22436. _ACEOF
  22437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22438. #
  22439. # INIT-COMMANDS
  22440. #
  22441. srcdir="$srcdir"
  22442. host="$host"
  22443. target="$target"
  22444. with_multisubdir="$with_multisubdir"
  22445. with_multisrctop="$with_multisrctop"
  22446. with_target_subdir="$with_target_subdir"
  22447. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  22448. multi_basedir="$multi_basedir"
  22449. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  22450. CC="$CC"
  22451. CXX="$CXX"
  22452. GFORTRAN="$GFORTRAN"
  22453. GCJ="$GCJ"
  22454. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22455. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22456. # if CDPATH is set.
  22457. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22458. sed_quote_subst='$sed_quote_subst'
  22459. double_quote_subst='$double_quote_subst'
  22460. delay_variable_subst='$delay_variable_subst'
  22461. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22462. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22463. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22464. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22465. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22466. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22467. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22468. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22469. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22470. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22471. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22472. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22473. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22474. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22475. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22476. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22477. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22478. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22479. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22480. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22481. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22482. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22483. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22484. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22485. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22486. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22487. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22488. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22489. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22490. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22491. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22492. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22493. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22494. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22495. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22496. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22497. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22498. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22499. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22500. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22501. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22502. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22503. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22504. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22505. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22506. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22507. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22508. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22509. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22510. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22511. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22512. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22513. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22514. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22515. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22516. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22517. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22518. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22519. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22520. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22521. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22522. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22523. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22524. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22525. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22526. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22527. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22528. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22529. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22530. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22531. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22532. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22533. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22534. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22535. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22536. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22537. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22538. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22539. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22540. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22541. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  22542. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22543. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22544. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22545. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22546. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22547. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22548. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22549. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22550. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  22551. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22552. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22553. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22554. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22555. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22556. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22557. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22558. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22559. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22560. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22561. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22562. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22563. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22564. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22565. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22566. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22567. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22568. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22569. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22570. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22571. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22572. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22573. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22574. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22575. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22576. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22577. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22578. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22579. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22580. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22581. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22582. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22583. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22584. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22585. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22586. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22587. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22588. LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
  22589. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22590. reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
  22591. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22592. reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22593. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22594. old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22595. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22596. compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
  22597. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22598. GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
  22599. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22600. lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
  22601. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22602. lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
  22603. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22604. lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
  22605. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22606. lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
  22607. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22608. lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
  22609. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22610. archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
  22611. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22612. enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
  22613. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22614. export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
  22615. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22616. whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
  22617. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22618. compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
  22619. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22620. old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22621. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22622. old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22623. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22624. archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22625. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22626. archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22627. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22628. module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22629. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22630. module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22631. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22632. with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
  22633. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22634. allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
  22635. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22636. no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
  22637. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22638. hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
  22639. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22640. hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
  22641. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22642. hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
  22643. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22644. hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
  22645. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22646. hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
  22647. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22648. hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
  22649. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22650. hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
  22651. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22652. hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
  22653. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22654. inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
  22655. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22656. link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
  22657. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  22658. fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
  22659. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22660. always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
  22661. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22662. export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22663. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22664. exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
  22665. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22666. include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
  22667. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22668. prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
  22669. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22670. file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
  22671. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22672. hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
  22673. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22674. compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
  22675. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22676. predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
  22677. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22678. postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
  22679. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22680. predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
  22681. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22682. postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
  22683. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22684. compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
  22685. LTCC='$LTCC'
  22686. LTCFLAGS='$LTCFLAGS'
  22687. compiler='$compiler_DEFAULT'
  22688. # A function that is used when there is no print builtin or printf.
  22689. func_fallback_echo ()
  22690. {
  22691. eval 'cat <<_LTECHO_EOF
  22692. \$1
  22693. _LTECHO_EOF'
  22694. }
  22695. # Quote evaled strings.
  22696. for var in SHELL \
  22697. ECHO \
  22698. SED \
  22699. GREP \
  22700. EGREP \
  22701. FGREP \
  22702. LD \
  22703. NM \
  22704. LN_S \
  22705. lt_SP2NL \
  22706. lt_NL2SP \
  22707. reload_flag \
  22708. OBJDUMP \
  22709. deplibs_check_method \
  22710. file_magic_cmd \
  22711. AR \
  22712. AR_FLAGS \
  22713. STRIP \
  22714. RANLIB \
  22715. CC \
  22716. CFLAGS \
  22717. compiler \
  22718. lt_cv_sys_global_symbol_pipe \
  22719. lt_cv_sys_global_symbol_to_cdecl \
  22720. lt_cv_sys_global_symbol_to_c_name_address \
  22721. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22722. lt_prog_compiler_no_builtin_flag \
  22723. lt_prog_compiler_wl \
  22724. lt_prog_compiler_pic \
  22725. lt_prog_compiler_static \
  22726. lt_cv_prog_compiler_c_o \
  22727. need_locks \
  22728. DSYMUTIL \
  22729. NMEDIT \
  22730. LIPO \
  22731. OTOOL \
  22732. OTOOL64 \
  22733. shrext_cmds \
  22734. export_dynamic_flag_spec \
  22735. whole_archive_flag_spec \
  22736. compiler_needs_object \
  22737. with_gnu_ld \
  22738. allow_undefined_flag \
  22739. no_undefined_flag \
  22740. hardcode_libdir_flag_spec \
  22741. hardcode_libdir_flag_spec_ld \
  22742. hardcode_libdir_separator \
  22743. fix_srcfile_path \
  22744. exclude_expsyms \
  22745. include_expsyms \
  22746. file_list_spec \
  22747. variables_saved_for_relink \
  22748. libname_spec \
  22749. library_names_spec \
  22750. soname_spec \
  22751. install_override_mode \
  22752. finish_eval \
  22753. old_striplib \
  22754. striplib \
  22755. compiler_lib_search_dirs \
  22756. predep_objects \
  22757. postdep_objects \
  22758. predeps \
  22759. postdeps \
  22760. compiler_lib_search_path \
  22761. LD_CXX \
  22762. LD_GCJ \
  22763. reload_flag_CXX \
  22764. reload_flag_GCJ \
  22765. compiler_CXX \
  22766. compiler_GCJ \
  22767. lt_prog_compiler_no_builtin_flag_CXX \
  22768. lt_prog_compiler_no_builtin_flag_GCJ \
  22769. lt_prog_compiler_wl_CXX \
  22770. lt_prog_compiler_wl_GCJ \
  22771. lt_prog_compiler_pic_CXX \
  22772. lt_prog_compiler_pic_GCJ \
  22773. lt_prog_compiler_static_CXX \
  22774. lt_prog_compiler_static_GCJ \
  22775. lt_cv_prog_compiler_c_o_CXX \
  22776. lt_cv_prog_compiler_c_o_GCJ \
  22777. export_dynamic_flag_spec_CXX \
  22778. export_dynamic_flag_spec_GCJ \
  22779. whole_archive_flag_spec_CXX \
  22780. whole_archive_flag_spec_GCJ \
  22781. compiler_needs_object_CXX \
  22782. compiler_needs_object_GCJ \
  22783. with_gnu_ld_CXX \
  22784. with_gnu_ld_GCJ \
  22785. allow_undefined_flag_CXX \
  22786. allow_undefined_flag_GCJ \
  22787. no_undefined_flag_CXX \
  22788. no_undefined_flag_GCJ \
  22789. hardcode_libdir_flag_spec_CXX \
  22790. hardcode_libdir_flag_spec_GCJ \
  22791. hardcode_libdir_flag_spec_ld_CXX \
  22792. hardcode_libdir_flag_spec_ld_GCJ \
  22793. hardcode_libdir_separator_CXX \
  22794. hardcode_libdir_separator_GCJ \
  22795. fix_srcfile_path_CXX \
  22796. fix_srcfile_path_GCJ \
  22797. exclude_expsyms_CXX \
  22798. exclude_expsyms_GCJ \
  22799. include_expsyms_CXX \
  22800. include_expsyms_GCJ \
  22801. file_list_spec_CXX \
  22802. file_list_spec_GCJ \
  22803. compiler_lib_search_dirs_CXX \
  22804. compiler_lib_search_dirs_GCJ \
  22805. predep_objects_CXX \
  22806. predep_objects_GCJ \
  22807. postdep_objects_CXX \
  22808. postdep_objects_GCJ \
  22809. predeps_CXX \
  22810. predeps_GCJ \
  22811. postdeps_CXX \
  22812. postdeps_GCJ \
  22813. compiler_lib_search_path_CXX \
  22814. compiler_lib_search_path_GCJ; do
  22815. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22816. *[\\\\\\\`\\"\\\$]*)
  22817. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22818. ;;
  22819. *)
  22820. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22821. ;;
  22822. esac
  22823. done
  22824. # Double-quote double-evaled strings.
  22825. for var in reload_cmds \
  22826. old_postinstall_cmds \
  22827. old_postuninstall_cmds \
  22828. old_archive_cmds \
  22829. extract_expsyms_cmds \
  22830. old_archive_from_new_cmds \
  22831. old_archive_from_expsyms_cmds \
  22832. archive_cmds \
  22833. archive_expsym_cmds \
  22834. module_cmds \
  22835. module_expsym_cmds \
  22836. export_symbols_cmds \
  22837. prelink_cmds \
  22838. postinstall_cmds \
  22839. postuninstall_cmds \
  22840. finish_cmds \
  22841. sys_lib_search_path_spec \
  22842. sys_lib_dlsearch_path_spec \
  22843. reload_cmds_CXX \
  22844. reload_cmds_GCJ \
  22845. old_archive_cmds_CXX \
  22846. old_archive_cmds_GCJ \
  22847. old_archive_from_new_cmds_CXX \
  22848. old_archive_from_new_cmds_GCJ \
  22849. old_archive_from_expsyms_cmds_CXX \
  22850. old_archive_from_expsyms_cmds_GCJ \
  22851. archive_cmds_CXX \
  22852. archive_cmds_GCJ \
  22853. archive_expsym_cmds_CXX \
  22854. archive_expsym_cmds_GCJ \
  22855. module_cmds_CXX \
  22856. module_cmds_GCJ \
  22857. module_expsym_cmds_CXX \
  22858. module_expsym_cmds_GCJ \
  22859. export_symbols_cmds_CXX \
  22860. export_symbols_cmds_GCJ \
  22861. prelink_cmds_CXX \
  22862. prelink_cmds_GCJ; do
  22863. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22864. *[\\\\\\\`\\"\\\$]*)
  22865. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22866. ;;
  22867. *)
  22868. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22869. ;;
  22870. esac
  22871. done
  22872. ac_aux_dir='$ac_aux_dir'
  22873. xsi_shell='$xsi_shell'
  22874. lt_shell_append='$lt_shell_append'
  22875. # See if we are running on zsh, and set the options which allow our
  22876. # commands through without removal of \ escapes INIT.
  22877. if test -n "\${ZSH_VERSION+set}" ; then
  22878. setopt NO_GLOB_SUBST
  22879. fi
  22880. PACKAGE='$PACKAGE'
  22881. VERSION='$VERSION'
  22882. TIMESTAMP='$TIMESTAMP'
  22883. RM='$RM'
  22884. ofile='$ofile'
  22885. _ACEOF
  22886. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22887. # Handling of arguments.
  22888. for ac_config_target in $ac_config_targets
  22889. do
  22890. case $ac_config_target in
  22891. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  22892. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22893. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  22894. "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
  22895. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22896. "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
  22897. "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
  22898. "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
  22899. "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
  22900. "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
  22901. "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
  22902. "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
  22903. "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
  22904. "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
  22905. "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
  22906. "gnu/java/security/jce/prng/natVMSecureRandom.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
  22907. "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
  22908. "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
  22909. "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
  22910. "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
  22911. "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
  22912. "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
  22913. "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
  22914. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22915. "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
  22916. "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
  22917. "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
  22918. "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
  22919. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  22920. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  22921. "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
  22922. "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
  22923. "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
  22924. "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
  22925. "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
  22926. "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
  22927. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22928. esac
  22929. done
  22930. # If the user did not use the arguments to specify the items to instantiate,
  22931. # then the envvar interface is used. Set only those that are not.
  22932. # We use the long form for the default assignment because of an extremely
  22933. # bizarre bug on SunOS 4.1.3.
  22934. if $ac_need_defaults; then
  22935. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22936. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22937. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  22938. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22939. fi
  22940. # Have a temporary directory for convenience. Make it in the build tree
  22941. # simply because there is no reason against having it here, and in addition,
  22942. # creating and moving files from /tmp can sometimes cause problems.
  22943. # Hook for its removal unless debugging.
  22944. # Note that there is a small window in which the directory will not be cleaned:
  22945. # after its creation but before its name has been assigned to `$tmp'.
  22946. $debug ||
  22947. {
  22948. tmp=
  22949. trap 'exit_status=$?
  22950. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22951. ' 0
  22952. trap 'as_fn_exit 1' 1 2 13 15
  22953. }
  22954. # Create a (secure) tmp directory for tmp files.
  22955. {
  22956. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22957. test -n "$tmp" && test -d "$tmp"
  22958. } ||
  22959. {
  22960. tmp=./conf$$-$RANDOM
  22961. (umask 077 && mkdir "$tmp")
  22962. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  22963. # Set up the scripts for CONFIG_FILES section.
  22964. # No need to generate them if there are no CONFIG_FILES.
  22965. # This happens for instance with `./config.status config.h'.
  22966. if test -n "$CONFIG_FILES"; then
  22967. ac_cr=`echo X | tr X '\015'`
  22968. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22969. # But we know of no other shell where ac_cr would be empty at this
  22970. # point, so we can use a bashism as a fallback.
  22971. if test "x$ac_cr" = x; then
  22972. eval ac_cr=\$\'\\r\'
  22973. fi
  22974. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22975. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22976. ac_cs_awk_cr='\r'
  22977. else
  22978. ac_cs_awk_cr=$ac_cr
  22979. fi
  22980. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22981. _ACEOF
  22982. {
  22983. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22984. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22985. echo "_ACEOF"
  22986. } >conf$$subs.sh ||
  22987. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22988. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22989. ac_delim='%!_!# '
  22990. for ac_last_try in false false false false false :; do
  22991. . ./conf$$subs.sh ||
  22992. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22993. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22994. if test $ac_delim_n = $ac_delim_num; then
  22995. break
  22996. elif $ac_last_try; then
  22997. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22998. else
  22999. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23000. fi
  23001. done
  23002. rm -f conf$$subs.sh
  23003. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23004. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  23005. _ACEOF
  23006. sed -n '
  23007. h
  23008. s/^/S["/; s/!.*/"]=/
  23009. p
  23010. g
  23011. s/^[^!]*!//
  23012. :repl
  23013. t repl
  23014. s/'"$ac_delim"'$//
  23015. t delim
  23016. :nl
  23017. h
  23018. s/\(.\{148\}\).*/\1/
  23019. t more1
  23020. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23021. p
  23022. n
  23023. b repl
  23024. :more1
  23025. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23026. p
  23027. g
  23028. s/.\{148\}//
  23029. t nl
  23030. :delim
  23031. h
  23032. s/\(.\{148\}\).*/\1/
  23033. t more2
  23034. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23035. p
  23036. b
  23037. :more2
  23038. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23039. p
  23040. g
  23041. s/.\{148\}//
  23042. t delim
  23043. ' <conf$$subs.awk | sed '
  23044. /^[^""]/{
  23045. N
  23046. s/\n//
  23047. }
  23048. ' >>$CONFIG_STATUS || ac_write_fail=1
  23049. rm -f conf$$subs.awk
  23050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23051. _ACAWK
  23052. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  23053. for (key in S) S_is_set[key] = 1
  23054. FS = ""
  23055. }
  23056. {
  23057. line = $ 0
  23058. nfields = split(line, field, "@")
  23059. substed = 0
  23060. len = length(field[1])
  23061. for (i = 2; i < nfields; i++) {
  23062. key = field[i]
  23063. keylen = length(key)
  23064. if (S_is_set[key]) {
  23065. value = S[key]
  23066. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23067. len += length(value) + length(field[++i])
  23068. substed = 1
  23069. } else
  23070. len += 1 + keylen
  23071. }
  23072. print line
  23073. }
  23074. _ACAWK
  23075. _ACEOF
  23076. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23077. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23078. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23079. else
  23080. cat
  23081. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  23082. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  23083. _ACEOF
  23084. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23085. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23086. # trailing colons and then remove the whole line if VPATH becomes empty
  23087. # (actually we leave an empty line to preserve line numbers).
  23088. if test "x$srcdir" = x.; then
  23089. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23090. s/:*\$(srcdir):*/:/
  23091. s/:*\${srcdir}:*/:/
  23092. s/:*@srcdir@:*/:/
  23093. s/^\([^=]*=[ ]*\):*/\1/
  23094. s/:*$//
  23095. s/^[^=]*=[ ]*$//
  23096. }'
  23097. fi
  23098. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23099. fi # test -n "$CONFIG_FILES"
  23100. # Set up the scripts for CONFIG_HEADERS section.
  23101. # No need to generate them if there are no CONFIG_HEADERS.
  23102. # This happens for instance with `./config.status Makefile'.
  23103. if test -n "$CONFIG_HEADERS"; then
  23104. cat >"$tmp/defines.awk" <<\_ACAWK ||
  23105. BEGIN {
  23106. _ACEOF
  23107. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23108. # here-document in config.status, that substitutes the proper values into
  23109. # config.h.in to produce config.h.
  23110. # Create a delimiter string that does not exist in confdefs.h, to ease
  23111. # handling of long lines.
  23112. ac_delim='%!_!# '
  23113. for ac_last_try in false false :; do
  23114. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  23115. if test -z "$ac_t"; then
  23116. break
  23117. elif $ac_last_try; then
  23118. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  23119. else
  23120. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23121. fi
  23122. done
  23123. # For the awk script, D is an array of macro values keyed by name,
  23124. # likewise P contains macro parameters if any. Preserve backslash
  23125. # newline sequences.
  23126. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23127. sed -n '
  23128. s/.\{148\}/&'"$ac_delim"'/g
  23129. t rset
  23130. :rset
  23131. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23132. t def
  23133. d
  23134. :def
  23135. s/\\$//
  23136. t bsnl
  23137. s/["\\]/\\&/g
  23138. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23139. D["\1"]=" \3"/p
  23140. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23141. d
  23142. :bsnl
  23143. s/["\\]/\\&/g
  23144. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23145. D["\1"]=" \3\\\\\\n"\\/p
  23146. t cont
  23147. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23148. t cont
  23149. d
  23150. :cont
  23151. n
  23152. s/.\{148\}/&'"$ac_delim"'/g
  23153. t clear
  23154. :clear
  23155. s/\\$//
  23156. t bsnlc
  23157. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23158. d
  23159. :bsnlc
  23160. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23161. b cont
  23162. ' <confdefs.h | sed '
  23163. s/'"$ac_delim"'/"\\\
  23164. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23166. for (key in D) D_is_set[key] = 1
  23167. FS = ""
  23168. }
  23169. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23170. line = \$ 0
  23171. split(line, arg, " ")
  23172. if (arg[1] == "#") {
  23173. defundef = arg[2]
  23174. mac1 = arg[3]
  23175. } else {
  23176. defundef = substr(arg[1], 2)
  23177. mac1 = arg[2]
  23178. }
  23179. split(mac1, mac2, "(") #)
  23180. macro = mac2[1]
  23181. prefix = substr(line, 1, index(line, defundef) - 1)
  23182. if (D_is_set[macro]) {
  23183. # Preserve the white space surrounding the "#".
  23184. print prefix "define", macro P[macro] D[macro]
  23185. next
  23186. } else {
  23187. # Replace #undef with comments. This is necessary, for example,
  23188. # in the case of _POSIX_SOURCE, which is predefined and required
  23189. # on some systems where configure will not decide to define it.
  23190. if (defundef == "undef") {
  23191. print "/*", prefix defundef, macro, "*/"
  23192. next
  23193. }
  23194. }
  23195. }
  23196. { print }
  23197. _ACAWK
  23198. _ACEOF
  23199. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23200. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  23201. fi # test -n "$CONFIG_HEADERS"
  23202. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  23203. shift
  23204. for ac_tag
  23205. do
  23206. case $ac_tag in
  23207. :[FHLC]) ac_mode=$ac_tag; continue;;
  23208. esac
  23209. case $ac_mode$ac_tag in
  23210. :[FHL]*:*);;
  23211. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23212. :[FH]-) ac_tag=-:-;;
  23213. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23214. esac
  23215. ac_save_IFS=$IFS
  23216. IFS=:
  23217. set x $ac_tag
  23218. IFS=$ac_save_IFS
  23219. shift
  23220. ac_file=$1
  23221. shift
  23222. case $ac_mode in
  23223. :L) ac_source=$1;;
  23224. :[FH])
  23225. ac_file_inputs=
  23226. for ac_f
  23227. do
  23228. case $ac_f in
  23229. -) ac_f="$tmp/stdin";;
  23230. *) # Look for the file first in the build tree, then in the source tree
  23231. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23232. # because $ac_f cannot contain `:'.
  23233. test -f "$ac_f" ||
  23234. case $ac_f in
  23235. [\\/$]*) false;;
  23236. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23237. esac ||
  23238. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23239. esac
  23240. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23241. as_fn_append ac_file_inputs " '$ac_f'"
  23242. done
  23243. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23244. # use $as_me), people would be surprised to read:
  23245. # /* config.h. Generated by config.status. */
  23246. configure_input='Generated from '`
  23247. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23248. `' by configure.'
  23249. if test x"$ac_file" != x-; then
  23250. configure_input="$ac_file. $configure_input"
  23251. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23252. $as_echo "$as_me: creating $ac_file" >&6;}
  23253. fi
  23254. # Neutralize special characters interpreted by sed in replacement strings.
  23255. case $configure_input in #(
  23256. *\&* | *\|* | *\\* )
  23257. ac_sed_conf_input=`$as_echo "$configure_input" |
  23258. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23259. *) ac_sed_conf_input=$configure_input;;
  23260. esac
  23261. case $ac_tag in
  23262. *:-:* | *:-) cat >"$tmp/stdin" \
  23263. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  23264. esac
  23265. ;;
  23266. esac
  23267. ac_dir=`$as_dirname -- "$ac_file" ||
  23268. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23269. X"$ac_file" : 'X\(//\)[^/]' \| \
  23270. X"$ac_file" : 'X\(//\)$' \| \
  23271. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23272. $as_echo X"$ac_file" |
  23273. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23274. s//\1/
  23275. q
  23276. }
  23277. /^X\(\/\/\)[^/].*/{
  23278. s//\1/
  23279. q
  23280. }
  23281. /^X\(\/\/\)$/{
  23282. s//\1/
  23283. q
  23284. }
  23285. /^X\(\/\).*/{
  23286. s//\1/
  23287. q
  23288. }
  23289. s/.*/./; q'`
  23290. as_dir="$ac_dir"; as_fn_mkdir_p
  23291. ac_builddir=.
  23292. case "$ac_dir" in
  23293. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23294. *)
  23295. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23296. # A ".." for each directory in $ac_dir_suffix.
  23297. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23298. case $ac_top_builddir_sub in
  23299. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23300. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23301. esac ;;
  23302. esac
  23303. ac_abs_top_builddir=$ac_pwd
  23304. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23305. # for backward compatibility:
  23306. ac_top_builddir=$ac_top_build_prefix
  23307. case $srcdir in
  23308. .) # We are building in place.
  23309. ac_srcdir=.
  23310. ac_top_srcdir=$ac_top_builddir_sub
  23311. ac_abs_top_srcdir=$ac_pwd ;;
  23312. [\\/]* | ?:[\\/]* ) # Absolute name.
  23313. ac_srcdir=$srcdir$ac_dir_suffix;
  23314. ac_top_srcdir=$srcdir
  23315. ac_abs_top_srcdir=$srcdir ;;
  23316. *) # Relative name.
  23317. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23318. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23319. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23320. esac
  23321. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23322. case $ac_mode in
  23323. :F)
  23324. #
  23325. # CONFIG_FILE
  23326. #
  23327. case $INSTALL in
  23328. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23329. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23330. esac
  23331. ac_MKDIR_P=$MKDIR_P
  23332. case $MKDIR_P in
  23333. [\\/$]* | ?:[\\/]* ) ;;
  23334. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23335. esac
  23336. _ACEOF
  23337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23338. # If the template does not know about datarootdir, expand it.
  23339. # FIXME: This hack should be removed a few years after 2.60.
  23340. ac_datarootdir_hack=; ac_datarootdir_seen=
  23341. ac_sed_dataroot='
  23342. /datarootdir/ {
  23343. p
  23344. q
  23345. }
  23346. /@datadir@/p
  23347. /@docdir@/p
  23348. /@infodir@/p
  23349. /@localedir@/p
  23350. /@mandir@/p'
  23351. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23352. *datarootdir*) ac_datarootdir_seen=yes;;
  23353. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23355. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23356. _ACEOF
  23357. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23358. ac_datarootdir_hack='
  23359. s&@datadir@&$datadir&g
  23360. s&@docdir@&$docdir&g
  23361. s&@infodir@&$infodir&g
  23362. s&@localedir@&$localedir&g
  23363. s&@mandir@&$mandir&g
  23364. s&\\\${datarootdir}&$datarootdir&g' ;;
  23365. esac
  23366. _ACEOF
  23367. # Neutralize VPATH when `$srcdir' = `.'.
  23368. # Shell code in configure.ac might set extrasub.
  23369. # FIXME: do we really want to maintain this feature?
  23370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23371. ac_sed_extra="$ac_vpsub
  23372. $extrasub
  23373. _ACEOF
  23374. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23375. :t
  23376. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23377. s|@configure_input@|$ac_sed_conf_input|;t t
  23378. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23379. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23380. s&@srcdir@&$ac_srcdir&;t t
  23381. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23382. s&@top_srcdir@&$ac_top_srcdir&;t t
  23383. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23384. s&@builddir@&$ac_builddir&;t t
  23385. s&@abs_builddir@&$ac_abs_builddir&;t t
  23386. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23387. s&@INSTALL@&$ac_INSTALL&;t t
  23388. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23389. $ac_datarootdir_hack
  23390. "
  23391. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23392. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23393. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23394. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23395. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23397. which seems to be undefined. Please make sure it is defined." >&5
  23398. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23399. which seems to be undefined. Please make sure it is defined." >&2;}
  23400. rm -f "$tmp/stdin"
  23401. case $ac_file in
  23402. -) cat "$tmp/out" && rm -f "$tmp/out";;
  23403. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23404. esac \
  23405. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23406. ;;
  23407. :H)
  23408. #
  23409. # CONFIG_HEADER
  23410. #
  23411. if test x"$ac_file" != x-; then
  23412. {
  23413. $as_echo "/* $configure_input */" \
  23414. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23415. } >"$tmp/config.h" \
  23416. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23417. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23418. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23419. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23420. else
  23421. rm -f "$ac_file"
  23422. mv "$tmp/config.h" "$ac_file" \
  23423. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23424. fi
  23425. else
  23426. $as_echo "/* $configure_input */" \
  23427. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23428. || as_fn_error "could not create -" "$LINENO" 5
  23429. fi
  23430. # Compute "$ac_file"'s index in $config_headers.
  23431. _am_arg="$ac_file"
  23432. _am_stamp_count=1
  23433. for _am_header in $config_headers :; do
  23434. case $_am_header in
  23435. $_am_arg | $_am_arg:* )
  23436. break ;;
  23437. * )
  23438. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23439. esac
  23440. done
  23441. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23442. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23443. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23444. X"$_am_arg" : 'X\(//\)$' \| \
  23445. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23446. $as_echo X"$_am_arg" |
  23447. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23448. s//\1/
  23449. q
  23450. }
  23451. /^X\(\/\/\)[^/].*/{
  23452. s//\1/
  23453. q
  23454. }
  23455. /^X\(\/\/\)$/{
  23456. s//\1/
  23457. q
  23458. }
  23459. /^X\(\/\).*/{
  23460. s//\1/
  23461. q
  23462. }
  23463. s/.*/./; q'`/stamp-h$_am_stamp_count
  23464. ;;
  23465. :L)
  23466. #
  23467. # CONFIG_LINK
  23468. #
  23469. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  23470. :
  23471. else
  23472. # Prefer the file from the source tree if names are identical.
  23473. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  23474. ac_source=$srcdir/$ac_source
  23475. fi
  23476. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  23477. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  23478. if test ! -r "$ac_source"; then
  23479. as_fn_error "$ac_source: file not found" "$LINENO" 5
  23480. fi
  23481. rm -f "$ac_file"
  23482. # Try a relative symlink, then a hard link, then a copy.
  23483. case $srcdir in
  23484. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  23485. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  23486. esac
  23487. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  23488. ln "$ac_source" "$ac_file" 2>/dev/null ||
  23489. cp -p "$ac_source" "$ac_file" ||
  23490. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  23491. fi
  23492. ;;
  23493. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23494. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23495. ;;
  23496. esac
  23497. case $ac_file$ac_mode in
  23498. "default-1":C)
  23499. # Only add multilib support code if we just rebuilt the top-level
  23500. # Makefile.
  23501. case " $CONFIG_FILES " in
  23502. *" Makefile "*)
  23503. ac_file=Makefile . ${multi_basedir}/config-ml.in
  23504. ;;
  23505. esac ;;
  23506. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23507. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23508. # are listed without --file. Let's play safe and only enable the eval
  23509. # if we detect the quoting.
  23510. case $CONFIG_FILES in
  23511. *\'*) eval set x "$CONFIG_FILES" ;;
  23512. *) set x $CONFIG_FILES ;;
  23513. esac
  23514. shift
  23515. for mf
  23516. do
  23517. # Strip MF so we end up with the name of the file.
  23518. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23519. # Check whether this is an Automake generated Makefile or not.
  23520. # We used to match only the files named `Makefile.in', but
  23521. # some people rename them; so instead we look at the file content.
  23522. # Grep'ing the first line is not enough: some people post-process
  23523. # each Makefile.in and add a new line on top of each file to say so.
  23524. # Grep'ing the whole file is not good either: AIX grep has a line
  23525. # limit of 2048, but all sed's we know have understand at least 4000.
  23526. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23527. dirpart=`$as_dirname -- "$mf" ||
  23528. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23529. X"$mf" : 'X\(//\)[^/]' \| \
  23530. X"$mf" : 'X\(//\)$' \| \
  23531. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23532. $as_echo X"$mf" |
  23533. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23534. s//\1/
  23535. q
  23536. }
  23537. /^X\(\/\/\)[^/].*/{
  23538. s//\1/
  23539. q
  23540. }
  23541. /^X\(\/\/\)$/{
  23542. s//\1/
  23543. q
  23544. }
  23545. /^X\(\/\).*/{
  23546. s//\1/
  23547. q
  23548. }
  23549. s/.*/./; q'`
  23550. else
  23551. continue
  23552. fi
  23553. # Extract the definition of DEPDIR, am__include, and am__quote
  23554. # from the Makefile without running `make'.
  23555. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23556. test -z "$DEPDIR" && continue
  23557. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23558. test -z "am__include" && continue
  23559. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23560. # When using ansi2knr, U may be empty or an underscore; expand it
  23561. U=`sed -n 's/^U = //p' < "$mf"`
  23562. # Find all dependency output files, they are included files with
  23563. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23564. # simplest approach to changing $(DEPDIR) to its actual value in the
  23565. # expansion.
  23566. for file in `sed -n "
  23567. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23568. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23569. # Make sure the directory exists.
  23570. test -f "$dirpart/$file" && continue
  23571. fdir=`$as_dirname -- "$file" ||
  23572. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23573. X"$file" : 'X\(//\)[^/]' \| \
  23574. X"$file" : 'X\(//\)$' \| \
  23575. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23576. $as_echo X"$file" |
  23577. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23578. s//\1/
  23579. q
  23580. }
  23581. /^X\(\/\/\)[^/].*/{
  23582. s//\1/
  23583. q
  23584. }
  23585. /^X\(\/\/\)$/{
  23586. s//\1/
  23587. q
  23588. }
  23589. /^X\(\/\).*/{
  23590. s//\1/
  23591. q
  23592. }
  23593. s/.*/./; q'`
  23594. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23595. # echo "creating $dirpart/$file"
  23596. echo '# dummy' > "$dirpart/$file"
  23597. done
  23598. done
  23599. }
  23600. ;;
  23601. "libtool":C)
  23602. # See if we are running on zsh, and set the options which allow our
  23603. # commands through without removal of \ escapes.
  23604. if test -n "${ZSH_VERSION+set}" ; then
  23605. setopt NO_GLOB_SUBST
  23606. fi
  23607. cfgfile="${ofile}T"
  23608. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23609. $RM "$cfgfile"
  23610. cat <<_LT_EOF >> "$cfgfile"
  23611. #! $SHELL
  23612. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23613. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23614. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23615. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23616. #
  23617. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23618. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  23619. # Written by Gordon Matzigkeit, 1996
  23620. #
  23621. # This file is part of GNU Libtool.
  23622. #
  23623. # GNU Libtool is free software; you can redistribute it and/or
  23624. # modify it under the terms of the GNU General Public License as
  23625. # published by the Free Software Foundation; either version 2 of
  23626. # the License, or (at your option) any later version.
  23627. #
  23628. # As a special exception to the GNU General Public License,
  23629. # if you distribute this file as part of a program or library that
  23630. # is built using GNU Libtool, you may include this file under the
  23631. # same distribution terms that you use for the rest of that program.
  23632. #
  23633. # GNU Libtool is distributed in the hope that it will be useful,
  23634. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23635. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23636. # GNU General Public License for more details.
  23637. #
  23638. # You should have received a copy of the GNU General Public License
  23639. # along with GNU Libtool; see the file COPYING. If not, a copy
  23640. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23641. # obtained by writing to the Free Software Foundation, Inc.,
  23642. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23643. # The names of the tagged configurations supported by this script.
  23644. available_tags="CXX GCJ "
  23645. # ### BEGIN LIBTOOL CONFIG
  23646. # Which release of libtool.m4 was used?
  23647. macro_version=$macro_version
  23648. macro_revision=$macro_revision
  23649. # Whether or not to build shared libraries.
  23650. build_libtool_libs=$enable_shared
  23651. # Whether or not to build static libraries.
  23652. build_old_libs=$enable_static
  23653. # What type of objects to build.
  23654. pic_mode=$pic_mode
  23655. # Whether or not to optimize for fast installation.
  23656. fast_install=$enable_fast_install
  23657. # Shell to use when invoking shell scripts.
  23658. SHELL=$lt_SHELL
  23659. # An echo program that protects backslashes.
  23660. ECHO=$lt_ECHO
  23661. # The host system.
  23662. host_alias=$host_alias
  23663. host=$host
  23664. host_os=$host_os
  23665. # The build system.
  23666. build_alias=$build_alias
  23667. build=$build
  23668. build_os=$build_os
  23669. # A sed program that does not truncate output.
  23670. SED=$lt_SED
  23671. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23672. Xsed="\$SED -e 1s/^X//"
  23673. # A grep program that handles long lines.
  23674. GREP=$lt_GREP
  23675. # An ERE matcher.
  23676. EGREP=$lt_EGREP
  23677. # A literal string matcher.
  23678. FGREP=$lt_FGREP
  23679. # A BSD- or MS-compatible name lister.
  23680. NM=$lt_NM
  23681. # Whether we need soft or hard links.
  23682. LN_S=$lt_LN_S
  23683. # What is the maximum length of a command?
  23684. max_cmd_len=$max_cmd_len
  23685. # Object file suffix (normally "o").
  23686. objext=$ac_objext
  23687. # Executable file suffix (normally "").
  23688. exeext=$exeext
  23689. # whether the shell understands "unset".
  23690. lt_unset=$lt_unset
  23691. # turn spaces into newlines.
  23692. SP2NL=$lt_lt_SP2NL
  23693. # turn newlines into spaces.
  23694. NL2SP=$lt_lt_NL2SP
  23695. # An object symbol dumper.
  23696. OBJDUMP=$lt_OBJDUMP
  23697. # Method to check whether dependent libraries are shared objects.
  23698. deplibs_check_method=$lt_deplibs_check_method
  23699. # Command to use when deplibs_check_method == "file_magic".
  23700. file_magic_cmd=$lt_file_magic_cmd
  23701. # The archiver.
  23702. AR=$lt_AR
  23703. AR_FLAGS=$lt_AR_FLAGS
  23704. # A symbol stripping program.
  23705. STRIP=$lt_STRIP
  23706. # Commands used to install an old-style archive.
  23707. RANLIB=$lt_RANLIB
  23708. old_postinstall_cmds=$lt_old_postinstall_cmds
  23709. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23710. # Whether to use a lock for old archive extraction.
  23711. lock_old_archive_extraction=$lock_old_archive_extraction
  23712. # A C compiler.
  23713. LTCC=$lt_CC
  23714. # LTCC compiler flags.
  23715. LTCFLAGS=$lt_CFLAGS
  23716. # Take the output of nm and produce a listing of raw symbols and C names.
  23717. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23718. # Transform the output of nm in a proper C declaration.
  23719. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23720. # Transform the output of nm in a C name address pair.
  23721. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23722. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23723. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23724. # The name of the directory that contains temporary libtool files.
  23725. objdir=$objdir
  23726. # Used to examine libraries when file_magic_cmd begins with "file".
  23727. MAGIC_CMD=$MAGIC_CMD
  23728. # Must we lock files when doing compilation?
  23729. need_locks=$lt_need_locks
  23730. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23731. DSYMUTIL=$lt_DSYMUTIL
  23732. # Tool to change global to local symbols on Mac OS X.
  23733. NMEDIT=$lt_NMEDIT
  23734. # Tool to manipulate fat objects and archives on Mac OS X.
  23735. LIPO=$lt_LIPO
  23736. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23737. OTOOL=$lt_OTOOL
  23738. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23739. OTOOL64=$lt_OTOOL64
  23740. # Old archive suffix (normally "a").
  23741. libext=$libext
  23742. # Shared library suffix (normally ".so").
  23743. shrext_cmds=$lt_shrext_cmds
  23744. # The commands to extract the exported symbol list from a shared archive.
  23745. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23746. # Variables whose values should be saved in libtool wrapper scripts and
  23747. # restored at link time.
  23748. variables_saved_for_relink=$lt_variables_saved_for_relink
  23749. # Do we need the "lib" prefix for modules?
  23750. need_lib_prefix=$need_lib_prefix
  23751. # Do we need a version for libraries?
  23752. need_version=$need_version
  23753. # Library versioning type.
  23754. version_type=$version_type
  23755. # Shared library runtime path variable.
  23756. runpath_var=$runpath_var
  23757. # Shared library path variable.
  23758. shlibpath_var=$shlibpath_var
  23759. # Is shlibpath searched before the hard-coded library search path?
  23760. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23761. # Format of library name prefix.
  23762. libname_spec=$lt_libname_spec
  23763. # List of archive names. First name is the real one, the rest are links.
  23764. # The last name is the one that the linker finds with -lNAME
  23765. library_names_spec=$lt_library_names_spec
  23766. # The coded name of the library, if different from the real name.
  23767. soname_spec=$lt_soname_spec
  23768. # Permission mode override for installation of shared libraries.
  23769. install_override_mode=$lt_install_override_mode
  23770. # Command to use after installation of a shared archive.
  23771. postinstall_cmds=$lt_postinstall_cmds
  23772. # Command to use after uninstallation of a shared archive.
  23773. postuninstall_cmds=$lt_postuninstall_cmds
  23774. # Commands used to finish a libtool library installation in a directory.
  23775. finish_cmds=$lt_finish_cmds
  23776. # As "finish_cmds", except a single script fragment to be evaled but
  23777. # not shown.
  23778. finish_eval=$lt_finish_eval
  23779. # Whether we should hardcode library paths into libraries.
  23780. hardcode_into_libs=$hardcode_into_libs
  23781. # Compile-time system search path for libraries.
  23782. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23783. # Run-time system search path for libraries.
  23784. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23785. # Whether dlopen is supported.
  23786. dlopen_support=$enable_dlopen
  23787. # Whether dlopen of programs is supported.
  23788. dlopen_self=$enable_dlopen_self
  23789. # Whether dlopen of statically linked programs is supported.
  23790. dlopen_self_static=$enable_dlopen_self_static
  23791. # Commands to strip libraries.
  23792. old_striplib=$lt_old_striplib
  23793. striplib=$lt_striplib
  23794. # The linker used to build libraries.
  23795. LD=$lt_LD
  23796. # How to create reloadable object files.
  23797. reload_flag=$lt_reload_flag
  23798. reload_cmds=$lt_reload_cmds
  23799. # Commands used to build an old-style archive.
  23800. old_archive_cmds=$lt_old_archive_cmds
  23801. # A language specific compiler.
  23802. CC=$lt_compiler
  23803. # Is the compiler the GNU compiler?
  23804. with_gcc=$GCC
  23805. # Compiler flag to turn off builtin functions.
  23806. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23807. # How to pass a linker flag through the compiler.
  23808. wl=$lt_lt_prog_compiler_wl
  23809. # Additional compiler flags for building library objects.
  23810. pic_flag=$lt_lt_prog_compiler_pic
  23811. # Compiler flag to prevent dynamic linking.
  23812. link_static_flag=$lt_lt_prog_compiler_static
  23813. # Does compiler simultaneously support -c and -o options?
  23814. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23815. # Whether or not to add -lc for building shared libraries.
  23816. build_libtool_need_lc=$archive_cmds_need_lc
  23817. # Whether or not to disallow shared libs when runtime libs are static.
  23818. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23819. # Compiler flag to allow reflexive dlopens.
  23820. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23821. # Compiler flag to generate shared objects directly from archives.
  23822. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23823. # Whether the compiler copes with passing no objects directly.
  23824. compiler_needs_object=$lt_compiler_needs_object
  23825. # Create an old-style archive from a shared archive.
  23826. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23827. # Create a temporary old-style archive to link instead of a shared archive.
  23828. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23829. # Commands used to build a shared archive.
  23830. archive_cmds=$lt_archive_cmds
  23831. archive_expsym_cmds=$lt_archive_expsym_cmds
  23832. # Commands used to build a loadable module if different from building
  23833. # a shared archive.
  23834. module_cmds=$lt_module_cmds
  23835. module_expsym_cmds=$lt_module_expsym_cmds
  23836. # Whether we are building with GNU ld or not.
  23837. with_gnu_ld=$lt_with_gnu_ld
  23838. # Flag that allows shared libraries with undefined symbols to be built.
  23839. allow_undefined_flag=$lt_allow_undefined_flag
  23840. # Flag that enforces no undefined symbols.
  23841. no_undefined_flag=$lt_no_undefined_flag
  23842. # Flag to hardcode \$libdir into a binary during linking.
  23843. # This must work even if \$libdir does not exist
  23844. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23845. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23846. # during linking. This must work even if \$libdir does not exist.
  23847. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23848. # Whether we need a single "-rpath" flag with a separated argument.
  23849. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23850. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23851. # DIR into the resulting binary.
  23852. hardcode_direct=$hardcode_direct
  23853. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23854. # DIR into the resulting binary and the resulting library dependency is
  23855. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23856. # library is relocated.
  23857. hardcode_direct_absolute=$hardcode_direct_absolute
  23858. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23859. # into the resulting binary.
  23860. hardcode_minus_L=$hardcode_minus_L
  23861. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23862. # into the resulting binary.
  23863. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23864. # Set to "yes" if building a shared library automatically hardcodes DIR
  23865. # into the library and all subsequent libraries and executables linked
  23866. # against it.
  23867. hardcode_automatic=$hardcode_automatic
  23868. # Set to yes if linker adds runtime paths of dependent libraries
  23869. # to runtime path list.
  23870. inherit_rpath=$inherit_rpath
  23871. # Whether libtool must link a program against all its dependency libraries.
  23872. link_all_deplibs=$link_all_deplibs
  23873. # Fix the shell variable \$srcfile for the compiler.
  23874. fix_srcfile_path=$lt_fix_srcfile_path
  23875. # Set to "yes" if exported symbols are required.
  23876. always_export_symbols=$always_export_symbols
  23877. # The commands to list exported symbols.
  23878. export_symbols_cmds=$lt_export_symbols_cmds
  23879. # Symbols that should not be listed in the preloaded symbols.
  23880. exclude_expsyms=$lt_exclude_expsyms
  23881. # Symbols that must always be exported.
  23882. include_expsyms=$lt_include_expsyms
  23883. # Commands necessary for linking programs (against libraries) with templates.
  23884. prelink_cmds=$lt_prelink_cmds
  23885. # Specify filename containing input files.
  23886. file_list_spec=$lt_file_list_spec
  23887. # How to hardcode a shared library path into an executable.
  23888. hardcode_action=$hardcode_action
  23889. # The directories searched by this compiler when creating a shared library.
  23890. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23891. # Dependencies to place before and after the objects being linked to
  23892. # create a shared library.
  23893. predep_objects=$lt_predep_objects
  23894. postdep_objects=$lt_postdep_objects
  23895. predeps=$lt_predeps
  23896. postdeps=$lt_postdeps
  23897. # The library search path used internally by the compiler when linking
  23898. # a shared library.
  23899. compiler_lib_search_path=$lt_compiler_lib_search_path
  23900. # ### END LIBTOOL CONFIG
  23901. _LT_EOF
  23902. case $host_os in
  23903. aix3*)
  23904. cat <<\_LT_EOF >> "$cfgfile"
  23905. # AIX sometimes has problems with the GCC collect2 program. For some
  23906. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23907. # vanish in a puff of smoke.
  23908. if test "X${COLLECT_NAMES+set}" != Xset; then
  23909. COLLECT_NAMES=
  23910. export COLLECT_NAMES
  23911. fi
  23912. _LT_EOF
  23913. ;;
  23914. esac
  23915. ltmain="$ac_aux_dir/ltmain.sh"
  23916. # We use sed instead of cat because bash on DJGPP gets confused if
  23917. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23918. # text mode, it properly converts lines to CR/LF. This bash problem
  23919. # is reportedly fixed, but why not run on old versions too?
  23920. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  23921. || (rm -f "$cfgfile"; exit 1)
  23922. case $xsi_shell in
  23923. yes)
  23924. cat << \_LT_EOF >> "$cfgfile"
  23925. # func_dirname file append nondir_replacement
  23926. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23927. # otherwise set result to NONDIR_REPLACEMENT.
  23928. func_dirname ()
  23929. {
  23930. case ${1} in
  23931. */*) func_dirname_result="${1%/*}${2}" ;;
  23932. * ) func_dirname_result="${3}" ;;
  23933. esac
  23934. }
  23935. # func_basename file
  23936. func_basename ()
  23937. {
  23938. func_basename_result="${1##*/}"
  23939. }
  23940. # func_dirname_and_basename file append nondir_replacement
  23941. # perform func_basename and func_dirname in a single function
  23942. # call:
  23943. # dirname: Compute the dirname of FILE. If nonempty,
  23944. # add APPEND to the result, otherwise set result
  23945. # to NONDIR_REPLACEMENT.
  23946. # value returned in "$func_dirname_result"
  23947. # basename: Compute filename of FILE.
  23948. # value retuned in "$func_basename_result"
  23949. # Implementation must be kept synchronized with func_dirname
  23950. # and func_basename. For efficiency, we do not delegate to
  23951. # those functions but instead duplicate the functionality here.
  23952. func_dirname_and_basename ()
  23953. {
  23954. case ${1} in
  23955. */*) func_dirname_result="${1%/*}${2}" ;;
  23956. * ) func_dirname_result="${3}" ;;
  23957. esac
  23958. func_basename_result="${1##*/}"
  23959. }
  23960. # func_stripname prefix suffix name
  23961. # strip PREFIX and SUFFIX off of NAME.
  23962. # PREFIX and SUFFIX must not contain globbing or regex special
  23963. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23964. # dot (in which case that matches only a dot).
  23965. func_stripname ()
  23966. {
  23967. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  23968. # positional parameters, so assign one to ordinary parameter first.
  23969. func_stripname_result=${3}
  23970. func_stripname_result=${func_stripname_result#"${1}"}
  23971. func_stripname_result=${func_stripname_result%"${2}"}
  23972. }
  23973. # func_opt_split
  23974. func_opt_split ()
  23975. {
  23976. func_opt_split_opt=${1%%=*}
  23977. func_opt_split_arg=${1#*=}
  23978. }
  23979. # func_lo2o object
  23980. func_lo2o ()
  23981. {
  23982. case ${1} in
  23983. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  23984. *) func_lo2o_result=${1} ;;
  23985. esac
  23986. }
  23987. # func_xform libobj-or-source
  23988. func_xform ()
  23989. {
  23990. func_xform_result=${1%.*}.lo
  23991. }
  23992. # func_arith arithmetic-term...
  23993. func_arith ()
  23994. {
  23995. func_arith_result=$(( $* ))
  23996. }
  23997. # func_len string
  23998. # STRING may not start with a hyphen.
  23999. func_len ()
  24000. {
  24001. func_len_result=${#1}
  24002. }
  24003. _LT_EOF
  24004. ;;
  24005. *) # Bourne compatible functions.
  24006. cat << \_LT_EOF >> "$cfgfile"
  24007. # func_dirname file append nondir_replacement
  24008. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24009. # otherwise set result to NONDIR_REPLACEMENT.
  24010. func_dirname ()
  24011. {
  24012. # Extract subdirectory from the argument.
  24013. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  24014. if test "X$func_dirname_result" = "X${1}"; then
  24015. func_dirname_result="${3}"
  24016. else
  24017. func_dirname_result="$func_dirname_result${2}"
  24018. fi
  24019. }
  24020. # func_basename file
  24021. func_basename ()
  24022. {
  24023. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  24024. }
  24025. # func_stripname prefix suffix name
  24026. # strip PREFIX and SUFFIX off of NAME.
  24027. # PREFIX and SUFFIX must not contain globbing or regex special
  24028. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24029. # dot (in which case that matches only a dot).
  24030. # func_strip_suffix prefix name
  24031. func_stripname ()
  24032. {
  24033. case ${2} in
  24034. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  24035. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  24036. esac
  24037. }
  24038. # sed scripts:
  24039. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  24040. my_sed_long_arg='1s/^-[^=]*=//'
  24041. # func_opt_split
  24042. func_opt_split ()
  24043. {
  24044. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  24045. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  24046. }
  24047. # func_lo2o object
  24048. func_lo2o ()
  24049. {
  24050. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  24051. }
  24052. # func_xform libobj-or-source
  24053. func_xform ()
  24054. {
  24055. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  24056. }
  24057. # func_arith arithmetic-term...
  24058. func_arith ()
  24059. {
  24060. func_arith_result=`expr "$@"`
  24061. }
  24062. # func_len string
  24063. # STRING may not start with a hyphen.
  24064. func_len ()
  24065. {
  24066. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  24067. }
  24068. _LT_EOF
  24069. esac
  24070. case $lt_shell_append in
  24071. yes)
  24072. cat << \_LT_EOF >> "$cfgfile"
  24073. # func_append var value
  24074. # Append VALUE to the end of shell variable VAR.
  24075. func_append ()
  24076. {
  24077. eval "$1+=\$2"
  24078. }
  24079. _LT_EOF
  24080. ;;
  24081. *)
  24082. cat << \_LT_EOF >> "$cfgfile"
  24083. # func_append var value
  24084. # Append VALUE to the end of shell variable VAR.
  24085. func_append ()
  24086. {
  24087. eval "$1=\$$1\$2"
  24088. }
  24089. _LT_EOF
  24090. ;;
  24091. esac
  24092. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  24093. || (rm -f "$cfgfile"; exit 1)
  24094. mv -f "$cfgfile" "$ofile" ||
  24095. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24096. chmod +x "$ofile"
  24097. cat <<_LT_EOF >> "$ofile"
  24098. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24099. # The linker used to build libraries.
  24100. LD=$lt_LD_CXX
  24101. # How to create reloadable object files.
  24102. reload_flag=$lt_reload_flag_CXX
  24103. reload_cmds=$lt_reload_cmds_CXX
  24104. # Commands used to build an old-style archive.
  24105. old_archive_cmds=$lt_old_archive_cmds_CXX
  24106. # A language specific compiler.
  24107. CC=$lt_compiler_CXX
  24108. # Is the compiler the GNU compiler?
  24109. with_gcc=$GCC_CXX
  24110. # Compiler flag to turn off builtin functions.
  24111. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24112. # How to pass a linker flag through the compiler.
  24113. wl=$lt_lt_prog_compiler_wl_CXX
  24114. # Additional compiler flags for building library objects.
  24115. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24116. # Compiler flag to prevent dynamic linking.
  24117. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24118. # Does compiler simultaneously support -c and -o options?
  24119. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24120. # Whether or not to add -lc for building shared libraries.
  24121. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24122. # Whether or not to disallow shared libs when runtime libs are static.
  24123. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24124. # Compiler flag to allow reflexive dlopens.
  24125. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24126. # Compiler flag to generate shared objects directly from archives.
  24127. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24128. # Whether the compiler copes with passing no objects directly.
  24129. compiler_needs_object=$lt_compiler_needs_object_CXX
  24130. # Create an old-style archive from a shared archive.
  24131. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24132. # Create a temporary old-style archive to link instead of a shared archive.
  24133. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24134. # Commands used to build a shared archive.
  24135. archive_cmds=$lt_archive_cmds_CXX
  24136. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24137. # Commands used to build a loadable module if different from building
  24138. # a shared archive.
  24139. module_cmds=$lt_module_cmds_CXX
  24140. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24141. # Whether we are building with GNU ld or not.
  24142. with_gnu_ld=$lt_with_gnu_ld_CXX
  24143. # Flag that allows shared libraries with undefined symbols to be built.
  24144. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24145. # Flag that enforces no undefined symbols.
  24146. no_undefined_flag=$lt_no_undefined_flag_CXX
  24147. # Flag to hardcode \$libdir into a binary during linking.
  24148. # This must work even if \$libdir does not exist
  24149. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24150. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24151. # during linking. This must work even if \$libdir does not exist.
  24152. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24153. # Whether we need a single "-rpath" flag with a separated argument.
  24154. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24155. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24156. # DIR into the resulting binary.
  24157. hardcode_direct=$hardcode_direct_CXX
  24158. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24159. # DIR into the resulting binary and the resulting library dependency is
  24160. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24161. # library is relocated.
  24162. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24163. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24164. # into the resulting binary.
  24165. hardcode_minus_L=$hardcode_minus_L_CXX
  24166. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24167. # into the resulting binary.
  24168. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24169. # Set to "yes" if building a shared library automatically hardcodes DIR
  24170. # into the library and all subsequent libraries and executables linked
  24171. # against it.
  24172. hardcode_automatic=$hardcode_automatic_CXX
  24173. # Set to yes if linker adds runtime paths of dependent libraries
  24174. # to runtime path list.
  24175. inherit_rpath=$inherit_rpath_CXX
  24176. # Whether libtool must link a program against all its dependency libraries.
  24177. link_all_deplibs=$link_all_deplibs_CXX
  24178. # Fix the shell variable \$srcfile for the compiler.
  24179. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  24180. # Set to "yes" if exported symbols are required.
  24181. always_export_symbols=$always_export_symbols_CXX
  24182. # The commands to list exported symbols.
  24183. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24184. # Symbols that should not be listed in the preloaded symbols.
  24185. exclude_expsyms=$lt_exclude_expsyms_CXX
  24186. # Symbols that must always be exported.
  24187. include_expsyms=$lt_include_expsyms_CXX
  24188. # Commands necessary for linking programs (against libraries) with templates.
  24189. prelink_cmds=$lt_prelink_cmds_CXX
  24190. # Specify filename containing input files.
  24191. file_list_spec=$lt_file_list_spec_CXX
  24192. # How to hardcode a shared library path into an executable.
  24193. hardcode_action=$hardcode_action_CXX
  24194. # The directories searched by this compiler when creating a shared library.
  24195. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24196. # Dependencies to place before and after the objects being linked to
  24197. # create a shared library.
  24198. predep_objects=$lt_predep_objects_CXX
  24199. postdep_objects=$lt_postdep_objects_CXX
  24200. predeps=$lt_predeps_CXX
  24201. postdeps=$lt_postdeps_CXX
  24202. # The library search path used internally by the compiler when linking
  24203. # a shared library.
  24204. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24205. # ### END LIBTOOL TAG CONFIG: CXX
  24206. _LT_EOF
  24207. cat <<_LT_EOF >> "$ofile"
  24208. # ### BEGIN LIBTOOL TAG CONFIG: GCJ
  24209. # The linker used to build libraries.
  24210. LD=$lt_LD_GCJ
  24211. # How to create reloadable object files.
  24212. reload_flag=$lt_reload_flag_GCJ
  24213. reload_cmds=$lt_reload_cmds_GCJ
  24214. # Commands used to build an old-style archive.
  24215. old_archive_cmds=$lt_old_archive_cmds_GCJ
  24216. # A language specific compiler.
  24217. CC=$lt_compiler_GCJ
  24218. # Is the compiler the GNU compiler?
  24219. with_gcc=$GCC_GCJ
  24220. # Compiler flag to turn off builtin functions.
  24221. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  24222. # How to pass a linker flag through the compiler.
  24223. wl=$lt_lt_prog_compiler_wl_GCJ
  24224. # Additional compiler flags for building library objects.
  24225. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  24226. # Compiler flag to prevent dynamic linking.
  24227. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  24228. # Does compiler simultaneously support -c and -o options?
  24229. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  24230. # Whether or not to add -lc for building shared libraries.
  24231. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  24232. # Whether or not to disallow shared libs when runtime libs are static.
  24233. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  24234. # Compiler flag to allow reflexive dlopens.
  24235. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  24236. # Compiler flag to generate shared objects directly from archives.
  24237. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  24238. # Whether the compiler copes with passing no objects directly.
  24239. compiler_needs_object=$lt_compiler_needs_object_GCJ
  24240. # Create an old-style archive from a shared archive.
  24241. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  24242. # Create a temporary old-style archive to link instead of a shared archive.
  24243. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  24244. # Commands used to build a shared archive.
  24245. archive_cmds=$lt_archive_cmds_GCJ
  24246. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  24247. # Commands used to build a loadable module if different from building
  24248. # a shared archive.
  24249. module_cmds=$lt_module_cmds_GCJ
  24250. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  24251. # Whether we are building with GNU ld or not.
  24252. with_gnu_ld=$lt_with_gnu_ld_GCJ
  24253. # Flag that allows shared libraries with undefined symbols to be built.
  24254. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  24255. # Flag that enforces no undefined symbols.
  24256. no_undefined_flag=$lt_no_undefined_flag_GCJ
  24257. # Flag to hardcode \$libdir into a binary during linking.
  24258. # This must work even if \$libdir does not exist
  24259. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  24260. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24261. # during linking. This must work even if \$libdir does not exist.
  24262. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  24263. # Whether we need a single "-rpath" flag with a separated argument.
  24264. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  24265. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24266. # DIR into the resulting binary.
  24267. hardcode_direct=$hardcode_direct_GCJ
  24268. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24269. # DIR into the resulting binary and the resulting library dependency is
  24270. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24271. # library is relocated.
  24272. hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
  24273. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24274. # into the resulting binary.
  24275. hardcode_minus_L=$hardcode_minus_L_GCJ
  24276. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24277. # into the resulting binary.
  24278. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  24279. # Set to "yes" if building a shared library automatically hardcodes DIR
  24280. # into the library and all subsequent libraries and executables linked
  24281. # against it.
  24282. hardcode_automatic=$hardcode_automatic_GCJ
  24283. # Set to yes if linker adds runtime paths of dependent libraries
  24284. # to runtime path list.
  24285. inherit_rpath=$inherit_rpath_GCJ
  24286. # Whether libtool must link a program against all its dependency libraries.
  24287. link_all_deplibs=$link_all_deplibs_GCJ
  24288. # Fix the shell variable \$srcfile for the compiler.
  24289. fix_srcfile_path=$lt_fix_srcfile_path_GCJ
  24290. # Set to "yes" if exported symbols are required.
  24291. always_export_symbols=$always_export_symbols_GCJ
  24292. # The commands to list exported symbols.
  24293. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  24294. # Symbols that should not be listed in the preloaded symbols.
  24295. exclude_expsyms=$lt_exclude_expsyms_GCJ
  24296. # Symbols that must always be exported.
  24297. include_expsyms=$lt_include_expsyms_GCJ
  24298. # Commands necessary for linking programs (against libraries) with templates.
  24299. prelink_cmds=$lt_prelink_cmds_GCJ
  24300. # Specify filename containing input files.
  24301. file_list_spec=$lt_file_list_spec_GCJ
  24302. # How to hardcode a shared library path into an executable.
  24303. hardcode_action=$hardcode_action_GCJ
  24304. # The directories searched by this compiler when creating a shared library.
  24305. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  24306. # Dependencies to place before and after the objects being linked to
  24307. # create a shared library.
  24308. predep_objects=$lt_predep_objects_GCJ
  24309. postdep_objects=$lt_postdep_objects_GCJ
  24310. predeps=$lt_predeps_GCJ
  24311. postdeps=$lt_postdeps_GCJ
  24312. # The library search path used internally by the compiler when linking
  24313. # a shared library.
  24314. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  24315. # ### END LIBTOOL TAG CONFIG: GCJ
  24316. _LT_EOF
  24317. ;;
  24318. "scripts/jar":F) chmod +x scripts/jar ;;
  24319. esac
  24320. done # for ac_tag
  24321. as_fn_exit 0
  24322. _ACEOF
  24323. ac_clean_files=$ac_clean_files_save
  24324. test $ac_write_fail = 0 ||
  24325. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24326. # configure is writing to config.log, and then calls config.status.
  24327. # config.status does its own redirection, appending to config.log.
  24328. # Unfortunately, on DOS this fails, as config.log is still kept open
  24329. # by configure, so config.status won't be able to write to it; its
  24330. # output is simply discarded. So we exec the FD to /dev/null,
  24331. # effectively closing config.log, so it can be properly (re)opened and
  24332. # appended to by config.status. When coming back to configure, we
  24333. # need to make the FD available again.
  24334. if test "$no_create" != yes; then
  24335. ac_cs_success=:
  24336. ac_config_status_args=
  24337. test "$silent" = yes &&
  24338. ac_config_status_args="$ac_config_status_args --quiet"
  24339. exec 5>/dev/null
  24340. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24341. exec 5>>config.log
  24342. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24343. # would make configure fail if this is the last instruction.
  24344. $ac_cs_success || as_fn_exit $?
  24345. fi
  24346. #
  24347. # CONFIG_SUBDIRS section.
  24348. #
  24349. if test "$no_recursion" != yes; then
  24350. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  24351. # so they do not pile up.
  24352. ac_sub_configure_args=
  24353. ac_prev=
  24354. eval "set x $ac_configure_args"
  24355. shift
  24356. for ac_arg
  24357. do
  24358. if test -n "$ac_prev"; then
  24359. ac_prev=
  24360. continue
  24361. fi
  24362. case $ac_arg in
  24363. -cache-file | --cache-file | --cache-fil | --cache-fi \
  24364. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  24365. ac_prev=cache_file ;;
  24366. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  24367. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  24368. | --c=*)
  24369. ;;
  24370. --config-cache | -C)
  24371. ;;
  24372. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  24373. ac_prev=srcdir ;;
  24374. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  24375. ;;
  24376. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  24377. ac_prev=prefix ;;
  24378. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  24379. ;;
  24380. --disable-option-checking)
  24381. ;;
  24382. *)
  24383. case $ac_arg in
  24384. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24385. esac
  24386. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  24387. esac
  24388. done
  24389. # Always prepend --prefix to ensure using the same prefix
  24390. # in subdir configurations.
  24391. ac_arg="--prefix=$prefix"
  24392. case $ac_arg in
  24393. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24394. esac
  24395. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  24396. # Pass --silent
  24397. if test "$silent" = yes; then
  24398. ac_sub_configure_args="--silent $ac_sub_configure_args"
  24399. fi
  24400. # Always prepend --disable-option-checking to silence warnings, since
  24401. # different subdirs can have different --enable and --with options.
  24402. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  24403. ac_popdir=`pwd`
  24404. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  24405. # Do not complain, so a configure script can configure whichever
  24406. # parts of a large source tree are present.
  24407. test -d "$srcdir/$ac_dir" || continue
  24408. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  24409. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  24410. $as_echo "$ac_msg" >&6
  24411. as_dir="$ac_dir"; as_fn_mkdir_p
  24412. ac_builddir=.
  24413. case "$ac_dir" in
  24414. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24415. *)
  24416. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24417. # A ".." for each directory in $ac_dir_suffix.
  24418. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24419. case $ac_top_builddir_sub in
  24420. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24421. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24422. esac ;;
  24423. esac
  24424. ac_abs_top_builddir=$ac_pwd
  24425. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24426. # for backward compatibility:
  24427. ac_top_builddir=$ac_top_build_prefix
  24428. case $srcdir in
  24429. .) # We are building in place.
  24430. ac_srcdir=.
  24431. ac_top_srcdir=$ac_top_builddir_sub
  24432. ac_abs_top_srcdir=$ac_pwd ;;
  24433. [\\/]* | ?:[\\/]* ) # Absolute name.
  24434. ac_srcdir=$srcdir$ac_dir_suffix;
  24435. ac_top_srcdir=$srcdir
  24436. ac_abs_top_srcdir=$srcdir ;;
  24437. *) # Relative name.
  24438. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24439. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24440. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24441. esac
  24442. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24443. cd "$ac_dir"
  24444. # Check for guested configure; otherwise get Cygnus style configure.
  24445. if test -f "$ac_srcdir/configure.gnu"; then
  24446. ac_sub_configure=$ac_srcdir/configure.gnu
  24447. elif test -f "$ac_srcdir/configure"; then
  24448. ac_sub_configure=$ac_srcdir/configure
  24449. elif test -f "$ac_srcdir/configure.in"; then
  24450. # This should be Cygnus configure.
  24451. ac_sub_configure=$ac_aux_dir/configure
  24452. else
  24453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  24454. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  24455. ac_sub_configure=
  24456. fi
  24457. # The recursion is here.
  24458. if test -n "$ac_sub_configure"; then
  24459. # Make the cache file name correct relative to the subdirectory.
  24460. case $cache_file in
  24461. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  24462. *) # Relative name.
  24463. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  24464. esac
  24465. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  24466. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  24467. # The eval makes quoting arguments work.
  24468. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  24469. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  24470. as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  24471. fi
  24472. cd "$ac_popdir"
  24473. done
  24474. fi
  24475. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24477. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24478. fi