configure 576 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.66.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  221. $0: including any error possibly output before this
  222. $0: message. Then install a modern shell, or manually run
  223. $0: the script under such a shell if you do have one."
  224. fi
  225. exit 1
  226. fi
  227. fi
  228. fi
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. export SHELL
  231. # Unset more variables known to interfere with behavior of common tools.
  232. CLICOLOR_FORCE= GREP_OPTIONS=
  233. unset CLICOLOR_FORCE GREP_OPTIONS
  234. ## --------------------- ##
  235. ## M4sh Shell Functions. ##
  236. ## --------------------- ##
  237. # as_fn_unset VAR
  238. # ---------------
  239. # Portably unset VAR.
  240. as_fn_unset ()
  241. {
  242. { eval $1=; unset $1;}
  243. }
  244. as_unset=as_fn_unset
  245. # as_fn_set_status STATUS
  246. # -----------------------
  247. # Set $? to STATUS, without forking.
  248. as_fn_set_status ()
  249. {
  250. return $1
  251. } # as_fn_set_status
  252. # as_fn_exit STATUS
  253. # -----------------
  254. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  255. as_fn_exit ()
  256. {
  257. set +e
  258. as_fn_set_status $1
  259. exit $1
  260. } # as_fn_exit
  261. # as_fn_mkdir_p
  262. # -------------
  263. # Create "$as_dir" as a directory, including parents if necessary.
  264. as_fn_mkdir_p ()
  265. {
  266. case $as_dir in #(
  267. -*) as_dir=./$as_dir;;
  268. esac
  269. test -d "$as_dir" || eval $as_mkdir_p || {
  270. as_dirs=
  271. while :; do
  272. case $as_dir in #(
  273. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  274. *) as_qdir=$as_dir;;
  275. esac
  276. as_dirs="'$as_qdir' $as_dirs"
  277. as_dir=`$as_dirname -- "$as_dir" ||
  278. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  279. X"$as_dir" : 'X\(//\)[^/]' \| \
  280. X"$as_dir" : 'X\(//\)$' \| \
  281. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  282. $as_echo X"$as_dir" |
  283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)[^/].*/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\).*/{
  296. s//\1/
  297. q
  298. }
  299. s/.*/./; q'`
  300. test -d "$as_dir" && break
  301. done
  302. test -z "$as_dirs" || eval "mkdir $as_dirs"
  303. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  304. } # as_fn_mkdir_p
  305. # as_fn_append VAR VALUE
  306. # ----------------------
  307. # Append the text in VALUE to the end of the definition contained in VAR. Take
  308. # advantage of any shell optimizations that allow amortized linear growth over
  309. # repeated appends, instead of the typical quadratic growth present in naive
  310. # implementations.
  311. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  312. eval 'as_fn_append ()
  313. {
  314. eval $1+=\$2
  315. }'
  316. else
  317. as_fn_append ()
  318. {
  319. eval $1=\$$1\$2
  320. }
  321. fi # as_fn_append
  322. # as_fn_arith ARG...
  323. # ------------------
  324. # Perform arithmetic evaluation on the ARGs, and store the result in the
  325. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  326. # must be portable across $(()) and expr.
  327. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  328. eval 'as_fn_arith ()
  329. {
  330. as_val=$(( $* ))
  331. }'
  332. else
  333. as_fn_arith ()
  334. {
  335. as_val=`expr "$@" || test $? -eq 1`
  336. }
  337. fi # as_fn_arith
  338. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  339. # ----------------------------------------
  340. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  341. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  342. # script with STATUS, using 1 if that was 0.
  343. as_fn_error ()
  344. {
  345. as_status=$1; test $as_status -eq 0 && as_status=1
  346. if test "$4"; then
  347. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  348. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  349. fi
  350. $as_echo "$as_me: error: $2" >&2
  351. as_fn_exit $as_status
  352. } # as_fn_error
  353. if expr a : '\(a\)' >/dev/null 2>&1 &&
  354. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  355. as_expr=expr
  356. else
  357. as_expr=false
  358. fi
  359. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  360. as_basename=basename
  361. else
  362. as_basename=false
  363. fi
  364. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  365. as_dirname=dirname
  366. else
  367. as_dirname=false
  368. fi
  369. as_me=`$as_basename -- "$0" ||
  370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  371. X"$0" : 'X\(//\)$' \| \
  372. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  373. $as_echo X/"$0" |
  374. sed '/^.*\/\([^/][^/]*\)\/*$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\/\)$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\).*/{
  383. s//\1/
  384. q
  385. }
  386. s/.*/./; q'`
  387. # Avoid depending upon Character Ranges.
  388. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  389. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  390. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  391. as_cr_digits='0123456789'
  392. as_cr_alnum=$as_cr_Letters$as_cr_digits
  393. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  394. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  395. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  396. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  397. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  398. sed -n '
  399. p
  400. /[$]LINENO/=
  401. ' <$as_myself |
  402. sed '
  403. s/[$]LINENO.*/&-/
  404. t lineno
  405. b
  406. :lineno
  407. N
  408. :loop
  409. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  410. t loop
  411. s/-\n.*//
  412. ' >$as_me.lineno &&
  413. chmod +x "$as_me.lineno" ||
  414. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  415. # Don't try to exec as it changes $[0], causing all sort of problems
  416. # (the dirname of $[0] is not the place where we might find the
  417. # original and so on. Autoconf is especially sensitive to this).
  418. . "./$as_me.lineno"
  419. # Exit status is that of the last command.
  420. exit
  421. }
  422. ECHO_C= ECHO_N= ECHO_T=
  423. case `echo -n x` in #(((((
  424. -n*)
  425. case `echo 'xy\c'` in
  426. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  427. xy) ECHO_C='\c';;
  428. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  429. ECHO_T=' ';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. rm -f conf$$ conf$$.exe conf$$.file
  435. if test -d conf$$.dir; then
  436. rm -f conf$$.dir/conf$$.file
  437. else
  438. rm -f conf$$.dir
  439. mkdir conf$$.dir 2>/dev/null
  440. fi
  441. if (echo >conf$$.file) 2>/dev/null; then
  442. if ln -s conf$$.file conf$$ 2>/dev/null; then
  443. as_ln_s='ln -s'
  444. # ... but there are two gotchas:
  445. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  446. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  447. # In both cases, we have to default to `cp -p'.
  448. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  449. as_ln_s='cp -p'
  450. elif ln conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s=ln
  452. else
  453. as_ln_s='cp -p'
  454. fi
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  459. rmdir conf$$.dir 2>/dev/null
  460. if mkdir -p . 2>/dev/null; then
  461. as_mkdir_p='mkdir -p "$as_dir"'
  462. else
  463. test -d ./-p && rmdir ./-p
  464. as_mkdir_p=false
  465. fi
  466. if test -x / >/dev/null 2>&1; then
  467. as_test_x='test -x'
  468. else
  469. if ls -dL / >/dev/null 2>&1; then
  470. as_ls_L_option=L
  471. else
  472. as_ls_L_option=
  473. fi
  474. as_test_x='
  475. eval sh -c '\''
  476. if test -d "$1"; then
  477. test -d "$1/.";
  478. else
  479. case $1 in #(
  480. -*)set "./$1";;
  481. esac;
  482. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  483. ???[sx]*):;;*)false;;esac;fi
  484. '\'' sh
  485. '
  486. fi
  487. as_executable_p=$as_test_x
  488. # Sed expression to map a string onto a valid CPP name.
  489. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  490. # Sed expression to map a string onto a valid variable name.
  491. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME=
  512. PACKAGE_TARNAME=
  513. PACKAGE_VERSION=
  514. PACKAGE_STRING=
  515. PACKAGE_BUGREPORT=
  516. PACKAGE_URL=
  517. ac_unique_file="configure.in"
  518. # Factoring default headers for most tests.
  519. ac_includes_default="\
  520. #include <stdio.h>
  521. #ifdef HAVE_SYS_TYPES_H
  522. # include <sys/types.h>
  523. #endif
  524. #ifdef HAVE_SYS_STAT_H
  525. # include <sys/stat.h>
  526. #endif
  527. #ifdef STDC_HEADERS
  528. # include <stdlib.h>
  529. # include <stddef.h>
  530. #else
  531. # ifdef HAVE_STDLIB_H
  532. # include <stdlib.h>
  533. # endif
  534. #endif
  535. #ifdef HAVE_STRING_H
  536. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  537. # include <memory.h>
  538. # endif
  539. # include <string.h>
  540. #endif
  541. #ifdef HAVE_STRINGS_H
  542. # include <strings.h>
  543. #endif
  544. #ifdef HAVE_INTTYPES_H
  545. # include <inttypes.h>
  546. #endif
  547. #ifdef HAVE_STDINT_H
  548. # include <stdint.h>
  549. #endif
  550. #ifdef HAVE_UNISTD_H
  551. # include <unistd.h>
  552. #endif"
  553. ac_subst_vars='am__EXEEXT_FALSE
  554. am__EXEEXT_TRUE
  555. LTLIBOBJS
  556. LIBOBJS
  557. PACKAGE_MENU_DIR
  558. NO_PREFIX_PACKAGE_MENU_DIR
  559. PACKAGE_HELP_DIR
  560. NO_PREFIX_PACKAGE_HELP_DIR
  561. PACKAGE_PIXMAPS_DIR
  562. NO_PREFIX_PACKAGE_PIXMAPS_DIR
  563. PACKAGE_DOC_DIR
  564. NO_PREFIX_PACKAGE_DOC_DIR
  565. PACKAGE_DATA_DIR
  566. NO_PREFIX_PACKAGE_DATA_DIR
  567. LIBRARIES_LIBS
  568. LIBRARIES_CFLAGS
  569. PKG_CONFIG_LIBDIR
  570. PKG_CONFIG_PATH
  571. PKG_CONFIG
  572. CXXCPP
  573. OTOOL64
  574. OTOOL
  575. LIPO
  576. NMEDIT
  577. DSYMUTIL
  578. RANLIB
  579. AR
  580. OBJDUMP
  581. LN_S
  582. NM
  583. ac_ct_DUMPBIN
  584. DUMPBIN
  585. LD
  586. FGREP
  587. SED
  588. host_os
  589. host_vendor
  590. host_cpu
  591. host
  592. build_os
  593. build_vendor
  594. build_cpu
  595. build
  596. LIBTOOL
  597. MKINSTALLDIRS
  598. POSUB
  599. POFILES
  600. PO_IN_DATADIR_FALSE
  601. PO_IN_DATADIR_TRUE
  602. INTLLIBS
  603. INSTOBJEXT
  604. GMOFILES
  605. DATADIRNAME
  606. CATOBJEXT
  607. CATALOGS
  608. XGETTEXT
  609. GMSGFMT
  610. MSGFMT_OPTS
  611. MSGFMT
  612. USE_NLS
  613. GETTEXT_PACKAGE
  614. am__fastdepCXX_FALSE
  615. am__fastdepCXX_TRUE
  616. CXXDEPMODE
  617. ac_ct_CXX
  618. CXXFLAGS
  619. CXX
  620. EGREP
  621. GREP
  622. CPP
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. AMDEPBACKSLASH
  627. AMDEP_FALSE
  628. AMDEP_TRUE
  629. am__quote
  630. am__include
  631. DEPDIR
  632. OBJEXT
  633. EXEEXT
  634. ac_ct_CC
  635. CPPFLAGS
  636. LDFLAGS
  637. CFLAGS
  638. CC
  639. MAINT
  640. MAINTAINER_MODE_FALSE
  641. MAINTAINER_MODE_TRUE
  642. am__untar
  643. am__tar
  644. AMTAR
  645. am__leading_dot
  646. SET_MAKE
  647. AWK
  648. mkdir_p
  649. MKDIR_P
  650. INSTALL_STRIP_PROGRAM
  651. STRIP
  652. install_sh
  653. MAKEINFO
  654. AUTOHEADER
  655. AUTOMAKE
  656. AUTOCONF
  657. ACLOCAL
  658. VERSION
  659. PACKAGE
  660. CYGPATH_W
  661. am__isrc
  662. INSTALL_DATA
  663. INSTALL_SCRIPT
  664. INSTALL_PROGRAM
  665. target_alias
  666. host_alias
  667. build_alias
  668. LIBS
  669. ECHO_T
  670. ECHO_N
  671. ECHO_C
  672. DEFS
  673. mandir
  674. localedir
  675. libdir
  676. psdir
  677. pdfdir
  678. dvidir
  679. htmldir
  680. infodir
  681. docdir
  682. oldincludedir
  683. includedir
  684. localstatedir
  685. sharedstatedir
  686. sysconfdir
  687. datadir
  688. datarootdir
  689. libexecdir
  690. sbindir
  691. bindir
  692. program_transform_name
  693. prefix
  694. exec_prefix
  695. PACKAGE_URL
  696. PACKAGE_BUGREPORT
  697. PACKAGE_STRING
  698. PACKAGE_VERSION
  699. PACKAGE_TARNAME
  700. PACKAGE_NAME
  701. PATH_SEPARATOR
  702. SHELL'
  703. ac_subst_files=''
  704. ac_user_opts='
  705. enable_option_checking
  706. enable_maintainer_mode
  707. enable_dependency_tracking
  708. enable_shared
  709. enable_static
  710. with_pic
  711. enable_fast_install
  712. with_gnu_ld
  713. enable_libtool_lock
  714. with_user_directory
  715. with_saves_directory
  716. with_profile_directory
  717. with_ini_file
  718. with_ini_file_global_dir
  719. '
  720. ac_precious_vars='build_alias
  721. host_alias
  722. target_alias
  723. CC
  724. CFLAGS
  725. LDFLAGS
  726. LIBS
  727. CPPFLAGS
  728. CPP
  729. CXX
  730. CXXFLAGS
  731. CCC
  732. CXXCPP
  733. PKG_CONFIG
  734. PKG_CONFIG_PATH
  735. PKG_CONFIG_LIBDIR
  736. LIBRARIES_CFLAGS
  737. LIBRARIES_LIBS'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *) ac_optarg=yes ;;
  797. esac
  798. # Accept the important Cygnus configure options, so we can diagnose typos.
  799. case $ac_dashdash$ac_option in
  800. --)
  801. ac_dashdash=yes ;;
  802. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  803. ac_prev=bindir ;;
  804. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  805. bindir=$ac_optarg ;;
  806. -build | --build | --buil | --bui | --bu)
  807. ac_prev=build_alias ;;
  808. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  809. build_alias=$ac_optarg ;;
  810. -cache-file | --cache-file | --cache-fil | --cache-fi \
  811. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  812. ac_prev=cache_file ;;
  813. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  814. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  815. cache_file=$ac_optarg ;;
  816. --config-cache | -C)
  817. cache_file=config.cache ;;
  818. -datadir | --datadir | --datadi | --datad)
  819. ac_prev=datadir ;;
  820. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  821. datadir=$ac_optarg ;;
  822. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  823. | --dataroo | --dataro | --datar)
  824. ac_prev=datarootdir ;;
  825. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  826. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  827. datarootdir=$ac_optarg ;;
  828. -disable-* | --disable-*)
  829. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  832. as_fn_error $? "invalid feature name: $ac_useropt"
  833. ac_useropt_orig=$ac_useropt
  834. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  835. case $ac_user_opts in
  836. *"
  837. "enable_$ac_useropt"
  838. "*) ;;
  839. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  840. ac_unrecognized_sep=', ';;
  841. esac
  842. eval enable_$ac_useropt=no ;;
  843. -docdir | --docdir | --docdi | --doc | --do)
  844. ac_prev=docdir ;;
  845. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  846. docdir=$ac_optarg ;;
  847. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  848. ac_prev=dvidir ;;
  849. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  850. dvidir=$ac_optarg ;;
  851. -enable-* | --enable-*)
  852. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  855. as_fn_error $? "invalid feature name: $ac_useropt"
  856. ac_useropt_orig=$ac_useropt
  857. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  858. case $ac_user_opts in
  859. *"
  860. "enable_$ac_useropt"
  861. "*) ;;
  862. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  863. ac_unrecognized_sep=', ';;
  864. esac
  865. eval enable_$ac_useropt=\$ac_optarg ;;
  866. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  867. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  868. | --exec | --exe | --ex)
  869. ac_prev=exec_prefix ;;
  870. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  871. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  872. | --exec=* | --exe=* | --ex=*)
  873. exec_prefix=$ac_optarg ;;
  874. -gas | --gas | --ga | --g)
  875. # Obsolete; use --with-gas.
  876. with_gas=yes ;;
  877. -help | --help | --hel | --he | -h)
  878. ac_init_help=long ;;
  879. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  880. ac_init_help=recursive ;;
  881. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  882. ac_init_help=short ;;
  883. -host | --host | --hos | --ho)
  884. ac_prev=host_alias ;;
  885. -host=* | --host=* | --hos=* | --ho=*)
  886. host_alias=$ac_optarg ;;
  887. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  888. ac_prev=htmldir ;;
  889. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  890. | --ht=*)
  891. htmldir=$ac_optarg ;;
  892. -includedir | --includedir | --includedi | --included | --include \
  893. | --includ | --inclu | --incl | --inc)
  894. ac_prev=includedir ;;
  895. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  896. | --includ=* | --inclu=* | --incl=* | --inc=*)
  897. includedir=$ac_optarg ;;
  898. -infodir | --infodir | --infodi | --infod | --info | --inf)
  899. ac_prev=infodir ;;
  900. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  901. infodir=$ac_optarg ;;
  902. -libdir | --libdir | --libdi | --libd)
  903. ac_prev=libdir ;;
  904. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  905. libdir=$ac_optarg ;;
  906. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  907. | --libexe | --libex | --libe)
  908. ac_prev=libexecdir ;;
  909. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  910. | --libexe=* | --libex=* | --libe=*)
  911. libexecdir=$ac_optarg ;;
  912. -localedir | --localedir | --localedi | --localed | --locale)
  913. ac_prev=localedir ;;
  914. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  915. localedir=$ac_optarg ;;
  916. -localstatedir | --localstatedir | --localstatedi | --localstated \
  917. | --localstate | --localstat | --localsta | --localst | --locals)
  918. ac_prev=localstatedir ;;
  919. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  920. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  921. localstatedir=$ac_optarg ;;
  922. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  923. ac_prev=mandir ;;
  924. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  925. mandir=$ac_optarg ;;
  926. -nfp | --nfp | --nf)
  927. # Obsolete; use --without-fp.
  928. with_fp=no ;;
  929. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  930. | --no-cr | --no-c | -n)
  931. no_create=yes ;;
  932. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  933. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  934. no_recursion=yes ;;
  935. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  936. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  937. | --oldin | --oldi | --old | --ol | --o)
  938. ac_prev=oldincludedir ;;
  939. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  940. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  941. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  942. oldincludedir=$ac_optarg ;;
  943. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  944. ac_prev=prefix ;;
  945. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  946. prefix=$ac_optarg ;;
  947. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  948. | --program-pre | --program-pr | --program-p)
  949. ac_prev=program_prefix ;;
  950. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  951. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  952. program_prefix=$ac_optarg ;;
  953. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  954. | --program-suf | --program-su | --program-s)
  955. ac_prev=program_suffix ;;
  956. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  957. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  958. program_suffix=$ac_optarg ;;
  959. -program-transform-name | --program-transform-name \
  960. | --program-transform-nam | --program-transform-na \
  961. | --program-transform-n | --program-transform- \
  962. | --program-transform | --program-transfor \
  963. | --program-transfo | --program-transf \
  964. | --program-trans | --program-tran \
  965. | --progr-tra | --program-tr | --program-t)
  966. ac_prev=program_transform_name ;;
  967. -program-transform-name=* | --program-transform-name=* \
  968. | --program-transform-nam=* | --program-transform-na=* \
  969. | --program-transform-n=* | --program-transform-=* \
  970. | --program-transform=* | --program-transfor=* \
  971. | --program-transfo=* | --program-transf=* \
  972. | --program-trans=* | --program-tran=* \
  973. | --progr-tra=* | --program-tr=* | --program-t=*)
  974. program_transform_name=$ac_optarg ;;
  975. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  976. ac_prev=pdfdir ;;
  977. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  978. pdfdir=$ac_optarg ;;
  979. -psdir | --psdir | --psdi | --psd | --ps)
  980. ac_prev=psdir ;;
  981. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  982. psdir=$ac_optarg ;;
  983. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  984. | -silent | --silent | --silen | --sile | --sil)
  985. silent=yes ;;
  986. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  987. ac_prev=sbindir ;;
  988. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  989. | --sbi=* | --sb=*)
  990. sbindir=$ac_optarg ;;
  991. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  992. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  993. | --sharedst | --shareds | --shared | --share | --shar \
  994. | --sha | --sh)
  995. ac_prev=sharedstatedir ;;
  996. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  997. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  998. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  999. | --sha=* | --sh=*)
  1000. sharedstatedir=$ac_optarg ;;
  1001. -site | --site | --sit)
  1002. ac_prev=site ;;
  1003. -site=* | --site=* | --sit=*)
  1004. site=$ac_optarg ;;
  1005. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1006. ac_prev=srcdir ;;
  1007. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1008. srcdir=$ac_optarg ;;
  1009. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1010. | --syscon | --sysco | --sysc | --sys | --sy)
  1011. ac_prev=sysconfdir ;;
  1012. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1013. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1014. sysconfdir=$ac_optarg ;;
  1015. -target | --target | --targe | --targ | --tar | --ta | --t)
  1016. ac_prev=target_alias ;;
  1017. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1018. target_alias=$ac_optarg ;;
  1019. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1020. verbose=yes ;;
  1021. -version | --version | --versio | --versi | --vers | -V)
  1022. ac_init_version=: ;;
  1023. -with-* | --with-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error $? "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=\$ac_optarg ;;
  1038. -without-* | --without-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=no ;;
  1053. --x)
  1054. # Obsolete; use --with-x.
  1055. with_x=yes ;;
  1056. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1057. | --x-incl | --x-inc | --x-in | --x-i)
  1058. ac_prev=x_includes ;;
  1059. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1060. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1061. x_includes=$ac_optarg ;;
  1062. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1063. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1064. ac_prev=x_libraries ;;
  1065. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1066. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1067. x_libraries=$ac_optarg ;;
  1068. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1069. Try \`$0 --help' for more information"
  1070. ;;
  1071. *=*)
  1072. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1073. # Reject names that are not valid shell variable names.
  1074. case $ac_envvar in #(
  1075. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1076. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1077. esac
  1078. eval $ac_envvar=\$ac_optarg
  1079. export $ac_envvar ;;
  1080. *)
  1081. # FIXME: should be removed in autoconf 3.0.
  1082. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1083. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1084. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1085. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1086. ;;
  1087. esac
  1088. done
  1089. if test -n "$ac_prev"; then
  1090. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1091. as_fn_error $? "missing argument to $ac_option"
  1092. fi
  1093. if test -n "$ac_unrecognized_opts"; then
  1094. case $enable_option_checking in
  1095. no) ;;
  1096. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1097. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1098. esac
  1099. fi
  1100. # Check all directory arguments for consistency.
  1101. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1102. datadir sysconfdir sharedstatedir localstatedir includedir \
  1103. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1104. libdir localedir mandir
  1105. do
  1106. eval ac_val=\$$ac_var
  1107. # Remove trailing slashes.
  1108. case $ac_val in
  1109. */ )
  1110. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1111. eval $ac_var=\$ac_val;;
  1112. esac
  1113. # Be sure to have absolute directory names.
  1114. case $ac_val in
  1115. [\\/$]* | ?:[\\/]* ) continue;;
  1116. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1117. esac
  1118. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1119. done
  1120. # There might be people who depend on the old broken behavior: `$host'
  1121. # used to hold the argument of --host etc.
  1122. # FIXME: To remove some day.
  1123. build=$build_alias
  1124. host=$host_alias
  1125. target=$target_alias
  1126. # FIXME: To remove some day.
  1127. if test "x$host_alias" != x; then
  1128. if test "x$build_alias" = x; then
  1129. cross_compiling=maybe
  1130. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1131. If a cross compiler is detected then cross compile mode will be used" >&2
  1132. elif test "x$build_alias" != "x$host_alias"; then
  1133. cross_compiling=yes
  1134. fi
  1135. fi
  1136. ac_tool_prefix=
  1137. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1138. test "$silent" = yes && exec 6>/dev/null
  1139. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1140. ac_ls_di=`ls -di .` &&
  1141. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1142. as_fn_error $? "working directory cannot be determined"
  1143. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1144. as_fn_error $? "pwd does not report name of working directory"
  1145. # Find the source files, if location was not specified.
  1146. if test -z "$srcdir"; then
  1147. ac_srcdir_defaulted=yes
  1148. # Try the directory containing this script, then the parent directory.
  1149. ac_confdir=`$as_dirname -- "$as_myself" ||
  1150. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1151. X"$as_myself" : 'X\(//\)[^/]' \| \
  1152. X"$as_myself" : 'X\(//\)$' \| \
  1153. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1154. $as_echo X"$as_myself" |
  1155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)[^/].*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\/\)$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\).*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. s/.*/./; q'`
  1172. srcdir=$ac_confdir
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. srcdir=..
  1175. fi
  1176. else
  1177. ac_srcdir_defaulted=no
  1178. fi
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1181. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1182. fi
  1183. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1184. ac_abs_confdir=`(
  1185. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1186. pwd)`
  1187. # When building in place, set srcdir=.
  1188. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1189. srcdir=.
  1190. fi
  1191. # Remove unnecessary trailing slashes from srcdir.
  1192. # Double slashes in file names in object file debugging info
  1193. # mess up M-x gdb in Emacs.
  1194. case $srcdir in
  1195. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1196. esac
  1197. for ac_var in $ac_precious_vars; do
  1198. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_env_${ac_var}_value=\$${ac_var}
  1200. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1201. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1202. done
  1203. #
  1204. # Report the --help message.
  1205. #
  1206. if test "$ac_init_help" = "long"; then
  1207. # Omit some internal or obsolete options to make the list less imposing.
  1208. # This message is too long to be a string in the A/UX 3.1 sh.
  1209. cat <<_ACEOF
  1210. \`configure' configures this package to adapt to many kinds of systems.
  1211. Usage: $0 [OPTION]... [VAR=VALUE]...
  1212. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1213. VAR=VALUE. See below for descriptions of some of the useful variables.
  1214. Defaults for the options are specified in brackets.
  1215. Configuration:
  1216. -h, --help display this help and exit
  1217. --help=short display options specific to this package
  1218. --help=recursive display the short help of all the included packages
  1219. -V, --version display version information and exit
  1220. -q, --quiet, --silent do not print \`checking ...' messages
  1221. --cache-file=FILE cache test results in FILE [disabled]
  1222. -C, --config-cache alias for \`--cache-file=config.cache'
  1223. -n, --no-create do not create output files
  1224. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1225. Installation directories:
  1226. --prefix=PREFIX install architecture-independent files in PREFIX
  1227. [$ac_default_prefix]
  1228. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1229. [PREFIX]
  1230. By default, \`make install' will install all the files in
  1231. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1232. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1233. for instance \`--prefix=\$HOME'.
  1234. For better control, use the options below.
  1235. Fine tuning of the installation directories:
  1236. --bindir=DIR user executables [EPREFIX/bin]
  1237. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1238. --libexecdir=DIR program executables [EPREFIX/libexec]
  1239. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1240. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1241. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1242. --libdir=DIR object code libraries [EPREFIX/lib]
  1243. --includedir=DIR C header files [PREFIX/include]
  1244. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1245. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1246. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1247. --infodir=DIR info documentation [DATAROOTDIR/info]
  1248. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1249. --mandir=DIR man documentation [DATAROOTDIR/man]
  1250. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1251. --htmldir=DIR html documentation [DOCDIR]
  1252. --dvidir=DIR dvi documentation [DOCDIR]
  1253. --pdfdir=DIR pdf documentation [DOCDIR]
  1254. --psdir=DIR ps documentation [DOCDIR]
  1255. _ACEOF
  1256. cat <<\_ACEOF
  1257. Program names:
  1258. --program-prefix=PREFIX prepend PREFIX to installed program names
  1259. --program-suffix=SUFFIX append SUFFIX to installed program names
  1260. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1261. System types:
  1262. --build=BUILD configure for building on BUILD [guessed]
  1263. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1264. _ACEOF
  1265. fi
  1266. if test -n "$ac_init_help"; then
  1267. cat <<\_ACEOF
  1268. Optional Features:
  1269. --disable-option-checking ignore unrecognized --enable/--with options
  1270. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1271. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1272. --enable-maintainer-mode enable make rules and dependencies not useful
  1273. (and sometimes confusing) to the casual installer
  1274. --disable-dependency-tracking speeds up one-time build
  1275. --enable-dependency-tracking do not reject slow dependency extractors
  1276. --enable-shared[=PKGS] build shared libraries [default=yes]
  1277. --enable-static[=PKGS] build static libraries [default=yes]
  1278. --enable-fast-install[=PKGS]
  1279. optimize for fast installation [default=yes]
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. Optional Packages:
  1282. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1283. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1284. --with-pic try to use only PIC/non-PIC objects [default=use
  1285. both]
  1286. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1287. --with-user-directory=DIR
  1288. User directory location (default is ~/.berusky2)
  1289. --with-saves-directory=DIR
  1290. Game saves dir (default is ~/.berusky2/Save)
  1291. --with-profile-directory=DIR
  1292. User profiles dir (default is
  1293. ~/.berusky2/Save/profiles)
  1294. --with-ini-file=NAME Define ini file name (default is berusky3d.ini)
  1295. --with-ini-file-global-dir=DIR
  1296. Location of global ini file (default is
  1297. /var/games/berusky2)
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. CPP C preprocessor
  1307. CXX C++ compiler command
  1308. CXXFLAGS C++ compiler flags
  1309. CXXCPP C++ preprocessor
  1310. PKG_CONFIG path to pkg-config utility
  1311. PKG_CONFIG_PATH
  1312. directories to add to pkg-config's search path
  1313. PKG_CONFIG_LIBDIR
  1314. path overriding pkg-config's built-in search path
  1315. LIBRARIES_CFLAGS
  1316. C compiler flags for LIBRARIES, overriding pkg-config
  1317. LIBRARIES_LIBS
  1318. linker flags for LIBRARIES, overriding pkg-config
  1319. Use these variables to override the choices made by `configure' or to help
  1320. it to find libraries and programs with nonstandard names/locations.
  1321. Report bugs to the package provider.
  1322. _ACEOF
  1323. ac_status=$?
  1324. fi
  1325. if test "$ac_init_help" = "recursive"; then
  1326. # If there are subdirs, report their specific --help.
  1327. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1328. test -d "$ac_dir" ||
  1329. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1330. continue
  1331. ac_builddir=.
  1332. case "$ac_dir" in
  1333. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1334. *)
  1335. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1336. # A ".." for each directory in $ac_dir_suffix.
  1337. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1338. case $ac_top_builddir_sub in
  1339. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1340. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1341. esac ;;
  1342. esac
  1343. ac_abs_top_builddir=$ac_pwd
  1344. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1345. # for backward compatibility:
  1346. ac_top_builddir=$ac_top_build_prefix
  1347. case $srcdir in
  1348. .) # We are building in place.
  1349. ac_srcdir=.
  1350. ac_top_srcdir=$ac_top_builddir_sub
  1351. ac_abs_top_srcdir=$ac_pwd ;;
  1352. [\\/]* | ?:[\\/]* ) # Absolute name.
  1353. ac_srcdir=$srcdir$ac_dir_suffix;
  1354. ac_top_srcdir=$srcdir
  1355. ac_abs_top_srcdir=$srcdir ;;
  1356. *) # Relative name.
  1357. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1358. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1359. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1360. esac
  1361. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1362. cd "$ac_dir" || { ac_status=$?; continue; }
  1363. # Check for guested configure.
  1364. if test -f "$ac_srcdir/configure.gnu"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1367. elif test -f "$ac_srcdir/configure"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure" --help=recursive
  1370. else
  1371. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1372. fi || ac_status=$?
  1373. cd "$ac_pwd" || { ac_status=$?; break; }
  1374. done
  1375. fi
  1376. test -n "$ac_init_help" && exit $ac_status
  1377. if $ac_init_version; then
  1378. cat <<\_ACEOF
  1379. configure
  1380. generated by GNU Autoconf 2.66
  1381. Copyright (C) 2010 Free Software Foundation, Inc.
  1382. This configure script is free software; the Free Software Foundation
  1383. gives unlimited permission to copy, distribute and modify it.
  1384. _ACEOF
  1385. exit
  1386. fi
  1387. ## ------------------------ ##
  1388. ## Autoconf initialization. ##
  1389. ## ------------------------ ##
  1390. # ac_fn_c_try_compile LINENO
  1391. # --------------------------
  1392. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1393. ac_fn_c_try_compile ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext
  1397. if { { ac_try="$ac_compile"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_compile") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest.$ac_objext; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1423. as_fn_set_status $ac_retval
  1424. } # ac_fn_c_try_compile
  1425. # ac_fn_c_try_link LINENO
  1426. # -----------------------
  1427. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_link ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. rm -f conftest.$ac_objext conftest$ac_exeext
  1432. if { { ac_try="$ac_link"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_link") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest$ac_exeext && {
  1451. test "$cross_compiling" = yes ||
  1452. $as_test_x conftest$ac_exeext
  1453. }; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1461. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1462. # interfere with the next link command; also delete a directory that is
  1463. # left behind by Apple's compiler. We do this before executing the actions.
  1464. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1465. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_link
  1468. # ac_fn_c_try_cpp LINENO
  1469. # ----------------------
  1470. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1471. ac_fn_c_try_cpp ()
  1472. {
  1473. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1474. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1475. case "(($ac_try" in
  1476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1477. *) ac_try_echo=$ac_try;;
  1478. esac
  1479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1480. $as_echo "$ac_try_echo"; } >&5
  1481. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1482. ac_status=$?
  1483. if test -s conftest.err; then
  1484. grep -v '^ *+' conftest.err >conftest.er1
  1485. cat conftest.er1 >&5
  1486. mv -f conftest.er1 conftest.err
  1487. fi
  1488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1489. test $ac_status = 0; } >/dev/null && {
  1490. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1491. test ! -s conftest.err
  1492. }; then :
  1493. ac_retval=0
  1494. else
  1495. $as_echo "$as_me: failed program was:" >&5
  1496. sed 's/^/| /' conftest.$ac_ext >&5
  1497. ac_retval=1
  1498. fi
  1499. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1500. as_fn_set_status $ac_retval
  1501. } # ac_fn_c_try_cpp
  1502. # ac_fn_c_try_run LINENO
  1503. # ----------------------
  1504. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1505. # that executables *can* be run.
  1506. ac_fn_c_try_run ()
  1507. {
  1508. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1509. if { { ac_try="$ac_link"
  1510. case "(($ac_try" in
  1511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1512. *) ac_try_echo=$ac_try;;
  1513. esac
  1514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1515. $as_echo "$ac_try_echo"; } >&5
  1516. (eval "$ac_link") 2>&5
  1517. ac_status=$?
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1520. { { case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_try") 2>&5
  1527. ac_status=$?
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; }; }; then :
  1530. ac_retval=0
  1531. else
  1532. $as_echo "$as_me: program exited with status $ac_status" >&5
  1533. $as_echo "$as_me: failed program was:" >&5
  1534. sed 's/^/| /' conftest.$ac_ext >&5
  1535. ac_retval=$ac_status
  1536. fi
  1537. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1538. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1539. as_fn_set_status $ac_retval
  1540. } # ac_fn_c_try_run
  1541. # ac_fn_cxx_try_compile LINENO
  1542. # ----------------------------
  1543. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1544. ac_fn_cxx_try_compile ()
  1545. {
  1546. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1547. rm -f conftest.$ac_objext
  1548. if { { ac_try="$ac_compile"
  1549. case "(($ac_try" in
  1550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1551. *) ac_try_echo=$ac_try;;
  1552. esac
  1553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1554. $as_echo "$ac_try_echo"; } >&5
  1555. (eval "$ac_compile") 2>conftest.err
  1556. ac_status=$?
  1557. if test -s conftest.err; then
  1558. grep -v '^ *+' conftest.err >conftest.er1
  1559. cat conftest.er1 >&5
  1560. mv -f conftest.er1 conftest.err
  1561. fi
  1562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; } && {
  1564. test -z "$ac_cxx_werror_flag" ||
  1565. test ! -s conftest.err
  1566. } && test -s conftest.$ac_objext; then :
  1567. ac_retval=0
  1568. else
  1569. $as_echo "$as_me: failed program was:" >&5
  1570. sed 's/^/| /' conftest.$ac_ext >&5
  1571. ac_retval=1
  1572. fi
  1573. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1574. as_fn_set_status $ac_retval
  1575. } # ac_fn_cxx_try_compile
  1576. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1577. # -------------------------------------------------------
  1578. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1579. # the include files in INCLUDES and setting the cache variable VAR
  1580. # accordingly.
  1581. ac_fn_c_check_header_mongrel ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. if eval "test \"\${$3+set}\"" = set; then :
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1586. $as_echo_n "checking for $2... " >&6; }
  1587. if eval "test \"\${$3+set}\"" = set; then :
  1588. $as_echo_n "(cached) " >&6
  1589. fi
  1590. eval ac_res=\$$3
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1592. $as_echo "$ac_res" >&6; }
  1593. else
  1594. # Is the header compilable?
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1596. $as_echo_n "checking $2 usability... " >&6; }
  1597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1598. /* end confdefs.h. */
  1599. $4
  1600. #include <$2>
  1601. _ACEOF
  1602. if ac_fn_c_try_compile "$LINENO"; then :
  1603. ac_header_compiler=yes
  1604. else
  1605. ac_header_compiler=no
  1606. fi
  1607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1609. $as_echo "$ac_header_compiler" >&6; }
  1610. # Is the header present?
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1612. $as_echo_n "checking $2 presence... " >&6; }
  1613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end confdefs.h. */
  1615. #include <$2>
  1616. _ACEOF
  1617. if ac_fn_c_try_cpp "$LINENO"; then :
  1618. ac_header_preproc=yes
  1619. else
  1620. ac_header_preproc=no
  1621. fi
  1622. rm -f conftest.err conftest.$ac_ext
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1624. $as_echo "$ac_header_preproc" >&6; }
  1625. # So? What about this header?
  1626. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1627. yes:no: )
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1629. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1631. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1632. ;;
  1633. no:yes:* )
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1635. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1637. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1639. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1641. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1643. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1644. ;;
  1645. esac
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1647. $as_echo_n "checking for $2... " >&6; }
  1648. if eval "test \"\${$3+set}\"" = set; then :
  1649. $as_echo_n "(cached) " >&6
  1650. else
  1651. eval "$3=\$ac_header_compiler"
  1652. fi
  1653. eval ac_res=\$$3
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1655. $as_echo "$ac_res" >&6; }
  1656. fi
  1657. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1658. } # ac_fn_c_check_header_mongrel
  1659. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1660. # -------------------------------------------------------
  1661. # Tests whether HEADER exists and can be compiled using the include files in
  1662. # INCLUDES, setting the cache variable VAR accordingly.
  1663. ac_fn_c_check_header_compile ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1667. $as_echo_n "checking for $2... " >&6; }
  1668. if eval "test \"\${$3+set}\"" = set; then :
  1669. $as_echo_n "(cached) " >&6
  1670. else
  1671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1672. /* end confdefs.h. */
  1673. $4
  1674. #include <$2>
  1675. _ACEOF
  1676. if ac_fn_c_try_compile "$LINENO"; then :
  1677. eval "$3=yes"
  1678. else
  1679. eval "$3=no"
  1680. fi
  1681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1682. fi
  1683. eval ac_res=\$$3
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1685. $as_echo "$ac_res" >&6; }
  1686. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1687. } # ac_fn_c_check_header_compile
  1688. # ac_fn_c_check_func LINENO FUNC VAR
  1689. # ----------------------------------
  1690. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1691. ac_fn_c_check_func ()
  1692. {
  1693. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1695. $as_echo_n "checking for $2... " >&6; }
  1696. if eval "test \"\${$3+set}\"" = set; then :
  1697. $as_echo_n "(cached) " >&6
  1698. else
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1703. #define $2 innocuous_$2
  1704. /* System header to define __stub macros and hopefully few prototypes,
  1705. which can conflict with char $2 (); below.
  1706. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1707. <limits.h> exists even on freestanding compilers. */
  1708. #ifdef __STDC__
  1709. # include <limits.h>
  1710. #else
  1711. # include <assert.h>
  1712. #endif
  1713. #undef $2
  1714. /* Override any GCC internal prototype to avoid an error.
  1715. Use char because int might match the return type of a GCC
  1716. builtin and then its argument prototype would still apply. */
  1717. #ifdef __cplusplus
  1718. extern "C"
  1719. #endif
  1720. char $2 ();
  1721. /* The GNU C library defines this for functions which it implements
  1722. to always fail with ENOSYS. Some functions are actually named
  1723. something starting with __ and the normal name is an alias. */
  1724. #if defined __stub_$2 || defined __stub___$2
  1725. choke me
  1726. #endif
  1727. int
  1728. main ()
  1729. {
  1730. return $2 ();
  1731. ;
  1732. return 0;
  1733. }
  1734. _ACEOF
  1735. if ac_fn_c_try_link "$LINENO"; then :
  1736. eval "$3=yes"
  1737. else
  1738. eval "$3=no"
  1739. fi
  1740. rm -f core conftest.err conftest.$ac_objext \
  1741. conftest$ac_exeext conftest.$ac_ext
  1742. fi
  1743. eval ac_res=\$$3
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1745. $as_echo "$ac_res" >&6; }
  1746. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1747. } # ac_fn_c_check_func
  1748. # ac_fn_cxx_try_cpp LINENO
  1749. # ------------------------
  1750. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1751. ac_fn_cxx_try_cpp ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1755. case "(($ac_try" in
  1756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1757. *) ac_try_echo=$ac_try;;
  1758. esac
  1759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1760. $as_echo "$ac_try_echo"; } >&5
  1761. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1762. ac_status=$?
  1763. if test -s conftest.err; then
  1764. grep -v '^ *+' conftest.err >conftest.er1
  1765. cat conftest.er1 >&5
  1766. mv -f conftest.er1 conftest.err
  1767. fi
  1768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1769. test $ac_status = 0; } >/dev/null && {
  1770. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1771. test ! -s conftest.err
  1772. }; then :
  1773. ac_retval=0
  1774. else
  1775. $as_echo "$as_me: failed program was:" >&5
  1776. sed 's/^/| /' conftest.$ac_ext >&5
  1777. ac_retval=1
  1778. fi
  1779. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1780. as_fn_set_status $ac_retval
  1781. } # ac_fn_cxx_try_cpp
  1782. # ac_fn_cxx_try_link LINENO
  1783. # -------------------------
  1784. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1785. ac_fn_cxx_try_link ()
  1786. {
  1787. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788. rm -f conftest.$ac_objext conftest$ac_exeext
  1789. if { { ac_try="$ac_link"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo"; } >&5
  1796. (eval "$ac_link") 2>conftest.err
  1797. ac_status=$?
  1798. if test -s conftest.err; then
  1799. grep -v '^ *+' conftest.err >conftest.er1
  1800. cat conftest.er1 >&5
  1801. mv -f conftest.er1 conftest.err
  1802. fi
  1803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; } && {
  1805. test -z "$ac_cxx_werror_flag" ||
  1806. test ! -s conftest.err
  1807. } && test -s conftest$ac_exeext && {
  1808. test "$cross_compiling" = yes ||
  1809. $as_test_x conftest$ac_exeext
  1810. }; then :
  1811. ac_retval=0
  1812. else
  1813. $as_echo "$as_me: failed program was:" >&5
  1814. sed 's/^/| /' conftest.$ac_ext >&5
  1815. ac_retval=1
  1816. fi
  1817. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1818. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1819. # interfere with the next link command; also delete a directory that is
  1820. # left behind by Apple's compiler. We do this before executing the actions.
  1821. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1822. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1823. as_fn_set_status $ac_retval
  1824. } # ac_fn_cxx_try_link
  1825. cat >config.log <<_ACEOF
  1826. This file contains any messages produced by compilers while
  1827. running configure, to aid debugging if configure makes a mistake.
  1828. It was created by $as_me, which was
  1829. generated by GNU Autoconf 2.66. Invocation command line was
  1830. $ $0 $@
  1831. _ACEOF
  1832. exec 5>>config.log
  1833. {
  1834. cat <<_ASUNAME
  1835. ## --------- ##
  1836. ## Platform. ##
  1837. ## --------- ##
  1838. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1839. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1840. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1841. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1842. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1843. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1844. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1845. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1846. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1847. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1848. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1849. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1850. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1851. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1852. _ASUNAME
  1853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1854. for as_dir in $PATH
  1855. do
  1856. IFS=$as_save_IFS
  1857. test -z "$as_dir" && as_dir=.
  1858. $as_echo "PATH: $as_dir"
  1859. done
  1860. IFS=$as_save_IFS
  1861. } >&5
  1862. cat >&5 <<_ACEOF
  1863. ## ----------- ##
  1864. ## Core tests. ##
  1865. ## ----------- ##
  1866. _ACEOF
  1867. # Keep a trace of the command line.
  1868. # Strip out --no-create and --no-recursion so they do not pile up.
  1869. # Strip out --silent because we don't want to record it for future runs.
  1870. # Also quote any args containing shell meta-characters.
  1871. # Make two passes to allow for proper duplicate-argument suppression.
  1872. ac_configure_args=
  1873. ac_configure_args0=
  1874. ac_configure_args1=
  1875. ac_must_keep_next=false
  1876. for ac_pass in 1 2
  1877. do
  1878. for ac_arg
  1879. do
  1880. case $ac_arg in
  1881. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1882. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1883. | -silent | --silent | --silen | --sile | --sil)
  1884. continue ;;
  1885. *\'*)
  1886. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1887. esac
  1888. case $ac_pass in
  1889. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1890. 2)
  1891. as_fn_append ac_configure_args1 " '$ac_arg'"
  1892. if test $ac_must_keep_next = true; then
  1893. ac_must_keep_next=false # Got value, back to normal.
  1894. else
  1895. case $ac_arg in
  1896. *=* | --config-cache | -C | -disable-* | --disable-* \
  1897. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1898. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1899. | -with-* | --with-* | -without-* | --without-* | --x)
  1900. case "$ac_configure_args0 " in
  1901. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1902. esac
  1903. ;;
  1904. -* ) ac_must_keep_next=true ;;
  1905. esac
  1906. fi
  1907. as_fn_append ac_configure_args " '$ac_arg'"
  1908. ;;
  1909. esac
  1910. done
  1911. done
  1912. { ac_configure_args0=; unset ac_configure_args0;}
  1913. { ac_configure_args1=; unset ac_configure_args1;}
  1914. # When interrupted or exit'd, cleanup temporary files, and complete
  1915. # config.log. We remove comments because anyway the quotes in there
  1916. # would cause problems or look ugly.
  1917. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1918. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1919. trap 'exit_status=$?
  1920. # Save into config.log some information that might help in debugging.
  1921. {
  1922. echo
  1923. $as_echo "## ---------------- ##
  1924. ## Cache variables. ##
  1925. ## ---------------- ##"
  1926. echo
  1927. # The following way of writing the cache mishandles newlines in values,
  1928. (
  1929. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1930. eval ac_val=\$$ac_var
  1931. case $ac_val in #(
  1932. *${as_nl}*)
  1933. case $ac_var in #(
  1934. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1935. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1936. esac
  1937. case $ac_var in #(
  1938. _ | IFS | as_nl) ;; #(
  1939. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1940. *) { eval $ac_var=; unset $ac_var;} ;;
  1941. esac ;;
  1942. esac
  1943. done
  1944. (set) 2>&1 |
  1945. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1946. *${as_nl}ac_space=\ *)
  1947. sed -n \
  1948. "s/'\''/'\''\\\\'\'''\''/g;
  1949. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1950. ;; #(
  1951. *)
  1952. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1953. ;;
  1954. esac |
  1955. sort
  1956. )
  1957. echo
  1958. $as_echo "## ----------------- ##
  1959. ## Output variables. ##
  1960. ## ----------------- ##"
  1961. echo
  1962. for ac_var in $ac_subst_vars
  1963. do
  1964. eval ac_val=\$$ac_var
  1965. case $ac_val in
  1966. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1967. esac
  1968. $as_echo "$ac_var='\''$ac_val'\''"
  1969. done | sort
  1970. echo
  1971. if test -n "$ac_subst_files"; then
  1972. $as_echo "## ------------------- ##
  1973. ## File substitutions. ##
  1974. ## ------------------- ##"
  1975. echo
  1976. for ac_var in $ac_subst_files
  1977. do
  1978. eval ac_val=\$$ac_var
  1979. case $ac_val in
  1980. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1981. esac
  1982. $as_echo "$ac_var='\''$ac_val'\''"
  1983. done | sort
  1984. echo
  1985. fi
  1986. if test -s confdefs.h; then
  1987. $as_echo "## ----------- ##
  1988. ## confdefs.h. ##
  1989. ## ----------- ##"
  1990. echo
  1991. cat confdefs.h
  1992. echo
  1993. fi
  1994. test "$ac_signal" != 0 &&
  1995. $as_echo "$as_me: caught signal $ac_signal"
  1996. $as_echo "$as_me: exit $exit_status"
  1997. } >&5
  1998. rm -f core *.core core.conftest.* &&
  1999. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2000. exit $exit_status
  2001. ' 0
  2002. for ac_signal in 1 2 13 15; do
  2003. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2004. done
  2005. ac_signal=0
  2006. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2007. rm -f -r conftest* confdefs.h
  2008. $as_echo "/* confdefs.h */" > confdefs.h
  2009. # Predefined preprocessor variables.
  2010. cat >>confdefs.h <<_ACEOF
  2011. #define PACKAGE_NAME "$PACKAGE_NAME"
  2012. _ACEOF
  2013. cat >>confdefs.h <<_ACEOF
  2014. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2015. _ACEOF
  2016. cat >>confdefs.h <<_ACEOF
  2017. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2018. _ACEOF
  2019. cat >>confdefs.h <<_ACEOF
  2020. #define PACKAGE_STRING "$PACKAGE_STRING"
  2021. _ACEOF
  2022. cat >>confdefs.h <<_ACEOF
  2023. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2024. _ACEOF
  2025. cat >>confdefs.h <<_ACEOF
  2026. #define PACKAGE_URL "$PACKAGE_URL"
  2027. _ACEOF
  2028. # Let the site file select an alternate cache file if it wants to.
  2029. # Prefer an explicitly selected file to automatically selected ones.
  2030. ac_site_file1=NONE
  2031. ac_site_file2=NONE
  2032. if test -n "$CONFIG_SITE"; then
  2033. # We do not want a PATH search for config.site.
  2034. case $CONFIG_SITE in #((
  2035. -*) ac_site_file1=./$CONFIG_SITE;;
  2036. */*) ac_site_file1=$CONFIG_SITE;;
  2037. *) ac_site_file1=./$CONFIG_SITE;;
  2038. esac
  2039. elif test "x$prefix" != xNONE; then
  2040. ac_site_file1=$prefix/share/config.site
  2041. ac_site_file2=$prefix/etc/config.site
  2042. else
  2043. ac_site_file1=$ac_default_prefix/share/config.site
  2044. ac_site_file2=$ac_default_prefix/etc/config.site
  2045. fi
  2046. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2047. do
  2048. test "x$ac_site_file" = xNONE && continue
  2049. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2051. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2052. sed 's/^/| /' "$ac_site_file" >&5
  2053. . "$ac_site_file" \
  2054. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2056. as_fn_error $? "failed to load site script $ac_site_file
  2057. See \`config.log' for more details" "$LINENO" 5; }
  2058. fi
  2059. done
  2060. if test -r "$cache_file"; then
  2061. # Some versions of bash will fail to source /dev/null (special files
  2062. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2063. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2065. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2066. case $cache_file in
  2067. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2068. *) . "./$cache_file";;
  2069. esac
  2070. fi
  2071. else
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2073. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2074. >$cache_file
  2075. fi
  2076. # Check that the precious variables saved in the cache have kept the same
  2077. # value.
  2078. ac_cache_corrupted=false
  2079. for ac_var in $ac_precious_vars; do
  2080. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2081. eval ac_new_set=\$ac_env_${ac_var}_set
  2082. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2083. eval ac_new_val=\$ac_env_${ac_var}_value
  2084. case $ac_old_set,$ac_new_set in
  2085. set,)
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2087. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2088. ac_cache_corrupted=: ;;
  2089. ,set)
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2091. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2092. ac_cache_corrupted=: ;;
  2093. ,);;
  2094. *)
  2095. if test "x$ac_old_val" != "x$ac_new_val"; then
  2096. # differences in whitespace do not lead to failure.
  2097. ac_old_val_w=`echo x $ac_old_val`
  2098. ac_new_val_w=`echo x $ac_new_val`
  2099. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2101. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2102. ac_cache_corrupted=:
  2103. else
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2105. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2106. eval $ac_var=\$ac_old_val
  2107. fi
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2109. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2111. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2112. fi;;
  2113. esac
  2114. # Pass precious variables to config.status.
  2115. if test "$ac_new_set" = set; then
  2116. case $ac_new_val in
  2117. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2118. *) ac_arg=$ac_var=$ac_new_val ;;
  2119. esac
  2120. case " $ac_configure_args " in
  2121. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2122. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2123. esac
  2124. fi
  2125. done
  2126. if $ac_cache_corrupted; then
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2128. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2130. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2131. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2132. fi
  2133. ## -------------------- ##
  2134. ## Main body of script. ##
  2135. ## -------------------- ##
  2136. ac_ext=c
  2137. ac_cpp='$CPP $CPPFLAGS'
  2138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2141. am__api_version='1.11'
  2142. ac_aux_dir=
  2143. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2144. if test -f "$ac_dir/install-sh"; then
  2145. ac_aux_dir=$ac_dir
  2146. ac_install_sh="$ac_aux_dir/install-sh -c"
  2147. break
  2148. elif test -f "$ac_dir/install.sh"; then
  2149. ac_aux_dir=$ac_dir
  2150. ac_install_sh="$ac_aux_dir/install.sh -c"
  2151. break
  2152. elif test -f "$ac_dir/shtool"; then
  2153. ac_aux_dir=$ac_dir
  2154. ac_install_sh="$ac_aux_dir/shtool install -c"
  2155. break
  2156. fi
  2157. done
  2158. if test -z "$ac_aux_dir"; then
  2159. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2160. fi
  2161. # These three variables are undocumented and unsupported,
  2162. # and are intended to be withdrawn in a future Autoconf release.
  2163. # They can cause serious problems if a builder's source tree is in a directory
  2164. # whose full name contains unusual characters.
  2165. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2166. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2167. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2168. # Find a good install program. We prefer a C program (faster),
  2169. # so one script is as good as another. But avoid the broken or
  2170. # incompatible versions:
  2171. # SysV /etc/install, /usr/sbin/install
  2172. # SunOS /usr/etc/install
  2173. # IRIX /sbin/install
  2174. # AIX /bin/install
  2175. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2176. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2177. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2178. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2179. # OS/2's system install, which has a completely different semantic
  2180. # ./install, which can be erroneously created by make from ./install.sh.
  2181. # Reject install programs that cannot install multiple files.
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2183. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2184. if test -z "$INSTALL"; then
  2185. if test "${ac_cv_path_install+set}" = set; then :
  2186. $as_echo_n "(cached) " >&6
  2187. else
  2188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2189. for as_dir in $PATH
  2190. do
  2191. IFS=$as_save_IFS
  2192. test -z "$as_dir" && as_dir=.
  2193. # Account for people who put trailing slashes in PATH elements.
  2194. case $as_dir/ in #((
  2195. ./ | .// | /[cC]/* | \
  2196. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2197. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2198. /usr/ucb/* ) ;;
  2199. *)
  2200. # OSF1 and SCO ODT 3.0 have their own names for install.
  2201. # Don't use installbsd from OSF since it installs stuff as root
  2202. # by default.
  2203. for ac_prog in ginstall scoinst install; do
  2204. for ac_exec_ext in '' $ac_executable_extensions; do
  2205. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2206. if test $ac_prog = install &&
  2207. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2208. # AIX install. It has an incompatible calling convention.
  2209. :
  2210. elif test $ac_prog = install &&
  2211. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2212. # program-specific install script used by HP pwplus--don't use.
  2213. :
  2214. else
  2215. rm -rf conftest.one conftest.two conftest.dir
  2216. echo one > conftest.one
  2217. echo two > conftest.two
  2218. mkdir conftest.dir
  2219. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2220. test -s conftest.one && test -s conftest.two &&
  2221. test -s conftest.dir/conftest.one &&
  2222. test -s conftest.dir/conftest.two
  2223. then
  2224. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2225. break 3
  2226. fi
  2227. fi
  2228. fi
  2229. done
  2230. done
  2231. ;;
  2232. esac
  2233. done
  2234. IFS=$as_save_IFS
  2235. rm -rf conftest.one conftest.two conftest.dir
  2236. fi
  2237. if test "${ac_cv_path_install+set}" = set; then
  2238. INSTALL=$ac_cv_path_install
  2239. else
  2240. # As a last resort, use the slow shell script. Don't cache a
  2241. # value for INSTALL within a source directory, because that will
  2242. # break other packages using the cache if that directory is
  2243. # removed, or if the value is a relative name.
  2244. INSTALL=$ac_install_sh
  2245. fi
  2246. fi
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2248. $as_echo "$INSTALL" >&6; }
  2249. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2250. # It thinks the first close brace ends the variable substitution.
  2251. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2252. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2253. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2255. $as_echo_n "checking whether build environment is sane... " >&6; }
  2256. # Just in case
  2257. sleep 1
  2258. echo timestamp > conftest.file
  2259. # Reject unsafe characters in $srcdir or the absolute working directory
  2260. # name. Accept space and tab only in the latter.
  2261. am_lf='
  2262. '
  2263. case `pwd` in
  2264. *[\\\"\#\$\&\'\`$am_lf]*)
  2265. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2266. esac
  2267. case $srcdir in
  2268. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2269. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2270. esac
  2271. # Do `set' in a subshell so we don't clobber the current shell's
  2272. # arguments. Must try -L first in case configure is actually a
  2273. # symlink; some systems play weird games with the mod time of symlinks
  2274. # (eg FreeBSD returns the mod time of the symlink's containing
  2275. # directory).
  2276. if (
  2277. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2278. if test "$*" = "X"; then
  2279. # -L didn't work.
  2280. set X `ls -t "$srcdir/configure" conftest.file`
  2281. fi
  2282. rm -f conftest.file
  2283. if test "$*" != "X $srcdir/configure conftest.file" \
  2284. && test "$*" != "X conftest.file $srcdir/configure"; then
  2285. # If neither matched, then we have a broken ls. This can happen
  2286. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2287. # broken ls alias from the environment. This has actually
  2288. # happened. Such a system could not be considered "sane".
  2289. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2290. alias in your environment" "$LINENO" 5
  2291. fi
  2292. test "$2" = conftest.file
  2293. )
  2294. then
  2295. # Ok.
  2296. :
  2297. else
  2298. as_fn_error $? "newly created file is older than distributed files!
  2299. Check your system clock" "$LINENO" 5
  2300. fi
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2302. $as_echo "yes" >&6; }
  2303. test "$program_prefix" != NONE &&
  2304. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2305. # Use a double $ so make ignores it.
  2306. test "$program_suffix" != NONE &&
  2307. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2308. # Double any \ or $.
  2309. # By default was `s,x,x', remove it if useless.
  2310. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2311. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2312. # expand $ac_aux_dir to an absolute path
  2313. am_aux_dir=`cd $ac_aux_dir && pwd`
  2314. if test x"${MISSING+set}" != xset; then
  2315. case $am_aux_dir in
  2316. *\ * | *\ *)
  2317. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2318. *)
  2319. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2320. esac
  2321. fi
  2322. # Use eval to expand $SHELL
  2323. if eval "$MISSING --run true"; then
  2324. am_missing_run="$MISSING --run "
  2325. else
  2326. am_missing_run=
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2328. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2329. fi
  2330. if test x"${install_sh}" != xset; then
  2331. case $am_aux_dir in
  2332. *\ * | *\ *)
  2333. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2334. *)
  2335. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2336. esac
  2337. fi
  2338. # Installed binaries are usually stripped using `strip' when the user
  2339. # run `make install-strip'. However `strip' might not be the right
  2340. # tool to use in cross-compilation environments, therefore Automake
  2341. # will honor the `STRIP' environment variable to overrule this program.
  2342. if test "$cross_compiling" != no; then
  2343. if test -n "$ac_tool_prefix"; then
  2344. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2345. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2347. $as_echo_n "checking for $ac_word... " >&6; }
  2348. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2349. $as_echo_n "(cached) " >&6
  2350. else
  2351. if test -n "$STRIP"; then
  2352. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2353. else
  2354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2355. for as_dir in $PATH
  2356. do
  2357. IFS=$as_save_IFS
  2358. test -z "$as_dir" && as_dir=.
  2359. for ac_exec_ext in '' $ac_executable_extensions; do
  2360. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2361. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2363. break 2
  2364. fi
  2365. done
  2366. done
  2367. IFS=$as_save_IFS
  2368. fi
  2369. fi
  2370. STRIP=$ac_cv_prog_STRIP
  2371. if test -n "$STRIP"; then
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2373. $as_echo "$STRIP" >&6; }
  2374. else
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2376. $as_echo "no" >&6; }
  2377. fi
  2378. fi
  2379. if test -z "$ac_cv_prog_STRIP"; then
  2380. ac_ct_STRIP=$STRIP
  2381. # Extract the first word of "strip", so it can be a program name with args.
  2382. set dummy strip; ac_word=$2
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2384. $as_echo_n "checking for $ac_word... " >&6; }
  2385. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2386. $as_echo_n "(cached) " >&6
  2387. else
  2388. if test -n "$ac_ct_STRIP"; then
  2389. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2390. else
  2391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2392. for as_dir in $PATH
  2393. do
  2394. IFS=$as_save_IFS
  2395. test -z "$as_dir" && as_dir=.
  2396. for ac_exec_ext in '' $ac_executable_extensions; do
  2397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2398. ac_cv_prog_ac_ct_STRIP="strip"
  2399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2400. break 2
  2401. fi
  2402. done
  2403. done
  2404. IFS=$as_save_IFS
  2405. fi
  2406. fi
  2407. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2408. if test -n "$ac_ct_STRIP"; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2410. $as_echo "$ac_ct_STRIP" >&6; }
  2411. else
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2413. $as_echo "no" >&6; }
  2414. fi
  2415. if test "x$ac_ct_STRIP" = x; then
  2416. STRIP=":"
  2417. else
  2418. case $cross_compiling:$ac_tool_warned in
  2419. yes:)
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2421. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2422. ac_tool_warned=yes ;;
  2423. esac
  2424. STRIP=$ac_ct_STRIP
  2425. fi
  2426. else
  2427. STRIP="$ac_cv_prog_STRIP"
  2428. fi
  2429. fi
  2430. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2432. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2433. if test -z "$MKDIR_P"; then
  2434. if test "${ac_cv_path_mkdir+set}" = set; then :
  2435. $as_echo_n "(cached) " >&6
  2436. else
  2437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2438. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2439. do
  2440. IFS=$as_save_IFS
  2441. test -z "$as_dir" && as_dir=.
  2442. for ac_prog in mkdir gmkdir; do
  2443. for ac_exec_ext in '' $ac_executable_extensions; do
  2444. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2445. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2446. 'mkdir (GNU coreutils) '* | \
  2447. 'mkdir (coreutils) '* | \
  2448. 'mkdir (fileutils) '4.1*)
  2449. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2450. break 3;;
  2451. esac
  2452. done
  2453. done
  2454. done
  2455. IFS=$as_save_IFS
  2456. fi
  2457. test -d ./--version && rmdir ./--version
  2458. if test "${ac_cv_path_mkdir+set}" = set; then
  2459. MKDIR_P="$ac_cv_path_mkdir -p"
  2460. else
  2461. # As a last resort, use the slow shell script. Don't cache a
  2462. # value for MKDIR_P within a source directory, because that will
  2463. # break other packages using the cache if that directory is
  2464. # removed, or if the value is a relative name.
  2465. MKDIR_P="$ac_install_sh -d"
  2466. fi
  2467. fi
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2469. $as_echo "$MKDIR_P" >&6; }
  2470. mkdir_p="$MKDIR_P"
  2471. case $mkdir_p in
  2472. [\\/$]* | ?:[\\/]*) ;;
  2473. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2474. esac
  2475. for ac_prog in gawk mawk nawk awk
  2476. do
  2477. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2478. set dummy $ac_prog; ac_word=$2
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2480. $as_echo_n "checking for $ac_word... " >&6; }
  2481. if test "${ac_cv_prog_AWK+set}" = set; then :
  2482. $as_echo_n "(cached) " >&6
  2483. else
  2484. if test -n "$AWK"; then
  2485. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2486. else
  2487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2488. for as_dir in $PATH
  2489. do
  2490. IFS=$as_save_IFS
  2491. test -z "$as_dir" && as_dir=.
  2492. for ac_exec_ext in '' $ac_executable_extensions; do
  2493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2494. ac_cv_prog_AWK="$ac_prog"
  2495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2496. break 2
  2497. fi
  2498. done
  2499. done
  2500. IFS=$as_save_IFS
  2501. fi
  2502. fi
  2503. AWK=$ac_cv_prog_AWK
  2504. if test -n "$AWK"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2506. $as_echo "$AWK" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. test -n "$AWK" && break
  2512. done
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2514. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2515. set x ${MAKE-make}
  2516. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2517. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. cat >conftest.make <<\_ACEOF
  2521. SHELL = /bin/sh
  2522. all:
  2523. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2524. _ACEOF
  2525. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2526. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2527. *@@@%%%=?*=@@@%%%*)
  2528. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2529. *)
  2530. eval ac_cv_prog_make_${ac_make}_set=no;;
  2531. esac
  2532. rm -f conftest.make
  2533. fi
  2534. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2536. $as_echo "yes" >&6; }
  2537. SET_MAKE=
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. SET_MAKE="MAKE=${MAKE-make}"
  2542. fi
  2543. rm -rf .tst 2>/dev/null
  2544. mkdir .tst 2>/dev/null
  2545. if test -d .tst; then
  2546. am__leading_dot=.
  2547. else
  2548. am__leading_dot=_
  2549. fi
  2550. rmdir .tst 2>/dev/null
  2551. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2552. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2553. # is not polluted with repeated "-I."
  2554. am__isrc=' -I$(srcdir)'
  2555. # test to see if srcdir already configured
  2556. if test -f $srcdir/config.status; then
  2557. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2558. fi
  2559. fi
  2560. # test whether we have cygpath
  2561. if test -z "$CYGPATH_W"; then
  2562. if (cygpath --version) >/dev/null 2>/dev/null; then
  2563. CYGPATH_W='cygpath -w'
  2564. else
  2565. CYGPATH_W=echo
  2566. fi
  2567. fi
  2568. # Define the identity of the package.
  2569. PACKAGE=berusky2
  2570. VERSION=0.4
  2571. cat >>confdefs.h <<_ACEOF
  2572. #define PACKAGE "$PACKAGE"
  2573. _ACEOF
  2574. cat >>confdefs.h <<_ACEOF
  2575. #define VERSION "$VERSION"
  2576. _ACEOF
  2577. # Some tools Automake needs.
  2578. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2579. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2580. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2581. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2582. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2583. # We need awk for the "check" target. The system "awk" is bad on
  2584. # some platforms.
  2585. # Always define AMTAR for backward compatibility.
  2586. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2587. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2588. ac_config_headers="$ac_config_headers config.h"
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2590. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2591. # Check whether --enable-maintainer-mode was given.
  2592. if test "${enable_maintainer_mode+set}" = set; then :
  2593. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2594. else
  2595. USE_MAINTAINER_MODE=no
  2596. fi
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2598. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2599. if test $USE_MAINTAINER_MODE = yes; then
  2600. MAINTAINER_MODE_TRUE=
  2601. MAINTAINER_MODE_FALSE='#'
  2602. else
  2603. MAINTAINER_MODE_TRUE='#'
  2604. MAINTAINER_MODE_FALSE=
  2605. fi
  2606. MAINT=$MAINTAINER_MODE_TRUE
  2607. DEPDIR="${am__leading_dot}deps"
  2608. ac_config_commands="$ac_config_commands depfiles"
  2609. am_make=${MAKE-make}
  2610. cat > confinc << 'END'
  2611. am__doit:
  2612. @echo this is the am__doit target
  2613. .PHONY: am__doit
  2614. END
  2615. # If we don't find an include directive, just comment out the code.
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2617. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2618. am__include="#"
  2619. am__quote=
  2620. _am_result=none
  2621. # First try GNU make style include.
  2622. echo "include confinc" > confmf
  2623. # Ignore all kinds of additional output from `make'.
  2624. case `$am_make -s -f confmf 2> /dev/null` in #(
  2625. *the\ am__doit\ target*)
  2626. am__include=include
  2627. am__quote=
  2628. _am_result=GNU
  2629. ;;
  2630. esac
  2631. # Now try BSD make style include.
  2632. if test "$am__include" = "#"; then
  2633. echo '.include "confinc"' > confmf
  2634. case `$am_make -s -f confmf 2> /dev/null` in #(
  2635. *the\ am__doit\ target*)
  2636. am__include=.include
  2637. am__quote="\""
  2638. _am_result=BSD
  2639. ;;
  2640. esac
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2643. $as_echo "$_am_result" >&6; }
  2644. rm -f confinc confmf
  2645. # Check whether --enable-dependency-tracking was given.
  2646. if test "${enable_dependency_tracking+set}" = set; then :
  2647. enableval=$enable_dependency_tracking;
  2648. fi
  2649. if test "x$enable_dependency_tracking" != xno; then
  2650. am_depcomp="$ac_aux_dir/depcomp"
  2651. AMDEPBACKSLASH='\'
  2652. fi
  2653. if test "x$enable_dependency_tracking" != xno; then
  2654. AMDEP_TRUE=
  2655. AMDEP_FALSE='#'
  2656. else
  2657. AMDEP_TRUE='#'
  2658. AMDEP_FALSE=
  2659. fi
  2660. ac_ext=c
  2661. ac_cpp='$CPP $CPPFLAGS'
  2662. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2663. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2664. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2665. if test -n "$ac_tool_prefix"; then
  2666. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2667. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if test "${ac_cv_prog_CC+set}" = set; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$CC"; then
  2674. ac_cv_prog_CC="$CC" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2683. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. CC=$ac_cv_prog_CC
  2693. if test -n "$CC"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2695. $as_echo "$CC" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. fi
  2701. if test -z "$ac_cv_prog_CC"; then
  2702. ac_ct_CC=$CC
  2703. # Extract the first word of "gcc", so it can be a program name with args.
  2704. set dummy gcc; ac_word=$2
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2706. $as_echo_n "checking for $ac_word... " >&6; }
  2707. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$ac_ct_CC"; then
  2711. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2712. else
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720. ac_cv_prog_ac_ct_CC="gcc"
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. fi
  2728. fi
  2729. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2730. if test -n "$ac_ct_CC"; then
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2732. $as_echo "$ac_ct_CC" >&6; }
  2733. else
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2735. $as_echo "no" >&6; }
  2736. fi
  2737. if test "x$ac_ct_CC" = x; then
  2738. CC=""
  2739. else
  2740. case $cross_compiling:$ac_tool_warned in
  2741. yes:)
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2744. ac_tool_warned=yes ;;
  2745. esac
  2746. CC=$ac_ct_CC
  2747. fi
  2748. else
  2749. CC="$ac_cv_prog_CC"
  2750. fi
  2751. if test -z "$CC"; then
  2752. if test -n "$ac_tool_prefix"; then
  2753. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2754. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2756. $as_echo_n "checking for $ac_word... " >&6; }
  2757. if test "${ac_cv_prog_CC+set}" = set; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. if test -n "$CC"; then
  2761. ac_cv_prog_CC="$CC" # Let the user override the test.
  2762. else
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2770. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. fi
  2778. fi
  2779. CC=$ac_cv_prog_CC
  2780. if test -n "$CC"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2782. $as_echo "$CC" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787. fi
  2788. fi
  2789. if test -z "$CC"; then
  2790. # Extract the first word of "cc", so it can be a program name with args.
  2791. set dummy cc; ac_word=$2
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2793. $as_echo_n "checking for $ac_word... " >&6; }
  2794. if test "${ac_cv_prog_CC+set}" = set; then :
  2795. $as_echo_n "(cached) " >&6
  2796. else
  2797. if test -n "$CC"; then
  2798. ac_cv_prog_CC="$CC" # Let the user override the test.
  2799. else
  2800. ac_prog_rejected=no
  2801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2802. for as_dir in $PATH
  2803. do
  2804. IFS=$as_save_IFS
  2805. test -z "$as_dir" && as_dir=.
  2806. for ac_exec_ext in '' $ac_executable_extensions; do
  2807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2808. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2809. ac_prog_rejected=yes
  2810. continue
  2811. fi
  2812. ac_cv_prog_CC="cc"
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2814. break 2
  2815. fi
  2816. done
  2817. done
  2818. IFS=$as_save_IFS
  2819. if test $ac_prog_rejected = yes; then
  2820. # We found a bogon in the path, so make sure we never use it.
  2821. set dummy $ac_cv_prog_CC
  2822. shift
  2823. if test $# != 0; then
  2824. # We chose a different compiler from the bogus one.
  2825. # However, it has the same basename, so the bogon will be chosen
  2826. # first if we set CC to just the basename; use the full file name.
  2827. shift
  2828. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2829. fi
  2830. fi
  2831. fi
  2832. fi
  2833. CC=$ac_cv_prog_CC
  2834. if test -n "$CC"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2836. $as_echo "$CC" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. fi
  2842. if test -z "$CC"; then
  2843. if test -n "$ac_tool_prefix"; then
  2844. for ac_prog in cl.exe
  2845. do
  2846. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2847. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if test "${ac_cv_prog_CC+set}" = set; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$CC"; then
  2854. ac_cv_prog_CC="$CC" # Let the user override the test.
  2855. else
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2863. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865. break 2
  2866. fi
  2867. done
  2868. done
  2869. IFS=$as_save_IFS
  2870. fi
  2871. fi
  2872. CC=$ac_cv_prog_CC
  2873. if test -n "$CC"; then
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2875. $as_echo "$CC" >&6; }
  2876. else
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. fi
  2880. test -n "$CC" && break
  2881. done
  2882. fi
  2883. if test -z "$CC"; then
  2884. ac_ct_CC=$CC
  2885. for ac_prog in cl.exe
  2886. do
  2887. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2888. set dummy $ac_prog; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$ac_ct_CC"; then
  2895. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2896. else
  2897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2898. for as_dir in $PATH
  2899. do
  2900. IFS=$as_save_IFS
  2901. test -z "$as_dir" && as_dir=.
  2902. for ac_exec_ext in '' $ac_executable_extensions; do
  2903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2904. ac_cv_prog_ac_ct_CC="$ac_prog"
  2905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2906. break 2
  2907. fi
  2908. done
  2909. done
  2910. IFS=$as_save_IFS
  2911. fi
  2912. fi
  2913. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2914. if test -n "$ac_ct_CC"; then
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2916. $as_echo "$ac_ct_CC" >&6; }
  2917. else
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fi
  2921. test -n "$ac_ct_CC" && break
  2922. done
  2923. if test "x$ac_ct_CC" = x; then
  2924. CC=""
  2925. else
  2926. case $cross_compiling:$ac_tool_warned in
  2927. yes:)
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2930. ac_tool_warned=yes ;;
  2931. esac
  2932. CC=$ac_ct_CC
  2933. fi
  2934. fi
  2935. fi
  2936. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2937. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2938. as_fn_error $? "no acceptable C compiler found in \$PATH
  2939. See \`config.log' for more details" "$LINENO" 5; }
  2940. # Provide some information about the compiler.
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2942. set X $ac_compile
  2943. ac_compiler=$2
  2944. for ac_option in --version -v -V -qversion; do
  2945. { { ac_try="$ac_compiler $ac_option >&5"
  2946. case "(($ac_try" in
  2947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2948. *) ac_try_echo=$ac_try;;
  2949. esac
  2950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2951. $as_echo "$ac_try_echo"; } >&5
  2952. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2953. ac_status=$?
  2954. if test -s conftest.err; then
  2955. sed '10a\
  2956. ... rest of stderr output deleted ...
  2957. 10q' conftest.err >conftest.er1
  2958. cat conftest.er1 >&5
  2959. fi
  2960. rm -f conftest.er1 conftest.err
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2962. test $ac_status = 0; }
  2963. done
  2964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2965. /* end confdefs.h. */
  2966. int
  2967. main ()
  2968. {
  2969. ;
  2970. return 0;
  2971. }
  2972. _ACEOF
  2973. ac_clean_files_save=$ac_clean_files
  2974. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2975. # Try to create an executable without -o first, disregard a.out.
  2976. # It will help us diagnose broken compilers, and finding out an intuition
  2977. # of exeext.
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2979. $as_echo_n "checking whether the C compiler works... " >&6; }
  2980. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2981. # The possible output files:
  2982. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2983. ac_rmfiles=
  2984. for ac_file in $ac_files
  2985. do
  2986. case $ac_file in
  2987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2988. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2989. esac
  2990. done
  2991. rm -f $ac_rmfiles
  2992. if { { ac_try="$ac_link_default"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2998. $as_echo "$ac_try_echo"; } >&5
  2999. (eval "$ac_link_default") 2>&5
  3000. ac_status=$?
  3001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3002. test $ac_status = 0; }; then :
  3003. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3004. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3005. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3006. # so that the user can short-circuit this test for compilers unknown to
  3007. # Autoconf.
  3008. for ac_file in $ac_files ''
  3009. do
  3010. test -f "$ac_file" || continue
  3011. case $ac_file in
  3012. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3013. ;;
  3014. [ab].out )
  3015. # We found the default executable, but exeext='' is most
  3016. # certainly right.
  3017. break;;
  3018. *.* )
  3019. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3020. then :; else
  3021. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3022. fi
  3023. # We set ac_cv_exeext here because the later test for it is not
  3024. # safe: cross compilers may not add the suffix if given an `-o'
  3025. # argument, so we may need to know it at that point already.
  3026. # Even if this section looks crufty: it has the advantage of
  3027. # actually working.
  3028. break;;
  3029. * )
  3030. break;;
  3031. esac
  3032. done
  3033. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3034. else
  3035. ac_file=''
  3036. fi
  3037. if test -z "$ac_file"; then :
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3039. $as_echo "no" >&6; }
  3040. $as_echo "$as_me: failed program was:" >&5
  3041. sed 's/^/| /' conftest.$ac_ext >&5
  3042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. as_fn_error 77 "C compiler cannot create executables
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. else
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3048. $as_echo "yes" >&6; }
  3049. fi
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3051. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3053. $as_echo "$ac_file" >&6; }
  3054. ac_exeext=$ac_cv_exeext
  3055. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3056. ac_clean_files=$ac_clean_files_save
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3058. $as_echo_n "checking for suffix of executables... " >&6; }
  3059. if { { ac_try="$ac_link"
  3060. case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo"; } >&5
  3066. (eval "$ac_link") 2>&5
  3067. ac_status=$?
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3069. test $ac_status = 0; }; then :
  3070. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3071. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3072. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3073. # `rm'.
  3074. for ac_file in conftest.exe conftest conftest.*; do
  3075. test -f "$ac_file" || continue
  3076. case $ac_file in
  3077. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3078. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3079. break;;
  3080. * ) break;;
  3081. esac
  3082. done
  3083. else
  3084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3086. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3087. See \`config.log' for more details" "$LINENO" 5; }
  3088. fi
  3089. rm -f conftest conftest$ac_cv_exeext
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3091. $as_echo "$ac_cv_exeext" >&6; }
  3092. rm -f conftest.$ac_ext
  3093. EXEEXT=$ac_cv_exeext
  3094. ac_exeext=$EXEEXT
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. #include <stdio.h>
  3098. int
  3099. main ()
  3100. {
  3101. FILE *f = fopen ("conftest.out", "w");
  3102. return ferror (f) || fclose (f) != 0;
  3103. ;
  3104. return 0;
  3105. }
  3106. _ACEOF
  3107. ac_clean_files="$ac_clean_files conftest.out"
  3108. # Check that the compiler produces executables we can run. If not, either
  3109. # the compiler is broken, or we cross compile.
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3111. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3112. if test "$cross_compiling" != yes; then
  3113. { { ac_try="$ac_link"
  3114. case "(($ac_try" in
  3115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3116. *) ac_try_echo=$ac_try;;
  3117. esac
  3118. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3119. $as_echo "$ac_try_echo"; } >&5
  3120. (eval "$ac_link") 2>&5
  3121. ac_status=$?
  3122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3123. test $ac_status = 0; }
  3124. if { ac_try='./conftest$ac_cv_exeext'
  3125. { { case "(($ac_try" in
  3126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3127. *) ac_try_echo=$ac_try;;
  3128. esac
  3129. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3130. $as_echo "$ac_try_echo"; } >&5
  3131. (eval "$ac_try") 2>&5
  3132. ac_status=$?
  3133. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3134. test $ac_status = 0; }; }; then
  3135. cross_compiling=no
  3136. else
  3137. if test "$cross_compiling" = maybe; then
  3138. cross_compiling=yes
  3139. else
  3140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "cannot run C compiled programs.
  3143. If you meant to cross compile, use \`--host'.
  3144. See \`config.log' for more details" "$LINENO" 5; }
  3145. fi
  3146. fi
  3147. fi
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3149. $as_echo "$cross_compiling" >&6; }
  3150. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3151. ac_clean_files=$ac_clean_files_save
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3153. $as_echo_n "checking for suffix of object files... " >&6; }
  3154. if test "${ac_cv_objext+set}" = set; then :
  3155. $as_echo_n "(cached) " >&6
  3156. else
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. rm -f conftest.o conftest.obj
  3167. if { { ac_try="$ac_compile"
  3168. case "(($ac_try" in
  3169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3170. *) ac_try_echo=$ac_try;;
  3171. esac
  3172. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3173. $as_echo "$ac_try_echo"; } >&5
  3174. (eval "$ac_compile") 2>&5
  3175. ac_status=$?
  3176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3177. test $ac_status = 0; }; then :
  3178. for ac_file in conftest.o conftest.obj conftest.*; do
  3179. test -f "$ac_file" || continue;
  3180. case $ac_file in
  3181. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3182. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3183. break;;
  3184. esac
  3185. done
  3186. else
  3187. $as_echo "$as_me: failed program was:" >&5
  3188. sed 's/^/| /' conftest.$ac_ext >&5
  3189. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3190. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3191. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3192. See \`config.log' for more details" "$LINENO" 5; }
  3193. fi
  3194. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3195. fi
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3197. $as_echo "$ac_cv_objext" >&6; }
  3198. OBJEXT=$ac_cv_objext
  3199. ac_objext=$OBJEXT
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3201. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3202. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3203. $as_echo_n "(cached) " >&6
  3204. else
  3205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3206. /* end confdefs.h. */
  3207. int
  3208. main ()
  3209. {
  3210. #ifndef __GNUC__
  3211. choke me
  3212. #endif
  3213. ;
  3214. return 0;
  3215. }
  3216. _ACEOF
  3217. if ac_fn_c_try_compile "$LINENO"; then :
  3218. ac_compiler_gnu=yes
  3219. else
  3220. ac_compiler_gnu=no
  3221. fi
  3222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3223. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3226. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3227. if test $ac_compiler_gnu = yes; then
  3228. GCC=yes
  3229. else
  3230. GCC=
  3231. fi
  3232. ac_test_CFLAGS=${CFLAGS+set}
  3233. ac_save_CFLAGS=$CFLAGS
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3235. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3236. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3237. $as_echo_n "(cached) " >&6
  3238. else
  3239. ac_save_c_werror_flag=$ac_c_werror_flag
  3240. ac_c_werror_flag=yes
  3241. ac_cv_prog_cc_g=no
  3242. CFLAGS="-g"
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245. int
  3246. main ()
  3247. {
  3248. ;
  3249. return 0;
  3250. }
  3251. _ACEOF
  3252. if ac_fn_c_try_compile "$LINENO"; then :
  3253. ac_cv_prog_cc_g=yes
  3254. else
  3255. CFLAGS=""
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. int
  3259. main ()
  3260. {
  3261. ;
  3262. return 0;
  3263. }
  3264. _ACEOF
  3265. if ac_fn_c_try_compile "$LINENO"; then :
  3266. else
  3267. ac_c_werror_flag=$ac_save_c_werror_flag
  3268. CFLAGS="-g"
  3269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3270. /* end confdefs.h. */
  3271. int
  3272. main ()
  3273. {
  3274. ;
  3275. return 0;
  3276. }
  3277. _ACEOF
  3278. if ac_fn_c_try_compile "$LINENO"; then :
  3279. ac_cv_prog_cc_g=yes
  3280. fi
  3281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3282. fi
  3283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3284. fi
  3285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3286. ac_c_werror_flag=$ac_save_c_werror_flag
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3289. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3290. if test "$ac_test_CFLAGS" = set; then
  3291. CFLAGS=$ac_save_CFLAGS
  3292. elif test $ac_cv_prog_cc_g = yes; then
  3293. if test "$GCC" = yes; then
  3294. CFLAGS="-g -O2"
  3295. else
  3296. CFLAGS="-g"
  3297. fi
  3298. else
  3299. if test "$GCC" = yes; then
  3300. CFLAGS="-O2"
  3301. else
  3302. CFLAGS=
  3303. fi
  3304. fi
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3306. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3307. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. ac_cv_prog_cc_c89=no
  3311. ac_save_CC=$CC
  3312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3313. /* end confdefs.h. */
  3314. #include <stdarg.h>
  3315. #include <stdio.h>
  3316. #include <sys/types.h>
  3317. #include <sys/stat.h>
  3318. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3319. struct buf { int x; };
  3320. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3321. static char *e (p, i)
  3322. char **p;
  3323. int i;
  3324. {
  3325. return p[i];
  3326. }
  3327. static char *f (char * (*g) (char **, int), char **p, ...)
  3328. {
  3329. char *s;
  3330. va_list v;
  3331. va_start (v,p);
  3332. s = g (p, va_arg (v,int));
  3333. va_end (v);
  3334. return s;
  3335. }
  3336. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3337. function prototypes and stuff, but not '\xHH' hex character constants.
  3338. These don't provoke an error unfortunately, instead are silently treated
  3339. as 'x'. The following induces an error, until -std is added to get
  3340. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3341. array size at least. It's necessary to write '\x00'==0 to get something
  3342. that's true only with -std. */
  3343. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3344. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3345. inside strings and character constants. */
  3346. #define FOO(x) 'x'
  3347. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3348. int test (int i, double x);
  3349. struct s1 {int (*f) (int a);};
  3350. struct s2 {int (*f) (double a);};
  3351. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3352. int argc;
  3353. char **argv;
  3354. int
  3355. main ()
  3356. {
  3357. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3363. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3364. do
  3365. CC="$ac_save_CC $ac_arg"
  3366. if ac_fn_c_try_compile "$LINENO"; then :
  3367. ac_cv_prog_cc_c89=$ac_arg
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext
  3370. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3371. done
  3372. rm -f conftest.$ac_ext
  3373. CC=$ac_save_CC
  3374. fi
  3375. # AC_CACHE_VAL
  3376. case "x$ac_cv_prog_cc_c89" in
  3377. x)
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3379. $as_echo "none needed" >&6; } ;;
  3380. xno)
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3382. $as_echo "unsupported" >&6; } ;;
  3383. *)
  3384. CC="$CC $ac_cv_prog_cc_c89"
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3386. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3387. esac
  3388. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3389. fi
  3390. ac_ext=c
  3391. ac_cpp='$CPP $CPPFLAGS'
  3392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3395. depcc="$CC" am_compiler_list=
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3397. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3398. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3402. # We make a subdir and do the tests there. Otherwise we can end up
  3403. # making bogus files that we don't know about and never remove. For
  3404. # instance it was reported that on HP-UX the gcc test will end up
  3405. # making a dummy file named `D' -- because `-MD' means `put the output
  3406. # in D'.
  3407. mkdir conftest.dir
  3408. # Copy depcomp to subdir because otherwise we won't find it if we're
  3409. # using a relative directory.
  3410. cp "$am_depcomp" conftest.dir
  3411. cd conftest.dir
  3412. # We will build objects and dependencies in a subdirectory because
  3413. # it helps to detect inapplicable dependency modes. For instance
  3414. # both Tru64's cc and ICC support -MD to output dependencies as a
  3415. # side effect of compilation, but ICC will put the dependencies in
  3416. # the current directory while Tru64 will put them in the object
  3417. # directory.
  3418. mkdir sub
  3419. am_cv_CC_dependencies_compiler_type=none
  3420. if test "$am_compiler_list" = ""; then
  3421. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3422. fi
  3423. am__universal=false
  3424. case " $depcc " in #(
  3425. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3426. esac
  3427. for depmode in $am_compiler_list; do
  3428. # Setup a source with many dependencies, because some compilers
  3429. # like to wrap large dependency lists on column 80 (with \), and
  3430. # we should not choose a depcomp mode which is confused by this.
  3431. #
  3432. # We need to recreate these files for each test, as the compiler may
  3433. # overwrite some of them when testing with obscure command lines.
  3434. # This happens at least with the AIX C compiler.
  3435. : > sub/conftest.c
  3436. for i in 1 2 3 4 5 6; do
  3437. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3438. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3439. # Solaris 8's {/usr,}/bin/sh.
  3440. touch sub/conftst$i.h
  3441. done
  3442. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3443. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3444. # mode. It turns out that the SunPro C++ compiler does not properly
  3445. # handle `-M -o', and we need to detect this. Also, some Intel
  3446. # versions had trouble with output in subdirs
  3447. am__obj=sub/conftest.${OBJEXT-o}
  3448. am__minus_obj="-o $am__obj"
  3449. case $depmode in
  3450. gcc)
  3451. # This depmode causes a compiler race in universal mode.
  3452. test "$am__universal" = false || continue
  3453. ;;
  3454. nosideeffect)
  3455. # after this tag, mechanisms are not by side-effect, so they'll
  3456. # only be used when explicitly requested
  3457. if test "x$enable_dependency_tracking" = xyes; then
  3458. continue
  3459. else
  3460. break
  3461. fi
  3462. ;;
  3463. msvisualcpp | msvcmsys)
  3464. # This compiler won't grok `-c -o', but also, the minuso test has
  3465. # not run yet. These depmodes are late enough in the game, and
  3466. # so weak that their functioning should not be impacted.
  3467. am__obj=conftest.${OBJEXT-o}
  3468. am__minus_obj=
  3469. ;;
  3470. none) break ;;
  3471. esac
  3472. if depmode=$depmode \
  3473. source=sub/conftest.c object=$am__obj \
  3474. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3475. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3476. >/dev/null 2>conftest.err &&
  3477. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3478. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3479. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3480. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3481. # icc doesn't choke on unknown options, it will just issue warnings
  3482. # or remarks (even with -Werror). So we grep stderr for any message
  3483. # that says an option was ignored or not supported.
  3484. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3485. # icc: Command line warning: ignoring option '-M'; no argument required
  3486. # The diagnosis changed in icc 8.0:
  3487. # icc: Command line remark: option '-MP' not supported
  3488. if (grep 'ignoring option' conftest.err ||
  3489. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3490. am_cv_CC_dependencies_compiler_type=$depmode
  3491. break
  3492. fi
  3493. fi
  3494. done
  3495. cd ..
  3496. rm -rf conftest.dir
  3497. else
  3498. am_cv_CC_dependencies_compiler_type=none
  3499. fi
  3500. fi
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3502. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3503. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3504. if
  3505. test "x$enable_dependency_tracking" != xno \
  3506. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3507. am__fastdepCC_TRUE=
  3508. am__fastdepCC_FALSE='#'
  3509. else
  3510. am__fastdepCC_TRUE='#'
  3511. am__fastdepCC_FALSE=
  3512. fi
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3514. $as_echo_n "checking for library containing strerror... " >&6; }
  3515. if test "${ac_cv_search_strerror+set}" = set; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. ac_func_search_save_LIBS=$LIBS
  3519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3520. /* end confdefs.h. */
  3521. /* Override any GCC internal prototype to avoid an error.
  3522. Use char because int might match the return type of a GCC
  3523. builtin and then its argument prototype would still apply. */
  3524. #ifdef __cplusplus
  3525. extern "C"
  3526. #endif
  3527. char strerror ();
  3528. int
  3529. main ()
  3530. {
  3531. return strerror ();
  3532. ;
  3533. return 0;
  3534. }
  3535. _ACEOF
  3536. for ac_lib in '' cposix; do
  3537. if test -z "$ac_lib"; then
  3538. ac_res="none required"
  3539. else
  3540. ac_res=-l$ac_lib
  3541. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3542. fi
  3543. if ac_fn_c_try_link "$LINENO"; then :
  3544. ac_cv_search_strerror=$ac_res
  3545. fi
  3546. rm -f core conftest.err conftest.$ac_objext \
  3547. conftest$ac_exeext
  3548. if test "${ac_cv_search_strerror+set}" = set; then :
  3549. break
  3550. fi
  3551. done
  3552. if test "${ac_cv_search_strerror+set}" = set; then :
  3553. else
  3554. ac_cv_search_strerror=no
  3555. fi
  3556. rm conftest.$ac_ext
  3557. LIBS=$ac_func_search_save_LIBS
  3558. fi
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3560. $as_echo "$ac_cv_search_strerror" >&6; }
  3561. ac_res=$ac_cv_search_strerror
  3562. if test "$ac_res" != no; then :
  3563. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3564. fi
  3565. ac_ext=c
  3566. ac_cpp='$CPP $CPPFLAGS'
  3567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3570. if test -n "$ac_tool_prefix"; then
  3571. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3572. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. $as_echo_n "checking for $ac_word... " >&6; }
  3575. if test "${ac_cv_prog_CC+set}" = set; then :
  3576. $as_echo_n "(cached) " >&6
  3577. else
  3578. if test -n "$CC"; then
  3579. ac_cv_prog_CC="$CC" # Let the user override the test.
  3580. else
  3581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3582. for as_dir in $PATH
  3583. do
  3584. IFS=$as_save_IFS
  3585. test -z "$as_dir" && as_dir=.
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3588. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3590. break 2
  3591. fi
  3592. done
  3593. done
  3594. IFS=$as_save_IFS
  3595. fi
  3596. fi
  3597. CC=$ac_cv_prog_CC
  3598. if test -n "$CC"; then
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3600. $as_echo "$CC" >&6; }
  3601. else
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3603. $as_echo "no" >&6; }
  3604. fi
  3605. fi
  3606. if test -z "$ac_cv_prog_CC"; then
  3607. ac_ct_CC=$CC
  3608. # Extract the first word of "gcc", so it can be a program name with args.
  3609. set dummy gcc; ac_word=$2
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3611. $as_echo_n "checking for $ac_word... " >&6; }
  3612. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3613. $as_echo_n "(cached) " >&6
  3614. else
  3615. if test -n "$ac_ct_CC"; then
  3616. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3617. else
  3618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3619. for as_dir in $PATH
  3620. do
  3621. IFS=$as_save_IFS
  3622. test -z "$as_dir" && as_dir=.
  3623. for ac_exec_ext in '' $ac_executable_extensions; do
  3624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3625. ac_cv_prog_ac_ct_CC="gcc"
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3627. break 2
  3628. fi
  3629. done
  3630. done
  3631. IFS=$as_save_IFS
  3632. fi
  3633. fi
  3634. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3635. if test -n "$ac_ct_CC"; then
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3637. $as_echo "$ac_ct_CC" >&6; }
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3640. $as_echo "no" >&6; }
  3641. fi
  3642. if test "x$ac_ct_CC" = x; then
  3643. CC=""
  3644. else
  3645. case $cross_compiling:$ac_tool_warned in
  3646. yes:)
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3649. ac_tool_warned=yes ;;
  3650. esac
  3651. CC=$ac_ct_CC
  3652. fi
  3653. else
  3654. CC="$ac_cv_prog_CC"
  3655. fi
  3656. if test -z "$CC"; then
  3657. if test -n "$ac_tool_prefix"; then
  3658. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3659. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3661. $as_echo_n "checking for $ac_word... " >&6; }
  3662. if test "${ac_cv_prog_CC+set}" = set; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if test -n "$CC"; then
  3666. ac_cv_prog_CC="$CC" # Let the user override the test.
  3667. else
  3668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3669. for as_dir in $PATH
  3670. do
  3671. IFS=$as_save_IFS
  3672. test -z "$as_dir" && as_dir=.
  3673. for ac_exec_ext in '' $ac_executable_extensions; do
  3674. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3675. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3677. break 2
  3678. fi
  3679. done
  3680. done
  3681. IFS=$as_save_IFS
  3682. fi
  3683. fi
  3684. CC=$ac_cv_prog_CC
  3685. if test -n "$CC"; then
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3687. $as_echo "$CC" >&6; }
  3688. else
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3690. $as_echo "no" >&6; }
  3691. fi
  3692. fi
  3693. fi
  3694. if test -z "$CC"; then
  3695. # Extract the first word of "cc", so it can be a program name with args.
  3696. set dummy cc; ac_word=$2
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3698. $as_echo_n "checking for $ac_word... " >&6; }
  3699. if test "${ac_cv_prog_CC+set}" = set; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. if test -n "$CC"; then
  3703. ac_cv_prog_CC="$CC" # Let the user override the test.
  3704. else
  3705. ac_prog_rejected=no
  3706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3707. for as_dir in $PATH
  3708. do
  3709. IFS=$as_save_IFS
  3710. test -z "$as_dir" && as_dir=.
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3713. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3714. ac_prog_rejected=yes
  3715. continue
  3716. fi
  3717. ac_cv_prog_CC="cc"
  3718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3719. break 2
  3720. fi
  3721. done
  3722. done
  3723. IFS=$as_save_IFS
  3724. if test $ac_prog_rejected = yes; then
  3725. # We found a bogon in the path, so make sure we never use it.
  3726. set dummy $ac_cv_prog_CC
  3727. shift
  3728. if test $# != 0; then
  3729. # We chose a different compiler from the bogus one.
  3730. # However, it has the same basename, so the bogon will be chosen
  3731. # first if we set CC to just the basename; use the full file name.
  3732. shift
  3733. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3734. fi
  3735. fi
  3736. fi
  3737. fi
  3738. CC=$ac_cv_prog_CC
  3739. if test -n "$CC"; then
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3741. $as_echo "$CC" >&6; }
  3742. else
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3744. $as_echo "no" >&6; }
  3745. fi
  3746. fi
  3747. if test -z "$CC"; then
  3748. if test -n "$ac_tool_prefix"; then
  3749. for ac_prog in cl.exe
  3750. do
  3751. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3752. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3754. $as_echo_n "checking for $ac_word... " >&6; }
  3755. if test "${ac_cv_prog_CC+set}" = set; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. if test -n "$CC"; then
  3759. ac_cv_prog_CC="$CC" # Let the user override the test.
  3760. else
  3761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3762. for as_dir in $PATH
  3763. do
  3764. IFS=$as_save_IFS
  3765. test -z "$as_dir" && as_dir=.
  3766. for ac_exec_ext in '' $ac_executable_extensions; do
  3767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3768. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3770. break 2
  3771. fi
  3772. done
  3773. done
  3774. IFS=$as_save_IFS
  3775. fi
  3776. fi
  3777. CC=$ac_cv_prog_CC
  3778. if test -n "$CC"; then
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3780. $as_echo "$CC" >&6; }
  3781. else
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3783. $as_echo "no" >&6; }
  3784. fi
  3785. test -n "$CC" && break
  3786. done
  3787. fi
  3788. if test -z "$CC"; then
  3789. ac_ct_CC=$CC
  3790. for ac_prog in cl.exe
  3791. do
  3792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3793. set dummy $ac_prog; ac_word=$2
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3795. $as_echo_n "checking for $ac_word... " >&6; }
  3796. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3797. $as_echo_n "(cached) " >&6
  3798. else
  3799. if test -n "$ac_ct_CC"; then
  3800. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3801. else
  3802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3803. for as_dir in $PATH
  3804. do
  3805. IFS=$as_save_IFS
  3806. test -z "$as_dir" && as_dir=.
  3807. for ac_exec_ext in '' $ac_executable_extensions; do
  3808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3809. ac_cv_prog_ac_ct_CC="$ac_prog"
  3810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3811. break 2
  3812. fi
  3813. done
  3814. done
  3815. IFS=$as_save_IFS
  3816. fi
  3817. fi
  3818. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3819. if test -n "$ac_ct_CC"; then
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3821. $as_echo "$ac_ct_CC" >&6; }
  3822. else
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3824. $as_echo "no" >&6; }
  3825. fi
  3826. test -n "$ac_ct_CC" && break
  3827. done
  3828. if test "x$ac_ct_CC" = x; then
  3829. CC=""
  3830. else
  3831. case $cross_compiling:$ac_tool_warned in
  3832. yes:)
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3835. ac_tool_warned=yes ;;
  3836. esac
  3837. CC=$ac_ct_CC
  3838. fi
  3839. fi
  3840. fi
  3841. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3842. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3843. as_fn_error $? "no acceptable C compiler found in \$PATH
  3844. See \`config.log' for more details" "$LINENO" 5; }
  3845. # Provide some information about the compiler.
  3846. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3847. set X $ac_compile
  3848. ac_compiler=$2
  3849. for ac_option in --version -v -V -qversion; do
  3850. { { ac_try="$ac_compiler $ac_option >&5"
  3851. case "(($ac_try" in
  3852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3853. *) ac_try_echo=$ac_try;;
  3854. esac
  3855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3856. $as_echo "$ac_try_echo"; } >&5
  3857. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3858. ac_status=$?
  3859. if test -s conftest.err; then
  3860. sed '10a\
  3861. ... rest of stderr output deleted ...
  3862. 10q' conftest.err >conftest.er1
  3863. cat conftest.er1 >&5
  3864. fi
  3865. rm -f conftest.er1 conftest.err
  3866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3867. test $ac_status = 0; }
  3868. done
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3870. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3871. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3875. /* end confdefs.h. */
  3876. int
  3877. main ()
  3878. {
  3879. #ifndef __GNUC__
  3880. choke me
  3881. #endif
  3882. ;
  3883. return 0;
  3884. }
  3885. _ACEOF
  3886. if ac_fn_c_try_compile "$LINENO"; then :
  3887. ac_compiler_gnu=yes
  3888. else
  3889. ac_compiler_gnu=no
  3890. fi
  3891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3892. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3893. fi
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3895. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3896. if test $ac_compiler_gnu = yes; then
  3897. GCC=yes
  3898. else
  3899. GCC=
  3900. fi
  3901. ac_test_CFLAGS=${CFLAGS+set}
  3902. ac_save_CFLAGS=$CFLAGS
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3904. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3905. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3906. $as_echo_n "(cached) " >&6
  3907. else
  3908. ac_save_c_werror_flag=$ac_c_werror_flag
  3909. ac_c_werror_flag=yes
  3910. ac_cv_prog_cc_g=no
  3911. CFLAGS="-g"
  3912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end confdefs.h. */
  3914. int
  3915. main ()
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_c_try_compile "$LINENO"; then :
  3922. ac_cv_prog_cc_g=yes
  3923. else
  3924. CFLAGS=""
  3925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3926. /* end confdefs.h. */
  3927. int
  3928. main ()
  3929. {
  3930. ;
  3931. return 0;
  3932. }
  3933. _ACEOF
  3934. if ac_fn_c_try_compile "$LINENO"; then :
  3935. else
  3936. ac_c_werror_flag=$ac_save_c_werror_flag
  3937. CFLAGS="-g"
  3938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3939. /* end confdefs.h. */
  3940. int
  3941. main ()
  3942. {
  3943. ;
  3944. return 0;
  3945. }
  3946. _ACEOF
  3947. if ac_fn_c_try_compile "$LINENO"; then :
  3948. ac_cv_prog_cc_g=yes
  3949. fi
  3950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3951. fi
  3952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3953. fi
  3954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3955. ac_c_werror_flag=$ac_save_c_werror_flag
  3956. fi
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3958. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3959. if test "$ac_test_CFLAGS" = set; then
  3960. CFLAGS=$ac_save_CFLAGS
  3961. elif test $ac_cv_prog_cc_g = yes; then
  3962. if test "$GCC" = yes; then
  3963. CFLAGS="-g -O2"
  3964. else
  3965. CFLAGS="-g"
  3966. fi
  3967. else
  3968. if test "$GCC" = yes; then
  3969. CFLAGS="-O2"
  3970. else
  3971. CFLAGS=
  3972. fi
  3973. fi
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3975. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3976. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. ac_cv_prog_cc_c89=no
  3980. ac_save_CC=$CC
  3981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3982. /* end confdefs.h. */
  3983. #include <stdarg.h>
  3984. #include <stdio.h>
  3985. #include <sys/types.h>
  3986. #include <sys/stat.h>
  3987. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3988. struct buf { int x; };
  3989. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3990. static char *e (p, i)
  3991. char **p;
  3992. int i;
  3993. {
  3994. return p[i];
  3995. }
  3996. static char *f (char * (*g) (char **, int), char **p, ...)
  3997. {
  3998. char *s;
  3999. va_list v;
  4000. va_start (v,p);
  4001. s = g (p, va_arg (v,int));
  4002. va_end (v);
  4003. return s;
  4004. }
  4005. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4006. function prototypes and stuff, but not '\xHH' hex character constants.
  4007. These don't provoke an error unfortunately, instead are silently treated
  4008. as 'x'. The following induces an error, until -std is added to get
  4009. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4010. array size at least. It's necessary to write '\x00'==0 to get something
  4011. that's true only with -std. */
  4012. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4013. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4014. inside strings and character constants. */
  4015. #define FOO(x) 'x'
  4016. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4017. int test (int i, double x);
  4018. struct s1 {int (*f) (int a);};
  4019. struct s2 {int (*f) (double a);};
  4020. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4021. int argc;
  4022. char **argv;
  4023. int
  4024. main ()
  4025. {
  4026. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4032. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4033. do
  4034. CC="$ac_save_CC $ac_arg"
  4035. if ac_fn_c_try_compile "$LINENO"; then :
  4036. ac_cv_prog_cc_c89=$ac_arg
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext
  4039. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4040. done
  4041. rm -f conftest.$ac_ext
  4042. CC=$ac_save_CC
  4043. fi
  4044. # AC_CACHE_VAL
  4045. case "x$ac_cv_prog_cc_c89" in
  4046. x)
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4048. $as_echo "none needed" >&6; } ;;
  4049. xno)
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4051. $as_echo "unsupported" >&6; } ;;
  4052. *)
  4053. CC="$CC $ac_cv_prog_cc_c89"
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4055. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4056. esac
  4057. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4058. fi
  4059. ac_ext=c
  4060. ac_cpp='$CPP $CPPFLAGS'
  4061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4064. depcc="$CC" am_compiler_list=
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4066. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4067. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4071. # We make a subdir and do the tests there. Otherwise we can end up
  4072. # making bogus files that we don't know about and never remove. For
  4073. # instance it was reported that on HP-UX the gcc test will end up
  4074. # making a dummy file named `D' -- because `-MD' means `put the output
  4075. # in D'.
  4076. mkdir conftest.dir
  4077. # Copy depcomp to subdir because otherwise we won't find it if we're
  4078. # using a relative directory.
  4079. cp "$am_depcomp" conftest.dir
  4080. cd conftest.dir
  4081. # We will build objects and dependencies in a subdirectory because
  4082. # it helps to detect inapplicable dependency modes. For instance
  4083. # both Tru64's cc and ICC support -MD to output dependencies as a
  4084. # side effect of compilation, but ICC will put the dependencies in
  4085. # the current directory while Tru64 will put them in the object
  4086. # directory.
  4087. mkdir sub
  4088. am_cv_CC_dependencies_compiler_type=none
  4089. if test "$am_compiler_list" = ""; then
  4090. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4091. fi
  4092. am__universal=false
  4093. case " $depcc " in #(
  4094. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4095. esac
  4096. for depmode in $am_compiler_list; do
  4097. # Setup a source with many dependencies, because some compilers
  4098. # like to wrap large dependency lists on column 80 (with \), and
  4099. # we should not choose a depcomp mode which is confused by this.
  4100. #
  4101. # We need to recreate these files for each test, as the compiler may
  4102. # overwrite some of them when testing with obscure command lines.
  4103. # This happens at least with the AIX C compiler.
  4104. : > sub/conftest.c
  4105. for i in 1 2 3 4 5 6; do
  4106. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4107. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4108. # Solaris 8's {/usr,}/bin/sh.
  4109. touch sub/conftst$i.h
  4110. done
  4111. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4112. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4113. # mode. It turns out that the SunPro C++ compiler does not properly
  4114. # handle `-M -o', and we need to detect this. Also, some Intel
  4115. # versions had trouble with output in subdirs
  4116. am__obj=sub/conftest.${OBJEXT-o}
  4117. am__minus_obj="-o $am__obj"
  4118. case $depmode in
  4119. gcc)
  4120. # This depmode causes a compiler race in universal mode.
  4121. test "$am__universal" = false || continue
  4122. ;;
  4123. nosideeffect)
  4124. # after this tag, mechanisms are not by side-effect, so they'll
  4125. # only be used when explicitly requested
  4126. if test "x$enable_dependency_tracking" = xyes; then
  4127. continue
  4128. else
  4129. break
  4130. fi
  4131. ;;
  4132. msvisualcpp | msvcmsys)
  4133. # This compiler won't grok `-c -o', but also, the minuso test has
  4134. # not run yet. These depmodes are late enough in the game, and
  4135. # so weak that their functioning should not be impacted.
  4136. am__obj=conftest.${OBJEXT-o}
  4137. am__minus_obj=
  4138. ;;
  4139. none) break ;;
  4140. esac
  4141. if depmode=$depmode \
  4142. source=sub/conftest.c object=$am__obj \
  4143. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4144. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4145. >/dev/null 2>conftest.err &&
  4146. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4147. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4148. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4149. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4150. # icc doesn't choke on unknown options, it will just issue warnings
  4151. # or remarks (even with -Werror). So we grep stderr for any message
  4152. # that says an option was ignored or not supported.
  4153. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4154. # icc: Command line warning: ignoring option '-M'; no argument required
  4155. # The diagnosis changed in icc 8.0:
  4156. # icc: Command line remark: option '-MP' not supported
  4157. if (grep 'ignoring option' conftest.err ||
  4158. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4159. am_cv_CC_dependencies_compiler_type=$depmode
  4160. break
  4161. fi
  4162. fi
  4163. done
  4164. cd ..
  4165. rm -rf conftest.dir
  4166. else
  4167. am_cv_CC_dependencies_compiler_type=none
  4168. fi
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4171. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4172. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4173. if
  4174. test "x$enable_dependency_tracking" != xno \
  4175. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4176. am__fastdepCC_TRUE=
  4177. am__fastdepCC_FALSE='#'
  4178. else
  4179. am__fastdepCC_TRUE='#'
  4180. am__fastdepCC_FALSE=
  4181. fi
  4182. ac_ext=c
  4183. ac_cpp='$CPP $CPPFLAGS'
  4184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4187. if test -n "$ac_tool_prefix"; then
  4188. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4189. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4191. $as_echo_n "checking for $ac_word... " >&6; }
  4192. if test "${ac_cv_prog_CC+set}" = set; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. if test -n "$CC"; then
  4196. ac_cv_prog_CC="$CC" # Let the user override the test.
  4197. else
  4198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4199. for as_dir in $PATH
  4200. do
  4201. IFS=$as_save_IFS
  4202. test -z "$as_dir" && as_dir=.
  4203. for ac_exec_ext in '' $ac_executable_extensions; do
  4204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4205. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4207. break 2
  4208. fi
  4209. done
  4210. done
  4211. IFS=$as_save_IFS
  4212. fi
  4213. fi
  4214. CC=$ac_cv_prog_CC
  4215. if test -n "$CC"; then
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4217. $as_echo "$CC" >&6; }
  4218. else
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4220. $as_echo "no" >&6; }
  4221. fi
  4222. fi
  4223. if test -z "$ac_cv_prog_CC"; then
  4224. ac_ct_CC=$CC
  4225. # Extract the first word of "gcc", so it can be a program name with args.
  4226. set dummy gcc; ac_word=$2
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4228. $as_echo_n "checking for $ac_word... " >&6; }
  4229. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4230. $as_echo_n "(cached) " >&6
  4231. else
  4232. if test -n "$ac_ct_CC"; then
  4233. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4234. else
  4235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4236. for as_dir in $PATH
  4237. do
  4238. IFS=$as_save_IFS
  4239. test -z "$as_dir" && as_dir=.
  4240. for ac_exec_ext in '' $ac_executable_extensions; do
  4241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4242. ac_cv_prog_ac_ct_CC="gcc"
  4243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4244. break 2
  4245. fi
  4246. done
  4247. done
  4248. IFS=$as_save_IFS
  4249. fi
  4250. fi
  4251. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4252. if test -n "$ac_ct_CC"; then
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4254. $as_echo "$ac_ct_CC" >&6; }
  4255. else
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4257. $as_echo "no" >&6; }
  4258. fi
  4259. if test "x$ac_ct_CC" = x; then
  4260. CC=""
  4261. else
  4262. case $cross_compiling:$ac_tool_warned in
  4263. yes:)
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4266. ac_tool_warned=yes ;;
  4267. esac
  4268. CC=$ac_ct_CC
  4269. fi
  4270. else
  4271. CC="$ac_cv_prog_CC"
  4272. fi
  4273. if test -z "$CC"; then
  4274. if test -n "$ac_tool_prefix"; then
  4275. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4276. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4278. $as_echo_n "checking for $ac_word... " >&6; }
  4279. if test "${ac_cv_prog_CC+set}" = set; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. if test -n "$CC"; then
  4283. ac_cv_prog_CC="$CC" # Let the user override the test.
  4284. else
  4285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4286. for as_dir in $PATH
  4287. do
  4288. IFS=$as_save_IFS
  4289. test -z "$as_dir" && as_dir=.
  4290. for ac_exec_ext in '' $ac_executable_extensions; do
  4291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4292. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4294. break 2
  4295. fi
  4296. done
  4297. done
  4298. IFS=$as_save_IFS
  4299. fi
  4300. fi
  4301. CC=$ac_cv_prog_CC
  4302. if test -n "$CC"; then
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4304. $as_echo "$CC" >&6; }
  4305. else
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4307. $as_echo "no" >&6; }
  4308. fi
  4309. fi
  4310. fi
  4311. if test -z "$CC"; then
  4312. # Extract the first word of "cc", so it can be a program name with args.
  4313. set dummy cc; ac_word=$2
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4315. $as_echo_n "checking for $ac_word... " >&6; }
  4316. if test "${ac_cv_prog_CC+set}" = set; then :
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. if test -n "$CC"; then
  4320. ac_cv_prog_CC="$CC" # Let the user override the test.
  4321. else
  4322. ac_prog_rejected=no
  4323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4324. for as_dir in $PATH
  4325. do
  4326. IFS=$as_save_IFS
  4327. test -z "$as_dir" && as_dir=.
  4328. for ac_exec_ext in '' $ac_executable_extensions; do
  4329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4331. ac_prog_rejected=yes
  4332. continue
  4333. fi
  4334. ac_cv_prog_CC="cc"
  4335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4336. break 2
  4337. fi
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. if test $ac_prog_rejected = yes; then
  4342. # We found a bogon in the path, so make sure we never use it.
  4343. set dummy $ac_cv_prog_CC
  4344. shift
  4345. if test $# != 0; then
  4346. # We chose a different compiler from the bogus one.
  4347. # However, it has the same basename, so the bogon will be chosen
  4348. # first if we set CC to just the basename; use the full file name.
  4349. shift
  4350. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4351. fi
  4352. fi
  4353. fi
  4354. fi
  4355. CC=$ac_cv_prog_CC
  4356. if test -n "$CC"; then
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4358. $as_echo "$CC" >&6; }
  4359. else
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4361. $as_echo "no" >&6; }
  4362. fi
  4363. fi
  4364. if test -z "$CC"; then
  4365. if test -n "$ac_tool_prefix"; then
  4366. for ac_prog in cl.exe
  4367. do
  4368. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4369. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4371. $as_echo_n "checking for $ac_word... " >&6; }
  4372. if test "${ac_cv_prog_CC+set}" = set; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. if test -n "$CC"; then
  4376. ac_cv_prog_CC="$CC" # Let the user override the test.
  4377. else
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. for ac_exec_ext in '' $ac_executable_extensions; do
  4384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4385. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4387. break 2
  4388. fi
  4389. done
  4390. done
  4391. IFS=$as_save_IFS
  4392. fi
  4393. fi
  4394. CC=$ac_cv_prog_CC
  4395. if test -n "$CC"; then
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4397. $as_echo "$CC" >&6; }
  4398. else
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4400. $as_echo "no" >&6; }
  4401. fi
  4402. test -n "$CC" && break
  4403. done
  4404. fi
  4405. if test -z "$CC"; then
  4406. ac_ct_CC=$CC
  4407. for ac_prog in cl.exe
  4408. do
  4409. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4410. set dummy $ac_prog; ac_word=$2
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4412. $as_echo_n "checking for $ac_word... " >&6; }
  4413. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4414. $as_echo_n "(cached) " >&6
  4415. else
  4416. if test -n "$ac_ct_CC"; then
  4417. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4418. else
  4419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4420. for as_dir in $PATH
  4421. do
  4422. IFS=$as_save_IFS
  4423. test -z "$as_dir" && as_dir=.
  4424. for ac_exec_ext in '' $ac_executable_extensions; do
  4425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4426. ac_cv_prog_ac_ct_CC="$ac_prog"
  4427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4428. break 2
  4429. fi
  4430. done
  4431. done
  4432. IFS=$as_save_IFS
  4433. fi
  4434. fi
  4435. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4436. if test -n "$ac_ct_CC"; then
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4438. $as_echo "$ac_ct_CC" >&6; }
  4439. else
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4441. $as_echo "no" >&6; }
  4442. fi
  4443. test -n "$ac_ct_CC" && break
  4444. done
  4445. if test "x$ac_ct_CC" = x; then
  4446. CC=""
  4447. else
  4448. case $cross_compiling:$ac_tool_warned in
  4449. yes:)
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4452. ac_tool_warned=yes ;;
  4453. esac
  4454. CC=$ac_ct_CC
  4455. fi
  4456. fi
  4457. fi
  4458. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4459. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4460. as_fn_error $? "no acceptable C compiler found in \$PATH
  4461. See \`config.log' for more details" "$LINENO" 5; }
  4462. # Provide some information about the compiler.
  4463. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4464. set X $ac_compile
  4465. ac_compiler=$2
  4466. for ac_option in --version -v -V -qversion; do
  4467. { { ac_try="$ac_compiler $ac_option >&5"
  4468. case "(($ac_try" in
  4469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4470. *) ac_try_echo=$ac_try;;
  4471. esac
  4472. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4473. $as_echo "$ac_try_echo"; } >&5
  4474. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4475. ac_status=$?
  4476. if test -s conftest.err; then
  4477. sed '10a\
  4478. ... rest of stderr output deleted ...
  4479. 10q' conftest.err >conftest.er1
  4480. cat conftest.er1 >&5
  4481. fi
  4482. rm -f conftest.er1 conftest.err
  4483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4484. test $ac_status = 0; }
  4485. done
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4487. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4488. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4489. $as_echo_n "(cached) " >&6
  4490. else
  4491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4492. /* end confdefs.h. */
  4493. int
  4494. main ()
  4495. {
  4496. #ifndef __GNUC__
  4497. choke me
  4498. #endif
  4499. ;
  4500. return 0;
  4501. }
  4502. _ACEOF
  4503. if ac_fn_c_try_compile "$LINENO"; then :
  4504. ac_compiler_gnu=yes
  4505. else
  4506. ac_compiler_gnu=no
  4507. fi
  4508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4509. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4512. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4513. if test $ac_compiler_gnu = yes; then
  4514. GCC=yes
  4515. else
  4516. GCC=
  4517. fi
  4518. ac_test_CFLAGS=${CFLAGS+set}
  4519. ac_save_CFLAGS=$CFLAGS
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4521. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4522. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. ac_save_c_werror_flag=$ac_c_werror_flag
  4526. ac_c_werror_flag=yes
  4527. ac_cv_prog_cc_g=no
  4528. CFLAGS="-g"
  4529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4530. /* end confdefs.h. */
  4531. int
  4532. main ()
  4533. {
  4534. ;
  4535. return 0;
  4536. }
  4537. _ACEOF
  4538. if ac_fn_c_try_compile "$LINENO"; then :
  4539. ac_cv_prog_cc_g=yes
  4540. else
  4541. CFLAGS=""
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. int
  4545. main ()
  4546. {
  4547. ;
  4548. return 0;
  4549. }
  4550. _ACEOF
  4551. if ac_fn_c_try_compile "$LINENO"; then :
  4552. else
  4553. ac_c_werror_flag=$ac_save_c_werror_flag
  4554. CFLAGS="-g"
  4555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h. */
  4557. int
  4558. main ()
  4559. {
  4560. ;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. if ac_fn_c_try_compile "$LINENO"; then :
  4565. ac_cv_prog_cc_g=yes
  4566. fi
  4567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4568. fi
  4569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4570. fi
  4571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4572. ac_c_werror_flag=$ac_save_c_werror_flag
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4575. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4576. if test "$ac_test_CFLAGS" = set; then
  4577. CFLAGS=$ac_save_CFLAGS
  4578. elif test $ac_cv_prog_cc_g = yes; then
  4579. if test "$GCC" = yes; then
  4580. CFLAGS="-g -O2"
  4581. else
  4582. CFLAGS="-g"
  4583. fi
  4584. else
  4585. if test "$GCC" = yes; then
  4586. CFLAGS="-O2"
  4587. else
  4588. CFLAGS=
  4589. fi
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4592. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4593. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. ac_cv_prog_cc_c89=no
  4597. ac_save_CC=$CC
  4598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4599. /* end confdefs.h. */
  4600. #include <stdarg.h>
  4601. #include <stdio.h>
  4602. #include <sys/types.h>
  4603. #include <sys/stat.h>
  4604. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4605. struct buf { int x; };
  4606. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4607. static char *e (p, i)
  4608. char **p;
  4609. int i;
  4610. {
  4611. return p[i];
  4612. }
  4613. static char *f (char * (*g) (char **, int), char **p, ...)
  4614. {
  4615. char *s;
  4616. va_list v;
  4617. va_start (v,p);
  4618. s = g (p, va_arg (v,int));
  4619. va_end (v);
  4620. return s;
  4621. }
  4622. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4623. function prototypes and stuff, but not '\xHH' hex character constants.
  4624. These don't provoke an error unfortunately, instead are silently treated
  4625. as 'x'. The following induces an error, until -std is added to get
  4626. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4627. array size at least. It's necessary to write '\x00'==0 to get something
  4628. that's true only with -std. */
  4629. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4630. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4631. inside strings and character constants. */
  4632. #define FOO(x) 'x'
  4633. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4634. int test (int i, double x);
  4635. struct s1 {int (*f) (int a);};
  4636. struct s2 {int (*f) (double a);};
  4637. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4638. int argc;
  4639. char **argv;
  4640. int
  4641. main ()
  4642. {
  4643. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4649. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4650. do
  4651. CC="$ac_save_CC $ac_arg"
  4652. if ac_fn_c_try_compile "$LINENO"; then :
  4653. ac_cv_prog_cc_c89=$ac_arg
  4654. fi
  4655. rm -f core conftest.err conftest.$ac_objext
  4656. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4657. done
  4658. rm -f conftest.$ac_ext
  4659. CC=$ac_save_CC
  4660. fi
  4661. # AC_CACHE_VAL
  4662. case "x$ac_cv_prog_cc_c89" in
  4663. x)
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4665. $as_echo "none needed" >&6; } ;;
  4666. xno)
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4668. $as_echo "unsupported" >&6; } ;;
  4669. *)
  4670. CC="$CC $ac_cv_prog_cc_c89"
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4672. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4673. esac
  4674. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4675. fi
  4676. ac_ext=c
  4677. ac_cpp='$CPP $CPPFLAGS'
  4678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4681. depcc="$CC" am_compiler_list=
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4683. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4684. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4685. $as_echo_n "(cached) " >&6
  4686. else
  4687. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4688. # We make a subdir and do the tests there. Otherwise we can end up
  4689. # making bogus files that we don't know about and never remove. For
  4690. # instance it was reported that on HP-UX the gcc test will end up
  4691. # making a dummy file named `D' -- because `-MD' means `put the output
  4692. # in D'.
  4693. mkdir conftest.dir
  4694. # Copy depcomp to subdir because otherwise we won't find it if we're
  4695. # using a relative directory.
  4696. cp "$am_depcomp" conftest.dir
  4697. cd conftest.dir
  4698. # We will build objects and dependencies in a subdirectory because
  4699. # it helps to detect inapplicable dependency modes. For instance
  4700. # both Tru64's cc and ICC support -MD to output dependencies as a
  4701. # side effect of compilation, but ICC will put the dependencies in
  4702. # the current directory while Tru64 will put them in the object
  4703. # directory.
  4704. mkdir sub
  4705. am_cv_CC_dependencies_compiler_type=none
  4706. if test "$am_compiler_list" = ""; then
  4707. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4708. fi
  4709. am__universal=false
  4710. case " $depcc " in #(
  4711. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4712. esac
  4713. for depmode in $am_compiler_list; do
  4714. # Setup a source with many dependencies, because some compilers
  4715. # like to wrap large dependency lists on column 80 (with \), and
  4716. # we should not choose a depcomp mode which is confused by this.
  4717. #
  4718. # We need to recreate these files for each test, as the compiler may
  4719. # overwrite some of them when testing with obscure command lines.
  4720. # This happens at least with the AIX C compiler.
  4721. : > sub/conftest.c
  4722. for i in 1 2 3 4 5 6; do
  4723. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4724. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4725. # Solaris 8's {/usr,}/bin/sh.
  4726. touch sub/conftst$i.h
  4727. done
  4728. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4729. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4730. # mode. It turns out that the SunPro C++ compiler does not properly
  4731. # handle `-M -o', and we need to detect this. Also, some Intel
  4732. # versions had trouble with output in subdirs
  4733. am__obj=sub/conftest.${OBJEXT-o}
  4734. am__minus_obj="-o $am__obj"
  4735. case $depmode in
  4736. gcc)
  4737. # This depmode causes a compiler race in universal mode.
  4738. test "$am__universal" = false || continue
  4739. ;;
  4740. nosideeffect)
  4741. # after this tag, mechanisms are not by side-effect, so they'll
  4742. # only be used when explicitly requested
  4743. if test "x$enable_dependency_tracking" = xyes; then
  4744. continue
  4745. else
  4746. break
  4747. fi
  4748. ;;
  4749. msvisualcpp | msvcmsys)
  4750. # This compiler won't grok `-c -o', but also, the minuso test has
  4751. # not run yet. These depmodes are late enough in the game, and
  4752. # so weak that their functioning should not be impacted.
  4753. am__obj=conftest.${OBJEXT-o}
  4754. am__minus_obj=
  4755. ;;
  4756. none) break ;;
  4757. esac
  4758. if depmode=$depmode \
  4759. source=sub/conftest.c object=$am__obj \
  4760. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4761. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4762. >/dev/null 2>conftest.err &&
  4763. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4764. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4765. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4766. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4767. # icc doesn't choke on unknown options, it will just issue warnings
  4768. # or remarks (even with -Werror). So we grep stderr for any message
  4769. # that says an option was ignored or not supported.
  4770. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4771. # icc: Command line warning: ignoring option '-M'; no argument required
  4772. # The diagnosis changed in icc 8.0:
  4773. # icc: Command line remark: option '-MP' not supported
  4774. if (grep 'ignoring option' conftest.err ||
  4775. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4776. am_cv_CC_dependencies_compiler_type=$depmode
  4777. break
  4778. fi
  4779. fi
  4780. done
  4781. cd ..
  4782. rm -rf conftest.dir
  4783. else
  4784. am_cv_CC_dependencies_compiler_type=none
  4785. fi
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4788. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4789. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4790. if
  4791. test "x$enable_dependency_tracking" != xno \
  4792. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4793. am__fastdepCC_TRUE=
  4794. am__fastdepCC_FALSE='#'
  4795. else
  4796. am__fastdepCC_TRUE='#'
  4797. am__fastdepCC_FALSE=
  4798. fi
  4799. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  4800. ac_ext=c
  4801. ac_cpp='$CPP $CPPFLAGS'
  4802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4806. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4807. # On Suns, sometimes $CPP names a directory.
  4808. if test -n "$CPP" && test -d "$CPP"; then
  4809. CPP=
  4810. fi
  4811. if test -z "$CPP"; then
  4812. if test "${ac_cv_prog_CPP+set}" = set; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. # Double quotes because CPP needs to be expanded
  4816. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4817. do
  4818. ac_preproc_ok=false
  4819. for ac_c_preproc_warn_flag in '' yes
  4820. do
  4821. # Use a header file that comes with gcc, so configuring glibc
  4822. # with a fresh cross-compiler works.
  4823. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4824. # <limits.h> exists even on freestanding compilers.
  4825. # On the NeXT, cc -E runs the code through the compiler's parser,
  4826. # not just through cpp. "Syntax error" is here to catch this case.
  4827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4828. /* end confdefs.h. */
  4829. #ifdef __STDC__
  4830. # include <limits.h>
  4831. #else
  4832. # include <assert.h>
  4833. #endif
  4834. Syntax error
  4835. _ACEOF
  4836. if ac_fn_c_try_cpp "$LINENO"; then :
  4837. else
  4838. # Broken: fails on valid input.
  4839. continue
  4840. fi
  4841. rm -f conftest.err conftest.$ac_ext
  4842. # OK, works on sane cases. Now check whether nonexistent headers
  4843. # can be detected and how.
  4844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4845. /* end confdefs.h. */
  4846. #include <ac_nonexistent.h>
  4847. _ACEOF
  4848. if ac_fn_c_try_cpp "$LINENO"; then :
  4849. # Broken: success on invalid input.
  4850. continue
  4851. else
  4852. # Passes both tests.
  4853. ac_preproc_ok=:
  4854. break
  4855. fi
  4856. rm -f conftest.err conftest.$ac_ext
  4857. done
  4858. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4859. rm -f conftest.err conftest.$ac_ext
  4860. if $ac_preproc_ok; then :
  4861. break
  4862. fi
  4863. done
  4864. ac_cv_prog_CPP=$CPP
  4865. fi
  4866. CPP=$ac_cv_prog_CPP
  4867. else
  4868. ac_cv_prog_CPP=$CPP
  4869. fi
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4871. $as_echo "$CPP" >&6; }
  4872. ac_preproc_ok=false
  4873. for ac_c_preproc_warn_flag in '' yes
  4874. do
  4875. # Use a header file that comes with gcc, so configuring glibc
  4876. # with a fresh cross-compiler works.
  4877. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4878. # <limits.h> exists even on freestanding compilers.
  4879. # On the NeXT, cc -E runs the code through the compiler's parser,
  4880. # not just through cpp. "Syntax error" is here to catch this case.
  4881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4882. /* end confdefs.h. */
  4883. #ifdef __STDC__
  4884. # include <limits.h>
  4885. #else
  4886. # include <assert.h>
  4887. #endif
  4888. Syntax error
  4889. _ACEOF
  4890. if ac_fn_c_try_cpp "$LINENO"; then :
  4891. else
  4892. # Broken: fails on valid input.
  4893. continue
  4894. fi
  4895. rm -f conftest.err conftest.$ac_ext
  4896. # OK, works on sane cases. Now check whether nonexistent headers
  4897. # can be detected and how.
  4898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4899. /* end confdefs.h. */
  4900. #include <ac_nonexistent.h>
  4901. _ACEOF
  4902. if ac_fn_c_try_cpp "$LINENO"; then :
  4903. # Broken: success on invalid input.
  4904. continue
  4905. else
  4906. # Passes both tests.
  4907. ac_preproc_ok=:
  4908. break
  4909. fi
  4910. rm -f conftest.err conftest.$ac_ext
  4911. done
  4912. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4913. rm -f conftest.err conftest.$ac_ext
  4914. if $ac_preproc_ok; then :
  4915. else
  4916. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4918. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4919. See \`config.log' for more details" "$LINENO" 5; }
  4920. fi
  4921. ac_ext=c
  4922. ac_cpp='$CPP $CPPFLAGS'
  4923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4927. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4928. if test "${ac_cv_path_GREP+set}" = set; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if test -z "$GREP"; then
  4932. ac_path_GREP_found=false
  4933. # Loop through the user's path and test for each of PROGNAME-LIST
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_prog in grep ggrep; do
  4940. for ac_exec_ext in '' $ac_executable_extensions; do
  4941. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4942. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4943. # Check for GNU ac_path_GREP and select it if it is found.
  4944. # Check for GNU $ac_path_GREP
  4945. case `"$ac_path_GREP" --version 2>&1` in
  4946. *GNU*)
  4947. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4948. *)
  4949. ac_count=0
  4950. $as_echo_n 0123456789 >"conftest.in"
  4951. while :
  4952. do
  4953. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4954. mv "conftest.tmp" "conftest.in"
  4955. cp "conftest.in" "conftest.nl"
  4956. $as_echo 'GREP' >> "conftest.nl"
  4957. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4958. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4959. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4960. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4961. # Best one so far, save it but keep looking for a better one
  4962. ac_cv_path_GREP="$ac_path_GREP"
  4963. ac_path_GREP_max=$ac_count
  4964. fi
  4965. # 10*(2^10) chars as input seems more than enough
  4966. test $ac_count -gt 10 && break
  4967. done
  4968. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4969. esac
  4970. $ac_path_GREP_found && break 3
  4971. done
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. if test -z "$ac_cv_path_GREP"; then
  4976. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4977. fi
  4978. else
  4979. ac_cv_path_GREP=$GREP
  4980. fi
  4981. fi
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4983. $as_echo "$ac_cv_path_GREP" >&6; }
  4984. GREP="$ac_cv_path_GREP"
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4986. $as_echo_n "checking for egrep... " >&6; }
  4987. if test "${ac_cv_path_EGREP+set}" = set; then :
  4988. $as_echo_n "(cached) " >&6
  4989. else
  4990. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4991. then ac_cv_path_EGREP="$GREP -E"
  4992. else
  4993. if test -z "$EGREP"; then
  4994. ac_path_EGREP_found=false
  4995. # Loop through the user's path and test for each of PROGNAME-LIST
  4996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4997. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4998. do
  4999. IFS=$as_save_IFS
  5000. test -z "$as_dir" && as_dir=.
  5001. for ac_prog in egrep; do
  5002. for ac_exec_ext in '' $ac_executable_extensions; do
  5003. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5004. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5005. # Check for GNU ac_path_EGREP and select it if it is found.
  5006. # Check for GNU $ac_path_EGREP
  5007. case `"$ac_path_EGREP" --version 2>&1` in
  5008. *GNU*)
  5009. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5010. *)
  5011. ac_count=0
  5012. $as_echo_n 0123456789 >"conftest.in"
  5013. while :
  5014. do
  5015. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5016. mv "conftest.tmp" "conftest.in"
  5017. cp "conftest.in" "conftest.nl"
  5018. $as_echo 'EGREP' >> "conftest.nl"
  5019. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5020. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5021. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5022. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5023. # Best one so far, save it but keep looking for a better one
  5024. ac_cv_path_EGREP="$ac_path_EGREP"
  5025. ac_path_EGREP_max=$ac_count
  5026. fi
  5027. # 10*(2^10) chars as input seems more than enough
  5028. test $ac_count -gt 10 && break
  5029. done
  5030. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5031. esac
  5032. $ac_path_EGREP_found && break 3
  5033. done
  5034. done
  5035. done
  5036. IFS=$as_save_IFS
  5037. if test -z "$ac_cv_path_EGREP"; then
  5038. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5039. fi
  5040. else
  5041. ac_cv_path_EGREP=$EGREP
  5042. fi
  5043. fi
  5044. fi
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5046. $as_echo "$ac_cv_path_EGREP" >&6; }
  5047. EGREP="$ac_cv_path_EGREP"
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5049. $as_echo_n "checking for ANSI C header files... " >&6; }
  5050. if test "${ac_cv_header_stdc+set}" = set; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5054. /* end confdefs.h. */
  5055. #include <stdlib.h>
  5056. #include <stdarg.h>
  5057. #include <string.h>
  5058. #include <float.h>
  5059. int
  5060. main ()
  5061. {
  5062. ;
  5063. return 0;
  5064. }
  5065. _ACEOF
  5066. if ac_fn_c_try_compile "$LINENO"; then :
  5067. ac_cv_header_stdc=yes
  5068. else
  5069. ac_cv_header_stdc=no
  5070. fi
  5071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5072. if test $ac_cv_header_stdc = yes; then
  5073. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5075. /* end confdefs.h. */
  5076. #include <string.h>
  5077. _ACEOF
  5078. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5079. $EGREP "memchr" >/dev/null 2>&1; then :
  5080. else
  5081. ac_cv_header_stdc=no
  5082. fi
  5083. rm -f conftest*
  5084. fi
  5085. if test $ac_cv_header_stdc = yes; then
  5086. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. #include <stdlib.h>
  5090. _ACEOF
  5091. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5092. $EGREP "free" >/dev/null 2>&1; then :
  5093. else
  5094. ac_cv_header_stdc=no
  5095. fi
  5096. rm -f conftest*
  5097. fi
  5098. if test $ac_cv_header_stdc = yes; then
  5099. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5100. if test "$cross_compiling" = yes; then :
  5101. :
  5102. else
  5103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end confdefs.h. */
  5105. #include <ctype.h>
  5106. #include <stdlib.h>
  5107. #if ((' ' & 0x0FF) == 0x020)
  5108. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5109. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5110. #else
  5111. # define ISLOWER(c) \
  5112. (('a' <= (c) && (c) <= 'i') \
  5113. || ('j' <= (c) && (c) <= 'r') \
  5114. || ('s' <= (c) && (c) <= 'z'))
  5115. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5116. #endif
  5117. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5118. int
  5119. main ()
  5120. {
  5121. int i;
  5122. for (i = 0; i < 256; i++)
  5123. if (XOR (islower (i), ISLOWER (i))
  5124. || toupper (i) != TOUPPER (i))
  5125. return 2;
  5126. return 0;
  5127. }
  5128. _ACEOF
  5129. if ac_fn_c_try_run "$LINENO"; then :
  5130. else
  5131. ac_cv_header_stdc=no
  5132. fi
  5133. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5134. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5135. fi
  5136. fi
  5137. fi
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5139. $as_echo "$ac_cv_header_stdc" >&6; }
  5140. if test $ac_cv_header_stdc = yes; then
  5141. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5142. fi
  5143. ac_ext=c
  5144. ac_cpp='$CPP $CPPFLAGS'
  5145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5149. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5150. # On Suns, sometimes $CPP names a directory.
  5151. if test -n "$CPP" && test -d "$CPP"; then
  5152. CPP=
  5153. fi
  5154. if test -z "$CPP"; then
  5155. if test "${ac_cv_prog_CPP+set}" = set; then :
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. # Double quotes because CPP needs to be expanded
  5159. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5160. do
  5161. ac_preproc_ok=false
  5162. for ac_c_preproc_warn_flag in '' yes
  5163. do
  5164. # Use a header file that comes with gcc, so configuring glibc
  5165. # with a fresh cross-compiler works.
  5166. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5167. # <limits.h> exists even on freestanding compilers.
  5168. # On the NeXT, cc -E runs the code through the compiler's parser,
  5169. # not just through cpp. "Syntax error" is here to catch this case.
  5170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5171. /* end confdefs.h. */
  5172. #ifdef __STDC__
  5173. # include <limits.h>
  5174. #else
  5175. # include <assert.h>
  5176. #endif
  5177. Syntax error
  5178. _ACEOF
  5179. if ac_fn_c_try_cpp "$LINENO"; then :
  5180. else
  5181. # Broken: fails on valid input.
  5182. continue
  5183. fi
  5184. rm -f conftest.err conftest.$ac_ext
  5185. # OK, works on sane cases. Now check whether nonexistent headers
  5186. # can be detected and how.
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. #include <ac_nonexistent.h>
  5190. _ACEOF
  5191. if ac_fn_c_try_cpp "$LINENO"; then :
  5192. # Broken: success on invalid input.
  5193. continue
  5194. else
  5195. # Passes both tests.
  5196. ac_preproc_ok=:
  5197. break
  5198. fi
  5199. rm -f conftest.err conftest.$ac_ext
  5200. done
  5201. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5202. rm -f conftest.err conftest.$ac_ext
  5203. if $ac_preproc_ok; then :
  5204. break
  5205. fi
  5206. done
  5207. ac_cv_prog_CPP=$CPP
  5208. fi
  5209. CPP=$ac_cv_prog_CPP
  5210. else
  5211. ac_cv_prog_CPP=$CPP
  5212. fi
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5214. $as_echo "$CPP" >&6; }
  5215. ac_preproc_ok=false
  5216. for ac_c_preproc_warn_flag in '' yes
  5217. do
  5218. # Use a header file that comes with gcc, so configuring glibc
  5219. # with a fresh cross-compiler works.
  5220. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5221. # <limits.h> exists even on freestanding compilers.
  5222. # On the NeXT, cc -E runs the code through the compiler's parser,
  5223. # not just through cpp. "Syntax error" is here to catch this case.
  5224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5225. /* end confdefs.h. */
  5226. #ifdef __STDC__
  5227. # include <limits.h>
  5228. #else
  5229. # include <assert.h>
  5230. #endif
  5231. Syntax error
  5232. _ACEOF
  5233. if ac_fn_c_try_cpp "$LINENO"; then :
  5234. else
  5235. # Broken: fails on valid input.
  5236. continue
  5237. fi
  5238. rm -f conftest.err conftest.$ac_ext
  5239. # OK, works on sane cases. Now check whether nonexistent headers
  5240. # can be detected and how.
  5241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5242. /* end confdefs.h. */
  5243. #include <ac_nonexistent.h>
  5244. _ACEOF
  5245. if ac_fn_c_try_cpp "$LINENO"; then :
  5246. # Broken: success on invalid input.
  5247. continue
  5248. else
  5249. # Passes both tests.
  5250. ac_preproc_ok=:
  5251. break
  5252. fi
  5253. rm -f conftest.err conftest.$ac_ext
  5254. done
  5255. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5256. rm -f conftest.err conftest.$ac_ext
  5257. if $ac_preproc_ok; then :
  5258. else
  5259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5261. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5262. See \`config.log' for more details" "$LINENO" 5; }
  5263. fi
  5264. ac_ext=c
  5265. ac_cpp='$CPP $CPPFLAGS'
  5266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5269. ac_ext=cpp
  5270. ac_cpp='$CXXCPP $CPPFLAGS'
  5271. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5272. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5273. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5274. if test -z "$CXX"; then
  5275. if test -n "$CCC"; then
  5276. CXX=$CCC
  5277. else
  5278. if test -n "$ac_tool_prefix"; then
  5279. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5280. do
  5281. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5282. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5284. $as_echo_n "checking for $ac_word... " >&6; }
  5285. if test "${ac_cv_prog_CXX+set}" = set; then :
  5286. $as_echo_n "(cached) " >&6
  5287. else
  5288. if test -n "$CXX"; then
  5289. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5290. else
  5291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5292. for as_dir in $PATH
  5293. do
  5294. IFS=$as_save_IFS
  5295. test -z "$as_dir" && as_dir=.
  5296. for ac_exec_ext in '' $ac_executable_extensions; do
  5297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5298. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5300. break 2
  5301. fi
  5302. done
  5303. done
  5304. IFS=$as_save_IFS
  5305. fi
  5306. fi
  5307. CXX=$ac_cv_prog_CXX
  5308. if test -n "$CXX"; then
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5310. $as_echo "$CXX" >&6; }
  5311. else
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5313. $as_echo "no" >&6; }
  5314. fi
  5315. test -n "$CXX" && break
  5316. done
  5317. fi
  5318. if test -z "$CXX"; then
  5319. ac_ct_CXX=$CXX
  5320. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5321. do
  5322. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5323. set dummy $ac_prog; ac_word=$2
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5325. $as_echo_n "checking for $ac_word... " >&6; }
  5326. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  5327. $as_echo_n "(cached) " >&6
  5328. else
  5329. if test -n "$ac_ct_CXX"; then
  5330. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5331. else
  5332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5333. for as_dir in $PATH
  5334. do
  5335. IFS=$as_save_IFS
  5336. test -z "$as_dir" && as_dir=.
  5337. for ac_exec_ext in '' $ac_executable_extensions; do
  5338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5339. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5341. break 2
  5342. fi
  5343. done
  5344. done
  5345. IFS=$as_save_IFS
  5346. fi
  5347. fi
  5348. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5349. if test -n "$ac_ct_CXX"; then
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5351. $as_echo "$ac_ct_CXX" >&6; }
  5352. else
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5354. $as_echo "no" >&6; }
  5355. fi
  5356. test -n "$ac_ct_CXX" && break
  5357. done
  5358. if test "x$ac_ct_CXX" = x; then
  5359. CXX="g++"
  5360. else
  5361. case $cross_compiling:$ac_tool_warned in
  5362. yes:)
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5365. ac_tool_warned=yes ;;
  5366. esac
  5367. CXX=$ac_ct_CXX
  5368. fi
  5369. fi
  5370. fi
  5371. fi
  5372. # Provide some information about the compiler.
  5373. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5374. set X $ac_compile
  5375. ac_compiler=$2
  5376. for ac_option in --version -v -V -qversion; do
  5377. { { ac_try="$ac_compiler $ac_option >&5"
  5378. case "(($ac_try" in
  5379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5380. *) ac_try_echo=$ac_try;;
  5381. esac
  5382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5383. $as_echo "$ac_try_echo"; } >&5
  5384. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5385. ac_status=$?
  5386. if test -s conftest.err; then
  5387. sed '10a\
  5388. ... rest of stderr output deleted ...
  5389. 10q' conftest.err >conftest.er1
  5390. cat conftest.er1 >&5
  5391. fi
  5392. rm -f conftest.er1 conftest.err
  5393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5394. test $ac_status = 0; }
  5395. done
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5397. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5398. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  5399. $as_echo_n "(cached) " >&6
  5400. else
  5401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5402. /* end confdefs.h. */
  5403. int
  5404. main ()
  5405. {
  5406. #ifndef __GNUC__
  5407. choke me
  5408. #endif
  5409. ;
  5410. return 0;
  5411. }
  5412. _ACEOF
  5413. if ac_fn_cxx_try_compile "$LINENO"; then :
  5414. ac_compiler_gnu=yes
  5415. else
  5416. ac_compiler_gnu=no
  5417. fi
  5418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5419. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5420. fi
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5422. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5423. if test $ac_compiler_gnu = yes; then
  5424. GXX=yes
  5425. else
  5426. GXX=
  5427. fi
  5428. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5429. ac_save_CXXFLAGS=$CXXFLAGS
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5431. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5432. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5436. ac_cxx_werror_flag=yes
  5437. ac_cv_prog_cxx_g=no
  5438. CXXFLAGS="-g"
  5439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5440. /* end confdefs.h. */
  5441. int
  5442. main ()
  5443. {
  5444. ;
  5445. return 0;
  5446. }
  5447. _ACEOF
  5448. if ac_fn_cxx_try_compile "$LINENO"; then :
  5449. ac_cv_prog_cxx_g=yes
  5450. else
  5451. CXXFLAGS=""
  5452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5453. /* end confdefs.h. */
  5454. int
  5455. main ()
  5456. {
  5457. ;
  5458. return 0;
  5459. }
  5460. _ACEOF
  5461. if ac_fn_cxx_try_compile "$LINENO"; then :
  5462. else
  5463. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5464. CXXFLAGS="-g"
  5465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5466. /* end confdefs.h. */
  5467. int
  5468. main ()
  5469. {
  5470. ;
  5471. return 0;
  5472. }
  5473. _ACEOF
  5474. if ac_fn_cxx_try_compile "$LINENO"; then :
  5475. ac_cv_prog_cxx_g=yes
  5476. fi
  5477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5478. fi
  5479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5480. fi
  5481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5482. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5483. fi
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5485. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5486. if test "$ac_test_CXXFLAGS" = set; then
  5487. CXXFLAGS=$ac_save_CXXFLAGS
  5488. elif test $ac_cv_prog_cxx_g = yes; then
  5489. if test "$GXX" = yes; then
  5490. CXXFLAGS="-g -O2"
  5491. else
  5492. CXXFLAGS="-g"
  5493. fi
  5494. else
  5495. if test "$GXX" = yes; then
  5496. CXXFLAGS="-O2"
  5497. else
  5498. CXXFLAGS=
  5499. fi
  5500. fi
  5501. ac_ext=c
  5502. ac_cpp='$CPP $CPPFLAGS'
  5503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5506. depcc="$CXX" am_compiler_list=
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5508. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5509. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5513. # We make a subdir and do the tests there. Otherwise we can end up
  5514. # making bogus files that we don't know about and never remove. For
  5515. # instance it was reported that on HP-UX the gcc test will end up
  5516. # making a dummy file named `D' -- because `-MD' means `put the output
  5517. # in D'.
  5518. mkdir conftest.dir
  5519. # Copy depcomp to subdir because otherwise we won't find it if we're
  5520. # using a relative directory.
  5521. cp "$am_depcomp" conftest.dir
  5522. cd conftest.dir
  5523. # We will build objects and dependencies in a subdirectory because
  5524. # it helps to detect inapplicable dependency modes. For instance
  5525. # both Tru64's cc and ICC support -MD to output dependencies as a
  5526. # side effect of compilation, but ICC will put the dependencies in
  5527. # the current directory while Tru64 will put them in the object
  5528. # directory.
  5529. mkdir sub
  5530. am_cv_CXX_dependencies_compiler_type=none
  5531. if test "$am_compiler_list" = ""; then
  5532. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5533. fi
  5534. am__universal=false
  5535. case " $depcc " in #(
  5536. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5537. esac
  5538. for depmode in $am_compiler_list; do
  5539. # Setup a source with many dependencies, because some compilers
  5540. # like to wrap large dependency lists on column 80 (with \), and
  5541. # we should not choose a depcomp mode which is confused by this.
  5542. #
  5543. # We need to recreate these files for each test, as the compiler may
  5544. # overwrite some of them when testing with obscure command lines.
  5545. # This happens at least with the AIX C compiler.
  5546. : > sub/conftest.c
  5547. for i in 1 2 3 4 5 6; do
  5548. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5549. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5550. # Solaris 8's {/usr,}/bin/sh.
  5551. touch sub/conftst$i.h
  5552. done
  5553. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5554. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5555. # mode. It turns out that the SunPro C++ compiler does not properly
  5556. # handle `-M -o', and we need to detect this. Also, some Intel
  5557. # versions had trouble with output in subdirs
  5558. am__obj=sub/conftest.${OBJEXT-o}
  5559. am__minus_obj="-o $am__obj"
  5560. case $depmode in
  5561. gcc)
  5562. # This depmode causes a compiler race in universal mode.
  5563. test "$am__universal" = false || continue
  5564. ;;
  5565. nosideeffect)
  5566. # after this tag, mechanisms are not by side-effect, so they'll
  5567. # only be used when explicitly requested
  5568. if test "x$enable_dependency_tracking" = xyes; then
  5569. continue
  5570. else
  5571. break
  5572. fi
  5573. ;;
  5574. msvisualcpp | msvcmsys)
  5575. # This compiler won't grok `-c -o', but also, the minuso test has
  5576. # not run yet. These depmodes are late enough in the game, and
  5577. # so weak that their functioning should not be impacted.
  5578. am__obj=conftest.${OBJEXT-o}
  5579. am__minus_obj=
  5580. ;;
  5581. none) break ;;
  5582. esac
  5583. if depmode=$depmode \
  5584. source=sub/conftest.c object=$am__obj \
  5585. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5586. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5587. >/dev/null 2>conftest.err &&
  5588. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5589. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5590. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5591. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5592. # icc doesn't choke on unknown options, it will just issue warnings
  5593. # or remarks (even with -Werror). So we grep stderr for any message
  5594. # that says an option was ignored or not supported.
  5595. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5596. # icc: Command line warning: ignoring option '-M'; no argument required
  5597. # The diagnosis changed in icc 8.0:
  5598. # icc: Command line remark: option '-MP' not supported
  5599. if (grep 'ignoring option' conftest.err ||
  5600. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5601. am_cv_CXX_dependencies_compiler_type=$depmode
  5602. break
  5603. fi
  5604. fi
  5605. done
  5606. cd ..
  5607. rm -rf conftest.dir
  5608. else
  5609. am_cv_CXX_dependencies_compiler_type=none
  5610. fi
  5611. fi
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5613. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5614. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5615. if
  5616. test "x$enable_dependency_tracking" != xno \
  5617. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5618. am__fastdepCXX_TRUE=
  5619. am__fastdepCXX_FALSE='#'
  5620. else
  5621. am__fastdepCXX_TRUE='#'
  5622. am__fastdepCXX_FALSE=
  5623. fi
  5624. GETTEXT_PACKAGE=berusky2
  5625. cat >>confdefs.h <<_ACEOF
  5626. #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  5627. _ACEOF
  5628. ALL_LINGUAS=""
  5629. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5630. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5631. inttypes.h stdint.h unistd.h
  5632. do :
  5633. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5634. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5635. "
  5636. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5637. cat >>confdefs.h <<_ACEOF
  5638. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5639. _ACEOF
  5640. fi
  5641. done
  5642. for ac_header in locale.h
  5643. do :
  5644. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  5645. if test "x$ac_cv_header_locale_h" = x""yes; then :
  5646. cat >>confdefs.h <<_ACEOF
  5647. #define HAVE_LOCALE_H 1
  5648. _ACEOF
  5649. fi
  5650. done
  5651. if test $ac_cv_header_locale_h = yes; then
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  5653. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  5654. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5658. /* end confdefs.h. */
  5659. #include <locale.h>
  5660. int
  5661. main ()
  5662. {
  5663. return LC_MESSAGES
  5664. ;
  5665. return 0;
  5666. }
  5667. _ACEOF
  5668. if ac_fn_c_try_link "$LINENO"; then :
  5669. am_cv_val_LC_MESSAGES=yes
  5670. else
  5671. am_cv_val_LC_MESSAGES=no
  5672. fi
  5673. rm -f core conftest.err conftest.$ac_objext \
  5674. conftest$ac_exeext conftest.$ac_ext
  5675. fi
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  5677. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  5678. if test $am_cv_val_LC_MESSAGES = yes; then
  5679. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  5680. fi
  5681. fi
  5682. USE_NLS=yes
  5683. gt_cv_have_gettext=no
  5684. CATOBJEXT=NONE
  5685. XGETTEXT=:
  5686. INTLLIBS=
  5687. ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
  5688. if test "x$ac_cv_header_libintl_h" = x""yes; then :
  5689. gt_cv_func_dgettext_libintl="no"
  5690. libintl_extra_libs=""
  5691. #
  5692. # First check in libc
  5693. #
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
  5695. $as_echo_n "checking for ngettext in libc... " >&6; }
  5696. if test "${gt_cv_func_ngettext_libc+set}" = set; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5700. /* end confdefs.h. */
  5701. #include <libintl.h>
  5702. int
  5703. main ()
  5704. {
  5705. return !ngettext ("","", 1)
  5706. ;
  5707. return 0;
  5708. }
  5709. _ACEOF
  5710. if ac_fn_c_try_link "$LINENO"; then :
  5711. gt_cv_func_ngettext_libc=yes
  5712. else
  5713. gt_cv_func_ngettext_libc=no
  5714. fi
  5715. rm -f core conftest.err conftest.$ac_objext \
  5716. conftest$ac_exeext conftest.$ac_ext
  5717. fi
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
  5719. $as_echo "$gt_cv_func_ngettext_libc" >&6; }
  5720. if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
  5722. $as_echo_n "checking for dgettext in libc... " >&6; }
  5723. if test "${gt_cv_func_dgettext_libc+set}" = set; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5727. /* end confdefs.h. */
  5728. #include <libintl.h>
  5729. int
  5730. main ()
  5731. {
  5732. return !dgettext ("","")
  5733. ;
  5734. return 0;
  5735. }
  5736. _ACEOF
  5737. if ac_fn_c_try_link "$LINENO"; then :
  5738. gt_cv_func_dgettext_libc=yes
  5739. else
  5740. gt_cv_func_dgettext_libc=no
  5741. fi
  5742. rm -f core conftest.err conftest.$ac_objext \
  5743. conftest$ac_exeext conftest.$ac_ext
  5744. fi
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
  5746. $as_echo "$gt_cv_func_dgettext_libc" >&6; }
  5747. fi
  5748. if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  5749. for ac_func in bind_textdomain_codeset
  5750. do :
  5751. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  5752. if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
  5753. cat >>confdefs.h <<_ACEOF
  5754. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  5755. _ACEOF
  5756. fi
  5757. done
  5758. fi
  5759. #
  5760. # If we don't have everything we want, check in libintl
  5761. #
  5762. if test "$gt_cv_func_dgettext_libc" != "yes" \
  5763. || test "$gt_cv_func_ngettext_libc" != "yes" \
  5764. || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
  5766. $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
  5767. if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
  5768. $as_echo_n "(cached) " >&6
  5769. else
  5770. ac_check_lib_save_LIBS=$LIBS
  5771. LIBS="-lintl $LIBS"
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. /* Override any GCC internal prototype to avoid an error.
  5775. Use char because int might match the return type of a GCC
  5776. builtin and then its argument prototype would still apply. */
  5777. #ifdef __cplusplus
  5778. extern "C"
  5779. #endif
  5780. char bindtextdomain ();
  5781. int
  5782. main ()
  5783. {
  5784. return bindtextdomain ();
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. if ac_fn_c_try_link "$LINENO"; then :
  5790. ac_cv_lib_intl_bindtextdomain=yes
  5791. else
  5792. ac_cv_lib_intl_bindtextdomain=no
  5793. fi
  5794. rm -f core conftest.err conftest.$ac_objext \
  5795. conftest$ac_exeext conftest.$ac_ext
  5796. LIBS=$ac_check_lib_save_LIBS
  5797. fi
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
  5799. $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
  5800. if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
  5802. $as_echo_n "checking for ngettext in -lintl... " >&6; }
  5803. if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. ac_check_lib_save_LIBS=$LIBS
  5807. LIBS="-lintl $LIBS"
  5808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5809. /* end confdefs.h. */
  5810. /* Override any GCC internal prototype to avoid an error.
  5811. Use char because int might match the return type of a GCC
  5812. builtin and then its argument prototype would still apply. */
  5813. #ifdef __cplusplus
  5814. extern "C"
  5815. #endif
  5816. char ngettext ();
  5817. int
  5818. main ()
  5819. {
  5820. return ngettext ();
  5821. ;
  5822. return 0;
  5823. }
  5824. _ACEOF
  5825. if ac_fn_c_try_link "$LINENO"; then :
  5826. ac_cv_lib_intl_ngettext=yes
  5827. else
  5828. ac_cv_lib_intl_ngettext=no
  5829. fi
  5830. rm -f core conftest.err conftest.$ac_objext \
  5831. conftest$ac_exeext conftest.$ac_ext
  5832. LIBS=$ac_check_lib_save_LIBS
  5833. fi
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
  5835. $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
  5836. if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
  5838. $as_echo_n "checking for dgettext in -lintl... " >&6; }
  5839. if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
  5840. $as_echo_n "(cached) " >&6
  5841. else
  5842. ac_check_lib_save_LIBS=$LIBS
  5843. LIBS="-lintl $LIBS"
  5844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5845. /* end confdefs.h. */
  5846. /* Override any GCC internal prototype to avoid an error.
  5847. Use char because int might match the return type of a GCC
  5848. builtin and then its argument prototype would still apply. */
  5849. #ifdef __cplusplus
  5850. extern "C"
  5851. #endif
  5852. char dgettext ();
  5853. int
  5854. main ()
  5855. {
  5856. return dgettext ();
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. if ac_fn_c_try_link "$LINENO"; then :
  5862. ac_cv_lib_intl_dgettext=yes
  5863. else
  5864. ac_cv_lib_intl_dgettext=no
  5865. fi
  5866. rm -f core conftest.err conftest.$ac_objext \
  5867. conftest$ac_exeext conftest.$ac_ext
  5868. LIBS=$ac_check_lib_save_LIBS
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
  5871. $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
  5872. if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
  5873. gt_cv_func_dgettext_libintl=yes
  5874. fi
  5875. fi
  5876. fi
  5877. if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
  5879. $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  5881. $as_echo "" >&6; }
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
  5883. $as_echo_n "checking for ngettext in -lintl... " >&6; }
  5884. if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. ac_check_lib_save_LIBS=$LIBS
  5888. LIBS="-lintl -liconv $LIBS"
  5889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5890. /* end confdefs.h. */
  5891. /* Override any GCC internal prototype to avoid an error.
  5892. Use char because int might match the return type of a GCC
  5893. builtin and then its argument prototype would still apply. */
  5894. #ifdef __cplusplus
  5895. extern "C"
  5896. #endif
  5897. char ngettext ();
  5898. int
  5899. main ()
  5900. {
  5901. return ngettext ();
  5902. ;
  5903. return 0;
  5904. }
  5905. _ACEOF
  5906. if ac_fn_c_try_link "$LINENO"; then :
  5907. ac_cv_lib_intl_ngettext=yes
  5908. else
  5909. ac_cv_lib_intl_ngettext=no
  5910. fi
  5911. rm -f core conftest.err conftest.$ac_objext \
  5912. conftest$ac_exeext conftest.$ac_ext
  5913. LIBS=$ac_check_lib_save_LIBS
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
  5916. $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
  5917. if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
  5919. $as_echo_n "checking for dcgettext in -lintl... " >&6; }
  5920. if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. ac_check_lib_save_LIBS=$LIBS
  5924. LIBS="-lintl -liconv $LIBS"
  5925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5926. /* end confdefs.h. */
  5927. /* Override any GCC internal prototype to avoid an error.
  5928. Use char because int might match the return type of a GCC
  5929. builtin and then its argument prototype would still apply. */
  5930. #ifdef __cplusplus
  5931. extern "C"
  5932. #endif
  5933. char dcgettext ();
  5934. int
  5935. main ()
  5936. {
  5937. return dcgettext ();
  5938. ;
  5939. return 0;
  5940. }
  5941. _ACEOF
  5942. if ac_fn_c_try_link "$LINENO"; then :
  5943. ac_cv_lib_intl_dcgettext=yes
  5944. else
  5945. ac_cv_lib_intl_dcgettext=no
  5946. fi
  5947. rm -f core conftest.err conftest.$ac_objext \
  5948. conftest$ac_exeext conftest.$ac_ext
  5949. LIBS=$ac_check_lib_save_LIBS
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
  5952. $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
  5953. if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
  5954. gt_cv_func_dgettext_libintl=yes
  5955. libintl_extra_libs=-liconv
  5956. else
  5957. :
  5958. fi
  5959. else
  5960. :
  5961. fi
  5962. fi
  5963. #
  5964. # If we found libintl, then check in it for bind_textdomain_codeset();
  5965. # we'll prefer libc if neither have bind_textdomain_codeset(),
  5966. # and both have dgettext and ngettext
  5967. #
  5968. if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  5969. glib_save_LIBS="$LIBS"
  5970. LIBS="$LIBS -lintl $libintl_extra_libs"
  5971. unset ac_cv_func_bind_textdomain_codeset
  5972. for ac_func in bind_textdomain_codeset
  5973. do :
  5974. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  5975. if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
  5976. cat >>confdefs.h <<_ACEOF
  5977. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  5978. _ACEOF
  5979. fi
  5980. done
  5981. LIBS="$glib_save_LIBS"
  5982. if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  5983. gt_cv_func_dgettext_libc=no
  5984. else
  5985. if test "$gt_cv_func_dgettext_libc" = "yes" \
  5986. && test "$gt_cv_func_ngettext_libc" = "yes"; then
  5987. gt_cv_func_dgettext_libintl=no
  5988. fi
  5989. fi
  5990. fi
  5991. fi
  5992. if test "$gt_cv_func_dgettext_libc" = "yes" \
  5993. || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  5994. gt_cv_have_gettext=yes
  5995. fi
  5996. if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  5997. INTLLIBS="-lintl $libintl_extra_libs"
  5998. fi
  5999. if test "$gt_cv_have_gettext" = "yes"; then
  6000. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  6001. # Extract the first word of "msgfmt", so it can be a program name with args.
  6002. set dummy msgfmt; ac_word=$2
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6004. $as_echo_n "checking for $ac_word... " >&6; }
  6005. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. case "$MSGFMT" in
  6009. /*)
  6010. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6011. ;;
  6012. *)
  6013. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6014. for ac_dir in $PATH; do
  6015. test -z "$ac_dir" && ac_dir=.
  6016. if test -f $ac_dir/$ac_word; then
  6017. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  6018. ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  6019. break
  6020. fi
  6021. fi
  6022. done
  6023. IFS="$ac_save_ifs"
  6024. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  6025. ;;
  6026. esac
  6027. fi
  6028. MSGFMT="$ac_cv_path_MSGFMT"
  6029. if test "$MSGFMT" != "no"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  6031. $as_echo "$MSGFMT" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. if test "$MSGFMT" != "no"; then
  6037. glib_save_LIBS="$LIBS"
  6038. LIBS="$LIBS $INTLLIBS"
  6039. for ac_func in dcgettext
  6040. do :
  6041. ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
  6042. if test "x$ac_cv_func_dcgettext" = x""yes; then :
  6043. cat >>confdefs.h <<_ACEOF
  6044. #define HAVE_DCGETTEXT 1
  6045. _ACEOF
  6046. fi
  6047. done
  6048. MSGFMT_OPTS=
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
  6050. $as_echo_n "checking if msgfmt accepts -c... " >&6; }
  6051. cat >conftest.foo <<_ACEOF
  6052. msgid ""
  6053. msgstr ""
  6054. "Content-Type: text/plain; charset=UTF-8\n"
  6055. "Project-Id-Version: test 1.0\n"
  6056. "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  6057. "Last-Translator: test <foo@bar.xx>\n"
  6058. "Language-Team: C <LL@li.org>\n"
  6059. "MIME-Version: 1.0\n"
  6060. "Content-Transfer-Encoding: 8bit\n"
  6061. _ACEOF
  6062. if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
  6063. ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
  6064. ac_status=$?
  6065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6066. test $ac_status = 0; }; then
  6067. MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6068. $as_echo "yes" >&6; }
  6069. else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6070. $as_echo "no" >&6; }
  6071. echo "$as_me: failed input was:" >&5
  6072. sed 's/^/| /' conftest.foo >&5
  6073. fi
  6074. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6075. set dummy gmsgfmt; ac_word=$2
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6077. $as_echo_n "checking for $ac_word... " >&6; }
  6078. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  6079. $as_echo_n "(cached) " >&6
  6080. else
  6081. case $GMSGFMT in
  6082. [\\/]* | ?:[\\/]*)
  6083. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6084. ;;
  6085. *)
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6093. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6101. ;;
  6102. esac
  6103. fi
  6104. GMSGFMT=$ac_cv_path_GMSGFMT
  6105. if test -n "$GMSGFMT"; then
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  6107. $as_echo "$GMSGFMT" >&6; }
  6108. else
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6110. $as_echo "no" >&6; }
  6111. fi
  6112. # Extract the first word of "xgettext", so it can be a program name with args.
  6113. set dummy xgettext; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. case "$XGETTEXT" in
  6120. /*)
  6121. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6122. ;;
  6123. *)
  6124. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6125. for ac_dir in $PATH; do
  6126. test -z "$ac_dir" && ac_dir=.
  6127. if test -f $ac_dir/$ac_word; then
  6128. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  6129. ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  6130. break
  6131. fi
  6132. fi
  6133. done
  6134. IFS="$ac_save_ifs"
  6135. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6136. ;;
  6137. esac
  6138. fi
  6139. XGETTEXT="$ac_cv_path_XGETTEXT"
  6140. if test "$XGETTEXT" != ":"; then
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  6142. $as_echo "$XGETTEXT" >&6; }
  6143. else
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6145. $as_echo "no" >&6; }
  6146. fi
  6147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6148. /* end confdefs.h. */
  6149. int
  6150. main ()
  6151. {
  6152. extern int _nl_msg_cat_cntr;
  6153. return _nl_msg_cat_cntr
  6154. ;
  6155. return 0;
  6156. }
  6157. _ACEOF
  6158. if ac_fn_c_try_link "$LINENO"; then :
  6159. CATOBJEXT=.gmo
  6160. DATADIRNAME=share
  6161. else
  6162. case $host in
  6163. *-*-solaris*)
  6164. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  6165. if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
  6166. CATOBJEXT=.gmo
  6167. DATADIRNAME=share
  6168. else
  6169. CATOBJEXT=.mo
  6170. DATADIRNAME=lib
  6171. fi
  6172. ;;
  6173. *)
  6174. CATOBJEXT=.mo
  6175. DATADIRNAME=lib
  6176. ;;
  6177. esac
  6178. fi
  6179. rm -f core conftest.err conftest.$ac_objext \
  6180. conftest$ac_exeext conftest.$ac_ext
  6181. LIBS="$glib_save_LIBS"
  6182. INSTOBJEXT=.mo
  6183. else
  6184. gt_cv_have_gettext=no
  6185. fi
  6186. fi
  6187. fi
  6188. if test "$gt_cv_have_gettext" = "yes" ; then
  6189. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6190. fi
  6191. if test "$XGETTEXT" != ":"; then
  6192. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  6193. : ;
  6194. else
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6196. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  6197. XGETTEXT=":"
  6198. fi
  6199. fi
  6200. # We need to process the po/ directory.
  6201. POSUB=po
  6202. ac_config_commands="$ac_config_commands default-1"
  6203. for lang in $ALL_LINGUAS; do
  6204. GMOFILES="$GMOFILES $lang.gmo"
  6205. POFILES="$POFILES $lang.po"
  6206. done
  6207. if test "$gt_cv_have_gettext" = "yes"; then
  6208. if test "x$ALL_LINGUAS" = "x"; then
  6209. LINGUAS=
  6210. else
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6212. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6213. NEW_LINGUAS=
  6214. for presentlang in $ALL_LINGUAS; do
  6215. useit=no
  6216. if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  6217. desiredlanguages="$LINGUAS"
  6218. else
  6219. desiredlanguages="$ALL_LINGUAS"
  6220. fi
  6221. for desiredlang in $desiredlanguages; do
  6222. # Use the presentlang catalog if desiredlang is
  6223. # a. equal to presentlang, or
  6224. # b. a variant of presentlang (because in this case,
  6225. # presentlang can be used as a fallback for messages
  6226. # which are not translated in the desiredlang catalog).
  6227. case "$desiredlang" in
  6228. "$presentlang"*) useit=yes;;
  6229. esac
  6230. done
  6231. if test $useit = yes; then
  6232. NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  6233. fi
  6234. done
  6235. LINGUAS=$NEW_LINGUAS
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6237. $as_echo "$LINGUAS" >&6; }
  6238. fi
  6239. if test -n "$LINGUAS"; then
  6240. for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  6241. fi
  6242. fi
  6243. MKINSTALLDIRS=
  6244. if test -n "$ac_aux_dir"; then
  6245. MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  6246. fi
  6247. if test -z "$MKINSTALLDIRS"; then
  6248. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6249. fi
  6250. test -d po || mkdir po
  6251. if test "x$srcdir" != "x."; then
  6252. if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  6253. posrcprefix="$srcdir/"
  6254. else
  6255. posrcprefix="../$srcdir/"
  6256. fi
  6257. else
  6258. posrcprefix="../"
  6259. fi
  6260. rm -f po/POTFILES
  6261. sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  6262. < $srcdir/po/POTFILES.in > po/POTFILES
  6263. case `pwd` in
  6264. *\ * | *\ *)
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6266. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6267. esac
  6268. macro_version='2.2.10'
  6269. macro_revision='1.3175'
  6270. ltmain="$ac_aux_dir/ltmain.sh"
  6271. # Make sure we can run config.sub.
  6272. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6273. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6275. $as_echo_n "checking build system type... " >&6; }
  6276. if test "${ac_cv_build+set}" = set; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. ac_build_alias=$build_alias
  6280. test "x$ac_build_alias" = x &&
  6281. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6282. test "x$ac_build_alias" = x &&
  6283. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6284. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6285. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  6286. fi
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6288. $as_echo "$ac_cv_build" >&6; }
  6289. case $ac_cv_build in
  6290. *-*-*) ;;
  6291. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6292. esac
  6293. build=$ac_cv_build
  6294. ac_save_IFS=$IFS; IFS='-'
  6295. set x $ac_cv_build
  6296. shift
  6297. build_cpu=$1
  6298. build_vendor=$2
  6299. shift; shift
  6300. # Remember, the first character of IFS is used to create $*,
  6301. # except with old shells:
  6302. build_os=$*
  6303. IFS=$ac_save_IFS
  6304. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6306. $as_echo_n "checking host system type... " >&6; }
  6307. if test "${ac_cv_host+set}" = set; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. if test "x$host_alias" = x; then
  6311. ac_cv_host=$ac_cv_build
  6312. else
  6313. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6314. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  6315. fi
  6316. fi
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6318. $as_echo "$ac_cv_host" >&6; }
  6319. case $ac_cv_host in
  6320. *-*-*) ;;
  6321. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6322. esac
  6323. host=$ac_cv_host
  6324. ac_save_IFS=$IFS; IFS='-'
  6325. set x $ac_cv_host
  6326. shift
  6327. host_cpu=$1
  6328. host_vendor=$2
  6329. shift; shift
  6330. # Remember, the first character of IFS is used to create $*,
  6331. # except with old shells:
  6332. host_os=$*
  6333. IFS=$ac_save_IFS
  6334. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6335. # Backslashify metacharacters that are still active within
  6336. # double-quoted strings.
  6337. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6338. # Same as above, but do not quote variable references.
  6339. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6340. # Sed substitution to delay expansion of an escaped shell variable in a
  6341. # double_quote_subst'ed string.
  6342. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6343. # Sed substitution to delay expansion of an escaped single quote.
  6344. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6345. # Sed substitution to avoid accidental globbing in evaled expressions
  6346. no_glob_subst='s/\*/\\\*/g'
  6347. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6348. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6349. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6351. $as_echo_n "checking how to print strings... " >&6; }
  6352. # Test print first, because it will be a builtin if present.
  6353. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  6354. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6355. ECHO='print -r --'
  6356. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6357. ECHO='printf %s\n'
  6358. else
  6359. # Use this function as a fallback that always works.
  6360. func_fallback_echo ()
  6361. {
  6362. eval 'cat <<_LTECHO_EOF
  6363. $1
  6364. _LTECHO_EOF'
  6365. }
  6366. ECHO='func_fallback_echo'
  6367. fi
  6368. # func_echo_all arg...
  6369. # Invoke $ECHO with all args, space-separated.
  6370. func_echo_all ()
  6371. {
  6372. $ECHO ""
  6373. }
  6374. case "$ECHO" in
  6375. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6376. $as_echo "printf" >&6; } ;;
  6377. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6378. $as_echo "print -r" >&6; } ;;
  6379. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6380. $as_echo "cat" >&6; } ;;
  6381. esac
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6383. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6384. if test "${ac_cv_path_SED+set}" = set; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6388. for ac_i in 1 2 3 4 5 6 7; do
  6389. ac_script="$ac_script$as_nl$ac_script"
  6390. done
  6391. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6392. { ac_script=; unset ac_script;}
  6393. if test -z "$SED"; then
  6394. ac_path_SED_found=false
  6395. # Loop through the user's path and test for each of PROGNAME-LIST
  6396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6397. for as_dir in $PATH
  6398. do
  6399. IFS=$as_save_IFS
  6400. test -z "$as_dir" && as_dir=.
  6401. for ac_prog in sed gsed; do
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6404. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  6405. # Check for GNU ac_path_SED and select it if it is found.
  6406. # Check for GNU $ac_path_SED
  6407. case `"$ac_path_SED" --version 2>&1` in
  6408. *GNU*)
  6409. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6410. *)
  6411. ac_count=0
  6412. $as_echo_n 0123456789 >"conftest.in"
  6413. while :
  6414. do
  6415. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6416. mv "conftest.tmp" "conftest.in"
  6417. cp "conftest.in" "conftest.nl"
  6418. $as_echo '' >> "conftest.nl"
  6419. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6420. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6421. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6422. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6423. # Best one so far, save it but keep looking for a better one
  6424. ac_cv_path_SED="$ac_path_SED"
  6425. ac_path_SED_max=$ac_count
  6426. fi
  6427. # 10*(2^10) chars as input seems more than enough
  6428. test $ac_count -gt 10 && break
  6429. done
  6430. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6431. esac
  6432. $ac_path_SED_found && break 3
  6433. done
  6434. done
  6435. done
  6436. IFS=$as_save_IFS
  6437. if test -z "$ac_cv_path_SED"; then
  6438. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6439. fi
  6440. else
  6441. ac_cv_path_SED=$SED
  6442. fi
  6443. fi
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6445. $as_echo "$ac_cv_path_SED" >&6; }
  6446. SED="$ac_cv_path_SED"
  6447. rm -f conftest.sed
  6448. test -z "$SED" && SED=sed
  6449. Xsed="$SED -e 1s/^X//"
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6451. $as_echo_n "checking for fgrep... " >&6; }
  6452. if test "${ac_cv_path_FGREP+set}" = set; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6456. then ac_cv_path_FGREP="$GREP -F"
  6457. else
  6458. if test -z "$FGREP"; then
  6459. ac_path_FGREP_found=false
  6460. # Loop through the user's path and test for each of PROGNAME-LIST
  6461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6462. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6463. do
  6464. IFS=$as_save_IFS
  6465. test -z "$as_dir" && as_dir=.
  6466. for ac_prog in fgrep; do
  6467. for ac_exec_ext in '' $ac_executable_extensions; do
  6468. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6469. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  6470. # Check for GNU ac_path_FGREP and select it if it is found.
  6471. # Check for GNU $ac_path_FGREP
  6472. case `"$ac_path_FGREP" --version 2>&1` in
  6473. *GNU*)
  6474. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6475. *)
  6476. ac_count=0
  6477. $as_echo_n 0123456789 >"conftest.in"
  6478. while :
  6479. do
  6480. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6481. mv "conftest.tmp" "conftest.in"
  6482. cp "conftest.in" "conftest.nl"
  6483. $as_echo 'FGREP' >> "conftest.nl"
  6484. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6485. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6486. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6487. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6488. # Best one so far, save it but keep looking for a better one
  6489. ac_cv_path_FGREP="$ac_path_FGREP"
  6490. ac_path_FGREP_max=$ac_count
  6491. fi
  6492. # 10*(2^10) chars as input seems more than enough
  6493. test $ac_count -gt 10 && break
  6494. done
  6495. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6496. esac
  6497. $ac_path_FGREP_found && break 3
  6498. done
  6499. done
  6500. done
  6501. IFS=$as_save_IFS
  6502. if test -z "$ac_cv_path_FGREP"; then
  6503. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6504. fi
  6505. else
  6506. ac_cv_path_FGREP=$FGREP
  6507. fi
  6508. fi
  6509. fi
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6511. $as_echo "$ac_cv_path_FGREP" >&6; }
  6512. FGREP="$ac_cv_path_FGREP"
  6513. test -z "$GREP" && GREP=grep
  6514. # Check whether --with-gnu-ld was given.
  6515. if test "${with_gnu_ld+set}" = set; then :
  6516. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6517. else
  6518. with_gnu_ld=no
  6519. fi
  6520. ac_prog=ld
  6521. if test "$GCC" = yes; then
  6522. # Check if gcc -print-prog-name=ld gives a path.
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6524. $as_echo_n "checking for ld used by $CC... " >&6; }
  6525. case $host in
  6526. *-*-mingw*)
  6527. # gcc leaves a trailing carriage return which upsets mingw
  6528. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6529. *)
  6530. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6531. esac
  6532. case $ac_prog in
  6533. # Accept absolute paths.
  6534. [\\/]* | ?:[\\/]*)
  6535. re_direlt='/[^/][^/]*/\.\./'
  6536. # Canonicalize the pathname of ld
  6537. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6538. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6539. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6540. done
  6541. test -z "$LD" && LD="$ac_prog"
  6542. ;;
  6543. "")
  6544. # If it fails, then pretend we aren't using GCC.
  6545. ac_prog=ld
  6546. ;;
  6547. *)
  6548. # If it is relative, then search for the first ld in PATH.
  6549. with_gnu_ld=unknown
  6550. ;;
  6551. esac
  6552. elif test "$with_gnu_ld" = yes; then
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6554. $as_echo_n "checking for GNU ld... " >&6; }
  6555. else
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6557. $as_echo_n "checking for non-GNU ld... " >&6; }
  6558. fi
  6559. if test "${lt_cv_path_LD+set}" = set; then :
  6560. $as_echo_n "(cached) " >&6
  6561. else
  6562. if test -z "$LD"; then
  6563. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6564. for ac_dir in $PATH; do
  6565. IFS="$lt_save_ifs"
  6566. test -z "$ac_dir" && ac_dir=.
  6567. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6568. lt_cv_path_LD="$ac_dir/$ac_prog"
  6569. # Check to see if the program is GNU ld. I'd rather use --version,
  6570. # but apparently some variants of GNU ld only accept -v.
  6571. # Break only if it was the GNU/non-GNU ld that we prefer.
  6572. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6573. *GNU* | *'with BFD'*)
  6574. test "$with_gnu_ld" != no && break
  6575. ;;
  6576. *)
  6577. test "$with_gnu_ld" != yes && break
  6578. ;;
  6579. esac
  6580. fi
  6581. done
  6582. IFS="$lt_save_ifs"
  6583. else
  6584. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6585. fi
  6586. fi
  6587. LD="$lt_cv_path_LD"
  6588. if test -n "$LD"; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6590. $as_echo "$LD" >&6; }
  6591. else
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6593. $as_echo "no" >&6; }
  6594. fi
  6595. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6597. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6598. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  6599. $as_echo_n "(cached) " >&6
  6600. else
  6601. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6602. case `$LD -v 2>&1 </dev/null` in
  6603. *GNU* | *'with BFD'*)
  6604. lt_cv_prog_gnu_ld=yes
  6605. ;;
  6606. *)
  6607. lt_cv_prog_gnu_ld=no
  6608. ;;
  6609. esac
  6610. fi
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6612. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6613. with_gnu_ld=$lt_cv_prog_gnu_ld
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6615. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6616. if test "${lt_cv_path_NM+set}" = set; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. if test -n "$NM"; then
  6620. # Let the user override the test.
  6621. lt_cv_path_NM="$NM"
  6622. else
  6623. lt_nm_to_check="${ac_tool_prefix}nm"
  6624. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6625. lt_nm_to_check="$lt_nm_to_check nm"
  6626. fi
  6627. for lt_tmp_nm in $lt_nm_to_check; do
  6628. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6629. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6630. IFS="$lt_save_ifs"
  6631. test -z "$ac_dir" && ac_dir=.
  6632. tmp_nm="$ac_dir/$lt_tmp_nm"
  6633. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6634. # Check to see if the nm accepts a BSD-compat flag.
  6635. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6636. # nm: unknown option "B" ignored
  6637. # Tru64's nm complains that /dev/null is an invalid object file
  6638. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6639. */dev/null* | *'Invalid file or object type'*)
  6640. lt_cv_path_NM="$tmp_nm -B"
  6641. break
  6642. ;;
  6643. *)
  6644. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6645. */dev/null*)
  6646. lt_cv_path_NM="$tmp_nm -p"
  6647. break
  6648. ;;
  6649. *)
  6650. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6651. continue # so that we can try to find one that supports BSD flags
  6652. ;;
  6653. esac
  6654. ;;
  6655. esac
  6656. fi
  6657. done
  6658. IFS="$lt_save_ifs"
  6659. done
  6660. : ${lt_cv_path_NM=no}
  6661. fi
  6662. fi
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6664. $as_echo "$lt_cv_path_NM" >&6; }
  6665. if test "$lt_cv_path_NM" != "no"; then
  6666. NM="$lt_cv_path_NM"
  6667. else
  6668. # Didn't find any BSD compatible name lister, look for dumpbin.
  6669. if test -n "$DUMPBIN"; then :
  6670. # Let the user override the test.
  6671. else
  6672. if test -n "$ac_tool_prefix"; then
  6673. for ac_prog in dumpbin "link -dump"
  6674. do
  6675. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6676. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6678. $as_echo_n "checking for $ac_word... " >&6; }
  6679. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. if test -n "$DUMPBIN"; then
  6683. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6684. else
  6685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6686. for as_dir in $PATH
  6687. do
  6688. IFS=$as_save_IFS
  6689. test -z "$as_dir" && as_dir=.
  6690. for ac_exec_ext in '' $ac_executable_extensions; do
  6691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6692. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6694. break 2
  6695. fi
  6696. done
  6697. done
  6698. IFS=$as_save_IFS
  6699. fi
  6700. fi
  6701. DUMPBIN=$ac_cv_prog_DUMPBIN
  6702. if test -n "$DUMPBIN"; then
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6704. $as_echo "$DUMPBIN" >&6; }
  6705. else
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6707. $as_echo "no" >&6; }
  6708. fi
  6709. test -n "$DUMPBIN" && break
  6710. done
  6711. fi
  6712. if test -z "$DUMPBIN"; then
  6713. ac_ct_DUMPBIN=$DUMPBIN
  6714. for ac_prog in dumpbin "link -dump"
  6715. do
  6716. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6717. set dummy $ac_prog; ac_word=$2
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6719. $as_echo_n "checking for $ac_word... " >&6; }
  6720. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. if test -n "$ac_ct_DUMPBIN"; then
  6724. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6725. else
  6726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6727. for as_dir in $PATH
  6728. do
  6729. IFS=$as_save_IFS
  6730. test -z "$as_dir" && as_dir=.
  6731. for ac_exec_ext in '' $ac_executable_extensions; do
  6732. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6733. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6735. break 2
  6736. fi
  6737. done
  6738. done
  6739. IFS=$as_save_IFS
  6740. fi
  6741. fi
  6742. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6743. if test -n "$ac_ct_DUMPBIN"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6745. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6746. else
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6748. $as_echo "no" >&6; }
  6749. fi
  6750. test -n "$ac_ct_DUMPBIN" && break
  6751. done
  6752. if test "x$ac_ct_DUMPBIN" = x; then
  6753. DUMPBIN=":"
  6754. else
  6755. case $cross_compiling:$ac_tool_warned in
  6756. yes:)
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6759. ac_tool_warned=yes ;;
  6760. esac
  6761. DUMPBIN=$ac_ct_DUMPBIN
  6762. fi
  6763. fi
  6764. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6765. *COFF*)
  6766. DUMPBIN="$DUMPBIN -symbols"
  6767. ;;
  6768. *)
  6769. DUMPBIN=:
  6770. ;;
  6771. esac
  6772. fi
  6773. if test "$DUMPBIN" != ":"; then
  6774. NM="$DUMPBIN"
  6775. fi
  6776. fi
  6777. test -z "$NM" && NM=nm
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6779. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6780. if test "${lt_cv_nm_interface+set}" = set; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. lt_cv_nm_interface="BSD nm"
  6784. echo "int some_variable = 0;" > conftest.$ac_ext
  6785. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6786. (eval "$ac_compile" 2>conftest.err)
  6787. cat conftest.err >&5
  6788. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6789. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6790. cat conftest.err >&5
  6791. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6792. cat conftest.out >&5
  6793. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6794. lt_cv_nm_interface="MS dumpbin"
  6795. fi
  6796. rm -f conftest*
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6799. $as_echo "$lt_cv_nm_interface" >&6; }
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6801. $as_echo_n "checking whether ln -s works... " >&6; }
  6802. LN_S=$as_ln_s
  6803. if test "$LN_S" = "ln -s"; then
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6805. $as_echo "yes" >&6; }
  6806. else
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6808. $as_echo "no, using $LN_S" >&6; }
  6809. fi
  6810. # find the maximum length of command line arguments
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6812. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6813. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. i=0
  6817. teststring="ABCD"
  6818. case $build_os in
  6819. msdosdjgpp*)
  6820. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6821. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6822. # during glob expansion). Even if it were fixed, the result of this
  6823. # check would be larger than it should be.
  6824. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6825. ;;
  6826. gnu*)
  6827. # Under GNU Hurd, this test is not required because there is
  6828. # no limit to the length of command line arguments.
  6829. # Libtool will interpret -1 as no limit whatsoever
  6830. lt_cv_sys_max_cmd_len=-1;
  6831. ;;
  6832. cygwin* | mingw* | cegcc*)
  6833. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6834. # about 5 minutes as the teststring grows exponentially.
  6835. # Worse, since 9x/ME are not pre-emptively multitasking,
  6836. # you end up with a "frozen" computer, even though with patience
  6837. # the test eventually succeeds (with a max line length of 256k).
  6838. # Instead, let's just punt: use the minimum linelength reported by
  6839. # all of the supported platforms: 8192 (on NT/2K/XP).
  6840. lt_cv_sys_max_cmd_len=8192;
  6841. ;;
  6842. mint*)
  6843. # On MiNT this can take a long time and run out of memory.
  6844. lt_cv_sys_max_cmd_len=8192;
  6845. ;;
  6846. amigaos*)
  6847. # On AmigaOS with pdksh, this test takes hours, literally.
  6848. # So we just punt and use a minimum line length of 8192.
  6849. lt_cv_sys_max_cmd_len=8192;
  6850. ;;
  6851. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6852. # This has been around since 386BSD, at least. Likely further.
  6853. if test -x /sbin/sysctl; then
  6854. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6855. elif test -x /usr/sbin/sysctl; then
  6856. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6857. else
  6858. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6859. fi
  6860. # And add a safety zone
  6861. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6862. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6863. ;;
  6864. interix*)
  6865. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6866. lt_cv_sys_max_cmd_len=196608
  6867. ;;
  6868. osf*)
  6869. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6870. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6871. # nice to cause kernel panics so lets avoid the loop below.
  6872. # First set a reasonable default.
  6873. lt_cv_sys_max_cmd_len=16384
  6874. #
  6875. if test -x /sbin/sysconfig; then
  6876. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6877. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6878. esac
  6879. fi
  6880. ;;
  6881. sco3.2v5*)
  6882. lt_cv_sys_max_cmd_len=102400
  6883. ;;
  6884. sysv5* | sco5v6* | sysv4.2uw2*)
  6885. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6886. if test -n "$kargmax"; then
  6887. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6888. else
  6889. lt_cv_sys_max_cmd_len=32768
  6890. fi
  6891. ;;
  6892. *)
  6893. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6894. if test -n "$lt_cv_sys_max_cmd_len"; then
  6895. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6896. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6897. else
  6898. # Make teststring a little bigger before we do anything with it.
  6899. # a 1K string should be a reasonable start.
  6900. for i in 1 2 3 4 5 6 7 8 ; do
  6901. teststring=$teststring$teststring
  6902. done
  6903. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6904. # If test is not a shell built-in, we'll probably end up computing a
  6905. # maximum length that is only half of the actual maximum length, but
  6906. # we can't tell.
  6907. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6908. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6909. test $i != 17 # 1/2 MB should be enough
  6910. do
  6911. i=`expr $i + 1`
  6912. teststring=$teststring$teststring
  6913. done
  6914. # Only check the string length outside the loop.
  6915. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6916. teststring=
  6917. # Add a significant safety factor because C++ compilers can tack on
  6918. # massive amounts of additional arguments before passing them to the
  6919. # linker. It appears as though 1/2 is a usable value.
  6920. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6921. fi
  6922. ;;
  6923. esac
  6924. fi
  6925. if test -n $lt_cv_sys_max_cmd_len ; then
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6927. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6928. else
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6930. $as_echo "none" >&6; }
  6931. fi
  6932. max_cmd_len=$lt_cv_sys_max_cmd_len
  6933. : ${CP="cp -f"}
  6934. : ${MV="mv -f"}
  6935. : ${RM="rm -f"}
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6937. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6938. # Try some XSI features
  6939. xsi_shell=no
  6940. ( _lt_dummy="a/b/c"
  6941. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6942. = c,a/b,, \
  6943. && eval 'test $(( 1 + 1 )) -eq 2 \
  6944. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6945. && xsi_shell=yes
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6947. $as_echo "$xsi_shell" >&6; }
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6949. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6950. lt_shell_append=no
  6951. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6952. >/dev/null 2>&1 \
  6953. && lt_shell_append=yes
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6955. $as_echo "$lt_shell_append" >&6; }
  6956. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6957. lt_unset=unset
  6958. else
  6959. lt_unset=false
  6960. fi
  6961. # test EBCDIC or ASCII
  6962. case `echo X|tr X '\101'` in
  6963. A) # ASCII based system
  6964. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6965. lt_SP2NL='tr \040 \012'
  6966. lt_NL2SP='tr \015\012 \040\040'
  6967. ;;
  6968. *) # EBCDIC based system
  6969. lt_SP2NL='tr \100 \n'
  6970. lt_NL2SP='tr \r\n \100\100'
  6971. ;;
  6972. esac
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6974. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6975. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  6976. $as_echo_n "(cached) " >&6
  6977. else
  6978. lt_cv_ld_reload_flag='-r'
  6979. fi
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6981. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6982. reload_flag=$lt_cv_ld_reload_flag
  6983. case $reload_flag in
  6984. "" | " "*) ;;
  6985. *) reload_flag=" $reload_flag" ;;
  6986. esac
  6987. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6988. case $host_os in
  6989. darwin*)
  6990. if test "$GCC" = yes; then
  6991. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6992. else
  6993. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6994. fi
  6995. ;;
  6996. esac
  6997. if test -n "$ac_tool_prefix"; then
  6998. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6999. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7001. $as_echo_n "checking for $ac_word... " >&6; }
  7002. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  7003. $as_echo_n "(cached) " >&6
  7004. else
  7005. if test -n "$OBJDUMP"; then
  7006. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7007. else
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. test -z "$as_dir" && as_dir=.
  7013. for ac_exec_ext in '' $ac_executable_extensions; do
  7014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7015. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7017. break 2
  7018. fi
  7019. done
  7020. done
  7021. IFS=$as_save_IFS
  7022. fi
  7023. fi
  7024. OBJDUMP=$ac_cv_prog_OBJDUMP
  7025. if test -n "$OBJDUMP"; then
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7027. $as_echo "$OBJDUMP" >&6; }
  7028. else
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7030. $as_echo "no" >&6; }
  7031. fi
  7032. fi
  7033. if test -z "$ac_cv_prog_OBJDUMP"; then
  7034. ac_ct_OBJDUMP=$OBJDUMP
  7035. # Extract the first word of "objdump", so it can be a program name with args.
  7036. set dummy objdump; ac_word=$2
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7038. $as_echo_n "checking for $ac_word... " >&6; }
  7039. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  7040. $as_echo_n "(cached) " >&6
  7041. else
  7042. if test -n "$ac_ct_OBJDUMP"; then
  7043. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7044. else
  7045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7046. for as_dir in $PATH
  7047. do
  7048. IFS=$as_save_IFS
  7049. test -z "$as_dir" && as_dir=.
  7050. for ac_exec_ext in '' $ac_executable_extensions; do
  7051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7052. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7054. break 2
  7055. fi
  7056. done
  7057. done
  7058. IFS=$as_save_IFS
  7059. fi
  7060. fi
  7061. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7062. if test -n "$ac_ct_OBJDUMP"; then
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7064. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7065. else
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7067. $as_echo "no" >&6; }
  7068. fi
  7069. if test "x$ac_ct_OBJDUMP" = x; then
  7070. OBJDUMP="false"
  7071. else
  7072. case $cross_compiling:$ac_tool_warned in
  7073. yes:)
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7076. ac_tool_warned=yes ;;
  7077. esac
  7078. OBJDUMP=$ac_ct_OBJDUMP
  7079. fi
  7080. else
  7081. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7082. fi
  7083. test -z "$OBJDUMP" && OBJDUMP=objdump
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7085. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7086. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  7087. $as_echo_n "(cached) " >&6
  7088. else
  7089. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7090. lt_cv_file_magic_test_file=
  7091. lt_cv_deplibs_check_method='unknown'
  7092. # Need to set the preceding variable on all platforms that support
  7093. # interlibrary dependencies.
  7094. # 'none' -- dependencies not supported.
  7095. # `unknown' -- same as none, but documents that we really don't know.
  7096. # 'pass_all' -- all dependencies passed with no checks.
  7097. # 'test_compile' -- check by making test program.
  7098. # 'file_magic [[regex]]' -- check by looking for files in library path
  7099. # which responds to the $file_magic_cmd with a given extended regex.
  7100. # If you have `file' or equivalent on your system and you're not sure
  7101. # whether `pass_all' will *always* work, you probably want this one.
  7102. case $host_os in
  7103. aix[4-9]*)
  7104. lt_cv_deplibs_check_method=pass_all
  7105. ;;
  7106. beos*)
  7107. lt_cv_deplibs_check_method=pass_all
  7108. ;;
  7109. bsdi[45]*)
  7110. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7111. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7112. lt_cv_file_magic_test_file=/shlib/libc.so
  7113. ;;
  7114. cygwin*)
  7115. # func_win32_libid is a shell function defined in ltmain.sh
  7116. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7117. lt_cv_file_magic_cmd='func_win32_libid'
  7118. ;;
  7119. mingw* | pw32*)
  7120. # Base MSYS/MinGW do not provide the 'file' command needed by
  7121. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7122. # unless we find 'file', for example because we are cross-compiling.
  7123. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7124. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7125. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7126. lt_cv_file_magic_cmd='func_win32_libid'
  7127. else
  7128. # Keep this pattern in sync with the one in func_win32_libid.
  7129. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7130. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7131. fi
  7132. ;;
  7133. cegcc*)
  7134. # use the weaker test based on 'objdump'. See mingw*.
  7135. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7136. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7137. ;;
  7138. darwin* | rhapsody*)
  7139. lt_cv_deplibs_check_method=pass_all
  7140. ;;
  7141. freebsd* | dragonfly*)
  7142. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7143. case $host_cpu in
  7144. i*86 )
  7145. # Not sure whether the presence of OpenBSD here was a mistake.
  7146. # Let's accept both of them until this is cleared up.
  7147. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7148. lt_cv_file_magic_cmd=/usr/bin/file
  7149. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7150. ;;
  7151. esac
  7152. else
  7153. lt_cv_deplibs_check_method=pass_all
  7154. fi
  7155. ;;
  7156. gnu*)
  7157. lt_cv_deplibs_check_method=pass_all
  7158. ;;
  7159. haiku*)
  7160. lt_cv_deplibs_check_method=pass_all
  7161. ;;
  7162. hpux10.20* | hpux11*)
  7163. lt_cv_file_magic_cmd=/usr/bin/file
  7164. case $host_cpu in
  7165. ia64*)
  7166. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7167. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7168. ;;
  7169. hppa*64*)
  7170. 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]'
  7171. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7172. ;;
  7173. *)
  7174. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7175. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7176. ;;
  7177. esac
  7178. ;;
  7179. interix[3-9]*)
  7180. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7181. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7182. ;;
  7183. irix5* | irix6* | nonstopux*)
  7184. case $LD in
  7185. *-32|*"-32 ") libmagic=32-bit;;
  7186. *-n32|*"-n32 ") libmagic=N32;;
  7187. *-64|*"-64 ") libmagic=64-bit;;
  7188. *) libmagic=never-match;;
  7189. esac
  7190. lt_cv_deplibs_check_method=pass_all
  7191. ;;
  7192. # This must be Linux ELF.
  7193. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7194. lt_cv_deplibs_check_method=pass_all
  7195. ;;
  7196. netbsd*)
  7197. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7198. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7199. else
  7200. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7201. fi
  7202. ;;
  7203. newos6*)
  7204. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7205. lt_cv_file_magic_cmd=/usr/bin/file
  7206. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7207. ;;
  7208. *nto* | *qnx*)
  7209. lt_cv_deplibs_check_method=pass_all
  7210. ;;
  7211. openbsd*)
  7212. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7213. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7214. else
  7215. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7216. fi
  7217. ;;
  7218. osf3* | osf4* | osf5*)
  7219. lt_cv_deplibs_check_method=pass_all
  7220. ;;
  7221. rdos*)
  7222. lt_cv_deplibs_check_method=pass_all
  7223. ;;
  7224. solaris*)
  7225. lt_cv_deplibs_check_method=pass_all
  7226. ;;
  7227. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7228. lt_cv_deplibs_check_method=pass_all
  7229. ;;
  7230. sysv4 | sysv4.3*)
  7231. case $host_vendor in
  7232. motorola)
  7233. 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]'
  7234. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7235. ;;
  7236. ncr)
  7237. lt_cv_deplibs_check_method=pass_all
  7238. ;;
  7239. sequent)
  7240. lt_cv_file_magic_cmd='/bin/file'
  7241. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7242. ;;
  7243. sni)
  7244. lt_cv_file_magic_cmd='/bin/file'
  7245. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7246. lt_cv_file_magic_test_file=/lib/libc.so
  7247. ;;
  7248. siemens)
  7249. lt_cv_deplibs_check_method=pass_all
  7250. ;;
  7251. pc)
  7252. lt_cv_deplibs_check_method=pass_all
  7253. ;;
  7254. esac
  7255. ;;
  7256. tpf*)
  7257. lt_cv_deplibs_check_method=pass_all
  7258. ;;
  7259. esac
  7260. fi
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7262. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7263. file_magic_cmd=$lt_cv_file_magic_cmd
  7264. deplibs_check_method=$lt_cv_deplibs_check_method
  7265. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7266. if test -n "$ac_tool_prefix"; then
  7267. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7268. set dummy ${ac_tool_prefix}ar; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if test "${ac_cv_prog_AR+set}" = set; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$AR"; then
  7275. ac_cv_prog_AR="$AR" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7284. ac_cv_prog_AR="${ac_tool_prefix}ar"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. AR=$ac_cv_prog_AR
  7294. if test -n "$AR"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7296. $as_echo "$AR" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. fi
  7302. if test -z "$ac_cv_prog_AR"; then
  7303. ac_ct_AR=$AR
  7304. # Extract the first word of "ar", so it can be a program name with args.
  7305. set dummy ar; ac_word=$2
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7307. $as_echo_n "checking for $ac_word... " >&6; }
  7308. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. if test -n "$ac_ct_AR"; then
  7312. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7313. else
  7314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7315. for as_dir in $PATH
  7316. do
  7317. IFS=$as_save_IFS
  7318. test -z "$as_dir" && as_dir=.
  7319. for ac_exec_ext in '' $ac_executable_extensions; do
  7320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7321. ac_cv_prog_ac_ct_AR="ar"
  7322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7323. break 2
  7324. fi
  7325. done
  7326. done
  7327. IFS=$as_save_IFS
  7328. fi
  7329. fi
  7330. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7331. if test -n "$ac_ct_AR"; then
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7333. $as_echo "$ac_ct_AR" >&6; }
  7334. else
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7336. $as_echo "no" >&6; }
  7337. fi
  7338. if test "x$ac_ct_AR" = x; then
  7339. AR="false"
  7340. else
  7341. case $cross_compiling:$ac_tool_warned in
  7342. yes:)
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7345. ac_tool_warned=yes ;;
  7346. esac
  7347. AR=$ac_ct_AR
  7348. fi
  7349. else
  7350. AR="$ac_cv_prog_AR"
  7351. fi
  7352. test -z "$AR" && AR=ar
  7353. test -z "$AR_FLAGS" && AR_FLAGS=cru
  7354. if test -n "$ac_tool_prefix"; then
  7355. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7356. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7358. $as_echo_n "checking for $ac_word... " >&6; }
  7359. if test "${ac_cv_prog_STRIP+set}" = set; then :
  7360. $as_echo_n "(cached) " >&6
  7361. else
  7362. if test -n "$STRIP"; then
  7363. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7364. else
  7365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7366. for as_dir in $PATH
  7367. do
  7368. IFS=$as_save_IFS
  7369. test -z "$as_dir" && as_dir=.
  7370. for ac_exec_ext in '' $ac_executable_extensions; do
  7371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7372. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7374. break 2
  7375. fi
  7376. done
  7377. done
  7378. IFS=$as_save_IFS
  7379. fi
  7380. fi
  7381. STRIP=$ac_cv_prog_STRIP
  7382. if test -n "$STRIP"; then
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7384. $as_echo "$STRIP" >&6; }
  7385. else
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7387. $as_echo "no" >&6; }
  7388. fi
  7389. fi
  7390. if test -z "$ac_cv_prog_STRIP"; then
  7391. ac_ct_STRIP=$STRIP
  7392. # Extract the first word of "strip", so it can be a program name with args.
  7393. set dummy strip; ac_word=$2
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7395. $as_echo_n "checking for $ac_word... " >&6; }
  7396. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. if test -n "$ac_ct_STRIP"; then
  7400. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7401. else
  7402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7403. for as_dir in $PATH
  7404. do
  7405. IFS=$as_save_IFS
  7406. test -z "$as_dir" && as_dir=.
  7407. for ac_exec_ext in '' $ac_executable_extensions; do
  7408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7409. ac_cv_prog_ac_ct_STRIP="strip"
  7410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7411. break 2
  7412. fi
  7413. done
  7414. done
  7415. IFS=$as_save_IFS
  7416. fi
  7417. fi
  7418. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7419. if test -n "$ac_ct_STRIP"; then
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7421. $as_echo "$ac_ct_STRIP" >&6; }
  7422. else
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7424. $as_echo "no" >&6; }
  7425. fi
  7426. if test "x$ac_ct_STRIP" = x; then
  7427. STRIP=":"
  7428. else
  7429. case $cross_compiling:$ac_tool_warned in
  7430. yes:)
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7433. ac_tool_warned=yes ;;
  7434. esac
  7435. STRIP=$ac_ct_STRIP
  7436. fi
  7437. else
  7438. STRIP="$ac_cv_prog_STRIP"
  7439. fi
  7440. test -z "$STRIP" && STRIP=:
  7441. if test -n "$ac_tool_prefix"; then
  7442. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7443. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7445. $as_echo_n "checking for $ac_word... " >&6; }
  7446. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. if test -n "$RANLIB"; then
  7450. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7451. else
  7452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7453. for as_dir in $PATH
  7454. do
  7455. IFS=$as_save_IFS
  7456. test -z "$as_dir" && as_dir=.
  7457. for ac_exec_ext in '' $ac_executable_extensions; do
  7458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7459. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7461. break 2
  7462. fi
  7463. done
  7464. done
  7465. IFS=$as_save_IFS
  7466. fi
  7467. fi
  7468. RANLIB=$ac_cv_prog_RANLIB
  7469. if test -n "$RANLIB"; then
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7471. $as_echo "$RANLIB" >&6; }
  7472. else
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7474. $as_echo "no" >&6; }
  7475. fi
  7476. fi
  7477. if test -z "$ac_cv_prog_RANLIB"; then
  7478. ac_ct_RANLIB=$RANLIB
  7479. # Extract the first word of "ranlib", so it can be a program name with args.
  7480. set dummy ranlib; ac_word=$2
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7482. $as_echo_n "checking for $ac_word... " >&6; }
  7483. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  7484. $as_echo_n "(cached) " >&6
  7485. else
  7486. if test -n "$ac_ct_RANLIB"; then
  7487. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7488. else
  7489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7490. for as_dir in $PATH
  7491. do
  7492. IFS=$as_save_IFS
  7493. test -z "$as_dir" && as_dir=.
  7494. for ac_exec_ext in '' $ac_executable_extensions; do
  7495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7496. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7498. break 2
  7499. fi
  7500. done
  7501. done
  7502. IFS=$as_save_IFS
  7503. fi
  7504. fi
  7505. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7506. if test -n "$ac_ct_RANLIB"; then
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7508. $as_echo "$ac_ct_RANLIB" >&6; }
  7509. else
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7511. $as_echo "no" >&6; }
  7512. fi
  7513. if test "x$ac_ct_RANLIB" = x; then
  7514. RANLIB=":"
  7515. else
  7516. case $cross_compiling:$ac_tool_warned in
  7517. yes:)
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7520. ac_tool_warned=yes ;;
  7521. esac
  7522. RANLIB=$ac_ct_RANLIB
  7523. fi
  7524. else
  7525. RANLIB="$ac_cv_prog_RANLIB"
  7526. fi
  7527. test -z "$RANLIB" && RANLIB=:
  7528. # Determine commands to create old-style static archives.
  7529. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7530. old_postinstall_cmds='chmod 644 $oldlib'
  7531. old_postuninstall_cmds=
  7532. if test -n "$RANLIB"; then
  7533. case $host_os in
  7534. openbsd*)
  7535. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  7536. ;;
  7537. *)
  7538. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  7539. ;;
  7540. esac
  7541. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7542. fi
  7543. case $host_os in
  7544. darwin*)
  7545. lock_old_archive_extraction=yes ;;
  7546. *)
  7547. lock_old_archive_extraction=no ;;
  7548. esac
  7549. # If no C compiler was specified, use CC.
  7550. LTCC=${LTCC-"$CC"}
  7551. # If no C compiler flags were specified, use CFLAGS.
  7552. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7553. # Allow CC to be a program name with arguments.
  7554. compiler=$CC
  7555. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7557. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7558. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  7559. $as_echo_n "(cached) " >&6
  7560. else
  7561. # These are sane defaults that work on at least a few old systems.
  7562. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7563. # Character class describing NM global symbol codes.
  7564. symcode='[BCDEGRST]'
  7565. # Regexp to match symbols that can be accessed directly from C.
  7566. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7567. # Define system-specific variables.
  7568. case $host_os in
  7569. aix*)
  7570. symcode='[BCDT]'
  7571. ;;
  7572. cygwin* | mingw* | pw32* | cegcc*)
  7573. symcode='[ABCDGISTW]'
  7574. ;;
  7575. hpux*)
  7576. if test "$host_cpu" = ia64; then
  7577. symcode='[ABCDEGRST]'
  7578. fi
  7579. ;;
  7580. irix* | nonstopux*)
  7581. symcode='[BCDEGRST]'
  7582. ;;
  7583. osf*)
  7584. symcode='[BCDEGQRST]'
  7585. ;;
  7586. solaris*)
  7587. symcode='[BDRT]'
  7588. ;;
  7589. sco3.2v5*)
  7590. symcode='[DT]'
  7591. ;;
  7592. sysv4.2uw2*)
  7593. symcode='[DT]'
  7594. ;;
  7595. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7596. symcode='[ABDT]'
  7597. ;;
  7598. sysv4)
  7599. symcode='[DFNSTU]'
  7600. ;;
  7601. esac
  7602. # If we're using GNU nm, then use its standard symbol codes.
  7603. case `$NM -V 2>&1` in
  7604. *GNU* | *'with BFD'*)
  7605. symcode='[ABCDGIRSTW]' ;;
  7606. esac
  7607. # Transform an extracted symbol line into a proper C declaration.
  7608. # Some systems (esp. on ia64) link data and code symbols differently,
  7609. # so use this general approach.
  7610. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7611. # Transform an extracted symbol line into symbol name and symbol address
  7612. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7613. 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'"
  7614. # Handle CRLF in mingw tool chain
  7615. opt_cr=
  7616. case $build_os in
  7617. mingw*)
  7618. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7619. ;;
  7620. esac
  7621. # Try without a prefix underscore, then with it.
  7622. for ac_symprfx in "" "_"; do
  7623. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7624. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7625. # Write the raw and C identifiers.
  7626. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7627. # Fake it for dumpbin and say T for any non-static function
  7628. # and D for any global variable.
  7629. # Also find C++ and __fastcall symbols from MSVC++,
  7630. # which start with @ or ?.
  7631. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7632. " {last_section=section; section=\$ 3};"\
  7633. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7634. " \$ 0!~/External *\|/{next};"\
  7635. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7636. " {if(hide[section]) next};"\
  7637. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7638. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7639. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7640. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7641. " ' prfx=^$ac_symprfx"
  7642. else
  7643. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7644. fi
  7645. # Check to see that the pipe works correctly.
  7646. pipe_works=no
  7647. rm -f conftest*
  7648. cat > conftest.$ac_ext <<_LT_EOF
  7649. #ifdef __cplusplus
  7650. extern "C" {
  7651. #endif
  7652. char nm_test_var;
  7653. void nm_test_func(void);
  7654. void nm_test_func(void){}
  7655. #ifdef __cplusplus
  7656. }
  7657. #endif
  7658. int main(){nm_test_var='a';nm_test_func();return(0);}
  7659. _LT_EOF
  7660. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7661. (eval $ac_compile) 2>&5
  7662. ac_status=$?
  7663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7664. test $ac_status = 0; }; then
  7665. # Now try to grab the symbols.
  7666. nlist=conftest.nm
  7667. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7668. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7669. ac_status=$?
  7670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7671. test $ac_status = 0; } && test -s "$nlist"; then
  7672. # Try sorting and uniquifying the output.
  7673. if sort "$nlist" | uniq > "$nlist"T; then
  7674. mv -f "$nlist"T "$nlist"
  7675. else
  7676. rm -f "$nlist"T
  7677. fi
  7678. # Make sure that we snagged all the symbols we need.
  7679. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7680. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7681. cat <<_LT_EOF > conftest.$ac_ext
  7682. #ifdef __cplusplus
  7683. extern "C" {
  7684. #endif
  7685. _LT_EOF
  7686. # Now generate the symbol file.
  7687. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7688. cat <<_LT_EOF >> conftest.$ac_ext
  7689. /* The mapping between symbol names and symbols. */
  7690. const struct {
  7691. const char *name;
  7692. void *address;
  7693. }
  7694. lt__PROGRAM__LTX_preloaded_symbols[] =
  7695. {
  7696. { "@PROGRAM@", (void *) 0 },
  7697. _LT_EOF
  7698. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7699. cat <<\_LT_EOF >> conftest.$ac_ext
  7700. {0, (void *) 0}
  7701. };
  7702. /* This works around a problem in FreeBSD linker */
  7703. #ifdef FREEBSD_WORKAROUND
  7704. static const void *lt_preloaded_setup() {
  7705. return lt__PROGRAM__LTX_preloaded_symbols;
  7706. }
  7707. #endif
  7708. #ifdef __cplusplus
  7709. }
  7710. #endif
  7711. _LT_EOF
  7712. # Now try linking the two files.
  7713. mv conftest.$ac_objext conftstm.$ac_objext
  7714. lt_save_LIBS="$LIBS"
  7715. lt_save_CFLAGS="$CFLAGS"
  7716. LIBS="conftstm.$ac_objext"
  7717. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7719. (eval $ac_link) 2>&5
  7720. ac_status=$?
  7721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7722. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7723. pipe_works=yes
  7724. fi
  7725. LIBS="$lt_save_LIBS"
  7726. CFLAGS="$lt_save_CFLAGS"
  7727. else
  7728. echo "cannot find nm_test_func in $nlist" >&5
  7729. fi
  7730. else
  7731. echo "cannot find nm_test_var in $nlist" >&5
  7732. fi
  7733. else
  7734. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7735. fi
  7736. else
  7737. echo "$progname: failed program was:" >&5
  7738. cat conftest.$ac_ext >&5
  7739. fi
  7740. rm -rf conftest* conftst*
  7741. # Do not use the global_symbol_pipe unless it works.
  7742. if test "$pipe_works" = yes; then
  7743. break
  7744. else
  7745. lt_cv_sys_global_symbol_pipe=
  7746. fi
  7747. done
  7748. fi
  7749. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7750. lt_cv_sys_global_symbol_to_cdecl=
  7751. fi
  7752. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7754. $as_echo "failed" >&6; }
  7755. else
  7756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7757. $as_echo "ok" >&6; }
  7758. fi
  7759. # Check whether --enable-libtool-lock was given.
  7760. if test "${enable_libtool_lock+set}" = set; then :
  7761. enableval=$enable_libtool_lock;
  7762. fi
  7763. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7764. # Some flags need to be propagated to the compiler or linker for good
  7765. # libtool support.
  7766. case $host in
  7767. ia64-*-hpux*)
  7768. # Find out which ABI we are using.
  7769. echo 'int i;' > conftest.$ac_ext
  7770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7771. (eval $ac_compile) 2>&5
  7772. ac_status=$?
  7773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7774. test $ac_status = 0; }; then
  7775. case `/usr/bin/file conftest.$ac_objext` in
  7776. *ELF-32*)
  7777. HPUX_IA64_MODE="32"
  7778. ;;
  7779. *ELF-64*)
  7780. HPUX_IA64_MODE="64"
  7781. ;;
  7782. esac
  7783. fi
  7784. rm -rf conftest*
  7785. ;;
  7786. *-*-irix6*)
  7787. # Find out which ABI we are using.
  7788. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7789. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7790. (eval $ac_compile) 2>&5
  7791. ac_status=$?
  7792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7793. test $ac_status = 0; }; then
  7794. if test "$lt_cv_prog_gnu_ld" = yes; then
  7795. case `/usr/bin/file conftest.$ac_objext` in
  7796. *32-bit*)
  7797. LD="${LD-ld} -melf32bsmip"
  7798. ;;
  7799. *N32*)
  7800. LD="${LD-ld} -melf32bmipn32"
  7801. ;;
  7802. *64-bit*)
  7803. LD="${LD-ld} -melf64bmip"
  7804. ;;
  7805. esac
  7806. else
  7807. case `/usr/bin/file conftest.$ac_objext` in
  7808. *32-bit*)
  7809. LD="${LD-ld} -32"
  7810. ;;
  7811. *N32*)
  7812. LD="${LD-ld} -n32"
  7813. ;;
  7814. *64-bit*)
  7815. LD="${LD-ld} -64"
  7816. ;;
  7817. esac
  7818. fi
  7819. fi
  7820. rm -rf conftest*
  7821. ;;
  7822. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7823. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7824. # Find out which ABI we are using.
  7825. echo 'int i;' > conftest.$ac_ext
  7826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7827. (eval $ac_compile) 2>&5
  7828. ac_status=$?
  7829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7830. test $ac_status = 0; }; then
  7831. case `/usr/bin/file conftest.o` in
  7832. *32-bit*)
  7833. case $host in
  7834. x86_64-*kfreebsd*-gnu)
  7835. LD="${LD-ld} -m elf_i386_fbsd"
  7836. ;;
  7837. x86_64-*linux*)
  7838. LD="${LD-ld} -m elf_i386"
  7839. ;;
  7840. ppc64-*linux*|powerpc64-*linux*)
  7841. LD="${LD-ld} -m elf32ppclinux"
  7842. ;;
  7843. s390x-*linux*)
  7844. LD="${LD-ld} -m elf_s390"
  7845. ;;
  7846. sparc64-*linux*)
  7847. LD="${LD-ld} -m elf32_sparc"
  7848. ;;
  7849. esac
  7850. ;;
  7851. *64-bit*)
  7852. case $host in
  7853. x86_64-*kfreebsd*-gnu)
  7854. LD="${LD-ld} -m elf_x86_64_fbsd"
  7855. ;;
  7856. x86_64-*linux*)
  7857. LD="${LD-ld} -m elf_x86_64"
  7858. ;;
  7859. ppc*-*linux*|powerpc*-*linux*)
  7860. LD="${LD-ld} -m elf64ppc"
  7861. ;;
  7862. s390*-*linux*|s390*-*tpf*)
  7863. LD="${LD-ld} -m elf64_s390"
  7864. ;;
  7865. sparc*-*linux*)
  7866. LD="${LD-ld} -m elf64_sparc"
  7867. ;;
  7868. esac
  7869. ;;
  7870. esac
  7871. fi
  7872. rm -rf conftest*
  7873. ;;
  7874. *-*-sco3.2v5*)
  7875. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7876. SAVE_CFLAGS="$CFLAGS"
  7877. CFLAGS="$CFLAGS -belf"
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7879. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7880. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. ac_ext=c
  7884. ac_cpp='$CPP $CPPFLAGS'
  7885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7889. /* end confdefs.h. */
  7890. int
  7891. main ()
  7892. {
  7893. ;
  7894. return 0;
  7895. }
  7896. _ACEOF
  7897. if ac_fn_c_try_link "$LINENO"; then :
  7898. lt_cv_cc_needs_belf=yes
  7899. else
  7900. lt_cv_cc_needs_belf=no
  7901. fi
  7902. rm -f core conftest.err conftest.$ac_objext \
  7903. conftest$ac_exeext conftest.$ac_ext
  7904. ac_ext=c
  7905. ac_cpp='$CPP $CPPFLAGS'
  7906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7909. fi
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7911. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7912. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7913. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7914. CFLAGS="$SAVE_CFLAGS"
  7915. fi
  7916. ;;
  7917. sparc*-*solaris*)
  7918. # Find out which ABI we are using.
  7919. echo 'int i;' > conftest.$ac_ext
  7920. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7921. (eval $ac_compile) 2>&5
  7922. ac_status=$?
  7923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7924. test $ac_status = 0; }; then
  7925. case `/usr/bin/file conftest.o` in
  7926. *64-bit*)
  7927. case $lt_cv_prog_gnu_ld in
  7928. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7929. *)
  7930. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7931. LD="${LD-ld} -64"
  7932. fi
  7933. ;;
  7934. esac
  7935. ;;
  7936. esac
  7937. fi
  7938. rm -rf conftest*
  7939. ;;
  7940. esac
  7941. need_locks="$enable_libtool_lock"
  7942. case $host_os in
  7943. rhapsody* | darwin*)
  7944. if test -n "$ac_tool_prefix"; then
  7945. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7946. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7948. $as_echo_n "checking for $ac_word... " >&6; }
  7949. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  7950. $as_echo_n "(cached) " >&6
  7951. else
  7952. if test -n "$DSYMUTIL"; then
  7953. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7954. else
  7955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7956. for as_dir in $PATH
  7957. do
  7958. IFS=$as_save_IFS
  7959. test -z "$as_dir" && as_dir=.
  7960. for ac_exec_ext in '' $ac_executable_extensions; do
  7961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7962. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7964. break 2
  7965. fi
  7966. done
  7967. done
  7968. IFS=$as_save_IFS
  7969. fi
  7970. fi
  7971. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7972. if test -n "$DSYMUTIL"; then
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7974. $as_echo "$DSYMUTIL" >&6; }
  7975. else
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7977. $as_echo "no" >&6; }
  7978. fi
  7979. fi
  7980. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7981. ac_ct_DSYMUTIL=$DSYMUTIL
  7982. # Extract the first word of "dsymutil", so it can be a program name with args.
  7983. set dummy dsymutil; ac_word=$2
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7985. $as_echo_n "checking for $ac_word... " >&6; }
  7986. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. if test -n "$ac_ct_DSYMUTIL"; then
  7990. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7991. else
  7992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7993. for as_dir in $PATH
  7994. do
  7995. IFS=$as_save_IFS
  7996. test -z "$as_dir" && as_dir=.
  7997. for ac_exec_ext in '' $ac_executable_extensions; do
  7998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7999. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8001. break 2
  8002. fi
  8003. done
  8004. done
  8005. IFS=$as_save_IFS
  8006. fi
  8007. fi
  8008. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8009. if test -n "$ac_ct_DSYMUTIL"; then
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8011. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8012. else
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8014. $as_echo "no" >&6; }
  8015. fi
  8016. if test "x$ac_ct_DSYMUTIL" = x; then
  8017. DSYMUTIL=":"
  8018. else
  8019. case $cross_compiling:$ac_tool_warned in
  8020. yes:)
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8023. ac_tool_warned=yes ;;
  8024. esac
  8025. DSYMUTIL=$ac_ct_DSYMUTIL
  8026. fi
  8027. else
  8028. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8029. fi
  8030. if test -n "$ac_tool_prefix"; then
  8031. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8032. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8034. $as_echo_n "checking for $ac_word... " >&6; }
  8035. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  8036. $as_echo_n "(cached) " >&6
  8037. else
  8038. if test -n "$NMEDIT"; then
  8039. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8040. else
  8041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8042. for as_dir in $PATH
  8043. do
  8044. IFS=$as_save_IFS
  8045. test -z "$as_dir" && as_dir=.
  8046. for ac_exec_ext in '' $ac_executable_extensions; do
  8047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8048. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8050. break 2
  8051. fi
  8052. done
  8053. done
  8054. IFS=$as_save_IFS
  8055. fi
  8056. fi
  8057. NMEDIT=$ac_cv_prog_NMEDIT
  8058. if test -n "$NMEDIT"; then
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8060. $as_echo "$NMEDIT" >&6; }
  8061. else
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8063. $as_echo "no" >&6; }
  8064. fi
  8065. fi
  8066. if test -z "$ac_cv_prog_NMEDIT"; then
  8067. ac_ct_NMEDIT=$NMEDIT
  8068. # Extract the first word of "nmedit", so it can be a program name with args.
  8069. set dummy nmedit; ac_word=$2
  8070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8071. $as_echo_n "checking for $ac_word... " >&6; }
  8072. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  8073. $as_echo_n "(cached) " >&6
  8074. else
  8075. if test -n "$ac_ct_NMEDIT"; then
  8076. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8077. else
  8078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8079. for as_dir in $PATH
  8080. do
  8081. IFS=$as_save_IFS
  8082. test -z "$as_dir" && as_dir=.
  8083. for ac_exec_ext in '' $ac_executable_extensions; do
  8084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8085. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8087. break 2
  8088. fi
  8089. done
  8090. done
  8091. IFS=$as_save_IFS
  8092. fi
  8093. fi
  8094. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8095. if test -n "$ac_ct_NMEDIT"; then
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8097. $as_echo "$ac_ct_NMEDIT" >&6; }
  8098. else
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8100. $as_echo "no" >&6; }
  8101. fi
  8102. if test "x$ac_ct_NMEDIT" = x; then
  8103. NMEDIT=":"
  8104. else
  8105. case $cross_compiling:$ac_tool_warned in
  8106. yes:)
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8109. ac_tool_warned=yes ;;
  8110. esac
  8111. NMEDIT=$ac_ct_NMEDIT
  8112. fi
  8113. else
  8114. NMEDIT="$ac_cv_prog_NMEDIT"
  8115. fi
  8116. if test -n "$ac_tool_prefix"; then
  8117. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8118. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8120. $as_echo_n "checking for $ac_word... " >&6; }
  8121. if test "${ac_cv_prog_LIPO+set}" = set; then :
  8122. $as_echo_n "(cached) " >&6
  8123. else
  8124. if test -n "$LIPO"; then
  8125. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8126. else
  8127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8128. for as_dir in $PATH
  8129. do
  8130. IFS=$as_save_IFS
  8131. test -z "$as_dir" && as_dir=.
  8132. for ac_exec_ext in '' $ac_executable_extensions; do
  8133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8134. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8136. break 2
  8137. fi
  8138. done
  8139. done
  8140. IFS=$as_save_IFS
  8141. fi
  8142. fi
  8143. LIPO=$ac_cv_prog_LIPO
  8144. if test -n "$LIPO"; then
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8146. $as_echo "$LIPO" >&6; }
  8147. else
  8148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8149. $as_echo "no" >&6; }
  8150. fi
  8151. fi
  8152. if test -z "$ac_cv_prog_LIPO"; then
  8153. ac_ct_LIPO=$LIPO
  8154. # Extract the first word of "lipo", so it can be a program name with args.
  8155. set dummy lipo; ac_word=$2
  8156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8157. $as_echo_n "checking for $ac_word... " >&6; }
  8158. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  8159. $as_echo_n "(cached) " >&6
  8160. else
  8161. if test -n "$ac_ct_LIPO"; then
  8162. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8163. else
  8164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8165. for as_dir in $PATH
  8166. do
  8167. IFS=$as_save_IFS
  8168. test -z "$as_dir" && as_dir=.
  8169. for ac_exec_ext in '' $ac_executable_extensions; do
  8170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8171. ac_cv_prog_ac_ct_LIPO="lipo"
  8172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8173. break 2
  8174. fi
  8175. done
  8176. done
  8177. IFS=$as_save_IFS
  8178. fi
  8179. fi
  8180. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8181. if test -n "$ac_ct_LIPO"; then
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8183. $as_echo "$ac_ct_LIPO" >&6; }
  8184. else
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8186. $as_echo "no" >&6; }
  8187. fi
  8188. if test "x$ac_ct_LIPO" = x; then
  8189. LIPO=":"
  8190. else
  8191. case $cross_compiling:$ac_tool_warned in
  8192. yes:)
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8195. ac_tool_warned=yes ;;
  8196. esac
  8197. LIPO=$ac_ct_LIPO
  8198. fi
  8199. else
  8200. LIPO="$ac_cv_prog_LIPO"
  8201. fi
  8202. if test -n "$ac_tool_prefix"; then
  8203. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8204. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8206. $as_echo_n "checking for $ac_word... " >&6; }
  8207. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  8208. $as_echo_n "(cached) " >&6
  8209. else
  8210. if test -n "$OTOOL"; then
  8211. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8212. else
  8213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8214. for as_dir in $PATH
  8215. do
  8216. IFS=$as_save_IFS
  8217. test -z "$as_dir" && as_dir=.
  8218. for ac_exec_ext in '' $ac_executable_extensions; do
  8219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8220. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8222. break 2
  8223. fi
  8224. done
  8225. done
  8226. IFS=$as_save_IFS
  8227. fi
  8228. fi
  8229. OTOOL=$ac_cv_prog_OTOOL
  8230. if test -n "$OTOOL"; then
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8232. $as_echo "$OTOOL" >&6; }
  8233. else
  8234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8235. $as_echo "no" >&6; }
  8236. fi
  8237. fi
  8238. if test -z "$ac_cv_prog_OTOOL"; then
  8239. ac_ct_OTOOL=$OTOOL
  8240. # Extract the first word of "otool", so it can be a program name with args.
  8241. set dummy otool; ac_word=$2
  8242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8243. $as_echo_n "checking for $ac_word... " >&6; }
  8244. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  8245. $as_echo_n "(cached) " >&6
  8246. else
  8247. if test -n "$ac_ct_OTOOL"; then
  8248. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8249. else
  8250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8251. for as_dir in $PATH
  8252. do
  8253. IFS=$as_save_IFS
  8254. test -z "$as_dir" && as_dir=.
  8255. for ac_exec_ext in '' $ac_executable_extensions; do
  8256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8257. ac_cv_prog_ac_ct_OTOOL="otool"
  8258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8259. break 2
  8260. fi
  8261. done
  8262. done
  8263. IFS=$as_save_IFS
  8264. fi
  8265. fi
  8266. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8267. if test -n "$ac_ct_OTOOL"; then
  8268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8269. $as_echo "$ac_ct_OTOOL" >&6; }
  8270. else
  8271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8272. $as_echo "no" >&6; }
  8273. fi
  8274. if test "x$ac_ct_OTOOL" = x; then
  8275. OTOOL=":"
  8276. else
  8277. case $cross_compiling:$ac_tool_warned in
  8278. yes:)
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8280. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8281. ac_tool_warned=yes ;;
  8282. esac
  8283. OTOOL=$ac_ct_OTOOL
  8284. fi
  8285. else
  8286. OTOOL="$ac_cv_prog_OTOOL"
  8287. fi
  8288. if test -n "$ac_tool_prefix"; then
  8289. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8290. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8292. $as_echo_n "checking for $ac_word... " >&6; }
  8293. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  8294. $as_echo_n "(cached) " >&6
  8295. else
  8296. if test -n "$OTOOL64"; then
  8297. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8298. else
  8299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8300. for as_dir in $PATH
  8301. do
  8302. IFS=$as_save_IFS
  8303. test -z "$as_dir" && as_dir=.
  8304. for ac_exec_ext in '' $ac_executable_extensions; do
  8305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8306. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8308. break 2
  8309. fi
  8310. done
  8311. done
  8312. IFS=$as_save_IFS
  8313. fi
  8314. fi
  8315. OTOOL64=$ac_cv_prog_OTOOL64
  8316. if test -n "$OTOOL64"; then
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8318. $as_echo "$OTOOL64" >&6; }
  8319. else
  8320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8321. $as_echo "no" >&6; }
  8322. fi
  8323. fi
  8324. if test -z "$ac_cv_prog_OTOOL64"; then
  8325. ac_ct_OTOOL64=$OTOOL64
  8326. # Extract the first word of "otool64", so it can be a program name with args.
  8327. set dummy otool64; ac_word=$2
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8329. $as_echo_n "checking for $ac_word... " >&6; }
  8330. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  8331. $as_echo_n "(cached) " >&6
  8332. else
  8333. if test -n "$ac_ct_OTOOL64"; then
  8334. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8335. else
  8336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8337. for as_dir in $PATH
  8338. do
  8339. IFS=$as_save_IFS
  8340. test -z "$as_dir" && as_dir=.
  8341. for ac_exec_ext in '' $ac_executable_extensions; do
  8342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8343. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8345. break 2
  8346. fi
  8347. done
  8348. done
  8349. IFS=$as_save_IFS
  8350. fi
  8351. fi
  8352. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8353. if test -n "$ac_ct_OTOOL64"; then
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8355. $as_echo "$ac_ct_OTOOL64" >&6; }
  8356. else
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8358. $as_echo "no" >&6; }
  8359. fi
  8360. if test "x$ac_ct_OTOOL64" = x; then
  8361. OTOOL64=":"
  8362. else
  8363. case $cross_compiling:$ac_tool_warned in
  8364. yes:)
  8365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8367. ac_tool_warned=yes ;;
  8368. esac
  8369. OTOOL64=$ac_ct_OTOOL64
  8370. fi
  8371. else
  8372. OTOOL64="$ac_cv_prog_OTOOL64"
  8373. fi
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8375. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8376. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  8377. $as_echo_n "(cached) " >&6
  8378. else
  8379. lt_cv_apple_cc_single_mod=no
  8380. if test -z "${LT_MULTI_MODULE}"; then
  8381. # By default we will add the -single_module flag. You can override
  8382. # by either setting the environment variable LT_MULTI_MODULE
  8383. # non-empty at configure time, or by adding -multi_module to the
  8384. # link flags.
  8385. rm -rf libconftest.dylib*
  8386. echo "int foo(void){return 1;}" > conftest.c
  8387. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8388. -dynamiclib -Wl,-single_module conftest.c" >&5
  8389. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8390. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8391. _lt_result=$?
  8392. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  8393. lt_cv_apple_cc_single_mod=yes
  8394. else
  8395. cat conftest.err >&5
  8396. fi
  8397. rm -rf libconftest.dylib*
  8398. rm -f conftest.*
  8399. fi
  8400. fi
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8402. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8404. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8405. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  8406. $as_echo_n "(cached) " >&6
  8407. else
  8408. lt_cv_ld_exported_symbols_list=no
  8409. save_LDFLAGS=$LDFLAGS
  8410. echo "_main" > conftest.sym
  8411. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8413. /* end confdefs.h. */
  8414. int
  8415. main ()
  8416. {
  8417. ;
  8418. return 0;
  8419. }
  8420. _ACEOF
  8421. if ac_fn_c_try_link "$LINENO"; then :
  8422. lt_cv_ld_exported_symbols_list=yes
  8423. else
  8424. lt_cv_ld_exported_symbols_list=no
  8425. fi
  8426. rm -f core conftest.err conftest.$ac_objext \
  8427. conftest$ac_exeext conftest.$ac_ext
  8428. LDFLAGS="$save_LDFLAGS"
  8429. fi
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8431. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8433. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8434. if test "${lt_cv_ld_force_load+set}" = set; then :
  8435. $as_echo_n "(cached) " >&6
  8436. else
  8437. lt_cv_ld_force_load=no
  8438. cat > conftest.c << _LT_EOF
  8439. int forced_loaded() { return 2;}
  8440. _LT_EOF
  8441. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8442. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8443. echo "$AR cru libconftest.a conftest.o" >&5
  8444. $AR cru libconftest.a conftest.o 2>&5
  8445. echo "$RANLIB libconftest.a" >&5
  8446. $RANLIB libconftest.a 2>&5
  8447. cat > conftest.c << _LT_EOF
  8448. int main() { return 0;}
  8449. _LT_EOF
  8450. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8451. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8452. _lt_result=$?
  8453. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  8454. lt_cv_ld_force_load=yes
  8455. else
  8456. cat conftest.err >&5
  8457. fi
  8458. rm -f conftest.err libconftest.a conftest conftest.c
  8459. rm -rf conftest.dSYM
  8460. fi
  8461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8462. $as_echo "$lt_cv_ld_force_load" >&6; }
  8463. case $host_os in
  8464. rhapsody* | darwin1.[012])
  8465. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8466. darwin1.*)
  8467. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8468. darwin*) # darwin 5.x on
  8469. # if running on 10.5 or later, the deployment target defaults
  8470. # to the OS version, if on x86, and 10.4, the deployment
  8471. # target defaults to 10.4. Don't you love it?
  8472. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8473. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8474. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8475. 10.[012]*)
  8476. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8477. 10.*)
  8478. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8479. esac
  8480. ;;
  8481. esac
  8482. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8483. _lt_dar_single_mod='$single_module'
  8484. fi
  8485. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8486. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8487. else
  8488. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8489. fi
  8490. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  8491. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8492. else
  8493. _lt_dsymutil=
  8494. fi
  8495. ;;
  8496. esac
  8497. for ac_header in dlfcn.h
  8498. do :
  8499. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8500. "
  8501. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  8502. cat >>confdefs.h <<_ACEOF
  8503. #define HAVE_DLFCN_H 1
  8504. _ACEOF
  8505. fi
  8506. done
  8507. # Set options
  8508. enable_dlopen=no
  8509. enable_win32_dll=no
  8510. # Check whether --enable-shared was given.
  8511. if test "${enable_shared+set}" = set; then :
  8512. enableval=$enable_shared; p=${PACKAGE-default}
  8513. case $enableval in
  8514. yes) enable_shared=yes ;;
  8515. no) enable_shared=no ;;
  8516. *)
  8517. enable_shared=no
  8518. # Look at the argument we got. We use all the common list separators.
  8519. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8520. for pkg in $enableval; do
  8521. IFS="$lt_save_ifs"
  8522. if test "X$pkg" = "X$p"; then
  8523. enable_shared=yes
  8524. fi
  8525. done
  8526. IFS="$lt_save_ifs"
  8527. ;;
  8528. esac
  8529. else
  8530. enable_shared=yes
  8531. fi
  8532. # Check whether --enable-static was given.
  8533. if test "${enable_static+set}" = set; then :
  8534. enableval=$enable_static; p=${PACKAGE-default}
  8535. case $enableval in
  8536. yes) enable_static=yes ;;
  8537. no) enable_static=no ;;
  8538. *)
  8539. enable_static=no
  8540. # Look at the argument we got. We use all the common list separators.
  8541. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8542. for pkg in $enableval; do
  8543. IFS="$lt_save_ifs"
  8544. if test "X$pkg" = "X$p"; then
  8545. enable_static=yes
  8546. fi
  8547. done
  8548. IFS="$lt_save_ifs"
  8549. ;;
  8550. esac
  8551. else
  8552. enable_static=yes
  8553. fi
  8554. # Check whether --with-pic was given.
  8555. if test "${with_pic+set}" = set; then :
  8556. withval=$with_pic; pic_mode="$withval"
  8557. else
  8558. pic_mode=default
  8559. fi
  8560. test -z "$pic_mode" && pic_mode=default
  8561. # Check whether --enable-fast-install was given.
  8562. if test "${enable_fast_install+set}" = set; then :
  8563. enableval=$enable_fast_install; p=${PACKAGE-default}
  8564. case $enableval in
  8565. yes) enable_fast_install=yes ;;
  8566. no) enable_fast_install=no ;;
  8567. *)
  8568. enable_fast_install=no
  8569. # Look at the argument we got. We use all the common list separators.
  8570. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8571. for pkg in $enableval; do
  8572. IFS="$lt_save_ifs"
  8573. if test "X$pkg" = "X$p"; then
  8574. enable_fast_install=yes
  8575. fi
  8576. done
  8577. IFS="$lt_save_ifs"
  8578. ;;
  8579. esac
  8580. else
  8581. enable_fast_install=yes
  8582. fi
  8583. # This can be used to rebuild libtool when needed
  8584. LIBTOOL_DEPS="$ltmain"
  8585. # Always use our own libtool.
  8586. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8587. test -z "$LN_S" && LN_S="ln -s"
  8588. if test -n "${ZSH_VERSION+set}" ; then
  8589. setopt NO_GLOB_SUBST
  8590. fi
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8592. $as_echo_n "checking for objdir... " >&6; }
  8593. if test "${lt_cv_objdir+set}" = set; then :
  8594. $as_echo_n "(cached) " >&6
  8595. else
  8596. rm -f .libs 2>/dev/null
  8597. mkdir .libs 2>/dev/null
  8598. if test -d .libs; then
  8599. lt_cv_objdir=.libs
  8600. else
  8601. # MS-DOS does not allow filenames that begin with a dot.
  8602. lt_cv_objdir=_libs
  8603. fi
  8604. rmdir .libs 2>/dev/null
  8605. fi
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8607. $as_echo "$lt_cv_objdir" >&6; }
  8608. objdir=$lt_cv_objdir
  8609. cat >>confdefs.h <<_ACEOF
  8610. #define LT_OBJDIR "$lt_cv_objdir/"
  8611. _ACEOF
  8612. case $host_os in
  8613. aix3*)
  8614. # AIX sometimes has problems with the GCC collect2 program. For some
  8615. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8616. # vanish in a puff of smoke.
  8617. if test "X${COLLECT_NAMES+set}" != Xset; then
  8618. COLLECT_NAMES=
  8619. export COLLECT_NAMES
  8620. fi
  8621. ;;
  8622. esac
  8623. # Global variables:
  8624. ofile=libtool
  8625. can_build_shared=yes
  8626. # All known linkers require a `.a' archive for static linking (except MSVC,
  8627. # which needs '.lib').
  8628. libext=a
  8629. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8630. old_CC="$CC"
  8631. old_CFLAGS="$CFLAGS"
  8632. # Set sane defaults for various variables
  8633. test -z "$CC" && CC=cc
  8634. test -z "$LTCC" && LTCC=$CC
  8635. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8636. test -z "$LD" && LD=ld
  8637. test -z "$ac_objext" && ac_objext=o
  8638. for cc_temp in $compiler""; do
  8639. case $cc_temp in
  8640. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8641. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8642. \-*) ;;
  8643. *) break;;
  8644. esac
  8645. done
  8646. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8647. # Only perform the check for file, if the check method requires it
  8648. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8649. case $deplibs_check_method in
  8650. file_magic*)
  8651. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8653. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8654. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8655. $as_echo_n "(cached) " >&6
  8656. else
  8657. case $MAGIC_CMD in
  8658. [\\/*] | ?:[\\/]*)
  8659. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8660. ;;
  8661. *)
  8662. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8663. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8664. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8665. for ac_dir in $ac_dummy; do
  8666. IFS="$lt_save_ifs"
  8667. test -z "$ac_dir" && ac_dir=.
  8668. if test -f $ac_dir/${ac_tool_prefix}file; then
  8669. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8670. if test -n "$file_magic_test_file"; then
  8671. case $deplibs_check_method in
  8672. "file_magic "*)
  8673. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8674. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8675. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8676. $EGREP "$file_magic_regex" > /dev/null; then
  8677. :
  8678. else
  8679. cat <<_LT_EOF 1>&2
  8680. *** Warning: the command libtool uses to detect shared libraries,
  8681. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8682. *** The result is that libtool may fail to recognize shared libraries
  8683. *** as such. This will affect the creation of libtool libraries that
  8684. *** depend on shared libraries, but programs linked with such libtool
  8685. *** libraries will work regardless of this problem. Nevertheless, you
  8686. *** may want to report the problem to your system manager and/or to
  8687. *** bug-libtool@gnu.org
  8688. _LT_EOF
  8689. fi ;;
  8690. esac
  8691. fi
  8692. break
  8693. fi
  8694. done
  8695. IFS="$lt_save_ifs"
  8696. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8697. ;;
  8698. esac
  8699. fi
  8700. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8701. if test -n "$MAGIC_CMD"; then
  8702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8703. $as_echo "$MAGIC_CMD" >&6; }
  8704. else
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8706. $as_echo "no" >&6; }
  8707. fi
  8708. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8709. if test -n "$ac_tool_prefix"; then
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8711. $as_echo_n "checking for file... " >&6; }
  8712. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8713. $as_echo_n "(cached) " >&6
  8714. else
  8715. case $MAGIC_CMD in
  8716. [\\/*] | ?:[\\/]*)
  8717. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8718. ;;
  8719. *)
  8720. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8721. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8722. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8723. for ac_dir in $ac_dummy; do
  8724. IFS="$lt_save_ifs"
  8725. test -z "$ac_dir" && ac_dir=.
  8726. if test -f $ac_dir/file; then
  8727. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8728. if test -n "$file_magic_test_file"; then
  8729. case $deplibs_check_method in
  8730. "file_magic "*)
  8731. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8732. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8733. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8734. $EGREP "$file_magic_regex" > /dev/null; then
  8735. :
  8736. else
  8737. cat <<_LT_EOF 1>&2
  8738. *** Warning: the command libtool uses to detect shared libraries,
  8739. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8740. *** The result is that libtool may fail to recognize shared libraries
  8741. *** as such. This will affect the creation of libtool libraries that
  8742. *** depend on shared libraries, but programs linked with such libtool
  8743. *** libraries will work regardless of this problem. Nevertheless, you
  8744. *** may want to report the problem to your system manager and/or to
  8745. *** bug-libtool@gnu.org
  8746. _LT_EOF
  8747. fi ;;
  8748. esac
  8749. fi
  8750. break
  8751. fi
  8752. done
  8753. IFS="$lt_save_ifs"
  8754. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8755. ;;
  8756. esac
  8757. fi
  8758. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8759. if test -n "$MAGIC_CMD"; then
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8761. $as_echo "$MAGIC_CMD" >&6; }
  8762. else
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8764. $as_echo "no" >&6; }
  8765. fi
  8766. else
  8767. MAGIC_CMD=:
  8768. fi
  8769. fi
  8770. fi
  8771. ;;
  8772. esac
  8773. # Use C for the default configuration in the libtool script
  8774. lt_save_CC="$CC"
  8775. ac_ext=c
  8776. ac_cpp='$CPP $CPPFLAGS'
  8777. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8778. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8779. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8780. # Source file extension for C test sources.
  8781. ac_ext=c
  8782. # Object file extension for compiled C test sources.
  8783. objext=o
  8784. objext=$objext
  8785. # Code to be used in simple compile tests
  8786. lt_simple_compile_test_code="int some_variable = 0;"
  8787. # Code to be used in simple link tests
  8788. lt_simple_link_test_code='int main(){return(0);}'
  8789. # If no C compiler was specified, use CC.
  8790. LTCC=${LTCC-"$CC"}
  8791. # If no C compiler flags were specified, use CFLAGS.
  8792. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8793. # Allow CC to be a program name with arguments.
  8794. compiler=$CC
  8795. # Save the default compiler, since it gets overwritten when the other
  8796. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8797. compiler_DEFAULT=$CC
  8798. # save warnings/boilerplate of simple test code
  8799. ac_outfile=conftest.$ac_objext
  8800. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8801. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8802. _lt_compiler_boilerplate=`cat conftest.err`
  8803. $RM conftest*
  8804. ac_outfile=conftest.$ac_objext
  8805. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8806. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8807. _lt_linker_boilerplate=`cat conftest.err`
  8808. $RM -r conftest*
  8809. if test -n "$compiler"; then
  8810. lt_prog_compiler_no_builtin_flag=
  8811. if test "$GCC" = yes; then
  8812. case $cc_basename in
  8813. nvcc*)
  8814. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8815. *)
  8816. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8817. esac
  8818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8819. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8820. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  8821. $as_echo_n "(cached) " >&6
  8822. else
  8823. lt_cv_prog_compiler_rtti_exceptions=no
  8824. ac_outfile=conftest.$ac_objext
  8825. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8826. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8827. # Insert the option either (1) after the last *FLAGS variable, or
  8828. # (2) before a word containing "conftest.", or (3) at the end.
  8829. # Note that $ac_compile itself does not contain backslashes and begins
  8830. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8831. # The option is referenced via a variable to avoid confusing sed.
  8832. lt_compile=`echo "$ac_compile" | $SED \
  8833. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8834. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8835. -e 's:$: $lt_compiler_flag:'`
  8836. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8837. (eval "$lt_compile" 2>conftest.err)
  8838. ac_status=$?
  8839. cat conftest.err >&5
  8840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8841. if (exit $ac_status) && test -s "$ac_outfile"; then
  8842. # The compiler can only warn and ignore the option if not recognized
  8843. # So say no if there are warnings other than the usual output.
  8844. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8845. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8846. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8847. lt_cv_prog_compiler_rtti_exceptions=yes
  8848. fi
  8849. fi
  8850. $RM conftest*
  8851. fi
  8852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8853. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8854. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8855. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8856. else
  8857. :
  8858. fi
  8859. fi
  8860. lt_prog_compiler_wl=
  8861. lt_prog_compiler_pic=
  8862. lt_prog_compiler_static=
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8864. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8865. if test "$GCC" = yes; then
  8866. lt_prog_compiler_wl='-Wl,'
  8867. lt_prog_compiler_static='-static'
  8868. case $host_os in
  8869. aix*)
  8870. # All AIX code is PIC.
  8871. if test "$host_cpu" = ia64; then
  8872. # AIX 5 now supports IA64 processor
  8873. lt_prog_compiler_static='-Bstatic'
  8874. fi
  8875. ;;
  8876. amigaos*)
  8877. case $host_cpu in
  8878. powerpc)
  8879. # see comment about AmigaOS4 .so support
  8880. lt_prog_compiler_pic='-fPIC'
  8881. ;;
  8882. m68k)
  8883. # FIXME: we need at least 68020 code to build shared libraries, but
  8884. # adding the `-m68020' flag to GCC prevents building anything better,
  8885. # like `-m68040'.
  8886. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8887. ;;
  8888. esac
  8889. ;;
  8890. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8891. # PIC is the default for these OSes.
  8892. ;;
  8893. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8894. # This hack is so that the source file can tell whether it is being
  8895. # built for inclusion in a dll (and should export symbols for example).
  8896. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8897. # (--disable-auto-import) libraries
  8898. lt_prog_compiler_pic='-DDLL_EXPORT'
  8899. ;;
  8900. darwin* | rhapsody*)
  8901. # PIC is the default on this platform
  8902. # Common symbols not allowed in MH_DYLIB files
  8903. lt_prog_compiler_pic='-fno-common'
  8904. ;;
  8905. haiku*)
  8906. # PIC is the default for Haiku.
  8907. # The "-static" flag exists, but is broken.
  8908. lt_prog_compiler_static=
  8909. ;;
  8910. hpux*)
  8911. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8912. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8913. # sets the default TLS model and affects inlining.
  8914. case $host_cpu in
  8915. hppa*64*)
  8916. # +Z the default
  8917. ;;
  8918. *)
  8919. lt_prog_compiler_pic='-fPIC'
  8920. ;;
  8921. esac
  8922. ;;
  8923. interix[3-9]*)
  8924. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8925. # Instead, we relocate shared libraries at runtime.
  8926. ;;
  8927. msdosdjgpp*)
  8928. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8929. # on systems that don't support them.
  8930. lt_prog_compiler_can_build_shared=no
  8931. enable_shared=no
  8932. ;;
  8933. *nto* | *qnx*)
  8934. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8935. # it will coredump.
  8936. lt_prog_compiler_pic='-fPIC -shared'
  8937. ;;
  8938. sysv4*MP*)
  8939. if test -d /usr/nec; then
  8940. lt_prog_compiler_pic=-Kconform_pic
  8941. fi
  8942. ;;
  8943. *)
  8944. lt_prog_compiler_pic='-fPIC'
  8945. ;;
  8946. esac
  8947. case $cc_basename in
  8948. nvcc*) # Cuda Compiler Driver 2.2
  8949. lt_prog_compiler_wl='-Xlinker '
  8950. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8951. ;;
  8952. esac
  8953. else
  8954. # PORTME Check for flag to pass linker flags through the system compiler.
  8955. case $host_os in
  8956. aix*)
  8957. lt_prog_compiler_wl='-Wl,'
  8958. if test "$host_cpu" = ia64; then
  8959. # AIX 5 now supports IA64 processor
  8960. lt_prog_compiler_static='-Bstatic'
  8961. else
  8962. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8963. fi
  8964. ;;
  8965. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8966. # This hack is so that the source file can tell whether it is being
  8967. # built for inclusion in a dll (and should export symbols for example).
  8968. lt_prog_compiler_pic='-DDLL_EXPORT'
  8969. ;;
  8970. hpux9* | hpux10* | hpux11*)
  8971. lt_prog_compiler_wl='-Wl,'
  8972. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8973. # not for PA HP-UX.
  8974. case $host_cpu in
  8975. hppa*64*|ia64*)
  8976. # +Z the default
  8977. ;;
  8978. *)
  8979. lt_prog_compiler_pic='+Z'
  8980. ;;
  8981. esac
  8982. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8983. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8984. ;;
  8985. irix5* | irix6* | nonstopux*)
  8986. lt_prog_compiler_wl='-Wl,'
  8987. # PIC (with -KPIC) is the default.
  8988. lt_prog_compiler_static='-non_shared'
  8989. ;;
  8990. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8991. case $cc_basename in
  8992. # old Intel for x86_64 which still supported -KPIC.
  8993. ecc*)
  8994. lt_prog_compiler_wl='-Wl,'
  8995. lt_prog_compiler_pic='-KPIC'
  8996. lt_prog_compiler_static='-static'
  8997. ;;
  8998. # icc used to be incompatible with GCC.
  8999. # ICC 10 doesn't accept -KPIC any more.
  9000. icc* | ifort*)
  9001. lt_prog_compiler_wl='-Wl,'
  9002. lt_prog_compiler_pic='-fPIC'
  9003. lt_prog_compiler_static='-static'
  9004. ;;
  9005. # Lahey Fortran 8.1.
  9006. lf95*)
  9007. lt_prog_compiler_wl='-Wl,'
  9008. lt_prog_compiler_pic='--shared'
  9009. lt_prog_compiler_static='--static'
  9010. ;;
  9011. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9012. # Portland Group compilers (*not* the Pentium gcc compiler,
  9013. # which looks to be a dead project)
  9014. lt_prog_compiler_wl='-Wl,'
  9015. lt_prog_compiler_pic='-fpic'
  9016. lt_prog_compiler_static='-Bstatic'
  9017. ;;
  9018. ccc*)
  9019. lt_prog_compiler_wl='-Wl,'
  9020. # All Alpha code is PIC.
  9021. lt_prog_compiler_static='-non_shared'
  9022. ;;
  9023. xl* | bgxl* | bgf* | mpixl*)
  9024. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9025. lt_prog_compiler_wl='-Wl,'
  9026. lt_prog_compiler_pic='-qpic'
  9027. lt_prog_compiler_static='-qstaticlink'
  9028. ;;
  9029. *)
  9030. case `$CC -V 2>&1 | sed 5q` in
  9031. *Sun\ F* | *Sun*Fortran*)
  9032. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9033. lt_prog_compiler_pic='-KPIC'
  9034. lt_prog_compiler_static='-Bstatic'
  9035. lt_prog_compiler_wl=''
  9036. ;;
  9037. *Sun\ C*)
  9038. # Sun C 5.9
  9039. lt_prog_compiler_pic='-KPIC'
  9040. lt_prog_compiler_static='-Bstatic'
  9041. lt_prog_compiler_wl='-Wl,'
  9042. ;;
  9043. esac
  9044. ;;
  9045. esac
  9046. ;;
  9047. newsos6)
  9048. lt_prog_compiler_pic='-KPIC'
  9049. lt_prog_compiler_static='-Bstatic'
  9050. ;;
  9051. *nto* | *qnx*)
  9052. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9053. # it will coredump.
  9054. lt_prog_compiler_pic='-fPIC -shared'
  9055. ;;
  9056. osf3* | osf4* | osf5*)
  9057. lt_prog_compiler_wl='-Wl,'
  9058. # All OSF/1 code is PIC.
  9059. lt_prog_compiler_static='-non_shared'
  9060. ;;
  9061. rdos*)
  9062. lt_prog_compiler_static='-non_shared'
  9063. ;;
  9064. solaris*)
  9065. lt_prog_compiler_pic='-KPIC'
  9066. lt_prog_compiler_static='-Bstatic'
  9067. case $cc_basename in
  9068. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9069. lt_prog_compiler_wl='-Qoption ld ';;
  9070. *)
  9071. lt_prog_compiler_wl='-Wl,';;
  9072. esac
  9073. ;;
  9074. sunos4*)
  9075. lt_prog_compiler_wl='-Qoption ld '
  9076. lt_prog_compiler_pic='-PIC'
  9077. lt_prog_compiler_static='-Bstatic'
  9078. ;;
  9079. sysv4 | sysv4.2uw2* | sysv4.3*)
  9080. lt_prog_compiler_wl='-Wl,'
  9081. lt_prog_compiler_pic='-KPIC'
  9082. lt_prog_compiler_static='-Bstatic'
  9083. ;;
  9084. sysv4*MP*)
  9085. if test -d /usr/nec ;then
  9086. lt_prog_compiler_pic='-Kconform_pic'
  9087. lt_prog_compiler_static='-Bstatic'
  9088. fi
  9089. ;;
  9090. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9091. lt_prog_compiler_wl='-Wl,'
  9092. lt_prog_compiler_pic='-KPIC'
  9093. lt_prog_compiler_static='-Bstatic'
  9094. ;;
  9095. unicos*)
  9096. lt_prog_compiler_wl='-Wl,'
  9097. lt_prog_compiler_can_build_shared=no
  9098. ;;
  9099. uts4*)
  9100. lt_prog_compiler_pic='-pic'
  9101. lt_prog_compiler_static='-Bstatic'
  9102. ;;
  9103. *)
  9104. lt_prog_compiler_can_build_shared=no
  9105. ;;
  9106. esac
  9107. fi
  9108. case $host_os in
  9109. # For platforms which do not support PIC, -DPIC is meaningless:
  9110. *djgpp*)
  9111. lt_prog_compiler_pic=
  9112. ;;
  9113. *)
  9114. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9115. ;;
  9116. esac
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  9118. $as_echo "$lt_prog_compiler_pic" >&6; }
  9119. #
  9120. # Check to make sure the PIC flag actually works.
  9121. #
  9122. if test -n "$lt_prog_compiler_pic"; then
  9123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9124. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9125. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  9126. $as_echo_n "(cached) " >&6
  9127. else
  9128. lt_cv_prog_compiler_pic_works=no
  9129. ac_outfile=conftest.$ac_objext
  9130. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9131. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9132. # Insert the option either (1) after the last *FLAGS variable, or
  9133. # (2) before a word containing "conftest.", or (3) at the end.
  9134. # Note that $ac_compile itself does not contain backslashes and begins
  9135. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9136. # The option is referenced via a variable to avoid confusing sed.
  9137. lt_compile=`echo "$ac_compile" | $SED \
  9138. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9139. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9140. -e 's:$: $lt_compiler_flag:'`
  9141. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9142. (eval "$lt_compile" 2>conftest.err)
  9143. ac_status=$?
  9144. cat conftest.err >&5
  9145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9146. if (exit $ac_status) && test -s "$ac_outfile"; then
  9147. # The compiler can only warn and ignore the option if not recognized
  9148. # So say no if there are warnings other than the usual output.
  9149. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9150. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9151. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9152. lt_cv_prog_compiler_pic_works=yes
  9153. fi
  9154. fi
  9155. $RM conftest*
  9156. fi
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9158. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9159. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9160. case $lt_prog_compiler_pic in
  9161. "" | " "*) ;;
  9162. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9163. esac
  9164. else
  9165. lt_prog_compiler_pic=
  9166. lt_prog_compiler_can_build_shared=no
  9167. fi
  9168. fi
  9169. #
  9170. # Check to make sure the static flag actually works.
  9171. #
  9172. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9174. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9175. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. lt_cv_prog_compiler_static_works=no
  9179. save_LDFLAGS="$LDFLAGS"
  9180. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9181. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9182. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9183. # The linker can only warn and ignore the option if not recognized
  9184. # So say no if there are warnings
  9185. if test -s conftest.err; then
  9186. # Append any errors to the config.log.
  9187. cat conftest.err 1>&5
  9188. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9189. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9190. if diff conftest.exp conftest.er2 >/dev/null; then
  9191. lt_cv_prog_compiler_static_works=yes
  9192. fi
  9193. else
  9194. lt_cv_prog_compiler_static_works=yes
  9195. fi
  9196. fi
  9197. $RM -r conftest*
  9198. LDFLAGS="$save_LDFLAGS"
  9199. fi
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9201. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9202. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9203. :
  9204. else
  9205. lt_prog_compiler_static=
  9206. fi
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9208. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9209. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  9210. $as_echo_n "(cached) " >&6
  9211. else
  9212. lt_cv_prog_compiler_c_o=no
  9213. $RM -r conftest 2>/dev/null
  9214. mkdir conftest
  9215. cd conftest
  9216. mkdir out
  9217. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9218. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9219. # Insert the option either (1) after the last *FLAGS variable, or
  9220. # (2) before a word containing "conftest.", or (3) at the end.
  9221. # Note that $ac_compile itself does not contain backslashes and begins
  9222. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9223. lt_compile=`echo "$ac_compile" | $SED \
  9224. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9225. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9226. -e 's:$: $lt_compiler_flag:'`
  9227. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9228. (eval "$lt_compile" 2>out/conftest.err)
  9229. ac_status=$?
  9230. cat out/conftest.err >&5
  9231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9232. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9233. then
  9234. # The compiler can only warn and ignore the option if not recognized
  9235. # So say no if there are warnings
  9236. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9237. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9238. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9239. lt_cv_prog_compiler_c_o=yes
  9240. fi
  9241. fi
  9242. chmod u+w . 2>&5
  9243. $RM conftest*
  9244. # SGI C++ compiler will create directory out/ii_files/ for
  9245. # template instantiation
  9246. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9247. $RM out/* && rmdir out
  9248. cd ..
  9249. $RM -r conftest
  9250. $RM conftest*
  9251. fi
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9253. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9255. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9256. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  9257. $as_echo_n "(cached) " >&6
  9258. else
  9259. lt_cv_prog_compiler_c_o=no
  9260. $RM -r conftest 2>/dev/null
  9261. mkdir conftest
  9262. cd conftest
  9263. mkdir out
  9264. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9265. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9266. # Insert the option either (1) after the last *FLAGS variable, or
  9267. # (2) before a word containing "conftest.", or (3) at the end.
  9268. # Note that $ac_compile itself does not contain backslashes and begins
  9269. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9270. lt_compile=`echo "$ac_compile" | $SED \
  9271. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9272. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9273. -e 's:$: $lt_compiler_flag:'`
  9274. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9275. (eval "$lt_compile" 2>out/conftest.err)
  9276. ac_status=$?
  9277. cat out/conftest.err >&5
  9278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9279. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9280. then
  9281. # The compiler can only warn and ignore the option if not recognized
  9282. # So say no if there are warnings
  9283. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9284. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9285. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9286. lt_cv_prog_compiler_c_o=yes
  9287. fi
  9288. fi
  9289. chmod u+w . 2>&5
  9290. $RM conftest*
  9291. # SGI C++ compiler will create directory out/ii_files/ for
  9292. # template instantiation
  9293. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9294. $RM out/* && rmdir out
  9295. cd ..
  9296. $RM -r conftest
  9297. $RM conftest*
  9298. fi
  9299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9300. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9301. hard_links="nottested"
  9302. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9303. # do not overwrite the value of need_locks provided by the user
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9305. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9306. hard_links=yes
  9307. $RM conftest*
  9308. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9309. touch conftest.a
  9310. ln conftest.a conftest.b 2>&5 || hard_links=no
  9311. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9313. $as_echo "$hard_links" >&6; }
  9314. if test "$hard_links" = no; then
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9316. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9317. need_locks=warn
  9318. fi
  9319. else
  9320. need_locks=no
  9321. fi
  9322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9323. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9324. runpath_var=
  9325. allow_undefined_flag=
  9326. always_export_symbols=no
  9327. archive_cmds=
  9328. archive_expsym_cmds=
  9329. compiler_needs_object=no
  9330. enable_shared_with_static_runtimes=no
  9331. export_dynamic_flag_spec=
  9332. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9333. hardcode_automatic=no
  9334. hardcode_direct=no
  9335. hardcode_direct_absolute=no
  9336. hardcode_libdir_flag_spec=
  9337. hardcode_libdir_flag_spec_ld=
  9338. hardcode_libdir_separator=
  9339. hardcode_minus_L=no
  9340. hardcode_shlibpath_var=unsupported
  9341. inherit_rpath=no
  9342. link_all_deplibs=unknown
  9343. module_cmds=
  9344. module_expsym_cmds=
  9345. old_archive_from_new_cmds=
  9346. old_archive_from_expsyms_cmds=
  9347. thread_safe_flag_spec=
  9348. whole_archive_flag_spec=
  9349. # include_expsyms should be a list of space-separated symbols to be *always*
  9350. # included in the symbol list
  9351. include_expsyms=
  9352. # exclude_expsyms can be an extended regexp of symbols to exclude
  9353. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9354. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9355. # as well as any symbol that contains `d'.
  9356. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9357. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9358. # platforms (ab)use it in PIC code, but their linkers get confused if
  9359. # the symbol is explicitly referenced. Since portable code cannot
  9360. # rely on this symbol name, it's probably fine to never include it in
  9361. # preloaded symbol tables.
  9362. # Exclude shared library initialization/finalization symbols.
  9363. extract_expsyms_cmds=
  9364. case $host_os in
  9365. cygwin* | mingw* | pw32* | cegcc*)
  9366. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9367. # When not using gcc, we currently assume that we are using
  9368. # Microsoft Visual C++.
  9369. if test "$GCC" != yes; then
  9370. with_gnu_ld=no
  9371. fi
  9372. ;;
  9373. interix*)
  9374. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9375. with_gnu_ld=yes
  9376. ;;
  9377. openbsd*)
  9378. with_gnu_ld=no
  9379. ;;
  9380. esac
  9381. ld_shlibs=yes
  9382. # On some targets, GNU ld is compatible enough with the native linker
  9383. # that we're better off using the native interface for both.
  9384. lt_use_gnu_ld_interface=no
  9385. if test "$with_gnu_ld" = yes; then
  9386. case $host_os in
  9387. aix*)
  9388. # The AIX port of GNU ld has always aspired to compatibility
  9389. # with the native linker. However, as the warning in the GNU ld
  9390. # block says, versions before 2.19.5* couldn't really create working
  9391. # shared libraries, regardless of the interface used.
  9392. case `$LD -v 2>&1` in
  9393. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9394. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9395. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9396. *)
  9397. lt_use_gnu_ld_interface=yes
  9398. ;;
  9399. esac
  9400. ;;
  9401. *)
  9402. lt_use_gnu_ld_interface=yes
  9403. ;;
  9404. esac
  9405. fi
  9406. if test "$lt_use_gnu_ld_interface" = yes; then
  9407. # If archive_cmds runs LD, not CC, wlarc should be empty
  9408. wlarc='${wl}'
  9409. # Set some defaults for GNU ld with shared library support. These
  9410. # are reset later if shared libraries are not supported. Putting them
  9411. # here allows them to be overridden if necessary.
  9412. runpath_var=LD_RUN_PATH
  9413. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9414. export_dynamic_flag_spec='${wl}--export-dynamic'
  9415. # ancient GNU ld didn't support --whole-archive et. al.
  9416. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9417. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9418. else
  9419. whole_archive_flag_spec=
  9420. fi
  9421. supports_anon_versioning=no
  9422. case `$LD -v 2>&1` in
  9423. *GNU\ gold*) supports_anon_versioning=yes ;;
  9424. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9425. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9426. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9427. *\ 2.11.*) ;; # other 2.11 versions
  9428. *) supports_anon_versioning=yes ;;
  9429. esac
  9430. # See if GNU ld supports shared libraries.
  9431. case $host_os in
  9432. aix[3-9]*)
  9433. # On AIX/PPC, the GNU linker is very broken
  9434. if test "$host_cpu" != ia64; then
  9435. ld_shlibs=no
  9436. cat <<_LT_EOF 1>&2
  9437. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9438. *** to be unable to reliably create shared libraries on AIX.
  9439. *** Therefore, libtool is disabling shared libraries support. If you
  9440. *** really care for shared libraries, you may want to install binutils
  9441. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9442. *** You will then need to restart the configuration process.
  9443. _LT_EOF
  9444. fi
  9445. ;;
  9446. amigaos*)
  9447. case $host_cpu in
  9448. powerpc)
  9449. # see comment about AmigaOS4 .so support
  9450. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9451. archive_expsym_cmds=''
  9452. ;;
  9453. m68k)
  9454. 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)'
  9455. hardcode_libdir_flag_spec='-L$libdir'
  9456. hardcode_minus_L=yes
  9457. ;;
  9458. esac
  9459. ;;
  9460. beos*)
  9461. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9462. allow_undefined_flag=unsupported
  9463. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9464. # support --undefined. This deserves some investigation. FIXME
  9465. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9466. else
  9467. ld_shlibs=no
  9468. fi
  9469. ;;
  9470. cygwin* | mingw* | pw32* | cegcc*)
  9471. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9472. # as there is no search path for DLLs.
  9473. hardcode_libdir_flag_spec='-L$libdir'
  9474. export_dynamic_flag_spec='${wl}--export-all-symbols'
  9475. allow_undefined_flag=unsupported
  9476. always_export_symbols=no
  9477. enable_shared_with_static_runtimes=yes
  9478. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9479. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9480. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9481. # If the export-symbols file already is a .def file (1st line
  9482. # is EXPORTS), use it as is; otherwise, prepend...
  9483. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9484. cp $export_symbols $output_objdir/$soname.def;
  9485. else
  9486. echo EXPORTS > $output_objdir/$soname.def;
  9487. cat $export_symbols >> $output_objdir/$soname.def;
  9488. fi~
  9489. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9490. else
  9491. ld_shlibs=no
  9492. fi
  9493. ;;
  9494. haiku*)
  9495. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9496. link_all_deplibs=yes
  9497. ;;
  9498. interix[3-9]*)
  9499. hardcode_direct=no
  9500. hardcode_shlibpath_var=no
  9501. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9502. export_dynamic_flag_spec='${wl}-E'
  9503. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9504. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9505. # default) and relocated if they conflict, which is a slow very memory
  9506. # consuming and fragmenting process. To avoid this, we pick a random,
  9507. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9508. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9509. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9510. 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'
  9511. ;;
  9512. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9513. tmp_diet=no
  9514. if test "$host_os" = linux-dietlibc; then
  9515. case $cc_basename in
  9516. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9517. esac
  9518. fi
  9519. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9520. && test "$tmp_diet" = no
  9521. then
  9522. tmp_addflag=
  9523. tmp_sharedflag='-shared'
  9524. case $cc_basename,$host_cpu in
  9525. pgcc*) # Portland Group C compiler
  9526. 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'
  9527. tmp_addflag=' $pic_flag'
  9528. ;;
  9529. pgf77* | pgf90* | pgf95* | pgfortran*)
  9530. # Portland Group f77 and f90 compilers
  9531. 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'
  9532. tmp_addflag=' $pic_flag -Mnomain' ;;
  9533. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9534. tmp_addflag=' -i_dynamic' ;;
  9535. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9536. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9537. ifc* | ifort*) # Intel Fortran compiler
  9538. tmp_addflag=' -nofor_main' ;;
  9539. lf95*) # Lahey Fortran 8.1
  9540. whole_archive_flag_spec=
  9541. tmp_sharedflag='--shared' ;;
  9542. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9543. tmp_sharedflag='-qmkshrobj'
  9544. tmp_addflag= ;;
  9545. nvcc*) # Cuda Compiler Driver 2.2
  9546. 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'
  9547. compiler_needs_object=yes
  9548. ;;
  9549. esac
  9550. case `$CC -V 2>&1 | sed 5q` in
  9551. *Sun\ C*) # Sun C 5.9
  9552. 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'
  9553. compiler_needs_object=yes
  9554. tmp_sharedflag='-G' ;;
  9555. *Sun\ F*) # Sun Fortran 8.3
  9556. tmp_sharedflag='-G' ;;
  9557. esac
  9558. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9559. if test "x$supports_anon_versioning" = xyes; then
  9560. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9561. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9562. echo "local: *; };" >> $output_objdir/$libname.ver~
  9563. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9564. fi
  9565. case $cc_basename in
  9566. xlf* | bgf* | bgxlf* | mpixlf*)
  9567. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9568. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9569. hardcode_libdir_flag_spec=
  9570. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9571. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9572. if test "x$supports_anon_versioning" = xyes; then
  9573. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9574. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9575. echo "local: *; };" >> $output_objdir/$libname.ver~
  9576. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9577. fi
  9578. ;;
  9579. esac
  9580. else
  9581. ld_shlibs=no
  9582. fi
  9583. ;;
  9584. netbsd*)
  9585. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9586. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9587. wlarc=
  9588. else
  9589. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9590. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9591. fi
  9592. ;;
  9593. solaris*)
  9594. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9595. ld_shlibs=no
  9596. cat <<_LT_EOF 1>&2
  9597. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9598. *** create shared libraries on Solaris systems. Therefore, libtool
  9599. *** is disabling shared libraries support. We urge you to upgrade GNU
  9600. *** binutils to release 2.9.1 or newer. Another option is to modify
  9601. *** your PATH or compiler configuration so that the native linker is
  9602. *** used, and then restart.
  9603. _LT_EOF
  9604. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9605. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9606. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9607. else
  9608. ld_shlibs=no
  9609. fi
  9610. ;;
  9611. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9612. case `$LD -v 2>&1` in
  9613. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9614. ld_shlibs=no
  9615. cat <<_LT_EOF 1>&2
  9616. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9617. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9618. *** is disabling shared libraries support. We urge you to upgrade GNU
  9619. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9620. *** your PATH or compiler configuration so that the native linker is
  9621. *** used, and then restart.
  9622. _LT_EOF
  9623. ;;
  9624. *)
  9625. # For security reasons, it is highly recommended that you always
  9626. # use absolute paths for naming shared libraries, and exclude the
  9627. # DT_RUNPATH tag from executables and libraries. But doing so
  9628. # requires that you compile everything twice, which is a pain.
  9629. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9630. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9631. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9632. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9633. else
  9634. ld_shlibs=no
  9635. fi
  9636. ;;
  9637. esac
  9638. ;;
  9639. sunos4*)
  9640. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9641. wlarc=
  9642. hardcode_direct=yes
  9643. hardcode_shlibpath_var=no
  9644. ;;
  9645. *)
  9646. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9647. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9648. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9649. else
  9650. ld_shlibs=no
  9651. fi
  9652. ;;
  9653. esac
  9654. if test "$ld_shlibs" = no; then
  9655. runpath_var=
  9656. hardcode_libdir_flag_spec=
  9657. export_dynamic_flag_spec=
  9658. whole_archive_flag_spec=
  9659. fi
  9660. else
  9661. # PORTME fill in a description of your system's linker (not GNU ld)
  9662. case $host_os in
  9663. aix3*)
  9664. allow_undefined_flag=unsupported
  9665. always_export_symbols=yes
  9666. 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'
  9667. # Note: this linker hardcodes the directories in LIBPATH if there
  9668. # are no directories specified by -L.
  9669. hardcode_minus_L=yes
  9670. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9671. # Neither direct hardcoding nor static linking is supported with a
  9672. # broken collect2.
  9673. hardcode_direct=unsupported
  9674. fi
  9675. ;;
  9676. aix[4-9]*)
  9677. if test "$host_cpu" = ia64; then
  9678. # On IA64, the linker does run time linking by default, so we don't
  9679. # have to do anything special.
  9680. aix_use_runtimelinking=no
  9681. exp_sym_flag='-Bexport'
  9682. no_entry_flag=""
  9683. else
  9684. # If we're using GNU nm, then we don't want the "-C" option.
  9685. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9686. # Also, AIX nm treats weak defined symbols like other global
  9687. # defined symbols, whereas GNU nm marks them as "W".
  9688. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9689. 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'
  9690. else
  9691. 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'
  9692. fi
  9693. aix_use_runtimelinking=no
  9694. # Test if we are trying to use run time linking or normal
  9695. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9696. # need to do runtime linking.
  9697. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9698. for ld_flag in $LDFLAGS; do
  9699. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9700. aix_use_runtimelinking=yes
  9701. break
  9702. fi
  9703. done
  9704. ;;
  9705. esac
  9706. exp_sym_flag='-bexport'
  9707. no_entry_flag='-bnoentry'
  9708. fi
  9709. # When large executables or shared objects are built, AIX ld can
  9710. # have problems creating the table of contents. If linking a library
  9711. # or program results in "error TOC overflow" add -mminimal-toc to
  9712. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9713. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9714. archive_cmds=''
  9715. hardcode_direct=yes
  9716. hardcode_direct_absolute=yes
  9717. hardcode_libdir_separator=':'
  9718. link_all_deplibs=yes
  9719. file_list_spec='${wl}-f,'
  9720. if test "$GCC" = yes; then
  9721. case $host_os in aix4.[012]|aix4.[012].*)
  9722. # We only want to do this on AIX 4.2 and lower, the check
  9723. # below for broken collect2 doesn't work under 4.3+
  9724. collect2name=`${CC} -print-prog-name=collect2`
  9725. if test -f "$collect2name" &&
  9726. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9727. then
  9728. # We have reworked collect2
  9729. :
  9730. else
  9731. # We have old collect2
  9732. hardcode_direct=unsupported
  9733. # It fails to find uninstalled libraries when the uninstalled
  9734. # path is not listed in the libpath. Setting hardcode_minus_L
  9735. # to unsupported forces relinking
  9736. hardcode_minus_L=yes
  9737. hardcode_libdir_flag_spec='-L$libdir'
  9738. hardcode_libdir_separator=
  9739. fi
  9740. ;;
  9741. esac
  9742. shared_flag='-shared'
  9743. if test "$aix_use_runtimelinking" = yes; then
  9744. shared_flag="$shared_flag "'${wl}-G'
  9745. fi
  9746. else
  9747. # not using gcc
  9748. if test "$host_cpu" = ia64; then
  9749. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9750. # chokes on -Wl,-G. The following line is correct:
  9751. shared_flag='-G'
  9752. else
  9753. if test "$aix_use_runtimelinking" = yes; then
  9754. shared_flag='${wl}-G'
  9755. else
  9756. shared_flag='${wl}-bM:SRE'
  9757. fi
  9758. fi
  9759. fi
  9760. export_dynamic_flag_spec='${wl}-bexpall'
  9761. # It seems that -bexpall does not export symbols beginning with
  9762. # underscore (_), so it is better to generate a list of symbols to export.
  9763. always_export_symbols=yes
  9764. if test "$aix_use_runtimelinking" = yes; then
  9765. # Warning - without using the other runtime loading flags (-brtl),
  9766. # -berok will link without error, but may produce a broken library.
  9767. allow_undefined_flag='-berok'
  9768. # Determine the default libpath from the value encoded in an
  9769. # empty executable.
  9770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9771. /* end confdefs.h. */
  9772. int
  9773. main ()
  9774. {
  9775. ;
  9776. return 0;
  9777. }
  9778. _ACEOF
  9779. if ac_fn_c_try_link "$LINENO"; then :
  9780. lt_aix_libpath_sed='
  9781. /Import File Strings/,/^$/ {
  9782. /^0/ {
  9783. s/^0 *\(.*\)$/\1/
  9784. p
  9785. }
  9786. }'
  9787. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9788. # Check for a 64-bit object if we didn't find anything.
  9789. if test -z "$aix_libpath"; then
  9790. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9791. fi
  9792. fi
  9793. rm -f core conftest.err conftest.$ac_objext \
  9794. conftest$ac_exeext conftest.$ac_ext
  9795. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9796. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9797. 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"
  9798. else
  9799. if test "$host_cpu" = ia64; then
  9800. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9801. allow_undefined_flag="-z nodefs"
  9802. 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"
  9803. else
  9804. # Determine the default libpath from the value encoded in an
  9805. # empty executable.
  9806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9807. /* end confdefs.h. */
  9808. int
  9809. main ()
  9810. {
  9811. ;
  9812. return 0;
  9813. }
  9814. _ACEOF
  9815. if ac_fn_c_try_link "$LINENO"; then :
  9816. lt_aix_libpath_sed='
  9817. /Import File Strings/,/^$/ {
  9818. /^0/ {
  9819. s/^0 *\(.*\)$/\1/
  9820. p
  9821. }
  9822. }'
  9823. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9824. # Check for a 64-bit object if we didn't find anything.
  9825. if test -z "$aix_libpath"; then
  9826. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9827. fi
  9828. fi
  9829. rm -f core conftest.err conftest.$ac_objext \
  9830. conftest$ac_exeext conftest.$ac_ext
  9831. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9832. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9833. # Warning - without using the other run time loading flags,
  9834. # -berok will link without error, but may produce a broken library.
  9835. no_undefined_flag=' ${wl}-bernotok'
  9836. allow_undefined_flag=' ${wl}-berok'
  9837. if test "$with_gnu_ld" = yes; then
  9838. # We only use this code for GNU lds that support --whole-archive.
  9839. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9840. else
  9841. # Exported symbols can be pulled into shared objects from archives
  9842. whole_archive_flag_spec='$convenience'
  9843. fi
  9844. archive_cmds_need_lc=yes
  9845. # This is similar to how AIX traditionally builds its shared libraries.
  9846. 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'
  9847. fi
  9848. fi
  9849. ;;
  9850. amigaos*)
  9851. case $host_cpu in
  9852. powerpc)
  9853. # see comment about AmigaOS4 .so support
  9854. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9855. archive_expsym_cmds=''
  9856. ;;
  9857. m68k)
  9858. 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)'
  9859. hardcode_libdir_flag_spec='-L$libdir'
  9860. hardcode_minus_L=yes
  9861. ;;
  9862. esac
  9863. ;;
  9864. bsdi[45]*)
  9865. export_dynamic_flag_spec=-rdynamic
  9866. ;;
  9867. cygwin* | mingw* | pw32* | cegcc*)
  9868. # When not using gcc, we currently assume that we are using
  9869. # Microsoft Visual C++.
  9870. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9871. # no search path for DLLs.
  9872. hardcode_libdir_flag_spec=' '
  9873. allow_undefined_flag=unsupported
  9874. # Tell ltmain to make .lib files, not .a files.
  9875. libext=lib
  9876. # Tell ltmain to make .dll files, not .so files.
  9877. shrext_cmds=".dll"
  9878. # FIXME: Setting linknames here is a bad hack.
  9879. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9880. # The linker will automatically build a .lib file if we build a DLL.
  9881. old_archive_from_new_cmds='true'
  9882. # FIXME: Should let the user specify the lib program.
  9883. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9884. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9885. enable_shared_with_static_runtimes=yes
  9886. ;;
  9887. darwin* | rhapsody*)
  9888. archive_cmds_need_lc=no
  9889. hardcode_direct=no
  9890. hardcode_automatic=yes
  9891. hardcode_shlibpath_var=unsupported
  9892. if test "$lt_cv_ld_force_load" = "yes"; then
  9893. 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\"`'
  9894. else
  9895. whole_archive_flag_spec=''
  9896. fi
  9897. link_all_deplibs=yes
  9898. allow_undefined_flag="$_lt_dar_allow_undefined"
  9899. case $cc_basename in
  9900. ifort*) _lt_dar_can_shared=yes ;;
  9901. *) _lt_dar_can_shared=$GCC ;;
  9902. esac
  9903. if test "$_lt_dar_can_shared" = "yes"; then
  9904. output_verbose_link_cmd=func_echo_all
  9905. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9906. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9907. 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}"
  9908. 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}"
  9909. else
  9910. ld_shlibs=no
  9911. fi
  9912. ;;
  9913. dgux*)
  9914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9915. hardcode_libdir_flag_spec='-L$libdir'
  9916. hardcode_shlibpath_var=no
  9917. ;;
  9918. freebsd1*)
  9919. ld_shlibs=no
  9920. ;;
  9921. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9922. # support. Future versions do this automatically, but an explicit c++rt0.o
  9923. # does not break anything, and helps significantly (at the cost of a little
  9924. # extra space).
  9925. freebsd2.2*)
  9926. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9927. hardcode_libdir_flag_spec='-R$libdir'
  9928. hardcode_direct=yes
  9929. hardcode_shlibpath_var=no
  9930. ;;
  9931. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9932. freebsd2*)
  9933. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9934. hardcode_direct=yes
  9935. hardcode_minus_L=yes
  9936. hardcode_shlibpath_var=no
  9937. ;;
  9938. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9939. freebsd* | dragonfly*)
  9940. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9941. hardcode_libdir_flag_spec='-R$libdir'
  9942. hardcode_direct=yes
  9943. hardcode_shlibpath_var=no
  9944. ;;
  9945. hpux9*)
  9946. if test "$GCC" = yes; then
  9947. 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'
  9948. else
  9949. 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'
  9950. fi
  9951. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9952. hardcode_libdir_separator=:
  9953. hardcode_direct=yes
  9954. # hardcode_minus_L: Not really in the search PATH,
  9955. # but as the default location of the library.
  9956. hardcode_minus_L=yes
  9957. export_dynamic_flag_spec='${wl}-E'
  9958. ;;
  9959. hpux10*)
  9960. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9961. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9962. else
  9963. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9964. fi
  9965. if test "$with_gnu_ld" = no; then
  9966. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9967. hardcode_libdir_flag_spec_ld='+b $libdir'
  9968. hardcode_libdir_separator=:
  9969. hardcode_direct=yes
  9970. hardcode_direct_absolute=yes
  9971. export_dynamic_flag_spec='${wl}-E'
  9972. # hardcode_minus_L: Not really in the search PATH,
  9973. # but as the default location of the library.
  9974. hardcode_minus_L=yes
  9975. fi
  9976. ;;
  9977. hpux11*)
  9978. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9979. case $host_cpu in
  9980. hppa*64*)
  9981. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9982. ;;
  9983. ia64*)
  9984. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9985. ;;
  9986. *)
  9987. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9988. ;;
  9989. esac
  9990. else
  9991. case $host_cpu in
  9992. hppa*64*)
  9993. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9994. ;;
  9995. ia64*)
  9996. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9997. ;;
  9998. *)
  9999. # Older versions of the 11.00 compiler do not understand -b yet
  10000. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10002. $as_echo_n "checking if $CC understands -b... " >&6; }
  10003. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  10004. $as_echo_n "(cached) " >&6
  10005. else
  10006. lt_cv_prog_compiler__b=no
  10007. save_LDFLAGS="$LDFLAGS"
  10008. LDFLAGS="$LDFLAGS -b"
  10009. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10010. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10011. # The linker can only warn and ignore the option if not recognized
  10012. # So say no if there are warnings
  10013. if test -s conftest.err; then
  10014. # Append any errors to the config.log.
  10015. cat conftest.err 1>&5
  10016. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10017. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10018. if diff conftest.exp conftest.er2 >/dev/null; then
  10019. lt_cv_prog_compiler__b=yes
  10020. fi
  10021. else
  10022. lt_cv_prog_compiler__b=yes
  10023. fi
  10024. fi
  10025. $RM -r conftest*
  10026. LDFLAGS="$save_LDFLAGS"
  10027. fi
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10029. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10030. if test x"$lt_cv_prog_compiler__b" = xyes; then
  10031. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10032. else
  10033. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10034. fi
  10035. ;;
  10036. esac
  10037. fi
  10038. if test "$with_gnu_ld" = no; then
  10039. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10040. hardcode_libdir_separator=:
  10041. case $host_cpu in
  10042. hppa*64*|ia64*)
  10043. hardcode_direct=no
  10044. hardcode_shlibpath_var=no
  10045. ;;
  10046. *)
  10047. hardcode_direct=yes
  10048. hardcode_direct_absolute=yes
  10049. export_dynamic_flag_spec='${wl}-E'
  10050. # hardcode_minus_L: Not really in the search PATH,
  10051. # but as the default location of the library.
  10052. hardcode_minus_L=yes
  10053. ;;
  10054. esac
  10055. fi
  10056. ;;
  10057. irix5* | irix6* | nonstopux*)
  10058. if test "$GCC" = yes; then
  10059. 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'
  10060. # Try to use the -exported_symbol ld option, if it does not
  10061. # work, assume that -exports_file does not work either and
  10062. # implicitly export all symbols.
  10063. save_LDFLAGS="$LDFLAGS"
  10064. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10066. /* end confdefs.h. */
  10067. int foo(void) {}
  10068. _ACEOF
  10069. if ac_fn_c_try_link "$LINENO"; then :
  10070. 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'
  10071. fi
  10072. rm -f core conftest.err conftest.$ac_objext \
  10073. conftest$ac_exeext conftest.$ac_ext
  10074. LDFLAGS="$save_LDFLAGS"
  10075. else
  10076. 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'
  10077. 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'
  10078. fi
  10079. archive_cmds_need_lc='no'
  10080. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10081. hardcode_libdir_separator=:
  10082. inherit_rpath=yes
  10083. link_all_deplibs=yes
  10084. ;;
  10085. netbsd*)
  10086. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10087. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10088. else
  10089. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10090. fi
  10091. hardcode_libdir_flag_spec='-R$libdir'
  10092. hardcode_direct=yes
  10093. hardcode_shlibpath_var=no
  10094. ;;
  10095. newsos6)
  10096. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10097. hardcode_direct=yes
  10098. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10099. hardcode_libdir_separator=:
  10100. hardcode_shlibpath_var=no
  10101. ;;
  10102. *nto* | *qnx*)
  10103. ;;
  10104. openbsd*)
  10105. if test -f /usr/libexec/ld.so; then
  10106. hardcode_direct=yes
  10107. hardcode_shlibpath_var=no
  10108. hardcode_direct_absolute=yes
  10109. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10110. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10111. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10112. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10113. export_dynamic_flag_spec='${wl}-E'
  10114. else
  10115. case $host_os in
  10116. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10117. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10118. hardcode_libdir_flag_spec='-R$libdir'
  10119. ;;
  10120. *)
  10121. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10122. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10123. ;;
  10124. esac
  10125. fi
  10126. else
  10127. ld_shlibs=no
  10128. fi
  10129. ;;
  10130. os2*)
  10131. hardcode_libdir_flag_spec='-L$libdir'
  10132. hardcode_minus_L=yes
  10133. allow_undefined_flag=unsupported
  10134. 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'
  10135. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10136. ;;
  10137. osf3*)
  10138. if test "$GCC" = yes; then
  10139. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10140. 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'
  10141. else
  10142. allow_undefined_flag=' -expect_unresolved \*'
  10143. 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'
  10144. fi
  10145. archive_cmds_need_lc='no'
  10146. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10147. hardcode_libdir_separator=:
  10148. ;;
  10149. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10150. if test "$GCC" = yes; then
  10151. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10152. 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'
  10153. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10154. else
  10155. allow_undefined_flag=' -expect_unresolved \*'
  10156. 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'
  10157. 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~
  10158. $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'
  10159. # Both c and cxx compiler support -rpath directly
  10160. hardcode_libdir_flag_spec='-rpath $libdir'
  10161. fi
  10162. archive_cmds_need_lc='no'
  10163. hardcode_libdir_separator=:
  10164. ;;
  10165. solaris*)
  10166. no_undefined_flag=' -z defs'
  10167. if test "$GCC" = yes; then
  10168. wlarc='${wl}'
  10169. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10170. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10171. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10172. else
  10173. case `$CC -V 2>&1` in
  10174. *"Compilers 5.0"*)
  10175. wlarc=''
  10176. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10177. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10178. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10179. ;;
  10180. *)
  10181. wlarc='${wl}'
  10182. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10183. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10184. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10185. ;;
  10186. esac
  10187. fi
  10188. hardcode_libdir_flag_spec='-R$libdir'
  10189. hardcode_shlibpath_var=no
  10190. case $host_os in
  10191. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10192. *)
  10193. # The compiler driver will combine and reorder linker options,
  10194. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10195. # but is careful enough not to reorder.
  10196. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10197. if test "$GCC" = yes; then
  10198. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10199. else
  10200. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10201. fi
  10202. ;;
  10203. esac
  10204. link_all_deplibs=yes
  10205. ;;
  10206. sunos4*)
  10207. if test "x$host_vendor" = xsequent; then
  10208. # Use $CC to link under sequent, because it throws in some extra .o
  10209. # files that make .init and .fini sections work.
  10210. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10211. else
  10212. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10213. fi
  10214. hardcode_libdir_flag_spec='-L$libdir'
  10215. hardcode_direct=yes
  10216. hardcode_minus_L=yes
  10217. hardcode_shlibpath_var=no
  10218. ;;
  10219. sysv4)
  10220. case $host_vendor in
  10221. sni)
  10222. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10223. hardcode_direct=yes # is this really true???
  10224. ;;
  10225. siemens)
  10226. ## LD is ld it makes a PLAMLIB
  10227. ## CC just makes a GrossModule.
  10228. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10229. reload_cmds='$CC -r -o $output$reload_objs'
  10230. hardcode_direct=no
  10231. ;;
  10232. motorola)
  10233. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10234. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10235. ;;
  10236. esac
  10237. runpath_var='LD_RUN_PATH'
  10238. hardcode_shlibpath_var=no
  10239. ;;
  10240. sysv4.3*)
  10241. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10242. hardcode_shlibpath_var=no
  10243. export_dynamic_flag_spec='-Bexport'
  10244. ;;
  10245. sysv4*MP*)
  10246. if test -d /usr/nec; then
  10247. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10248. hardcode_shlibpath_var=no
  10249. runpath_var=LD_RUN_PATH
  10250. hardcode_runpath_var=yes
  10251. ld_shlibs=yes
  10252. fi
  10253. ;;
  10254. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10255. no_undefined_flag='${wl}-z,text'
  10256. archive_cmds_need_lc=no
  10257. hardcode_shlibpath_var=no
  10258. runpath_var='LD_RUN_PATH'
  10259. if test "$GCC" = yes; then
  10260. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10261. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10262. else
  10263. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10264. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10265. fi
  10266. ;;
  10267. sysv5* | sco3.2v5* | sco5v6*)
  10268. # Note: We can NOT use -z defs as we might desire, because we do not
  10269. # link with -lc, and that would cause any symbols used from libc to
  10270. # always be unresolved, which means just about no library would
  10271. # ever link correctly. If we're not using GNU ld we use -z text
  10272. # though, which does catch some bad symbols but isn't as heavy-handed
  10273. # as -z defs.
  10274. no_undefined_flag='${wl}-z,text'
  10275. allow_undefined_flag='${wl}-z,nodefs'
  10276. archive_cmds_need_lc=no
  10277. hardcode_shlibpath_var=no
  10278. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10279. hardcode_libdir_separator=':'
  10280. link_all_deplibs=yes
  10281. export_dynamic_flag_spec='${wl}-Bexport'
  10282. runpath_var='LD_RUN_PATH'
  10283. if test "$GCC" = yes; then
  10284. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10285. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10286. else
  10287. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10288. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10289. fi
  10290. ;;
  10291. uts4*)
  10292. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10293. hardcode_libdir_flag_spec='-L$libdir'
  10294. hardcode_shlibpath_var=no
  10295. ;;
  10296. *)
  10297. ld_shlibs=no
  10298. ;;
  10299. esac
  10300. if test x$host_vendor = xsni; then
  10301. case $host in
  10302. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10303. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10304. ;;
  10305. esac
  10306. fi
  10307. fi
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10309. $as_echo "$ld_shlibs" >&6; }
  10310. test "$ld_shlibs" = no && can_build_shared=no
  10311. with_gnu_ld=$with_gnu_ld
  10312. #
  10313. # Do we need to explicitly link libc?
  10314. #
  10315. case "x$archive_cmds_need_lc" in
  10316. x|xyes)
  10317. # Assume -lc should be added
  10318. archive_cmds_need_lc=yes
  10319. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10320. case $archive_cmds in
  10321. *'~'*)
  10322. # FIXME: we may have to deal with multi-command sequences.
  10323. ;;
  10324. '$CC '*)
  10325. # Test whether the compiler implicitly links with -lc since on some
  10326. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10327. # to ld, don't add -lc before -lgcc.
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10329. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10330. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  10331. $as_echo_n "(cached) " >&6
  10332. else
  10333. $RM conftest*
  10334. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10336. (eval $ac_compile) 2>&5
  10337. ac_status=$?
  10338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10339. test $ac_status = 0; } 2>conftest.err; then
  10340. soname=conftest
  10341. lib=conftest
  10342. libobjs=conftest.$ac_objext
  10343. deplibs=
  10344. wl=$lt_prog_compiler_wl
  10345. pic_flag=$lt_prog_compiler_pic
  10346. compiler_flags=-v
  10347. linker_flags=-v
  10348. verstring=
  10349. output_objdir=.
  10350. libname=conftest
  10351. lt_save_allow_undefined_flag=$allow_undefined_flag
  10352. allow_undefined_flag=
  10353. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10354. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10355. ac_status=$?
  10356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10357. test $ac_status = 0; }
  10358. then
  10359. lt_cv_archive_cmds_need_lc=no
  10360. else
  10361. lt_cv_archive_cmds_need_lc=yes
  10362. fi
  10363. allow_undefined_flag=$lt_save_allow_undefined_flag
  10364. else
  10365. cat conftest.err 1>&5
  10366. fi
  10367. $RM conftest*
  10368. fi
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10370. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10371. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10372. ;;
  10373. esac
  10374. fi
  10375. ;;
  10376. esac
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10378. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10379. if test "$GCC" = yes; then
  10380. case $host_os in
  10381. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10382. *) lt_awk_arg="/^libraries:/" ;;
  10383. esac
  10384. case $host_os in
  10385. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10386. *) lt_sed_strip_eq="s,=/,/,g" ;;
  10387. esac
  10388. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10389. case $lt_search_path_spec in
  10390. *\;*)
  10391. # if the path contains ";" then we assume it to be the separator
  10392. # otherwise default to the standard path separator (i.e. ":") - it is
  10393. # assumed that no part of a normal pathname contains ";" but that should
  10394. # okay in the real world where ";" in dirpaths is itself problematic.
  10395. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10396. ;;
  10397. *)
  10398. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10399. ;;
  10400. esac
  10401. # Ok, now we have the path, separated by spaces, we can step through it
  10402. # and add multilib dir if necessary.
  10403. lt_tmp_lt_search_path_spec=
  10404. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10405. for lt_sys_path in $lt_search_path_spec; do
  10406. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10407. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10408. else
  10409. test -d "$lt_sys_path" && \
  10410. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10411. fi
  10412. done
  10413. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10414. BEGIN {RS=" "; FS="/|\n";} {
  10415. lt_foo="";
  10416. lt_count=0;
  10417. for (lt_i = NF; lt_i > 0; lt_i--) {
  10418. if ($lt_i != "" && $lt_i != ".") {
  10419. if ($lt_i == "..") {
  10420. lt_count++;
  10421. } else {
  10422. if (lt_count == 0) {
  10423. lt_foo="/" $lt_i lt_foo;
  10424. } else {
  10425. lt_count--;
  10426. }
  10427. }
  10428. }
  10429. }
  10430. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10431. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10432. }'`
  10433. # AWK program above erroneously prepends '/' to C:/dos/paths
  10434. # for these hosts.
  10435. case $host_os in
  10436. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10437. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10438. esac
  10439. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10440. else
  10441. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10442. fi
  10443. library_names_spec=
  10444. libname_spec='lib$name'
  10445. soname_spec=
  10446. shrext_cmds=".so"
  10447. postinstall_cmds=
  10448. postuninstall_cmds=
  10449. finish_cmds=
  10450. finish_eval=
  10451. shlibpath_var=
  10452. shlibpath_overrides_runpath=unknown
  10453. version_type=none
  10454. dynamic_linker="$host_os ld.so"
  10455. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10456. need_lib_prefix=unknown
  10457. hardcode_into_libs=no
  10458. # when you set need_version to no, make sure it does not cause -set_version
  10459. # flags to be left without arguments
  10460. need_version=unknown
  10461. case $host_os in
  10462. aix3*)
  10463. version_type=linux
  10464. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10465. shlibpath_var=LIBPATH
  10466. # AIX 3 has no versioning support, so we append a major version to the name.
  10467. soname_spec='${libname}${release}${shared_ext}$major'
  10468. ;;
  10469. aix[4-9]*)
  10470. version_type=linux
  10471. need_lib_prefix=no
  10472. need_version=no
  10473. hardcode_into_libs=yes
  10474. if test "$host_cpu" = ia64; then
  10475. # AIX 5 supports IA64
  10476. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10477. shlibpath_var=LD_LIBRARY_PATH
  10478. else
  10479. # With GCC up to 2.95.x, collect2 would create an import file
  10480. # for dependence libraries. The import file would start with
  10481. # the line `#! .'. This would cause the generated library to
  10482. # depend on `.', always an invalid library. This was fixed in
  10483. # development snapshots of GCC prior to 3.0.
  10484. case $host_os in
  10485. aix4 | aix4.[01] | aix4.[01].*)
  10486. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10487. echo ' yes '
  10488. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10489. :
  10490. else
  10491. can_build_shared=no
  10492. fi
  10493. ;;
  10494. esac
  10495. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10496. # soname into executable. Probably we can add versioning support to
  10497. # collect2, so additional links can be useful in future.
  10498. if test "$aix_use_runtimelinking" = yes; then
  10499. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10500. # instead of lib<name>.a to let people know that these are not
  10501. # typical AIX shared libraries.
  10502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10503. else
  10504. # We preserve .a as extension for shared libraries through AIX4.2
  10505. # and later when we are not doing run time linking.
  10506. library_names_spec='${libname}${release}.a $libname.a'
  10507. soname_spec='${libname}${release}${shared_ext}$major'
  10508. fi
  10509. shlibpath_var=LIBPATH
  10510. fi
  10511. ;;
  10512. amigaos*)
  10513. case $host_cpu in
  10514. powerpc)
  10515. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10516. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10518. ;;
  10519. m68k)
  10520. library_names_spec='$libname.ixlibrary $libname.a'
  10521. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10522. 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'
  10523. ;;
  10524. esac
  10525. ;;
  10526. beos*)
  10527. library_names_spec='${libname}${shared_ext}'
  10528. dynamic_linker="$host_os ld.so"
  10529. shlibpath_var=LIBRARY_PATH
  10530. ;;
  10531. bsdi[45]*)
  10532. version_type=linux
  10533. need_version=no
  10534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10535. soname_spec='${libname}${release}${shared_ext}$major'
  10536. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10537. shlibpath_var=LD_LIBRARY_PATH
  10538. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10539. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10540. # the default ld.so.conf also contains /usr/contrib/lib and
  10541. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10542. # libtool to hard-code these into programs
  10543. ;;
  10544. cygwin* | mingw* | pw32* | cegcc*)
  10545. version_type=windows
  10546. shrext_cmds=".dll"
  10547. need_version=no
  10548. need_lib_prefix=no
  10549. case $GCC,$host_os in
  10550. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  10551. library_names_spec='$libname.dll.a'
  10552. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10553. postinstall_cmds='base_file=`basename \${file}`~
  10554. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10555. dldir=$destdir/`dirname \$dlpath`~
  10556. test -d \$dldir || mkdir -p \$dldir~
  10557. $install_prog $dir/$dlname \$dldir/$dlname~
  10558. chmod a+x \$dldir/$dlname~
  10559. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10560. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10561. fi'
  10562. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10563. dlpath=$dir/\$dldll~
  10564. $RM \$dlpath'
  10565. shlibpath_overrides_runpath=yes
  10566. case $host_os in
  10567. cygwin*)
  10568. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10569. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10570. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10571. ;;
  10572. mingw* | cegcc*)
  10573. # MinGW DLLs use traditional 'lib' prefix
  10574. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10575. ;;
  10576. pw32*)
  10577. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10578. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10579. ;;
  10580. esac
  10581. ;;
  10582. *)
  10583. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10584. ;;
  10585. esac
  10586. dynamic_linker='Win32 ld.exe'
  10587. # FIXME: first we should search . and the directory the executable is in
  10588. shlibpath_var=PATH
  10589. ;;
  10590. darwin* | rhapsody*)
  10591. dynamic_linker="$host_os dyld"
  10592. version_type=darwin
  10593. need_lib_prefix=no
  10594. need_version=no
  10595. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10596. soname_spec='${libname}${release}${major}$shared_ext'
  10597. shlibpath_overrides_runpath=yes
  10598. shlibpath_var=DYLD_LIBRARY_PATH
  10599. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10600. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10601. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10602. ;;
  10603. dgux*)
  10604. version_type=linux
  10605. need_lib_prefix=no
  10606. need_version=no
  10607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10608. soname_spec='${libname}${release}${shared_ext}$major'
  10609. shlibpath_var=LD_LIBRARY_PATH
  10610. ;;
  10611. freebsd1*)
  10612. dynamic_linker=no
  10613. ;;
  10614. freebsd* | dragonfly*)
  10615. # DragonFly does not have aout. When/if they implement a new
  10616. # versioning mechanism, adjust this.
  10617. if test -x /usr/bin/objformat; then
  10618. objformat=`/usr/bin/objformat`
  10619. else
  10620. case $host_os in
  10621. freebsd[123]*) objformat=aout ;;
  10622. *) objformat=elf ;;
  10623. esac
  10624. fi
  10625. version_type=freebsd-$objformat
  10626. case $version_type in
  10627. freebsd-elf*)
  10628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10629. need_version=no
  10630. need_lib_prefix=no
  10631. ;;
  10632. freebsd-*)
  10633. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10634. need_version=yes
  10635. ;;
  10636. esac
  10637. shlibpath_var=LD_LIBRARY_PATH
  10638. case $host_os in
  10639. freebsd2*)
  10640. shlibpath_overrides_runpath=yes
  10641. ;;
  10642. freebsd3.[01]* | freebsdelf3.[01]*)
  10643. shlibpath_overrides_runpath=yes
  10644. hardcode_into_libs=yes
  10645. ;;
  10646. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10647. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10648. shlibpath_overrides_runpath=no
  10649. hardcode_into_libs=yes
  10650. ;;
  10651. *) # from 4.6 on, and DragonFly
  10652. shlibpath_overrides_runpath=yes
  10653. hardcode_into_libs=yes
  10654. ;;
  10655. esac
  10656. ;;
  10657. gnu*)
  10658. version_type=linux
  10659. need_lib_prefix=no
  10660. need_version=no
  10661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10662. soname_spec='${libname}${release}${shared_ext}$major'
  10663. shlibpath_var=LD_LIBRARY_PATH
  10664. hardcode_into_libs=yes
  10665. ;;
  10666. haiku*)
  10667. version_type=linux
  10668. need_lib_prefix=no
  10669. need_version=no
  10670. dynamic_linker="$host_os runtime_loader"
  10671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10672. soname_spec='${libname}${release}${shared_ext}$major'
  10673. shlibpath_var=LIBRARY_PATH
  10674. shlibpath_overrides_runpath=yes
  10675. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10676. hardcode_into_libs=yes
  10677. ;;
  10678. hpux9* | hpux10* | hpux11*)
  10679. # Give a soname corresponding to the major version so that dld.sl refuses to
  10680. # link against other versions.
  10681. version_type=sunos
  10682. need_lib_prefix=no
  10683. need_version=no
  10684. case $host_cpu in
  10685. ia64*)
  10686. shrext_cmds='.so'
  10687. hardcode_into_libs=yes
  10688. dynamic_linker="$host_os dld.so"
  10689. shlibpath_var=LD_LIBRARY_PATH
  10690. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10692. soname_spec='${libname}${release}${shared_ext}$major'
  10693. if test "X$HPUX_IA64_MODE" = X32; then
  10694. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10695. else
  10696. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10697. fi
  10698. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10699. ;;
  10700. hppa*64*)
  10701. shrext_cmds='.sl'
  10702. hardcode_into_libs=yes
  10703. dynamic_linker="$host_os dld.sl"
  10704. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10705. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10707. soname_spec='${libname}${release}${shared_ext}$major'
  10708. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10709. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10710. ;;
  10711. *)
  10712. shrext_cmds='.sl'
  10713. dynamic_linker="$host_os dld.sl"
  10714. shlibpath_var=SHLIB_PATH
  10715. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10717. soname_spec='${libname}${release}${shared_ext}$major'
  10718. ;;
  10719. esac
  10720. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10721. postinstall_cmds='chmod 555 $lib'
  10722. # or fails outright, so override atomically:
  10723. install_override_mode=555
  10724. ;;
  10725. interix[3-9]*)
  10726. version_type=linux
  10727. need_lib_prefix=no
  10728. need_version=no
  10729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10730. soname_spec='${libname}${release}${shared_ext}$major'
  10731. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10732. shlibpath_var=LD_LIBRARY_PATH
  10733. shlibpath_overrides_runpath=no
  10734. hardcode_into_libs=yes
  10735. ;;
  10736. irix5* | irix6* | nonstopux*)
  10737. case $host_os in
  10738. nonstopux*) version_type=nonstopux ;;
  10739. *)
  10740. if test "$lt_cv_prog_gnu_ld" = yes; then
  10741. version_type=linux
  10742. else
  10743. version_type=irix
  10744. fi ;;
  10745. esac
  10746. need_lib_prefix=no
  10747. need_version=no
  10748. soname_spec='${libname}${release}${shared_ext}$major'
  10749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10750. case $host_os in
  10751. irix5* | nonstopux*)
  10752. libsuff= shlibsuff=
  10753. ;;
  10754. *)
  10755. case $LD in # libtool.m4 will add one of these switches to LD
  10756. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10757. libsuff= shlibsuff= libmagic=32-bit;;
  10758. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10759. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10760. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10761. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10762. *) libsuff= shlibsuff= libmagic=never-match;;
  10763. esac
  10764. ;;
  10765. esac
  10766. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10767. shlibpath_overrides_runpath=no
  10768. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10769. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10770. hardcode_into_libs=yes
  10771. ;;
  10772. # No shared lib support for Linux oldld, aout, or coff.
  10773. linux*oldld* | linux*aout* | linux*coff*)
  10774. dynamic_linker=no
  10775. ;;
  10776. # This must be Linux ELF.
  10777. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10778. version_type=linux
  10779. need_lib_prefix=no
  10780. need_version=no
  10781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10782. soname_spec='${libname}${release}${shared_ext}$major'
  10783. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10784. shlibpath_var=LD_LIBRARY_PATH
  10785. shlibpath_overrides_runpath=no
  10786. # Some binutils ld are patched to set DT_RUNPATH
  10787. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  10788. $as_echo_n "(cached) " >&6
  10789. else
  10790. lt_cv_shlibpath_overrides_runpath=no
  10791. save_LDFLAGS=$LDFLAGS
  10792. save_libdir=$libdir
  10793. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10794. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10796. /* end confdefs.h. */
  10797. int
  10798. main ()
  10799. {
  10800. ;
  10801. return 0;
  10802. }
  10803. _ACEOF
  10804. if ac_fn_c_try_link "$LINENO"; then :
  10805. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10806. lt_cv_shlibpath_overrides_runpath=yes
  10807. fi
  10808. fi
  10809. rm -f core conftest.err conftest.$ac_objext \
  10810. conftest$ac_exeext conftest.$ac_ext
  10811. LDFLAGS=$save_LDFLAGS
  10812. libdir=$save_libdir
  10813. fi
  10814. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10815. # This implies no fast_install, which is unacceptable.
  10816. # Some rework will be needed to allow for fast_install
  10817. # before this can be enabled.
  10818. hardcode_into_libs=yes
  10819. # Add ABI-specific directories to the system library path.
  10820. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10821. # Append ld.so.conf contents to the search path
  10822. if test -f /etc/ld.so.conf; then
  10823. 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' ' '`
  10824. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10825. fi
  10826. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10827. # powerpc, because MkLinux only supported shared libraries with the
  10828. # GNU dynamic linker. Since this was broken with cross compilers,
  10829. # most powerpc-linux boxes support dynamic linking these days and
  10830. # people can always --disable-shared, the test was removed, and we
  10831. # assume the GNU/Linux dynamic linker is in use.
  10832. dynamic_linker='GNU/Linux ld.so'
  10833. ;;
  10834. netbsd*)
  10835. version_type=sunos
  10836. need_lib_prefix=no
  10837. need_version=no
  10838. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10840. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10841. dynamic_linker='NetBSD (a.out) ld.so'
  10842. else
  10843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10844. soname_spec='${libname}${release}${shared_ext}$major'
  10845. dynamic_linker='NetBSD ld.elf_so'
  10846. fi
  10847. shlibpath_var=LD_LIBRARY_PATH
  10848. shlibpath_overrides_runpath=yes
  10849. hardcode_into_libs=yes
  10850. ;;
  10851. newsos6)
  10852. version_type=linux
  10853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10854. shlibpath_var=LD_LIBRARY_PATH
  10855. shlibpath_overrides_runpath=yes
  10856. ;;
  10857. *nto* | *qnx*)
  10858. version_type=qnx
  10859. need_lib_prefix=no
  10860. need_version=no
  10861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10862. soname_spec='${libname}${release}${shared_ext}$major'
  10863. shlibpath_var=LD_LIBRARY_PATH
  10864. shlibpath_overrides_runpath=no
  10865. hardcode_into_libs=yes
  10866. dynamic_linker='ldqnx.so'
  10867. ;;
  10868. openbsd*)
  10869. version_type=sunos
  10870. sys_lib_dlsearch_path_spec="/usr/lib"
  10871. need_lib_prefix=no
  10872. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10873. case $host_os in
  10874. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10875. *) need_version=no ;;
  10876. esac
  10877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10878. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10879. shlibpath_var=LD_LIBRARY_PATH
  10880. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10881. case $host_os in
  10882. openbsd2.[89] | openbsd2.[89].*)
  10883. shlibpath_overrides_runpath=no
  10884. ;;
  10885. *)
  10886. shlibpath_overrides_runpath=yes
  10887. ;;
  10888. esac
  10889. else
  10890. shlibpath_overrides_runpath=yes
  10891. fi
  10892. ;;
  10893. os2*)
  10894. libname_spec='$name'
  10895. shrext_cmds=".dll"
  10896. need_lib_prefix=no
  10897. library_names_spec='$libname${shared_ext} $libname.a'
  10898. dynamic_linker='OS/2 ld.exe'
  10899. shlibpath_var=LIBPATH
  10900. ;;
  10901. osf3* | osf4* | osf5*)
  10902. version_type=osf
  10903. need_lib_prefix=no
  10904. need_version=no
  10905. soname_spec='${libname}${release}${shared_ext}$major'
  10906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10907. shlibpath_var=LD_LIBRARY_PATH
  10908. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10909. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10910. ;;
  10911. rdos*)
  10912. dynamic_linker=no
  10913. ;;
  10914. solaris*)
  10915. version_type=linux
  10916. need_lib_prefix=no
  10917. need_version=no
  10918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10919. soname_spec='${libname}${release}${shared_ext}$major'
  10920. shlibpath_var=LD_LIBRARY_PATH
  10921. shlibpath_overrides_runpath=yes
  10922. hardcode_into_libs=yes
  10923. # ldd complains unless libraries are executable
  10924. postinstall_cmds='chmod +x $lib'
  10925. ;;
  10926. sunos4*)
  10927. version_type=sunos
  10928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10929. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10930. shlibpath_var=LD_LIBRARY_PATH
  10931. shlibpath_overrides_runpath=yes
  10932. if test "$with_gnu_ld" = yes; then
  10933. need_lib_prefix=no
  10934. fi
  10935. need_version=yes
  10936. ;;
  10937. sysv4 | sysv4.3*)
  10938. version_type=linux
  10939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10940. soname_spec='${libname}${release}${shared_ext}$major'
  10941. shlibpath_var=LD_LIBRARY_PATH
  10942. case $host_vendor in
  10943. sni)
  10944. shlibpath_overrides_runpath=no
  10945. need_lib_prefix=no
  10946. runpath_var=LD_RUN_PATH
  10947. ;;
  10948. siemens)
  10949. need_lib_prefix=no
  10950. ;;
  10951. motorola)
  10952. need_lib_prefix=no
  10953. need_version=no
  10954. shlibpath_overrides_runpath=no
  10955. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10956. ;;
  10957. esac
  10958. ;;
  10959. sysv4*MP*)
  10960. if test -d /usr/nec ;then
  10961. version_type=linux
  10962. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10963. soname_spec='$libname${shared_ext}.$major'
  10964. shlibpath_var=LD_LIBRARY_PATH
  10965. fi
  10966. ;;
  10967. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10968. version_type=freebsd-elf
  10969. need_lib_prefix=no
  10970. need_version=no
  10971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10972. soname_spec='${libname}${release}${shared_ext}$major'
  10973. shlibpath_var=LD_LIBRARY_PATH
  10974. shlibpath_overrides_runpath=yes
  10975. hardcode_into_libs=yes
  10976. if test "$with_gnu_ld" = yes; then
  10977. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10978. else
  10979. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10980. case $host_os in
  10981. sco3.2v5*)
  10982. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10983. ;;
  10984. esac
  10985. fi
  10986. sys_lib_dlsearch_path_spec='/usr/lib'
  10987. ;;
  10988. tpf*)
  10989. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10990. version_type=linux
  10991. need_lib_prefix=no
  10992. need_version=no
  10993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10994. shlibpath_var=LD_LIBRARY_PATH
  10995. shlibpath_overrides_runpath=no
  10996. hardcode_into_libs=yes
  10997. ;;
  10998. uts4*)
  10999. version_type=linux
  11000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11001. soname_spec='${libname}${release}${shared_ext}$major'
  11002. shlibpath_var=LD_LIBRARY_PATH
  11003. ;;
  11004. *)
  11005. dynamic_linker=no
  11006. ;;
  11007. esac
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11009. $as_echo "$dynamic_linker" >&6; }
  11010. test "$dynamic_linker" = no && can_build_shared=no
  11011. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11012. if test "$GCC" = yes; then
  11013. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11014. fi
  11015. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11016. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11017. fi
  11018. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11019. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11020. fi
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11022. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11023. hardcode_action=
  11024. if test -n "$hardcode_libdir_flag_spec" ||
  11025. test -n "$runpath_var" ||
  11026. test "X$hardcode_automatic" = "Xyes" ; then
  11027. # We can hardcode non-existent directories.
  11028. if test "$hardcode_direct" != no &&
  11029. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11030. # have to relink, otherwise we might link with an installed library
  11031. # when we should be linking with a yet-to-be-installed one
  11032. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11033. test "$hardcode_minus_L" != no; then
  11034. # Linking always hardcodes the temporary library directory.
  11035. hardcode_action=relink
  11036. else
  11037. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11038. hardcode_action=immediate
  11039. fi
  11040. else
  11041. # We cannot hardcode anything, or else we can only hardcode existing
  11042. # directories.
  11043. hardcode_action=unsupported
  11044. fi
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11046. $as_echo "$hardcode_action" >&6; }
  11047. if test "$hardcode_action" = relink ||
  11048. test "$inherit_rpath" = yes; then
  11049. # Fast installation is not supported
  11050. enable_fast_install=no
  11051. elif test "$shlibpath_overrides_runpath" = yes ||
  11052. test "$enable_shared" = no; then
  11053. # Fast installation is not necessary
  11054. enable_fast_install=needless
  11055. fi
  11056. if test "x$enable_dlopen" != xyes; then
  11057. enable_dlopen=unknown
  11058. enable_dlopen_self=unknown
  11059. enable_dlopen_self_static=unknown
  11060. else
  11061. lt_cv_dlopen=no
  11062. lt_cv_dlopen_libs=
  11063. case $host_os in
  11064. beos*)
  11065. lt_cv_dlopen="load_add_on"
  11066. lt_cv_dlopen_libs=
  11067. lt_cv_dlopen_self=yes
  11068. ;;
  11069. mingw* | pw32* | cegcc*)
  11070. lt_cv_dlopen="LoadLibrary"
  11071. lt_cv_dlopen_libs=
  11072. ;;
  11073. cygwin*)
  11074. lt_cv_dlopen="dlopen"
  11075. lt_cv_dlopen_libs=
  11076. ;;
  11077. darwin*)
  11078. # if libdl is installed we need to link against it
  11079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11080. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11081. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  11082. $as_echo_n "(cached) " >&6
  11083. else
  11084. ac_check_lib_save_LIBS=$LIBS
  11085. LIBS="-ldl $LIBS"
  11086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11087. /* end confdefs.h. */
  11088. /* Override any GCC internal prototype to avoid an error.
  11089. Use char because int might match the return type of a GCC
  11090. builtin and then its argument prototype would still apply. */
  11091. #ifdef __cplusplus
  11092. extern "C"
  11093. #endif
  11094. char dlopen ();
  11095. int
  11096. main ()
  11097. {
  11098. return dlopen ();
  11099. ;
  11100. return 0;
  11101. }
  11102. _ACEOF
  11103. if ac_fn_c_try_link "$LINENO"; then :
  11104. ac_cv_lib_dl_dlopen=yes
  11105. else
  11106. ac_cv_lib_dl_dlopen=no
  11107. fi
  11108. rm -f core conftest.err conftest.$ac_objext \
  11109. conftest$ac_exeext conftest.$ac_ext
  11110. LIBS=$ac_check_lib_save_LIBS
  11111. fi
  11112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11113. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11114. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  11115. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11116. else
  11117. lt_cv_dlopen="dyld"
  11118. lt_cv_dlopen_libs=
  11119. lt_cv_dlopen_self=yes
  11120. fi
  11121. ;;
  11122. *)
  11123. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11124. if test "x$ac_cv_func_shl_load" = x""yes; then :
  11125. lt_cv_dlopen="shl_load"
  11126. else
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11128. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11129. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  11130. $as_echo_n "(cached) " >&6
  11131. else
  11132. ac_check_lib_save_LIBS=$LIBS
  11133. LIBS="-ldld $LIBS"
  11134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11135. /* end confdefs.h. */
  11136. /* Override any GCC internal prototype to avoid an error.
  11137. Use char because int might match the return type of a GCC
  11138. builtin and then its argument prototype would still apply. */
  11139. #ifdef __cplusplus
  11140. extern "C"
  11141. #endif
  11142. char shl_load ();
  11143. int
  11144. main ()
  11145. {
  11146. return shl_load ();
  11147. ;
  11148. return 0;
  11149. }
  11150. _ACEOF
  11151. if ac_fn_c_try_link "$LINENO"; then :
  11152. ac_cv_lib_dld_shl_load=yes
  11153. else
  11154. ac_cv_lib_dld_shl_load=no
  11155. fi
  11156. rm -f core conftest.err conftest.$ac_objext \
  11157. conftest$ac_exeext conftest.$ac_ext
  11158. LIBS=$ac_check_lib_save_LIBS
  11159. fi
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11161. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11162. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  11163. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11164. else
  11165. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11166. if test "x$ac_cv_func_dlopen" = x""yes; then :
  11167. lt_cv_dlopen="dlopen"
  11168. else
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11170. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11171. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  11172. $as_echo_n "(cached) " >&6
  11173. else
  11174. ac_check_lib_save_LIBS=$LIBS
  11175. LIBS="-ldl $LIBS"
  11176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11177. /* end confdefs.h. */
  11178. /* Override any GCC internal prototype to avoid an error.
  11179. Use char because int might match the return type of a GCC
  11180. builtin and then its argument prototype would still apply. */
  11181. #ifdef __cplusplus
  11182. extern "C"
  11183. #endif
  11184. char dlopen ();
  11185. int
  11186. main ()
  11187. {
  11188. return dlopen ();
  11189. ;
  11190. return 0;
  11191. }
  11192. _ACEOF
  11193. if ac_fn_c_try_link "$LINENO"; then :
  11194. ac_cv_lib_dl_dlopen=yes
  11195. else
  11196. ac_cv_lib_dl_dlopen=no
  11197. fi
  11198. rm -f core conftest.err conftest.$ac_objext \
  11199. conftest$ac_exeext conftest.$ac_ext
  11200. LIBS=$ac_check_lib_save_LIBS
  11201. fi
  11202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11203. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11204. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  11205. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11206. else
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11208. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11209. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  11210. $as_echo_n "(cached) " >&6
  11211. else
  11212. ac_check_lib_save_LIBS=$LIBS
  11213. LIBS="-lsvld $LIBS"
  11214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11215. /* end confdefs.h. */
  11216. /* Override any GCC internal prototype to avoid an error.
  11217. Use char because int might match the return type of a GCC
  11218. builtin and then its argument prototype would still apply. */
  11219. #ifdef __cplusplus
  11220. extern "C"
  11221. #endif
  11222. char dlopen ();
  11223. int
  11224. main ()
  11225. {
  11226. return dlopen ();
  11227. ;
  11228. return 0;
  11229. }
  11230. _ACEOF
  11231. if ac_fn_c_try_link "$LINENO"; then :
  11232. ac_cv_lib_svld_dlopen=yes
  11233. else
  11234. ac_cv_lib_svld_dlopen=no
  11235. fi
  11236. rm -f core conftest.err conftest.$ac_objext \
  11237. conftest$ac_exeext conftest.$ac_ext
  11238. LIBS=$ac_check_lib_save_LIBS
  11239. fi
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11241. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11242. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  11243. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11244. else
  11245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11246. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11247. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  11248. $as_echo_n "(cached) " >&6
  11249. else
  11250. ac_check_lib_save_LIBS=$LIBS
  11251. LIBS="-ldld $LIBS"
  11252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11253. /* end confdefs.h. */
  11254. /* Override any GCC internal prototype to avoid an error.
  11255. Use char because int might match the return type of a GCC
  11256. builtin and then its argument prototype would still apply. */
  11257. #ifdef __cplusplus
  11258. extern "C"
  11259. #endif
  11260. char dld_link ();
  11261. int
  11262. main ()
  11263. {
  11264. return dld_link ();
  11265. ;
  11266. return 0;
  11267. }
  11268. _ACEOF
  11269. if ac_fn_c_try_link "$LINENO"; then :
  11270. ac_cv_lib_dld_dld_link=yes
  11271. else
  11272. ac_cv_lib_dld_dld_link=no
  11273. fi
  11274. rm -f core conftest.err conftest.$ac_objext \
  11275. conftest$ac_exeext conftest.$ac_ext
  11276. LIBS=$ac_check_lib_save_LIBS
  11277. fi
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11279. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11280. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  11281. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11282. fi
  11283. fi
  11284. fi
  11285. fi
  11286. fi
  11287. fi
  11288. ;;
  11289. esac
  11290. if test "x$lt_cv_dlopen" != xno; then
  11291. enable_dlopen=yes
  11292. else
  11293. enable_dlopen=no
  11294. fi
  11295. case $lt_cv_dlopen in
  11296. dlopen)
  11297. save_CPPFLAGS="$CPPFLAGS"
  11298. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11299. save_LDFLAGS="$LDFLAGS"
  11300. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11301. save_LIBS="$LIBS"
  11302. LIBS="$lt_cv_dlopen_libs $LIBS"
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11304. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11305. if test "${lt_cv_dlopen_self+set}" = set; then :
  11306. $as_echo_n "(cached) " >&6
  11307. else
  11308. if test "$cross_compiling" = yes; then :
  11309. lt_cv_dlopen_self=cross
  11310. else
  11311. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11312. lt_status=$lt_dlunknown
  11313. cat > conftest.$ac_ext <<_LT_EOF
  11314. #line $LINENO "configure"
  11315. #include "confdefs.h"
  11316. #if HAVE_DLFCN_H
  11317. #include <dlfcn.h>
  11318. #endif
  11319. #include <stdio.h>
  11320. #ifdef RTLD_GLOBAL
  11321. # define LT_DLGLOBAL RTLD_GLOBAL
  11322. #else
  11323. # ifdef DL_GLOBAL
  11324. # define LT_DLGLOBAL DL_GLOBAL
  11325. # else
  11326. # define LT_DLGLOBAL 0
  11327. # endif
  11328. #endif
  11329. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11330. find out it does not work in some platform. */
  11331. #ifndef LT_DLLAZY_OR_NOW
  11332. # ifdef RTLD_LAZY
  11333. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11334. # else
  11335. # ifdef DL_LAZY
  11336. # define LT_DLLAZY_OR_NOW DL_LAZY
  11337. # else
  11338. # ifdef RTLD_NOW
  11339. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11340. # else
  11341. # ifdef DL_NOW
  11342. # define LT_DLLAZY_OR_NOW DL_NOW
  11343. # else
  11344. # define LT_DLLAZY_OR_NOW 0
  11345. # endif
  11346. # endif
  11347. # endif
  11348. # endif
  11349. #endif
  11350. /* When -fvisbility=hidden is used, assume the code has been annotated
  11351. correspondingly for the symbols needed. */
  11352. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11353. void fnord () __attribute__((visibility("default")));
  11354. #endif
  11355. void fnord () { int i=42; }
  11356. int main ()
  11357. {
  11358. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11359. int status = $lt_dlunknown;
  11360. if (self)
  11361. {
  11362. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11363. else
  11364. {
  11365. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11366. else puts (dlerror ());
  11367. }
  11368. /* dlclose (self); */
  11369. }
  11370. else
  11371. puts (dlerror ());
  11372. return status;
  11373. }
  11374. _LT_EOF
  11375. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11376. (eval $ac_link) 2>&5
  11377. ac_status=$?
  11378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11379. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11380. (./conftest; exit; ) >&5 2>/dev/null
  11381. lt_status=$?
  11382. case x$lt_status in
  11383. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11384. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11385. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11386. esac
  11387. else :
  11388. # compilation failed
  11389. lt_cv_dlopen_self=no
  11390. fi
  11391. fi
  11392. rm -fr conftest*
  11393. fi
  11394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11395. $as_echo "$lt_cv_dlopen_self" >&6; }
  11396. if test "x$lt_cv_dlopen_self" = xyes; then
  11397. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11399. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11400. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  11401. $as_echo_n "(cached) " >&6
  11402. else
  11403. if test "$cross_compiling" = yes; then :
  11404. lt_cv_dlopen_self_static=cross
  11405. else
  11406. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11407. lt_status=$lt_dlunknown
  11408. cat > conftest.$ac_ext <<_LT_EOF
  11409. #line $LINENO "configure"
  11410. #include "confdefs.h"
  11411. #if HAVE_DLFCN_H
  11412. #include <dlfcn.h>
  11413. #endif
  11414. #include <stdio.h>
  11415. #ifdef RTLD_GLOBAL
  11416. # define LT_DLGLOBAL RTLD_GLOBAL
  11417. #else
  11418. # ifdef DL_GLOBAL
  11419. # define LT_DLGLOBAL DL_GLOBAL
  11420. # else
  11421. # define LT_DLGLOBAL 0
  11422. # endif
  11423. #endif
  11424. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11425. find out it does not work in some platform. */
  11426. #ifndef LT_DLLAZY_OR_NOW
  11427. # ifdef RTLD_LAZY
  11428. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11429. # else
  11430. # ifdef DL_LAZY
  11431. # define LT_DLLAZY_OR_NOW DL_LAZY
  11432. # else
  11433. # ifdef RTLD_NOW
  11434. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11435. # else
  11436. # ifdef DL_NOW
  11437. # define LT_DLLAZY_OR_NOW DL_NOW
  11438. # else
  11439. # define LT_DLLAZY_OR_NOW 0
  11440. # endif
  11441. # endif
  11442. # endif
  11443. # endif
  11444. #endif
  11445. /* When -fvisbility=hidden is used, assume the code has been annotated
  11446. correspondingly for the symbols needed. */
  11447. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11448. void fnord () __attribute__((visibility("default")));
  11449. #endif
  11450. void fnord () { int i=42; }
  11451. int main ()
  11452. {
  11453. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11454. int status = $lt_dlunknown;
  11455. if (self)
  11456. {
  11457. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11458. else
  11459. {
  11460. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11461. else puts (dlerror ());
  11462. }
  11463. /* dlclose (self); */
  11464. }
  11465. else
  11466. puts (dlerror ());
  11467. return status;
  11468. }
  11469. _LT_EOF
  11470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11471. (eval $ac_link) 2>&5
  11472. ac_status=$?
  11473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11474. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11475. (./conftest; exit; ) >&5 2>/dev/null
  11476. lt_status=$?
  11477. case x$lt_status in
  11478. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11479. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11480. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11481. esac
  11482. else :
  11483. # compilation failed
  11484. lt_cv_dlopen_self_static=no
  11485. fi
  11486. fi
  11487. rm -fr conftest*
  11488. fi
  11489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11490. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11491. fi
  11492. CPPFLAGS="$save_CPPFLAGS"
  11493. LDFLAGS="$save_LDFLAGS"
  11494. LIBS="$save_LIBS"
  11495. ;;
  11496. esac
  11497. case $lt_cv_dlopen_self in
  11498. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11499. *) enable_dlopen_self=unknown ;;
  11500. esac
  11501. case $lt_cv_dlopen_self_static in
  11502. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11503. *) enable_dlopen_self_static=unknown ;;
  11504. esac
  11505. fi
  11506. striplib=
  11507. old_striplib=
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11509. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11510. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11511. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11512. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11514. $as_echo "yes" >&6; }
  11515. else
  11516. # FIXME - insert some real tests, host_os isn't really good enough
  11517. case $host_os in
  11518. darwin*)
  11519. if test -n "$STRIP" ; then
  11520. striplib="$STRIP -x"
  11521. old_striplib="$STRIP -S"
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11523. $as_echo "yes" >&6; }
  11524. else
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11526. $as_echo "no" >&6; }
  11527. fi
  11528. ;;
  11529. *)
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11531. $as_echo "no" >&6; }
  11532. ;;
  11533. esac
  11534. fi
  11535. # Report which library types will actually be built
  11536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11537. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11539. $as_echo "$can_build_shared" >&6; }
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11541. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11542. test "$can_build_shared" = "no" && enable_shared=no
  11543. # On AIX, shared libraries and static libraries use the same namespace, and
  11544. # are all built from PIC.
  11545. case $host_os in
  11546. aix3*)
  11547. test "$enable_shared" = yes && enable_static=no
  11548. if test -n "$RANLIB"; then
  11549. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11550. postinstall_cmds='$RANLIB $lib'
  11551. fi
  11552. ;;
  11553. aix[4-9]*)
  11554. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11555. test "$enable_shared" = yes && enable_static=no
  11556. fi
  11557. ;;
  11558. esac
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11560. $as_echo "$enable_shared" >&6; }
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11562. $as_echo_n "checking whether to build static libraries... " >&6; }
  11563. # Make sure either enable_shared or enable_static is yes.
  11564. test "$enable_shared" = yes || enable_static=yes
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11566. $as_echo "$enable_static" >&6; }
  11567. fi
  11568. ac_ext=c
  11569. ac_cpp='$CPP $CPPFLAGS'
  11570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11573. CC="$lt_save_CC"
  11574. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11575. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11576. (test "X$CXX" != "Xg++"))) ; then
  11577. ac_ext=cpp
  11578. ac_cpp='$CXXCPP $CPPFLAGS'
  11579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11583. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11584. if test -z "$CXXCPP"; then
  11585. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  11586. $as_echo_n "(cached) " >&6
  11587. else
  11588. # Double quotes because CXXCPP needs to be expanded
  11589. for CXXCPP in "$CXX -E" "/lib/cpp"
  11590. do
  11591. ac_preproc_ok=false
  11592. for ac_cxx_preproc_warn_flag in '' yes
  11593. do
  11594. # Use a header file that comes with gcc, so configuring glibc
  11595. # with a fresh cross-compiler works.
  11596. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11597. # <limits.h> exists even on freestanding compilers.
  11598. # On the NeXT, cc -E runs the code through the compiler's parser,
  11599. # not just through cpp. "Syntax error" is here to catch this case.
  11600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11601. /* end confdefs.h. */
  11602. #ifdef __STDC__
  11603. # include <limits.h>
  11604. #else
  11605. # include <assert.h>
  11606. #endif
  11607. Syntax error
  11608. _ACEOF
  11609. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11610. else
  11611. # Broken: fails on valid input.
  11612. continue
  11613. fi
  11614. rm -f conftest.err conftest.$ac_ext
  11615. # OK, works on sane cases. Now check whether nonexistent headers
  11616. # can be detected and how.
  11617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11618. /* end confdefs.h. */
  11619. #include <ac_nonexistent.h>
  11620. _ACEOF
  11621. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11622. # Broken: success on invalid input.
  11623. continue
  11624. else
  11625. # Passes both tests.
  11626. ac_preproc_ok=:
  11627. break
  11628. fi
  11629. rm -f conftest.err conftest.$ac_ext
  11630. done
  11631. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11632. rm -f conftest.err conftest.$ac_ext
  11633. if $ac_preproc_ok; then :
  11634. break
  11635. fi
  11636. done
  11637. ac_cv_prog_CXXCPP=$CXXCPP
  11638. fi
  11639. CXXCPP=$ac_cv_prog_CXXCPP
  11640. else
  11641. ac_cv_prog_CXXCPP=$CXXCPP
  11642. fi
  11643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11644. $as_echo "$CXXCPP" >&6; }
  11645. ac_preproc_ok=false
  11646. for ac_cxx_preproc_warn_flag in '' yes
  11647. do
  11648. # Use a header file that comes with gcc, so configuring glibc
  11649. # with a fresh cross-compiler works.
  11650. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11651. # <limits.h> exists even on freestanding compilers.
  11652. # On the NeXT, cc -E runs the code through the compiler's parser,
  11653. # not just through cpp. "Syntax error" is here to catch this case.
  11654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11655. /* end confdefs.h. */
  11656. #ifdef __STDC__
  11657. # include <limits.h>
  11658. #else
  11659. # include <assert.h>
  11660. #endif
  11661. Syntax error
  11662. _ACEOF
  11663. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11664. else
  11665. # Broken: fails on valid input.
  11666. continue
  11667. fi
  11668. rm -f conftest.err conftest.$ac_ext
  11669. # OK, works on sane cases. Now check whether nonexistent headers
  11670. # can be detected and how.
  11671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11672. /* end confdefs.h. */
  11673. #include <ac_nonexistent.h>
  11674. _ACEOF
  11675. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11676. # Broken: success on invalid input.
  11677. continue
  11678. else
  11679. # Passes both tests.
  11680. ac_preproc_ok=:
  11681. break
  11682. fi
  11683. rm -f conftest.err conftest.$ac_ext
  11684. done
  11685. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11686. rm -f conftest.err conftest.$ac_ext
  11687. if $ac_preproc_ok; then :
  11688. else
  11689. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11691. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11692. See \`config.log' for more details" "$LINENO" 5; }
  11693. fi
  11694. ac_ext=c
  11695. ac_cpp='$CPP $CPPFLAGS'
  11696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11699. else
  11700. _lt_caught_CXX_error=yes
  11701. fi
  11702. ac_ext=cpp
  11703. ac_cpp='$CXXCPP $CPPFLAGS'
  11704. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11705. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11706. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11707. archive_cmds_need_lc_CXX=no
  11708. allow_undefined_flag_CXX=
  11709. always_export_symbols_CXX=no
  11710. archive_expsym_cmds_CXX=
  11711. compiler_needs_object_CXX=no
  11712. export_dynamic_flag_spec_CXX=
  11713. hardcode_direct_CXX=no
  11714. hardcode_direct_absolute_CXX=no
  11715. hardcode_libdir_flag_spec_CXX=
  11716. hardcode_libdir_flag_spec_ld_CXX=
  11717. hardcode_libdir_separator_CXX=
  11718. hardcode_minus_L_CXX=no
  11719. hardcode_shlibpath_var_CXX=unsupported
  11720. hardcode_automatic_CXX=no
  11721. inherit_rpath_CXX=no
  11722. module_cmds_CXX=
  11723. module_expsym_cmds_CXX=
  11724. link_all_deplibs_CXX=unknown
  11725. old_archive_cmds_CXX=$old_archive_cmds
  11726. reload_flag_CXX=$reload_flag
  11727. reload_cmds_CXX=$reload_cmds
  11728. no_undefined_flag_CXX=
  11729. whole_archive_flag_spec_CXX=
  11730. enable_shared_with_static_runtimes_CXX=no
  11731. # Source file extension for C++ test sources.
  11732. ac_ext=cpp
  11733. # Object file extension for compiled C++ test sources.
  11734. objext=o
  11735. objext_CXX=$objext
  11736. # No sense in running all these tests if we already determined that
  11737. # the CXX compiler isn't working. Some variables (like enable_shared)
  11738. # are currently assumed to apply to all compilers on this platform,
  11739. # and will be corrupted by setting them based on a non-working compiler.
  11740. if test "$_lt_caught_CXX_error" != yes; then
  11741. # Code to be used in simple compile tests
  11742. lt_simple_compile_test_code="int some_variable = 0;"
  11743. # Code to be used in simple link tests
  11744. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11745. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11746. # If no C compiler was specified, use CC.
  11747. LTCC=${LTCC-"$CC"}
  11748. # If no C compiler flags were specified, use CFLAGS.
  11749. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11750. # Allow CC to be a program name with arguments.
  11751. compiler=$CC
  11752. # save warnings/boilerplate of simple test code
  11753. ac_outfile=conftest.$ac_objext
  11754. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11755. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11756. _lt_compiler_boilerplate=`cat conftest.err`
  11757. $RM conftest*
  11758. ac_outfile=conftest.$ac_objext
  11759. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11760. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11761. _lt_linker_boilerplate=`cat conftest.err`
  11762. $RM -r conftest*
  11763. # Allow CC to be a program name with arguments.
  11764. lt_save_CC=$CC
  11765. lt_save_LD=$LD
  11766. lt_save_GCC=$GCC
  11767. GCC=$GXX
  11768. lt_save_with_gnu_ld=$with_gnu_ld
  11769. lt_save_path_LD=$lt_cv_path_LD
  11770. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11771. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11772. else
  11773. $as_unset lt_cv_prog_gnu_ld
  11774. fi
  11775. if test -n "${lt_cv_path_LDCXX+set}"; then
  11776. lt_cv_path_LD=$lt_cv_path_LDCXX
  11777. else
  11778. $as_unset lt_cv_path_LD
  11779. fi
  11780. test -z "${LDCXX+set}" || LD=$LDCXX
  11781. CC=${CXX-"c++"}
  11782. compiler=$CC
  11783. compiler_CXX=$CC
  11784. for cc_temp in $compiler""; do
  11785. case $cc_temp in
  11786. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11787. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11788. \-*) ;;
  11789. *) break;;
  11790. esac
  11791. done
  11792. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11793. if test -n "$compiler"; then
  11794. # We don't want -fno-exception when compiling C++ code, so set the
  11795. # no_builtin_flag separately
  11796. if test "$GXX" = yes; then
  11797. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11798. else
  11799. lt_prog_compiler_no_builtin_flag_CXX=
  11800. fi
  11801. if test "$GXX" = yes; then
  11802. # Set up default GNU C++ configuration
  11803. # Check whether --with-gnu-ld was given.
  11804. if test "${with_gnu_ld+set}" = set; then :
  11805. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11806. else
  11807. with_gnu_ld=no
  11808. fi
  11809. ac_prog=ld
  11810. if test "$GCC" = yes; then
  11811. # Check if gcc -print-prog-name=ld gives a path.
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11813. $as_echo_n "checking for ld used by $CC... " >&6; }
  11814. case $host in
  11815. *-*-mingw*)
  11816. # gcc leaves a trailing carriage return which upsets mingw
  11817. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11818. *)
  11819. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11820. esac
  11821. case $ac_prog in
  11822. # Accept absolute paths.
  11823. [\\/]* | ?:[\\/]*)
  11824. re_direlt='/[^/][^/]*/\.\./'
  11825. # Canonicalize the pathname of ld
  11826. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11827. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11828. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11829. done
  11830. test -z "$LD" && LD="$ac_prog"
  11831. ;;
  11832. "")
  11833. # If it fails, then pretend we aren't using GCC.
  11834. ac_prog=ld
  11835. ;;
  11836. *)
  11837. # If it is relative, then search for the first ld in PATH.
  11838. with_gnu_ld=unknown
  11839. ;;
  11840. esac
  11841. elif test "$with_gnu_ld" = yes; then
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11843. $as_echo_n "checking for GNU ld... " >&6; }
  11844. else
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11846. $as_echo_n "checking for non-GNU ld... " >&6; }
  11847. fi
  11848. if test "${lt_cv_path_LD+set}" = set; then :
  11849. $as_echo_n "(cached) " >&6
  11850. else
  11851. if test -z "$LD"; then
  11852. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11853. for ac_dir in $PATH; do
  11854. IFS="$lt_save_ifs"
  11855. test -z "$ac_dir" && ac_dir=.
  11856. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11857. lt_cv_path_LD="$ac_dir/$ac_prog"
  11858. # Check to see if the program is GNU ld. I'd rather use --version,
  11859. # but apparently some variants of GNU ld only accept -v.
  11860. # Break only if it was the GNU/non-GNU ld that we prefer.
  11861. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11862. *GNU* | *'with BFD'*)
  11863. test "$with_gnu_ld" != no && break
  11864. ;;
  11865. *)
  11866. test "$with_gnu_ld" != yes && break
  11867. ;;
  11868. esac
  11869. fi
  11870. done
  11871. IFS="$lt_save_ifs"
  11872. else
  11873. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11874. fi
  11875. fi
  11876. LD="$lt_cv_path_LD"
  11877. if test -n "$LD"; then
  11878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11879. $as_echo "$LD" >&6; }
  11880. else
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11882. $as_echo "no" >&6; }
  11883. fi
  11884. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11886. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11887. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  11888. $as_echo_n "(cached) " >&6
  11889. else
  11890. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11891. case `$LD -v 2>&1 </dev/null` in
  11892. *GNU* | *'with BFD'*)
  11893. lt_cv_prog_gnu_ld=yes
  11894. ;;
  11895. *)
  11896. lt_cv_prog_gnu_ld=no
  11897. ;;
  11898. esac
  11899. fi
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11901. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11902. with_gnu_ld=$lt_cv_prog_gnu_ld
  11903. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11904. # archiving commands below assume that GNU ld is being used.
  11905. if test "$with_gnu_ld" = yes; then
  11906. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11907. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11908. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11909. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11910. # If archive_cmds runs LD, not CC, wlarc should be empty
  11911. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11912. # investigate it a little bit more. (MM)
  11913. wlarc='${wl}'
  11914. # ancient GNU ld didn't support --whole-archive et. al.
  11915. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11916. $GREP 'no-whole-archive' > /dev/null; then
  11917. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11918. else
  11919. whole_archive_flag_spec_CXX=
  11920. fi
  11921. else
  11922. with_gnu_ld=no
  11923. wlarc=
  11924. # A generic and very simple default shared library creation
  11925. # command for GNU C++ for the case where it uses the native
  11926. # linker, instead of GNU ld. If possible, this setting should
  11927. # overridden to take advantage of the native linker features on
  11928. # the platform it is being used on.
  11929. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11930. fi
  11931. # Commands to make compiler produce verbose output that lists
  11932. # what "hidden" libraries, object files and flags are used when
  11933. # linking a shared library.
  11934. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11935. else
  11936. GXX=no
  11937. with_gnu_ld=no
  11938. wlarc=
  11939. fi
  11940. # PORTME: fill in a description of your system's C++ link characteristics
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11942. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11943. ld_shlibs_CXX=yes
  11944. case $host_os in
  11945. aix3*)
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. aix[4-9]*)
  11950. if test "$host_cpu" = ia64; then
  11951. # On IA64, the linker does run time linking by default, so we don't
  11952. # have to do anything special.
  11953. aix_use_runtimelinking=no
  11954. exp_sym_flag='-Bexport'
  11955. no_entry_flag=""
  11956. else
  11957. aix_use_runtimelinking=no
  11958. # Test if we are trying to use run time linking or normal
  11959. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11960. # need to do runtime linking.
  11961. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11962. for ld_flag in $LDFLAGS; do
  11963. case $ld_flag in
  11964. *-brtl*)
  11965. aix_use_runtimelinking=yes
  11966. break
  11967. ;;
  11968. esac
  11969. done
  11970. ;;
  11971. esac
  11972. exp_sym_flag='-bexport'
  11973. no_entry_flag='-bnoentry'
  11974. fi
  11975. # When large executables or shared objects are built, AIX ld can
  11976. # have problems creating the table of contents. If linking a library
  11977. # or program results in "error TOC overflow" add -mminimal-toc to
  11978. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11979. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11980. archive_cmds_CXX=''
  11981. hardcode_direct_CXX=yes
  11982. hardcode_direct_absolute_CXX=yes
  11983. hardcode_libdir_separator_CXX=':'
  11984. link_all_deplibs_CXX=yes
  11985. file_list_spec_CXX='${wl}-f,'
  11986. if test "$GXX" = yes; then
  11987. case $host_os in aix4.[012]|aix4.[012].*)
  11988. # We only want to do this on AIX 4.2 and lower, the check
  11989. # below for broken collect2 doesn't work under 4.3+
  11990. collect2name=`${CC} -print-prog-name=collect2`
  11991. if test -f "$collect2name" &&
  11992. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11993. then
  11994. # We have reworked collect2
  11995. :
  11996. else
  11997. # We have old collect2
  11998. hardcode_direct_CXX=unsupported
  11999. # It fails to find uninstalled libraries when the uninstalled
  12000. # path is not listed in the libpath. Setting hardcode_minus_L
  12001. # to unsupported forces relinking
  12002. hardcode_minus_L_CXX=yes
  12003. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12004. hardcode_libdir_separator_CXX=
  12005. fi
  12006. esac
  12007. shared_flag='-shared'
  12008. if test "$aix_use_runtimelinking" = yes; then
  12009. shared_flag="$shared_flag "'${wl}-G'
  12010. fi
  12011. else
  12012. # not using gcc
  12013. if test "$host_cpu" = ia64; then
  12014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12015. # chokes on -Wl,-G. The following line is correct:
  12016. shared_flag='-G'
  12017. else
  12018. if test "$aix_use_runtimelinking" = yes; then
  12019. shared_flag='${wl}-G'
  12020. else
  12021. shared_flag='${wl}-bM:SRE'
  12022. fi
  12023. fi
  12024. fi
  12025. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  12026. # It seems that -bexpall does not export symbols beginning with
  12027. # underscore (_), so it is better to generate a list of symbols to
  12028. # export.
  12029. always_export_symbols_CXX=yes
  12030. if test "$aix_use_runtimelinking" = yes; then
  12031. # Warning - without using the other runtime loading flags (-brtl),
  12032. # -berok will link without error, but may produce a broken library.
  12033. allow_undefined_flag_CXX='-berok'
  12034. # Determine the default libpath from the value encoded in an empty
  12035. # executable.
  12036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12037. /* end confdefs.h. */
  12038. int
  12039. main ()
  12040. {
  12041. ;
  12042. return 0;
  12043. }
  12044. _ACEOF
  12045. if ac_fn_cxx_try_link "$LINENO"; then :
  12046. lt_aix_libpath_sed='
  12047. /Import File Strings/,/^$/ {
  12048. /^0/ {
  12049. s/^0 *\(.*\)$/\1/
  12050. p
  12051. }
  12052. }'
  12053. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12054. # Check for a 64-bit object if we didn't find anything.
  12055. if test -z "$aix_libpath"; then
  12056. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12057. fi
  12058. fi
  12059. rm -f core conftest.err conftest.$ac_objext \
  12060. conftest$ac_exeext conftest.$ac_ext
  12061. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12062. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12063. 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"
  12064. else
  12065. if test "$host_cpu" = ia64; then
  12066. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  12067. allow_undefined_flag_CXX="-z nodefs"
  12068. 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"
  12069. else
  12070. # Determine the default libpath from the value encoded in an
  12071. # empty executable.
  12072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12073. /* end confdefs.h. */
  12074. int
  12075. main ()
  12076. {
  12077. ;
  12078. return 0;
  12079. }
  12080. _ACEOF
  12081. if ac_fn_cxx_try_link "$LINENO"; then :
  12082. lt_aix_libpath_sed='
  12083. /Import File Strings/,/^$/ {
  12084. /^0/ {
  12085. s/^0 *\(.*\)$/\1/
  12086. p
  12087. }
  12088. }'
  12089. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12090. # Check for a 64-bit object if we didn't find anything.
  12091. if test -z "$aix_libpath"; then
  12092. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12093. fi
  12094. fi
  12095. rm -f core conftest.err conftest.$ac_objext \
  12096. conftest$ac_exeext conftest.$ac_ext
  12097. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12098. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12099. # Warning - without using the other run time loading flags,
  12100. # -berok will link without error, but may produce a broken library.
  12101. no_undefined_flag_CXX=' ${wl}-bernotok'
  12102. allow_undefined_flag_CXX=' ${wl}-berok'
  12103. if test "$with_gnu_ld" = yes; then
  12104. # We only use this code for GNU lds that support --whole-archive.
  12105. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12106. else
  12107. # Exported symbols can be pulled into shared objects from archives
  12108. whole_archive_flag_spec_CXX='$convenience'
  12109. fi
  12110. archive_cmds_need_lc_CXX=yes
  12111. # This is similar to how AIX traditionally builds its shared
  12112. # libraries.
  12113. 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'
  12114. fi
  12115. fi
  12116. ;;
  12117. beos*)
  12118. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12119. allow_undefined_flag_CXX=unsupported
  12120. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12121. # support --undefined. This deserves some investigation. FIXME
  12122. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12123. else
  12124. ld_shlibs_CXX=no
  12125. fi
  12126. ;;
  12127. chorus*)
  12128. case $cc_basename in
  12129. *)
  12130. # FIXME: insert proper C++ library support
  12131. ld_shlibs_CXX=no
  12132. ;;
  12133. esac
  12134. ;;
  12135. cygwin* | mingw* | pw32* | cegcc*)
  12136. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12137. # as there is no search path for DLLs.
  12138. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12139. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  12140. allow_undefined_flag_CXX=unsupported
  12141. always_export_symbols_CXX=no
  12142. enable_shared_with_static_runtimes_CXX=yes
  12143. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12144. 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'
  12145. # If the export-symbols file already is a .def file (1st line
  12146. # is EXPORTS), use it as is; otherwise, prepend...
  12147. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12148. cp $export_symbols $output_objdir/$soname.def;
  12149. else
  12150. echo EXPORTS > $output_objdir/$soname.def;
  12151. cat $export_symbols >> $output_objdir/$soname.def;
  12152. fi~
  12153. $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'
  12154. else
  12155. ld_shlibs_CXX=no
  12156. fi
  12157. ;;
  12158. darwin* | rhapsody*)
  12159. archive_cmds_need_lc_CXX=no
  12160. hardcode_direct_CXX=no
  12161. hardcode_automatic_CXX=yes
  12162. hardcode_shlibpath_var_CXX=unsupported
  12163. if test "$lt_cv_ld_force_load" = "yes"; then
  12164. 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\"`'
  12165. else
  12166. whole_archive_flag_spec_CXX=''
  12167. fi
  12168. link_all_deplibs_CXX=yes
  12169. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  12170. case $cc_basename in
  12171. ifort*) _lt_dar_can_shared=yes ;;
  12172. *) _lt_dar_can_shared=$GCC ;;
  12173. esac
  12174. if test "$_lt_dar_can_shared" = "yes"; then
  12175. output_verbose_link_cmd=func_echo_all
  12176. 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}"
  12177. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12178. 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}"
  12179. 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}"
  12180. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12181. 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}"
  12182. 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}"
  12183. fi
  12184. else
  12185. ld_shlibs_CXX=no
  12186. fi
  12187. ;;
  12188. dgux*)
  12189. case $cc_basename in
  12190. ec++*)
  12191. # FIXME: insert proper C++ library support
  12192. ld_shlibs_CXX=no
  12193. ;;
  12194. ghcx*)
  12195. # Green Hills C++ Compiler
  12196. # FIXME: insert proper C++ library support
  12197. ld_shlibs_CXX=no
  12198. ;;
  12199. *)
  12200. # FIXME: insert proper C++ library support
  12201. ld_shlibs_CXX=no
  12202. ;;
  12203. esac
  12204. ;;
  12205. freebsd[12]*)
  12206. # C++ shared libraries reported to be fairly broken before
  12207. # switch to ELF
  12208. ld_shlibs_CXX=no
  12209. ;;
  12210. freebsd-elf*)
  12211. archive_cmds_need_lc_CXX=no
  12212. ;;
  12213. freebsd* | dragonfly*)
  12214. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12215. # conventions
  12216. ld_shlibs_CXX=yes
  12217. ;;
  12218. gnu*)
  12219. ;;
  12220. haiku*)
  12221. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12222. link_all_deplibs_CXX=yes
  12223. ;;
  12224. hpux9*)
  12225. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12226. hardcode_libdir_separator_CXX=:
  12227. export_dynamic_flag_spec_CXX='${wl}-E'
  12228. hardcode_direct_CXX=yes
  12229. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12230. # but as the default
  12231. # location of the library.
  12232. case $cc_basename in
  12233. CC*)
  12234. # FIXME: insert proper C++ library support
  12235. ld_shlibs_CXX=no
  12236. ;;
  12237. aCC*)
  12238. 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'
  12239. # Commands to make compiler produce verbose output that lists
  12240. # what "hidden" libraries, object files and flags are used when
  12241. # linking a shared library.
  12242. #
  12243. # There doesn't appear to be a way to prevent this compiler from
  12244. # explicitly linking system object files so we need to strip them
  12245. # from the output so that they don't get included in the library
  12246. # dependencies.
  12247. 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"'
  12248. ;;
  12249. *)
  12250. if test "$GXX" = yes; then
  12251. 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'
  12252. else
  12253. # FIXME: insert proper C++ library support
  12254. ld_shlibs_CXX=no
  12255. fi
  12256. ;;
  12257. esac
  12258. ;;
  12259. hpux10*|hpux11*)
  12260. if test $with_gnu_ld = no; then
  12261. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12262. hardcode_libdir_separator_CXX=:
  12263. case $host_cpu in
  12264. hppa*64*|ia64*)
  12265. ;;
  12266. *)
  12267. export_dynamic_flag_spec_CXX='${wl}-E'
  12268. ;;
  12269. esac
  12270. fi
  12271. case $host_cpu in
  12272. hppa*64*|ia64*)
  12273. hardcode_direct_CXX=no
  12274. hardcode_shlibpath_var_CXX=no
  12275. ;;
  12276. *)
  12277. hardcode_direct_CXX=yes
  12278. hardcode_direct_absolute_CXX=yes
  12279. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12280. # but as the default
  12281. # location of the library.
  12282. ;;
  12283. esac
  12284. case $cc_basename in
  12285. CC*)
  12286. # FIXME: insert proper C++ library support
  12287. ld_shlibs_CXX=no
  12288. ;;
  12289. aCC*)
  12290. case $host_cpu in
  12291. hppa*64*)
  12292. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12293. ;;
  12294. ia64*)
  12295. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12296. ;;
  12297. *)
  12298. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12299. ;;
  12300. esac
  12301. # Commands to make compiler produce verbose output that lists
  12302. # what "hidden" libraries, object files and flags are used when
  12303. # linking a shared library.
  12304. #
  12305. # There doesn't appear to be a way to prevent this compiler from
  12306. # explicitly linking system object files so we need to strip them
  12307. # from the output so that they don't get included in the library
  12308. # dependencies.
  12309. 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"'
  12310. ;;
  12311. *)
  12312. if test "$GXX" = yes; then
  12313. if test $with_gnu_ld = no; then
  12314. case $host_cpu in
  12315. hppa*64*)
  12316. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12317. ;;
  12318. ia64*)
  12319. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12320. ;;
  12321. *)
  12322. 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'
  12323. ;;
  12324. esac
  12325. fi
  12326. else
  12327. # FIXME: insert proper C++ library support
  12328. ld_shlibs_CXX=no
  12329. fi
  12330. ;;
  12331. esac
  12332. ;;
  12333. interix[3-9]*)
  12334. hardcode_direct_CXX=no
  12335. hardcode_shlibpath_var_CXX=no
  12336. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12337. export_dynamic_flag_spec_CXX='${wl}-E'
  12338. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12339. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12340. # default) and relocated if they conflict, which is a slow very memory
  12341. # consuming and fragmenting process. To avoid this, we pick a random,
  12342. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12343. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12344. 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'
  12345. 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'
  12346. ;;
  12347. irix5* | irix6*)
  12348. case $cc_basename in
  12349. CC*)
  12350. # SGI C++
  12351. 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'
  12352. # Archives containing C++ object files must be created using
  12353. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12354. # necessary to make sure instantiated templates are included
  12355. # in the archive.
  12356. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12357. ;;
  12358. *)
  12359. if test "$GXX" = yes; then
  12360. if test "$with_gnu_ld" = no; then
  12361. 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'
  12362. else
  12363. 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'
  12364. fi
  12365. fi
  12366. link_all_deplibs_CXX=yes
  12367. ;;
  12368. esac
  12369. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12370. hardcode_libdir_separator_CXX=:
  12371. inherit_rpath_CXX=yes
  12372. ;;
  12373. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12374. case $cc_basename in
  12375. KCC*)
  12376. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12377. # KCC will only create a shared library if the output file
  12378. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12379. # to its proper name (with version) after linking.
  12380. 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'
  12381. 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'
  12382. # Commands to make compiler produce verbose output that lists
  12383. # what "hidden" libraries, object files and flags are used when
  12384. # linking a shared library.
  12385. #
  12386. # There doesn't appear to be a way to prevent this compiler from
  12387. # explicitly linking system object files so we need to strip them
  12388. # from the output so that they don't get included in the library
  12389. # dependencies.
  12390. 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"'
  12391. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12392. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12393. # Archives containing C++ object files must be created using
  12394. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12395. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12396. ;;
  12397. icpc* | ecpc* )
  12398. # Intel C++
  12399. with_gnu_ld=yes
  12400. # version 8.0 and above of icpc choke on multiply defined symbols
  12401. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12402. # earlier do not add the objects themselves.
  12403. case `$CC -V 2>&1` in
  12404. *"Version 7."*)
  12405. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12406. 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'
  12407. ;;
  12408. *) # Version 8.0 or newer
  12409. tmp_idyn=
  12410. case $host_cpu in
  12411. ia64*) tmp_idyn=' -i_dynamic';;
  12412. esac
  12413. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12414. 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'
  12415. ;;
  12416. esac
  12417. archive_cmds_need_lc_CXX=no
  12418. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12419. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12420. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12421. ;;
  12422. pgCC* | pgcpp*)
  12423. # Portland Group C++ compiler
  12424. case `$CC -V` in
  12425. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12426. prelink_cmds_CXX='tpldir=Template.dir~
  12427. rm -rf $tpldir~
  12428. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12429. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12430. old_archive_cmds_CXX='tpldir=Template.dir~
  12431. rm -rf $tpldir~
  12432. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12433. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12434. $RANLIB $oldlib'
  12435. archive_cmds_CXX='tpldir=Template.dir~
  12436. rm -rf $tpldir~
  12437. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12438. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12439. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12440. rm -rf $tpldir~
  12441. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12442. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  12443. ;;
  12444. *) # Version 6 and above use weak symbols
  12445. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12446. 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'
  12447. ;;
  12448. esac
  12449. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12450. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12451. 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'
  12452. ;;
  12453. cxx*)
  12454. # Compaq C++
  12455. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12456. 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'
  12457. runpath_var=LD_RUN_PATH
  12458. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12459. hardcode_libdir_separator_CXX=:
  12460. # Commands to make compiler produce verbose output that lists
  12461. # what "hidden" libraries, object files and flags are used when
  12462. # linking a shared library.
  12463. #
  12464. # There doesn't appear to be a way to prevent this compiler from
  12465. # explicitly linking system object files so we need to strip them
  12466. # from the output so that they don't get included in the library
  12467. # dependencies.
  12468. 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'
  12469. ;;
  12470. xl* | mpixl* | bgxl*)
  12471. # IBM XL 8.0 on PPC, with GNU ld
  12472. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12473. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12474. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12475. if test "x$supports_anon_versioning" = xyes; then
  12476. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12477. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12478. echo "local: *; };" >> $output_objdir/$libname.ver~
  12479. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12480. fi
  12481. ;;
  12482. *)
  12483. case `$CC -V 2>&1 | sed 5q` in
  12484. *Sun\ C*)
  12485. # Sun C++ 5.9
  12486. no_undefined_flag_CXX=' -zdefs'
  12487. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12488. 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'
  12489. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12490. 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'
  12491. compiler_needs_object_CXX=yes
  12492. # Not sure whether something based on
  12493. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12494. # would be better.
  12495. output_verbose_link_cmd='func_echo_all'
  12496. # Archives containing C++ object files must be created using
  12497. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12498. # necessary to make sure instantiated templates are included
  12499. # in the archive.
  12500. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12501. ;;
  12502. esac
  12503. ;;
  12504. esac
  12505. ;;
  12506. lynxos*)
  12507. # FIXME: insert proper C++ library support
  12508. ld_shlibs_CXX=no
  12509. ;;
  12510. m88k*)
  12511. # FIXME: insert proper C++ library support
  12512. ld_shlibs_CXX=no
  12513. ;;
  12514. mvs*)
  12515. case $cc_basename in
  12516. cxx*)
  12517. # FIXME: insert proper C++ library support
  12518. ld_shlibs_CXX=no
  12519. ;;
  12520. *)
  12521. # FIXME: insert proper C++ library support
  12522. ld_shlibs_CXX=no
  12523. ;;
  12524. esac
  12525. ;;
  12526. netbsd*)
  12527. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12528. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12529. wlarc=
  12530. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12531. hardcode_direct_CXX=yes
  12532. hardcode_shlibpath_var_CXX=no
  12533. fi
  12534. # Workaround some broken pre-1.5 toolchains
  12535. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12536. ;;
  12537. *nto* | *qnx*)
  12538. ld_shlibs_CXX=yes
  12539. ;;
  12540. openbsd2*)
  12541. # C++ shared libraries are fairly broken
  12542. ld_shlibs_CXX=no
  12543. ;;
  12544. openbsd*)
  12545. if test -f /usr/libexec/ld.so; then
  12546. hardcode_direct_CXX=yes
  12547. hardcode_shlibpath_var_CXX=no
  12548. hardcode_direct_absolute_CXX=yes
  12549. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12550. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12551. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12552. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12553. export_dynamic_flag_spec_CXX='${wl}-E'
  12554. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12555. fi
  12556. output_verbose_link_cmd=func_echo_all
  12557. else
  12558. ld_shlibs_CXX=no
  12559. fi
  12560. ;;
  12561. osf3* | osf4* | osf5*)
  12562. case $cc_basename in
  12563. KCC*)
  12564. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12565. # KCC will only create a shared library if the output file
  12566. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12567. # to its proper name (with version) after linking.
  12568. 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'
  12569. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12570. hardcode_libdir_separator_CXX=:
  12571. # Archives containing C++ object files must be created using
  12572. # the KAI C++ compiler.
  12573. case $host in
  12574. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12575. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12576. esac
  12577. ;;
  12578. RCC*)
  12579. # Rational C++ 2.4.1
  12580. # FIXME: insert proper C++ library support
  12581. ld_shlibs_CXX=no
  12582. ;;
  12583. cxx*)
  12584. case $host in
  12585. osf3*)
  12586. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12587. 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'
  12588. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12589. ;;
  12590. *)
  12591. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12592. 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'
  12593. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12594. echo "-hidden">> $lib.exp~
  12595. $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~
  12596. $RM $lib.exp'
  12597. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12598. ;;
  12599. esac
  12600. hardcode_libdir_separator_CXX=:
  12601. # Commands to make compiler produce verbose output that lists
  12602. # what "hidden" libraries, object files and flags are used when
  12603. # linking a shared library.
  12604. #
  12605. # There doesn't appear to be a way to prevent this compiler from
  12606. # explicitly linking system object files so we need to strip them
  12607. # from the output so that they don't get included in the library
  12608. # dependencies.
  12609. 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"'
  12610. ;;
  12611. *)
  12612. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12613. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12614. case $host in
  12615. osf3*)
  12616. 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'
  12617. ;;
  12618. *)
  12619. 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'
  12620. ;;
  12621. esac
  12622. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12623. hardcode_libdir_separator_CXX=:
  12624. # Commands to make compiler produce verbose output that lists
  12625. # what "hidden" libraries, object files and flags are used when
  12626. # linking a shared library.
  12627. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12628. else
  12629. # FIXME: insert proper C++ library support
  12630. ld_shlibs_CXX=no
  12631. fi
  12632. ;;
  12633. esac
  12634. ;;
  12635. psos*)
  12636. # FIXME: insert proper C++ library support
  12637. ld_shlibs_CXX=no
  12638. ;;
  12639. sunos4*)
  12640. case $cc_basename in
  12641. CC*)
  12642. # Sun C++ 4.x
  12643. # FIXME: insert proper C++ library support
  12644. ld_shlibs_CXX=no
  12645. ;;
  12646. lcc*)
  12647. # Lucid
  12648. # FIXME: insert proper C++ library support
  12649. ld_shlibs_CXX=no
  12650. ;;
  12651. *)
  12652. # FIXME: insert proper C++ library support
  12653. ld_shlibs_CXX=no
  12654. ;;
  12655. esac
  12656. ;;
  12657. solaris*)
  12658. case $cc_basename in
  12659. CC* | sunCC*)
  12660. # Sun C++ 4.2, 5.x and Centerline C++
  12661. archive_cmds_need_lc_CXX=yes
  12662. no_undefined_flag_CXX=' -zdefs'
  12663. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12664. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12665. $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'
  12666. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12667. hardcode_shlibpath_var_CXX=no
  12668. case $host_os in
  12669. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12670. *)
  12671. # The compiler driver will combine and reorder linker options,
  12672. # but understands `-z linker_flag'.
  12673. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12674. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12675. ;;
  12676. esac
  12677. link_all_deplibs_CXX=yes
  12678. output_verbose_link_cmd='func_echo_all'
  12679. # Archives containing C++ object files must be created using
  12680. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12681. # necessary to make sure instantiated templates are included
  12682. # in the archive.
  12683. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12684. ;;
  12685. gcx*)
  12686. # Green Hills C++ Compiler
  12687. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12688. # The C++ compiler must be used to create the archive.
  12689. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12690. ;;
  12691. *)
  12692. # GNU C++ compiler with Solaris linker
  12693. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12694. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12695. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12696. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12697. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12698. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12699. # Commands to make compiler produce verbose output that lists
  12700. # what "hidden" libraries, object files and flags are used when
  12701. # linking a shared library.
  12702. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12703. else
  12704. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12705. # platform.
  12706. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12707. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12708. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12709. # Commands to make compiler produce verbose output that lists
  12710. # what "hidden" libraries, object files and flags are used when
  12711. # linking a shared library.
  12712. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12713. fi
  12714. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12715. case $host_os in
  12716. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12717. *)
  12718. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12719. ;;
  12720. esac
  12721. fi
  12722. ;;
  12723. esac
  12724. ;;
  12725. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12726. no_undefined_flag_CXX='${wl}-z,text'
  12727. archive_cmds_need_lc_CXX=no
  12728. hardcode_shlibpath_var_CXX=no
  12729. runpath_var='LD_RUN_PATH'
  12730. case $cc_basename in
  12731. CC*)
  12732. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12733. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12734. ;;
  12735. *)
  12736. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12737. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12738. ;;
  12739. esac
  12740. ;;
  12741. sysv5* | sco3.2v5* | sco5v6*)
  12742. # Note: We can NOT use -z defs as we might desire, because we do not
  12743. # link with -lc, and that would cause any symbols used from libc to
  12744. # always be unresolved, which means just about no library would
  12745. # ever link correctly. If we're not using GNU ld we use -z text
  12746. # though, which does catch some bad symbols but isn't as heavy-handed
  12747. # as -z defs.
  12748. no_undefined_flag_CXX='${wl}-z,text'
  12749. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12750. archive_cmds_need_lc_CXX=no
  12751. hardcode_shlibpath_var_CXX=no
  12752. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12753. hardcode_libdir_separator_CXX=':'
  12754. link_all_deplibs_CXX=yes
  12755. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12756. runpath_var='LD_RUN_PATH'
  12757. case $cc_basename in
  12758. CC*)
  12759. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12760. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12761. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12762. '"$old_archive_cmds_CXX"
  12763. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12764. '"$reload_cmds_CXX"
  12765. ;;
  12766. *)
  12767. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12768. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12769. ;;
  12770. esac
  12771. ;;
  12772. tandem*)
  12773. case $cc_basename in
  12774. NCC*)
  12775. # NonStop-UX NCC 3.20
  12776. # FIXME: insert proper C++ library support
  12777. ld_shlibs_CXX=no
  12778. ;;
  12779. *)
  12780. # FIXME: insert proper C++ library support
  12781. ld_shlibs_CXX=no
  12782. ;;
  12783. esac
  12784. ;;
  12785. vxworks*)
  12786. # FIXME: insert proper C++ library support
  12787. ld_shlibs_CXX=no
  12788. ;;
  12789. *)
  12790. # FIXME: insert proper C++ library support
  12791. ld_shlibs_CXX=no
  12792. ;;
  12793. esac
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12795. $as_echo "$ld_shlibs_CXX" >&6; }
  12796. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12797. GCC_CXX="$GXX"
  12798. LD_CXX="$LD"
  12799. ## CAVEAT EMPTOR:
  12800. ## There is no encapsulation within the following macros, do not change
  12801. ## the running order or otherwise move them around unless you know exactly
  12802. ## what you are doing...
  12803. # Dependencies to place before and after the object being linked:
  12804. predep_objects_CXX=
  12805. postdep_objects_CXX=
  12806. predeps_CXX=
  12807. postdeps_CXX=
  12808. compiler_lib_search_path_CXX=
  12809. cat > conftest.$ac_ext <<_LT_EOF
  12810. class Foo
  12811. {
  12812. public:
  12813. Foo (void) { a = 0; }
  12814. private:
  12815. int a;
  12816. };
  12817. _LT_EOF
  12818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12819. (eval $ac_compile) 2>&5
  12820. ac_status=$?
  12821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12822. test $ac_status = 0; }; then
  12823. # Parse the compiler output and extract the necessary
  12824. # objects, libraries and library flags.
  12825. # Sentinel used to keep track of whether or not we are before
  12826. # the conftest object file.
  12827. pre_test_object_deps_done=no
  12828. for p in `eval "$output_verbose_link_cmd"`; do
  12829. case $p in
  12830. -L* | -R* | -l*)
  12831. # Some compilers place space between "-{L,R}" and the path.
  12832. # Remove the space.
  12833. if test $p = "-L" ||
  12834. test $p = "-R"; then
  12835. prev=$p
  12836. continue
  12837. else
  12838. prev=
  12839. fi
  12840. if test "$pre_test_object_deps_done" = no; then
  12841. case $p in
  12842. -L* | -R*)
  12843. # Internal compiler library paths should come after those
  12844. # provided the user. The postdeps already come after the
  12845. # user supplied libs so there is no need to process them.
  12846. if test -z "$compiler_lib_search_path_CXX"; then
  12847. compiler_lib_search_path_CXX="${prev}${p}"
  12848. else
  12849. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12850. fi
  12851. ;;
  12852. # The "-l" case would never come before the object being
  12853. # linked, so don't bother handling this case.
  12854. esac
  12855. else
  12856. if test -z "$postdeps_CXX"; then
  12857. postdeps_CXX="${prev}${p}"
  12858. else
  12859. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12860. fi
  12861. fi
  12862. ;;
  12863. *.$objext)
  12864. # This assumes that the test object file only shows up
  12865. # once in the compiler output.
  12866. if test "$p" = "conftest.$objext"; then
  12867. pre_test_object_deps_done=yes
  12868. continue
  12869. fi
  12870. if test "$pre_test_object_deps_done" = no; then
  12871. if test -z "$predep_objects_CXX"; then
  12872. predep_objects_CXX="$p"
  12873. else
  12874. predep_objects_CXX="$predep_objects_CXX $p"
  12875. fi
  12876. else
  12877. if test -z "$postdep_objects_CXX"; then
  12878. postdep_objects_CXX="$p"
  12879. else
  12880. postdep_objects_CXX="$postdep_objects_CXX $p"
  12881. fi
  12882. fi
  12883. ;;
  12884. *) ;; # Ignore the rest.
  12885. esac
  12886. done
  12887. # Clean up.
  12888. rm -f a.out a.exe
  12889. else
  12890. echo "libtool.m4: error: problem compiling CXX test program"
  12891. fi
  12892. $RM -f confest.$objext
  12893. # PORTME: override above test on systems where it is broken
  12894. case $host_os in
  12895. interix[3-9]*)
  12896. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12897. # hack all around it, let's just trust "g++" to DTRT.
  12898. predep_objects_CXX=
  12899. postdep_objects_CXX=
  12900. postdeps_CXX=
  12901. ;;
  12902. linux*)
  12903. case `$CC -V 2>&1 | sed 5q` in
  12904. *Sun\ C*)
  12905. # Sun C++ 5.9
  12906. # The more standards-conforming stlport4 library is
  12907. # incompatible with the Cstd library. Avoid specifying
  12908. # it if it's in CXXFLAGS. Ignore libCrun as
  12909. # -library=stlport4 depends on it.
  12910. case " $CXX $CXXFLAGS " in
  12911. *" -library=stlport4 "*)
  12912. solaris_use_stlport4=yes
  12913. ;;
  12914. esac
  12915. if test "$solaris_use_stlport4" != yes; then
  12916. postdeps_CXX='-library=Cstd -library=Crun'
  12917. fi
  12918. ;;
  12919. esac
  12920. ;;
  12921. solaris*)
  12922. case $cc_basename in
  12923. CC* | sunCC*)
  12924. # The more standards-conforming stlport4 library is
  12925. # incompatible with the Cstd library. Avoid specifying
  12926. # it if it's in CXXFLAGS. Ignore libCrun as
  12927. # -library=stlport4 depends on it.
  12928. case " $CXX $CXXFLAGS " in
  12929. *" -library=stlport4 "*)
  12930. solaris_use_stlport4=yes
  12931. ;;
  12932. esac
  12933. # Adding this requires a known-good setup of shared libraries for
  12934. # Sun compiler versions before 5.6, else PIC objects from an old
  12935. # archive will be linked into the output, leading to subtle bugs.
  12936. if test "$solaris_use_stlport4" != yes; then
  12937. postdeps_CXX='-library=Cstd -library=Crun'
  12938. fi
  12939. ;;
  12940. esac
  12941. ;;
  12942. esac
  12943. case " $postdeps_CXX " in
  12944. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12945. esac
  12946. compiler_lib_search_dirs_CXX=
  12947. if test -n "${compiler_lib_search_path_CXX}"; then
  12948. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12949. fi
  12950. lt_prog_compiler_wl_CXX=
  12951. lt_prog_compiler_pic_CXX=
  12952. lt_prog_compiler_static_CXX=
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12954. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12955. # C++ specific cases for pic, static, wl, etc.
  12956. if test "$GXX" = yes; then
  12957. lt_prog_compiler_wl_CXX='-Wl,'
  12958. lt_prog_compiler_static_CXX='-static'
  12959. case $host_os in
  12960. aix*)
  12961. # All AIX code is PIC.
  12962. if test "$host_cpu" = ia64; then
  12963. # AIX 5 now supports IA64 processor
  12964. lt_prog_compiler_static_CXX='-Bstatic'
  12965. fi
  12966. ;;
  12967. amigaos*)
  12968. case $host_cpu in
  12969. powerpc)
  12970. # see comment about AmigaOS4 .so support
  12971. lt_prog_compiler_pic_CXX='-fPIC'
  12972. ;;
  12973. m68k)
  12974. # FIXME: we need at least 68020 code to build shared libraries, but
  12975. # adding the `-m68020' flag to GCC prevents building anything better,
  12976. # like `-m68040'.
  12977. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12978. ;;
  12979. esac
  12980. ;;
  12981. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12982. # PIC is the default for these OSes.
  12983. ;;
  12984. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12985. # This hack is so that the source file can tell whether it is being
  12986. # built for inclusion in a dll (and should export symbols for example).
  12987. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12988. # (--disable-auto-import) libraries
  12989. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12990. ;;
  12991. darwin* | rhapsody*)
  12992. # PIC is the default on this platform
  12993. # Common symbols not allowed in MH_DYLIB files
  12994. lt_prog_compiler_pic_CXX='-fno-common'
  12995. ;;
  12996. *djgpp*)
  12997. # DJGPP does not support shared libraries at all
  12998. lt_prog_compiler_pic_CXX=
  12999. ;;
  13000. haiku*)
  13001. # PIC is the default for Haiku.
  13002. # The "-static" flag exists, but is broken.
  13003. lt_prog_compiler_static_CXX=
  13004. ;;
  13005. interix[3-9]*)
  13006. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13007. # Instead, we relocate shared libraries at runtime.
  13008. ;;
  13009. sysv4*MP*)
  13010. if test -d /usr/nec; then
  13011. lt_prog_compiler_pic_CXX=-Kconform_pic
  13012. fi
  13013. ;;
  13014. hpux*)
  13015. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13016. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13017. # sets the default TLS model and affects inlining.
  13018. case $host_cpu in
  13019. hppa*64*)
  13020. ;;
  13021. *)
  13022. lt_prog_compiler_pic_CXX='-fPIC'
  13023. ;;
  13024. esac
  13025. ;;
  13026. *qnx* | *nto*)
  13027. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13028. # it will coredump.
  13029. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13030. ;;
  13031. *)
  13032. lt_prog_compiler_pic_CXX='-fPIC'
  13033. ;;
  13034. esac
  13035. else
  13036. case $host_os in
  13037. aix[4-9]*)
  13038. # All AIX code is PIC.
  13039. if test "$host_cpu" = ia64; then
  13040. # AIX 5 now supports IA64 processor
  13041. lt_prog_compiler_static_CXX='-Bstatic'
  13042. else
  13043. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13044. fi
  13045. ;;
  13046. chorus*)
  13047. case $cc_basename in
  13048. cxch68*)
  13049. # Green Hills C++ Compiler
  13050. # _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"
  13051. ;;
  13052. esac
  13053. ;;
  13054. dgux*)
  13055. case $cc_basename in
  13056. ec++*)
  13057. lt_prog_compiler_pic_CXX='-KPIC'
  13058. ;;
  13059. ghcx*)
  13060. # Green Hills C++ Compiler
  13061. lt_prog_compiler_pic_CXX='-pic'
  13062. ;;
  13063. *)
  13064. ;;
  13065. esac
  13066. ;;
  13067. freebsd* | dragonfly*)
  13068. # FreeBSD uses GNU C++
  13069. ;;
  13070. hpux9* | hpux10* | hpux11*)
  13071. case $cc_basename in
  13072. CC*)
  13073. lt_prog_compiler_wl_CXX='-Wl,'
  13074. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13075. if test "$host_cpu" != ia64; then
  13076. lt_prog_compiler_pic_CXX='+Z'
  13077. fi
  13078. ;;
  13079. aCC*)
  13080. lt_prog_compiler_wl_CXX='-Wl,'
  13081. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13082. case $host_cpu in
  13083. hppa*64*|ia64*)
  13084. # +Z the default
  13085. ;;
  13086. *)
  13087. lt_prog_compiler_pic_CXX='+Z'
  13088. ;;
  13089. esac
  13090. ;;
  13091. *)
  13092. ;;
  13093. esac
  13094. ;;
  13095. interix*)
  13096. # This is c89, which is MS Visual C++ (no shared libs)
  13097. # Anyone wants to do a port?
  13098. ;;
  13099. irix5* | irix6* | nonstopux*)
  13100. case $cc_basename in
  13101. CC*)
  13102. lt_prog_compiler_wl_CXX='-Wl,'
  13103. lt_prog_compiler_static_CXX='-non_shared'
  13104. # CC pic flag -KPIC is the default.
  13105. ;;
  13106. *)
  13107. ;;
  13108. esac
  13109. ;;
  13110. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13111. case $cc_basename in
  13112. KCC*)
  13113. # KAI C++ Compiler
  13114. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13115. lt_prog_compiler_pic_CXX='-fPIC'
  13116. ;;
  13117. ecpc* )
  13118. # old Intel C++ for x86_64 which still supported -KPIC.
  13119. lt_prog_compiler_wl_CXX='-Wl,'
  13120. lt_prog_compiler_pic_CXX='-KPIC'
  13121. lt_prog_compiler_static_CXX='-static'
  13122. ;;
  13123. icpc* )
  13124. # Intel C++, used to be incompatible with GCC.
  13125. # ICC 10 doesn't accept -KPIC any more.
  13126. lt_prog_compiler_wl_CXX='-Wl,'
  13127. lt_prog_compiler_pic_CXX='-fPIC'
  13128. lt_prog_compiler_static_CXX='-static'
  13129. ;;
  13130. pgCC* | pgcpp*)
  13131. # Portland Group C++ compiler
  13132. lt_prog_compiler_wl_CXX='-Wl,'
  13133. lt_prog_compiler_pic_CXX='-fpic'
  13134. lt_prog_compiler_static_CXX='-Bstatic'
  13135. ;;
  13136. cxx*)
  13137. # Compaq C++
  13138. # Make sure the PIC flag is empty. It appears that all Alpha
  13139. # Linux and Compaq Tru64 Unix objects are PIC.
  13140. lt_prog_compiler_pic_CXX=
  13141. lt_prog_compiler_static_CXX='-non_shared'
  13142. ;;
  13143. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13144. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13145. lt_prog_compiler_wl_CXX='-Wl,'
  13146. lt_prog_compiler_pic_CXX='-qpic'
  13147. lt_prog_compiler_static_CXX='-qstaticlink'
  13148. ;;
  13149. *)
  13150. case `$CC -V 2>&1 | sed 5q` in
  13151. *Sun\ C*)
  13152. # Sun C++ 5.9
  13153. lt_prog_compiler_pic_CXX='-KPIC'
  13154. lt_prog_compiler_static_CXX='-Bstatic'
  13155. lt_prog_compiler_wl_CXX='-Qoption ld '
  13156. ;;
  13157. esac
  13158. ;;
  13159. esac
  13160. ;;
  13161. lynxos*)
  13162. ;;
  13163. m88k*)
  13164. ;;
  13165. mvs*)
  13166. case $cc_basename in
  13167. cxx*)
  13168. lt_prog_compiler_pic_CXX='-W c,exportall'
  13169. ;;
  13170. *)
  13171. ;;
  13172. esac
  13173. ;;
  13174. netbsd*)
  13175. ;;
  13176. *qnx* | *nto*)
  13177. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13178. # it will coredump.
  13179. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13180. ;;
  13181. osf3* | osf4* | osf5*)
  13182. case $cc_basename in
  13183. KCC*)
  13184. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13185. ;;
  13186. RCC*)
  13187. # Rational C++ 2.4.1
  13188. lt_prog_compiler_pic_CXX='-pic'
  13189. ;;
  13190. cxx*)
  13191. # Digital/Compaq C++
  13192. lt_prog_compiler_wl_CXX='-Wl,'
  13193. # Make sure the PIC flag is empty. It appears that all Alpha
  13194. # Linux and Compaq Tru64 Unix objects are PIC.
  13195. lt_prog_compiler_pic_CXX=
  13196. lt_prog_compiler_static_CXX='-non_shared'
  13197. ;;
  13198. *)
  13199. ;;
  13200. esac
  13201. ;;
  13202. psos*)
  13203. ;;
  13204. solaris*)
  13205. case $cc_basename in
  13206. CC* | sunCC*)
  13207. # Sun C++ 4.2, 5.x and Centerline C++
  13208. lt_prog_compiler_pic_CXX='-KPIC'
  13209. lt_prog_compiler_static_CXX='-Bstatic'
  13210. lt_prog_compiler_wl_CXX='-Qoption ld '
  13211. ;;
  13212. gcx*)
  13213. # Green Hills C++ Compiler
  13214. lt_prog_compiler_pic_CXX='-PIC'
  13215. ;;
  13216. *)
  13217. ;;
  13218. esac
  13219. ;;
  13220. sunos4*)
  13221. case $cc_basename in
  13222. CC*)
  13223. # Sun C++ 4.x
  13224. lt_prog_compiler_pic_CXX='-pic'
  13225. lt_prog_compiler_static_CXX='-Bstatic'
  13226. ;;
  13227. lcc*)
  13228. # Lucid
  13229. lt_prog_compiler_pic_CXX='-pic'
  13230. ;;
  13231. *)
  13232. ;;
  13233. esac
  13234. ;;
  13235. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13236. case $cc_basename in
  13237. CC*)
  13238. lt_prog_compiler_wl_CXX='-Wl,'
  13239. lt_prog_compiler_pic_CXX='-KPIC'
  13240. lt_prog_compiler_static_CXX='-Bstatic'
  13241. ;;
  13242. esac
  13243. ;;
  13244. tandem*)
  13245. case $cc_basename in
  13246. NCC*)
  13247. # NonStop-UX NCC 3.20
  13248. lt_prog_compiler_pic_CXX='-KPIC'
  13249. ;;
  13250. *)
  13251. ;;
  13252. esac
  13253. ;;
  13254. vxworks*)
  13255. ;;
  13256. *)
  13257. lt_prog_compiler_can_build_shared_CXX=no
  13258. ;;
  13259. esac
  13260. fi
  13261. case $host_os in
  13262. # For platforms which do not support PIC, -DPIC is meaningless:
  13263. *djgpp*)
  13264. lt_prog_compiler_pic_CXX=
  13265. ;;
  13266. *)
  13267. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13268. ;;
  13269. esac
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  13271. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  13272. #
  13273. # Check to make sure the PIC flag actually works.
  13274. #
  13275. if test -n "$lt_prog_compiler_pic_CXX"; then
  13276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13277. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13278. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  13279. $as_echo_n "(cached) " >&6
  13280. else
  13281. lt_cv_prog_compiler_pic_works_CXX=no
  13282. ac_outfile=conftest.$ac_objext
  13283. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13284. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  13285. # Insert the option either (1) after the last *FLAGS variable, or
  13286. # (2) before a word containing "conftest.", or (3) at the end.
  13287. # Note that $ac_compile itself does not contain backslashes and begins
  13288. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13289. # The option is referenced via a variable to avoid confusing sed.
  13290. lt_compile=`echo "$ac_compile" | $SED \
  13291. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13292. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13293. -e 's:$: $lt_compiler_flag:'`
  13294. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13295. (eval "$lt_compile" 2>conftest.err)
  13296. ac_status=$?
  13297. cat conftest.err >&5
  13298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13299. if (exit $ac_status) && test -s "$ac_outfile"; then
  13300. # The compiler can only warn and ignore the option if not recognized
  13301. # So say no if there are warnings other than the usual output.
  13302. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13303. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13304. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13305. lt_cv_prog_compiler_pic_works_CXX=yes
  13306. fi
  13307. fi
  13308. $RM conftest*
  13309. fi
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13311. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13312. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  13313. case $lt_prog_compiler_pic_CXX in
  13314. "" | " "*) ;;
  13315. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13316. esac
  13317. else
  13318. lt_prog_compiler_pic_CXX=
  13319. lt_prog_compiler_can_build_shared_CXX=no
  13320. fi
  13321. fi
  13322. #
  13323. # Check to make sure the static flag actually works.
  13324. #
  13325. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13327. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13328. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  13329. $as_echo_n "(cached) " >&6
  13330. else
  13331. lt_cv_prog_compiler_static_works_CXX=no
  13332. save_LDFLAGS="$LDFLAGS"
  13333. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13334. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13335. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13336. # The linker can only warn and ignore the option if not recognized
  13337. # So say no if there are warnings
  13338. if test -s conftest.err; then
  13339. # Append any errors to the config.log.
  13340. cat conftest.err 1>&5
  13341. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13342. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13343. if diff conftest.exp conftest.er2 >/dev/null; then
  13344. lt_cv_prog_compiler_static_works_CXX=yes
  13345. fi
  13346. else
  13347. lt_cv_prog_compiler_static_works_CXX=yes
  13348. fi
  13349. fi
  13350. $RM -r conftest*
  13351. LDFLAGS="$save_LDFLAGS"
  13352. fi
  13353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13354. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13355. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  13356. :
  13357. else
  13358. lt_prog_compiler_static_CXX=
  13359. fi
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13361. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13362. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13363. $as_echo_n "(cached) " >&6
  13364. else
  13365. lt_cv_prog_compiler_c_o_CXX=no
  13366. $RM -r conftest 2>/dev/null
  13367. mkdir conftest
  13368. cd conftest
  13369. mkdir out
  13370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13371. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13372. # Insert the option either (1) after the last *FLAGS variable, or
  13373. # (2) before a word containing "conftest.", or (3) at the end.
  13374. # Note that $ac_compile itself does not contain backslashes and begins
  13375. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13376. lt_compile=`echo "$ac_compile" | $SED \
  13377. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13378. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13379. -e 's:$: $lt_compiler_flag:'`
  13380. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13381. (eval "$lt_compile" 2>out/conftest.err)
  13382. ac_status=$?
  13383. cat out/conftest.err >&5
  13384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13385. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13386. then
  13387. # The compiler can only warn and ignore the option if not recognized
  13388. # So say no if there are warnings
  13389. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13390. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13391. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13392. lt_cv_prog_compiler_c_o_CXX=yes
  13393. fi
  13394. fi
  13395. chmod u+w . 2>&5
  13396. $RM conftest*
  13397. # SGI C++ compiler will create directory out/ii_files/ for
  13398. # template instantiation
  13399. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13400. $RM out/* && rmdir out
  13401. cd ..
  13402. $RM -r conftest
  13403. $RM conftest*
  13404. fi
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13406. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13408. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13409. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13410. $as_echo_n "(cached) " >&6
  13411. else
  13412. lt_cv_prog_compiler_c_o_CXX=no
  13413. $RM -r conftest 2>/dev/null
  13414. mkdir conftest
  13415. cd conftest
  13416. mkdir out
  13417. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13418. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13419. # Insert the option either (1) after the last *FLAGS variable, or
  13420. # (2) before a word containing "conftest.", or (3) at the end.
  13421. # Note that $ac_compile itself does not contain backslashes and begins
  13422. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13423. lt_compile=`echo "$ac_compile" | $SED \
  13424. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13425. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13426. -e 's:$: $lt_compiler_flag:'`
  13427. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13428. (eval "$lt_compile" 2>out/conftest.err)
  13429. ac_status=$?
  13430. cat out/conftest.err >&5
  13431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13432. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13433. then
  13434. # The compiler can only warn and ignore the option if not recognized
  13435. # So say no if there are warnings
  13436. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13437. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13438. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13439. lt_cv_prog_compiler_c_o_CXX=yes
  13440. fi
  13441. fi
  13442. chmod u+w . 2>&5
  13443. $RM conftest*
  13444. # SGI C++ compiler will create directory out/ii_files/ for
  13445. # template instantiation
  13446. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13447. $RM out/* && rmdir out
  13448. cd ..
  13449. $RM -r conftest
  13450. $RM conftest*
  13451. fi
  13452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13453. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13454. hard_links="nottested"
  13455. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13456. # do not overwrite the value of need_locks provided by the user
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13458. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13459. hard_links=yes
  13460. $RM conftest*
  13461. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13462. touch conftest.a
  13463. ln conftest.a conftest.b 2>&5 || hard_links=no
  13464. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13466. $as_echo "$hard_links" >&6; }
  13467. if test "$hard_links" = no; then
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13469. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13470. need_locks=warn
  13471. fi
  13472. else
  13473. need_locks=no
  13474. fi
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13476. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13477. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13478. case $host_os in
  13479. aix[4-9]*)
  13480. # If we're using GNU nm, then we don't want the "-C" option.
  13481. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13482. # Also, AIX nm treats weak defined symbols like other global defined
  13483. # symbols, whereas GNU nm marks them as "W".
  13484. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13485. 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'
  13486. else
  13487. 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'
  13488. fi
  13489. ;;
  13490. pw32*)
  13491. export_symbols_cmds_CXX="$ltdll_cmds"
  13492. ;;
  13493. cygwin* | mingw* | cegcc*)
  13494. 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'
  13495. ;;
  13496. *)
  13497. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13498. ;;
  13499. esac
  13500. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13502. $as_echo "$ld_shlibs_CXX" >&6; }
  13503. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13504. with_gnu_ld_CXX=$with_gnu_ld
  13505. #
  13506. # Do we need to explicitly link libc?
  13507. #
  13508. case "x$archive_cmds_need_lc_CXX" in
  13509. x|xyes)
  13510. # Assume -lc should be added
  13511. archive_cmds_need_lc_CXX=yes
  13512. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13513. case $archive_cmds_CXX in
  13514. *'~'*)
  13515. # FIXME: we may have to deal with multi-command sequences.
  13516. ;;
  13517. '$CC '*)
  13518. # Test whether the compiler implicitly links with -lc since on some
  13519. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13520. # to ld, don't add -lc before -lgcc.
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13522. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13523. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  13524. $as_echo_n "(cached) " >&6
  13525. else
  13526. $RM conftest*
  13527. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13529. (eval $ac_compile) 2>&5
  13530. ac_status=$?
  13531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13532. test $ac_status = 0; } 2>conftest.err; then
  13533. soname=conftest
  13534. lib=conftest
  13535. libobjs=conftest.$ac_objext
  13536. deplibs=
  13537. wl=$lt_prog_compiler_wl_CXX
  13538. pic_flag=$lt_prog_compiler_pic_CXX
  13539. compiler_flags=-v
  13540. linker_flags=-v
  13541. verstring=
  13542. output_objdir=.
  13543. libname=conftest
  13544. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13545. allow_undefined_flag_CXX=
  13546. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13547. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13548. ac_status=$?
  13549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13550. test $ac_status = 0; }
  13551. then
  13552. lt_cv_archive_cmds_need_lc_CXX=no
  13553. else
  13554. lt_cv_archive_cmds_need_lc_CXX=yes
  13555. fi
  13556. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13557. else
  13558. cat conftest.err 1>&5
  13559. fi
  13560. $RM conftest*
  13561. fi
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13563. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13564. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13565. ;;
  13566. esac
  13567. fi
  13568. ;;
  13569. esac
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13571. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13572. library_names_spec=
  13573. libname_spec='lib$name'
  13574. soname_spec=
  13575. shrext_cmds=".so"
  13576. postinstall_cmds=
  13577. postuninstall_cmds=
  13578. finish_cmds=
  13579. finish_eval=
  13580. shlibpath_var=
  13581. shlibpath_overrides_runpath=unknown
  13582. version_type=none
  13583. dynamic_linker="$host_os ld.so"
  13584. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13585. need_lib_prefix=unknown
  13586. hardcode_into_libs=no
  13587. # when you set need_version to no, make sure it does not cause -set_version
  13588. # flags to be left without arguments
  13589. need_version=unknown
  13590. case $host_os in
  13591. aix3*)
  13592. version_type=linux
  13593. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13594. shlibpath_var=LIBPATH
  13595. # AIX 3 has no versioning support, so we append a major version to the name.
  13596. soname_spec='${libname}${release}${shared_ext}$major'
  13597. ;;
  13598. aix[4-9]*)
  13599. version_type=linux
  13600. need_lib_prefix=no
  13601. need_version=no
  13602. hardcode_into_libs=yes
  13603. if test "$host_cpu" = ia64; then
  13604. # AIX 5 supports IA64
  13605. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13606. shlibpath_var=LD_LIBRARY_PATH
  13607. else
  13608. # With GCC up to 2.95.x, collect2 would create an import file
  13609. # for dependence libraries. The import file would start with
  13610. # the line `#! .'. This would cause the generated library to
  13611. # depend on `.', always an invalid library. This was fixed in
  13612. # development snapshots of GCC prior to 3.0.
  13613. case $host_os in
  13614. aix4 | aix4.[01] | aix4.[01].*)
  13615. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13616. echo ' yes '
  13617. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13618. :
  13619. else
  13620. can_build_shared=no
  13621. fi
  13622. ;;
  13623. esac
  13624. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13625. # soname into executable. Probably we can add versioning support to
  13626. # collect2, so additional links can be useful in future.
  13627. if test "$aix_use_runtimelinking" = yes; then
  13628. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13629. # instead of lib<name>.a to let people know that these are not
  13630. # typical AIX shared libraries.
  13631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13632. else
  13633. # We preserve .a as extension for shared libraries through AIX4.2
  13634. # and later when we are not doing run time linking.
  13635. library_names_spec='${libname}${release}.a $libname.a'
  13636. soname_spec='${libname}${release}${shared_ext}$major'
  13637. fi
  13638. shlibpath_var=LIBPATH
  13639. fi
  13640. ;;
  13641. amigaos*)
  13642. case $host_cpu in
  13643. powerpc)
  13644. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13645. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13647. ;;
  13648. m68k)
  13649. library_names_spec='$libname.ixlibrary $libname.a'
  13650. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13651. 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'
  13652. ;;
  13653. esac
  13654. ;;
  13655. beos*)
  13656. library_names_spec='${libname}${shared_ext}'
  13657. dynamic_linker="$host_os ld.so"
  13658. shlibpath_var=LIBRARY_PATH
  13659. ;;
  13660. bsdi[45]*)
  13661. version_type=linux
  13662. need_version=no
  13663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13664. soname_spec='${libname}${release}${shared_ext}$major'
  13665. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13666. shlibpath_var=LD_LIBRARY_PATH
  13667. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13668. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13669. # the default ld.so.conf also contains /usr/contrib/lib and
  13670. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13671. # libtool to hard-code these into programs
  13672. ;;
  13673. cygwin* | mingw* | pw32* | cegcc*)
  13674. version_type=windows
  13675. shrext_cmds=".dll"
  13676. need_version=no
  13677. need_lib_prefix=no
  13678. case $GCC,$host_os in
  13679. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13680. library_names_spec='$libname.dll.a'
  13681. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13682. postinstall_cmds='base_file=`basename \${file}`~
  13683. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13684. dldir=$destdir/`dirname \$dlpath`~
  13685. test -d \$dldir || mkdir -p \$dldir~
  13686. $install_prog $dir/$dlname \$dldir/$dlname~
  13687. chmod a+x \$dldir/$dlname~
  13688. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13689. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13690. fi'
  13691. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13692. dlpath=$dir/\$dldll~
  13693. $RM \$dlpath'
  13694. shlibpath_overrides_runpath=yes
  13695. case $host_os in
  13696. cygwin*)
  13697. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13698. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13699. ;;
  13700. mingw* | cegcc*)
  13701. # MinGW DLLs use traditional 'lib' prefix
  13702. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13703. ;;
  13704. pw32*)
  13705. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13706. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13707. ;;
  13708. esac
  13709. ;;
  13710. *)
  13711. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13712. ;;
  13713. esac
  13714. dynamic_linker='Win32 ld.exe'
  13715. # FIXME: first we should search . and the directory the executable is in
  13716. shlibpath_var=PATH
  13717. ;;
  13718. darwin* | rhapsody*)
  13719. dynamic_linker="$host_os dyld"
  13720. version_type=darwin
  13721. need_lib_prefix=no
  13722. need_version=no
  13723. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13724. soname_spec='${libname}${release}${major}$shared_ext'
  13725. shlibpath_overrides_runpath=yes
  13726. shlibpath_var=DYLD_LIBRARY_PATH
  13727. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13728. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13729. ;;
  13730. dgux*)
  13731. version_type=linux
  13732. need_lib_prefix=no
  13733. need_version=no
  13734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13735. soname_spec='${libname}${release}${shared_ext}$major'
  13736. shlibpath_var=LD_LIBRARY_PATH
  13737. ;;
  13738. freebsd1*)
  13739. dynamic_linker=no
  13740. ;;
  13741. freebsd* | dragonfly*)
  13742. # DragonFly does not have aout. When/if they implement a new
  13743. # versioning mechanism, adjust this.
  13744. if test -x /usr/bin/objformat; then
  13745. objformat=`/usr/bin/objformat`
  13746. else
  13747. case $host_os in
  13748. freebsd[123]*) objformat=aout ;;
  13749. *) objformat=elf ;;
  13750. esac
  13751. fi
  13752. version_type=freebsd-$objformat
  13753. case $version_type in
  13754. freebsd-elf*)
  13755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13756. need_version=no
  13757. need_lib_prefix=no
  13758. ;;
  13759. freebsd-*)
  13760. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13761. need_version=yes
  13762. ;;
  13763. esac
  13764. shlibpath_var=LD_LIBRARY_PATH
  13765. case $host_os in
  13766. freebsd2*)
  13767. shlibpath_overrides_runpath=yes
  13768. ;;
  13769. freebsd3.[01]* | freebsdelf3.[01]*)
  13770. shlibpath_overrides_runpath=yes
  13771. hardcode_into_libs=yes
  13772. ;;
  13773. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13774. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13775. shlibpath_overrides_runpath=no
  13776. hardcode_into_libs=yes
  13777. ;;
  13778. *) # from 4.6 on, and DragonFly
  13779. shlibpath_overrides_runpath=yes
  13780. hardcode_into_libs=yes
  13781. ;;
  13782. esac
  13783. ;;
  13784. gnu*)
  13785. version_type=linux
  13786. need_lib_prefix=no
  13787. need_version=no
  13788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13789. soname_spec='${libname}${release}${shared_ext}$major'
  13790. shlibpath_var=LD_LIBRARY_PATH
  13791. hardcode_into_libs=yes
  13792. ;;
  13793. haiku*)
  13794. version_type=linux
  13795. need_lib_prefix=no
  13796. need_version=no
  13797. dynamic_linker="$host_os runtime_loader"
  13798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13799. soname_spec='${libname}${release}${shared_ext}$major'
  13800. shlibpath_var=LIBRARY_PATH
  13801. shlibpath_overrides_runpath=yes
  13802. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13803. hardcode_into_libs=yes
  13804. ;;
  13805. hpux9* | hpux10* | hpux11*)
  13806. # Give a soname corresponding to the major version so that dld.sl refuses to
  13807. # link against other versions.
  13808. version_type=sunos
  13809. need_lib_prefix=no
  13810. need_version=no
  13811. case $host_cpu in
  13812. ia64*)
  13813. shrext_cmds='.so'
  13814. hardcode_into_libs=yes
  13815. dynamic_linker="$host_os dld.so"
  13816. shlibpath_var=LD_LIBRARY_PATH
  13817. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13819. soname_spec='${libname}${release}${shared_ext}$major'
  13820. if test "X$HPUX_IA64_MODE" = X32; then
  13821. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13822. else
  13823. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13824. fi
  13825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13826. ;;
  13827. hppa*64*)
  13828. shrext_cmds='.sl'
  13829. hardcode_into_libs=yes
  13830. dynamic_linker="$host_os dld.sl"
  13831. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13832. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13834. soname_spec='${libname}${release}${shared_ext}$major'
  13835. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13836. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13837. ;;
  13838. *)
  13839. shrext_cmds='.sl'
  13840. dynamic_linker="$host_os dld.sl"
  13841. shlibpath_var=SHLIB_PATH
  13842. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13844. soname_spec='${libname}${release}${shared_ext}$major'
  13845. ;;
  13846. esac
  13847. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13848. postinstall_cmds='chmod 555 $lib'
  13849. # or fails outright, so override atomically:
  13850. install_override_mode=555
  13851. ;;
  13852. interix[3-9]*)
  13853. version_type=linux
  13854. need_lib_prefix=no
  13855. need_version=no
  13856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13857. soname_spec='${libname}${release}${shared_ext}$major'
  13858. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13859. shlibpath_var=LD_LIBRARY_PATH
  13860. shlibpath_overrides_runpath=no
  13861. hardcode_into_libs=yes
  13862. ;;
  13863. irix5* | irix6* | nonstopux*)
  13864. case $host_os in
  13865. nonstopux*) version_type=nonstopux ;;
  13866. *)
  13867. if test "$lt_cv_prog_gnu_ld" = yes; then
  13868. version_type=linux
  13869. else
  13870. version_type=irix
  13871. fi ;;
  13872. esac
  13873. need_lib_prefix=no
  13874. need_version=no
  13875. soname_spec='${libname}${release}${shared_ext}$major'
  13876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13877. case $host_os in
  13878. irix5* | nonstopux*)
  13879. libsuff= shlibsuff=
  13880. ;;
  13881. *)
  13882. case $LD in # libtool.m4 will add one of these switches to LD
  13883. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13884. libsuff= shlibsuff= libmagic=32-bit;;
  13885. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13886. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13887. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13888. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13889. *) libsuff= shlibsuff= libmagic=never-match;;
  13890. esac
  13891. ;;
  13892. esac
  13893. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13894. shlibpath_overrides_runpath=no
  13895. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13896. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13897. hardcode_into_libs=yes
  13898. ;;
  13899. # No shared lib support for Linux oldld, aout, or coff.
  13900. linux*oldld* | linux*aout* | linux*coff*)
  13901. dynamic_linker=no
  13902. ;;
  13903. # This must be Linux ELF.
  13904. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13905. version_type=linux
  13906. need_lib_prefix=no
  13907. need_version=no
  13908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13909. soname_spec='${libname}${release}${shared_ext}$major'
  13910. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13911. shlibpath_var=LD_LIBRARY_PATH
  13912. shlibpath_overrides_runpath=no
  13913. # Some binutils ld are patched to set DT_RUNPATH
  13914. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  13915. $as_echo_n "(cached) " >&6
  13916. else
  13917. lt_cv_shlibpath_overrides_runpath=no
  13918. save_LDFLAGS=$LDFLAGS
  13919. save_libdir=$libdir
  13920. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13921. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13923. /* end confdefs.h. */
  13924. int
  13925. main ()
  13926. {
  13927. ;
  13928. return 0;
  13929. }
  13930. _ACEOF
  13931. if ac_fn_cxx_try_link "$LINENO"; then :
  13932. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13933. lt_cv_shlibpath_overrides_runpath=yes
  13934. fi
  13935. fi
  13936. rm -f core conftest.err conftest.$ac_objext \
  13937. conftest$ac_exeext conftest.$ac_ext
  13938. LDFLAGS=$save_LDFLAGS
  13939. libdir=$save_libdir
  13940. fi
  13941. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13942. # This implies no fast_install, which is unacceptable.
  13943. # Some rework will be needed to allow for fast_install
  13944. # before this can be enabled.
  13945. hardcode_into_libs=yes
  13946. # Add ABI-specific directories to the system library path.
  13947. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13948. # Append ld.so.conf contents to the search path
  13949. if test -f /etc/ld.so.conf; then
  13950. 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' ' '`
  13951. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13952. fi
  13953. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13954. # powerpc, because MkLinux only supported shared libraries with the
  13955. # GNU dynamic linker. Since this was broken with cross compilers,
  13956. # most powerpc-linux boxes support dynamic linking these days and
  13957. # people can always --disable-shared, the test was removed, and we
  13958. # assume the GNU/Linux dynamic linker is in use.
  13959. dynamic_linker='GNU/Linux ld.so'
  13960. ;;
  13961. netbsd*)
  13962. version_type=sunos
  13963. need_lib_prefix=no
  13964. need_version=no
  13965. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13967. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13968. dynamic_linker='NetBSD (a.out) ld.so'
  13969. else
  13970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13971. soname_spec='${libname}${release}${shared_ext}$major'
  13972. dynamic_linker='NetBSD ld.elf_so'
  13973. fi
  13974. shlibpath_var=LD_LIBRARY_PATH
  13975. shlibpath_overrides_runpath=yes
  13976. hardcode_into_libs=yes
  13977. ;;
  13978. newsos6)
  13979. version_type=linux
  13980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13981. shlibpath_var=LD_LIBRARY_PATH
  13982. shlibpath_overrides_runpath=yes
  13983. ;;
  13984. *nto* | *qnx*)
  13985. version_type=qnx
  13986. need_lib_prefix=no
  13987. need_version=no
  13988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13989. soname_spec='${libname}${release}${shared_ext}$major'
  13990. shlibpath_var=LD_LIBRARY_PATH
  13991. shlibpath_overrides_runpath=no
  13992. hardcode_into_libs=yes
  13993. dynamic_linker='ldqnx.so'
  13994. ;;
  13995. openbsd*)
  13996. version_type=sunos
  13997. sys_lib_dlsearch_path_spec="/usr/lib"
  13998. need_lib_prefix=no
  13999. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14000. case $host_os in
  14001. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14002. *) need_version=no ;;
  14003. esac
  14004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14006. shlibpath_var=LD_LIBRARY_PATH
  14007. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14008. case $host_os in
  14009. openbsd2.[89] | openbsd2.[89].*)
  14010. shlibpath_overrides_runpath=no
  14011. ;;
  14012. *)
  14013. shlibpath_overrides_runpath=yes
  14014. ;;
  14015. esac
  14016. else
  14017. shlibpath_overrides_runpath=yes
  14018. fi
  14019. ;;
  14020. os2*)
  14021. libname_spec='$name'
  14022. shrext_cmds=".dll"
  14023. need_lib_prefix=no
  14024. library_names_spec='$libname${shared_ext} $libname.a'
  14025. dynamic_linker='OS/2 ld.exe'
  14026. shlibpath_var=LIBPATH
  14027. ;;
  14028. osf3* | osf4* | osf5*)
  14029. version_type=osf
  14030. need_lib_prefix=no
  14031. need_version=no
  14032. soname_spec='${libname}${release}${shared_ext}$major'
  14033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14034. shlibpath_var=LD_LIBRARY_PATH
  14035. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14036. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14037. ;;
  14038. rdos*)
  14039. dynamic_linker=no
  14040. ;;
  14041. solaris*)
  14042. version_type=linux
  14043. need_lib_prefix=no
  14044. need_version=no
  14045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14046. soname_spec='${libname}${release}${shared_ext}$major'
  14047. shlibpath_var=LD_LIBRARY_PATH
  14048. shlibpath_overrides_runpath=yes
  14049. hardcode_into_libs=yes
  14050. # ldd complains unless libraries are executable
  14051. postinstall_cmds='chmod +x $lib'
  14052. ;;
  14053. sunos4*)
  14054. version_type=sunos
  14055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14056. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14057. shlibpath_var=LD_LIBRARY_PATH
  14058. shlibpath_overrides_runpath=yes
  14059. if test "$with_gnu_ld" = yes; then
  14060. need_lib_prefix=no
  14061. fi
  14062. need_version=yes
  14063. ;;
  14064. sysv4 | sysv4.3*)
  14065. version_type=linux
  14066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14067. soname_spec='${libname}${release}${shared_ext}$major'
  14068. shlibpath_var=LD_LIBRARY_PATH
  14069. case $host_vendor in
  14070. sni)
  14071. shlibpath_overrides_runpath=no
  14072. need_lib_prefix=no
  14073. runpath_var=LD_RUN_PATH
  14074. ;;
  14075. siemens)
  14076. need_lib_prefix=no
  14077. ;;
  14078. motorola)
  14079. need_lib_prefix=no
  14080. need_version=no
  14081. shlibpath_overrides_runpath=no
  14082. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14083. ;;
  14084. esac
  14085. ;;
  14086. sysv4*MP*)
  14087. if test -d /usr/nec ;then
  14088. version_type=linux
  14089. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14090. soname_spec='$libname${shared_ext}.$major'
  14091. shlibpath_var=LD_LIBRARY_PATH
  14092. fi
  14093. ;;
  14094. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14095. version_type=freebsd-elf
  14096. need_lib_prefix=no
  14097. need_version=no
  14098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14099. soname_spec='${libname}${release}${shared_ext}$major'
  14100. shlibpath_var=LD_LIBRARY_PATH
  14101. shlibpath_overrides_runpath=yes
  14102. hardcode_into_libs=yes
  14103. if test "$with_gnu_ld" = yes; then
  14104. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14105. else
  14106. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14107. case $host_os in
  14108. sco3.2v5*)
  14109. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14110. ;;
  14111. esac
  14112. fi
  14113. sys_lib_dlsearch_path_spec='/usr/lib'
  14114. ;;
  14115. tpf*)
  14116. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14117. version_type=linux
  14118. need_lib_prefix=no
  14119. need_version=no
  14120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14121. shlibpath_var=LD_LIBRARY_PATH
  14122. shlibpath_overrides_runpath=no
  14123. hardcode_into_libs=yes
  14124. ;;
  14125. uts4*)
  14126. version_type=linux
  14127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14128. soname_spec='${libname}${release}${shared_ext}$major'
  14129. shlibpath_var=LD_LIBRARY_PATH
  14130. ;;
  14131. *)
  14132. dynamic_linker=no
  14133. ;;
  14134. esac
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14136. $as_echo "$dynamic_linker" >&6; }
  14137. test "$dynamic_linker" = no && can_build_shared=no
  14138. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14139. if test "$GCC" = yes; then
  14140. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14141. fi
  14142. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14143. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14144. fi
  14145. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14146. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14147. fi
  14148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14149. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14150. hardcode_action_CXX=
  14151. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14152. test -n "$runpath_var_CXX" ||
  14153. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  14154. # We can hardcode non-existent directories.
  14155. if test "$hardcode_direct_CXX" != no &&
  14156. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14157. # have to relink, otherwise we might link with an installed library
  14158. # when we should be linking with a yet-to-be-installed one
  14159. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  14160. test "$hardcode_minus_L_CXX" != no; then
  14161. # Linking always hardcodes the temporary library directory.
  14162. hardcode_action_CXX=relink
  14163. else
  14164. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14165. hardcode_action_CXX=immediate
  14166. fi
  14167. else
  14168. # We cannot hardcode anything, or else we can only hardcode existing
  14169. # directories.
  14170. hardcode_action_CXX=unsupported
  14171. fi
  14172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14173. $as_echo "$hardcode_action_CXX" >&6; }
  14174. if test "$hardcode_action_CXX" = relink ||
  14175. test "$inherit_rpath_CXX" = yes; then
  14176. # Fast installation is not supported
  14177. enable_fast_install=no
  14178. elif test "$shlibpath_overrides_runpath" = yes ||
  14179. test "$enable_shared" = no; then
  14180. # Fast installation is not necessary
  14181. enable_fast_install=needless
  14182. fi
  14183. fi # test -n "$compiler"
  14184. CC=$lt_save_CC
  14185. LDCXX=$LD
  14186. LD=$lt_save_LD
  14187. GCC=$lt_save_GCC
  14188. with_gnu_ld=$lt_save_with_gnu_ld
  14189. lt_cv_path_LDCXX=$lt_cv_path_LD
  14190. lt_cv_path_LD=$lt_save_path_LD
  14191. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14192. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14193. fi # test "$_lt_caught_CXX_error" != yes
  14194. ac_ext=c
  14195. ac_cpp='$CPP $CPPFLAGS'
  14196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14199. ac_config_commands="$ac_config_commands libtool"
  14200. # Only expand once:
  14201. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14202. if test -n "$ac_tool_prefix"; then
  14203. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14204. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14206. $as_echo_n "checking for $ac_word... " >&6; }
  14207. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  14208. $as_echo_n "(cached) " >&6
  14209. else
  14210. case $PKG_CONFIG in
  14211. [\\/]* | ?:[\\/]*)
  14212. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14213. ;;
  14214. *)
  14215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14216. for as_dir in $PATH
  14217. do
  14218. IFS=$as_save_IFS
  14219. test -z "$as_dir" && as_dir=.
  14220. for ac_exec_ext in '' $ac_executable_extensions; do
  14221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14222. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14224. break 2
  14225. fi
  14226. done
  14227. done
  14228. IFS=$as_save_IFS
  14229. ;;
  14230. esac
  14231. fi
  14232. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14233. if test -n "$PKG_CONFIG"; then
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14235. $as_echo "$PKG_CONFIG" >&6; }
  14236. else
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14238. $as_echo "no" >&6; }
  14239. fi
  14240. fi
  14241. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14242. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14243. # Extract the first word of "pkg-config", so it can be a program name with args.
  14244. set dummy pkg-config; ac_word=$2
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14246. $as_echo_n "checking for $ac_word... " >&6; }
  14247. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  14248. $as_echo_n "(cached) " >&6
  14249. else
  14250. case $ac_pt_PKG_CONFIG in
  14251. [\\/]* | ?:[\\/]*)
  14252. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14253. ;;
  14254. *)
  14255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14256. for as_dir in $PATH
  14257. do
  14258. IFS=$as_save_IFS
  14259. test -z "$as_dir" && as_dir=.
  14260. for ac_exec_ext in '' $ac_executable_extensions; do
  14261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14262. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14264. break 2
  14265. fi
  14266. done
  14267. done
  14268. IFS=$as_save_IFS
  14269. ;;
  14270. esac
  14271. fi
  14272. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14273. if test -n "$ac_pt_PKG_CONFIG"; then
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14275. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14276. else
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14278. $as_echo "no" >&6; }
  14279. fi
  14280. if test "x$ac_pt_PKG_CONFIG" = x; then
  14281. PKG_CONFIG=""
  14282. else
  14283. case $cross_compiling:$ac_tool_warned in
  14284. yes:)
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14287. ac_tool_warned=yes ;;
  14288. esac
  14289. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14290. fi
  14291. else
  14292. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14293. fi
  14294. fi
  14295. if test -n "$PKG_CONFIG"; then
  14296. _pkg_min_version=0.9.0
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14298. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14299. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14301. $as_echo "yes" >&6; }
  14302. else
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14304. $as_echo "no" >&6; }
  14305. PKG_CONFIG=""
  14306. fi
  14307. fi
  14308. pkg_failed=no
  14309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRARIES" >&5
  14310. $as_echo_n "checking for LIBRARIES... " >&6; }
  14311. if test -n "$LIBRARIES_CFLAGS"; then
  14312. pkg_cv_LIBRARIES_CFLAGS="$LIBRARIES_CFLAGS"
  14313. elif test -n "$PKG_CONFIG"; then
  14314. if test -n "$PKG_CONFIG" && \
  14315. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl SDL_image gl glu x11 zlib\""; } >&5
  14316. ($PKG_CONFIG --exists --print-errors "sdl SDL_image gl glu x11 zlib") 2>&5
  14317. ac_status=$?
  14318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14319. test $ac_status = 0; }; then
  14320. pkg_cv_LIBRARIES_CFLAGS=`$PKG_CONFIG --cflags "sdl SDL_image gl glu x11 zlib" 2>/dev/null`
  14321. else
  14322. pkg_failed=yes
  14323. fi
  14324. else
  14325. pkg_failed=untried
  14326. fi
  14327. if test -n "$LIBRARIES_LIBS"; then
  14328. pkg_cv_LIBRARIES_LIBS="$LIBRARIES_LIBS"
  14329. elif test -n "$PKG_CONFIG"; then
  14330. if test -n "$PKG_CONFIG" && \
  14331. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl SDL_image gl glu x11 zlib\""; } >&5
  14332. ($PKG_CONFIG --exists --print-errors "sdl SDL_image gl glu x11 zlib") 2>&5
  14333. ac_status=$?
  14334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14335. test $ac_status = 0; }; then
  14336. pkg_cv_LIBRARIES_LIBS=`$PKG_CONFIG --libs "sdl SDL_image gl glu x11 zlib" 2>/dev/null`
  14337. else
  14338. pkg_failed=yes
  14339. fi
  14340. else
  14341. pkg_failed=untried
  14342. fi
  14343. if test $pkg_failed = yes; then
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14345. $as_echo "no" >&6; }
  14346. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14347. _pkg_short_errors_supported=yes
  14348. else
  14349. _pkg_short_errors_supported=no
  14350. fi
  14351. if test $_pkg_short_errors_supported = yes; then
  14352. LIBRARIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl SDL_image gl glu x11 zlib" 2>&1`
  14353. else
  14354. LIBRARIES_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl SDL_image gl glu x11 zlib" 2>&1`
  14355. fi
  14356. # Put the nasty error message in config.log where it belongs
  14357. echo "$LIBRARIES_PKG_ERRORS" >&5
  14358. as_fn_error $? "Package requirements (sdl SDL_image gl glu x11 zlib) were not met:
  14359. $LIBRARIES_PKG_ERRORS
  14360. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14361. installed software in a non-standard prefix.
  14362. Alternatively, you may set the environment variables LIBRARIES_CFLAGS
  14363. and LIBRARIES_LIBS to avoid the need to call pkg-config.
  14364. See the pkg-config man page for more details." "$LINENO" 5
  14365. elif test $pkg_failed = untried; then
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14367. $as_echo "no" >&6; }
  14368. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14370. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14371. is in your PATH or set the PKG_CONFIG environment variable to the full
  14372. path to pkg-config.
  14373. Alternatively, you may set the environment variables LIBRARIES_CFLAGS
  14374. and LIBRARIES_LIBS to avoid the need to call pkg-config.
  14375. See the pkg-config man page for more details.
  14376. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14377. See \`config.log' for more details" "$LINENO" 5; }
  14378. else
  14379. LIBRARIES_CFLAGS=$pkg_cv_LIBRARIES_CFLAGS
  14380. LIBRARIES_LIBS=$pkg_cv_LIBRARIES_LIBS
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14382. $as_echo "yes" >&6; }
  14383. fi
  14384. CFLAGS="$CFLAGS $LIBRARIES_CFLAGS"
  14385. CXXFLAGS="$CXXFLAGS $LIBRARIES_CFLAGS"
  14386. LDFLAGS="$LDFLAGS $LIBRARIES_LIBS"
  14387. # Check whether --with-user_directory was given.
  14388. if test "${with_user_directory+set}" = set; then :
  14389. withval=$with_user_directory;
  14390. fi
  14391. if test "x$with_user_directory" != x; then
  14392. cat >>confdefs.h <<_ACEOF
  14393. #define INI_USER_DIRECTORY $with_user_directory
  14394. _ACEOF
  14395. else
  14396. cat >>confdefs.h <<_ACEOF
  14397. #define INI_USER_DIRECTORY "~/.berusky2"
  14398. _ACEOF
  14399. fi
  14400. # Check whether --with-saves_directory was given.
  14401. if test "${with_saves_directory+set}" = set; then :
  14402. withval=$with_saves_directory;
  14403. fi
  14404. if test "x$with_saves_directory" != x; then
  14405. cat >>confdefs.h <<_ACEOF
  14406. #define INI_SAVES_DIRECTORY $with_saves_directory
  14407. _ACEOF
  14408. else
  14409. cat >>confdefs.h <<_ACEOF
  14410. #define INI_SAVES_DIRECTORY "~/.berusky2/Save"
  14411. _ACEOF
  14412. fi
  14413. # Check whether --with-profile_directory was given.
  14414. if test "${with_profile_directory+set}" = set; then :
  14415. withval=$with_profile_directory;
  14416. fi
  14417. if test "x$with_profile_directory" != x; then
  14418. cat >>confdefs.h <<_ACEOF
  14419. #define INI_PROFILE_DIRECTORY $with_profile_directory
  14420. _ACEOF
  14421. else
  14422. cat >>confdefs.h <<_ACEOF
  14423. #define INI_PROFILE_DIRECTORY "~/.berusky2/Save/profiles"
  14424. _ACEOF
  14425. fi
  14426. # Check whether --with-ini_file was given.
  14427. if test "${with_ini_file+set}" = set; then :
  14428. withval=$with_ini_file;
  14429. fi
  14430. if test "x$with_ini_file" != x; then
  14431. cat >>confdefs.h <<_ACEOF
  14432. #define INI_FILE_NAME $with_ini_file
  14433. _ACEOF
  14434. else
  14435. cat >>confdefs.h <<_ACEOF
  14436. #define INI_FILE_NAME "berusky3d.ini"
  14437. _ACEOF
  14438. fi
  14439. # Check whether --with-ini_file_global_dir was given.
  14440. if test "${with_ini_file_global_dir+set}" = set; then :
  14441. withval=$with_ini_file_global_dir;
  14442. fi
  14443. if test "x$with_ini_file_global_dir" != x; then
  14444. cat >>confdefs.h <<_ACEOF
  14445. #define INI_FILE_GLOBAL_DIR $with_ini_file_global_dir
  14446. _ACEOF
  14447. else
  14448. cat >>confdefs.h <<_ACEOF
  14449. #define INI_FILE_GLOBAL_DIR "/var/games/berusky2"
  14450. _ACEOF
  14451. fi
  14452. if test "x${prefix}" = "xNONE"; then
  14453. cat >>confdefs.h <<_ACEOF
  14454. #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
  14455. _ACEOF
  14456. else
  14457. cat >>confdefs.h <<_ACEOF
  14458. #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
  14459. _ACEOF
  14460. fi
  14461. packagesrcdir=`cd $srcdir && pwd`
  14462. if test "x${prefix}" = "xNONE"; then
  14463. packageprefix=${ac_default_prefix}
  14464. else
  14465. packageprefix=${prefix}
  14466. fi
  14467. packagedatadir=share
  14468. packagedocdir=doc/${PACKAGE}
  14469. packagepixmapsdir=${packagedatadir}/pixmaps
  14470. packagehelpdir=${packagedatadir}/help
  14471. packagemenudir=${packagedatadir}
  14472. NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}"
  14473. PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
  14474. NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}"
  14475. PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}"
  14476. NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}"
  14477. PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
  14478. NO_PREFIX_PACKAGE_HELP_DIR="${packagehelpdir}"
  14479. PACKAGE_HELP_DIR="${packageprefix}/${packagehelpdir}"
  14480. NO_PREFIX_PACKAGE_MENU_DIR="${packagemenudir}"
  14481. PACKAGE_MENU_DIR="${packageprefix}/${packagemenudir}"
  14482. cat >>confdefs.h <<_ACEOF
  14483. #define PACKAGE_DATA_DIR "${packageprefix}/${packagedatadir}"
  14484. _ACEOF
  14485. cat >>confdefs.h <<_ACEOF
  14486. #define PACKAGE_DOC_DIR "${packageprefix}/${packagedocdir}"
  14487. _ACEOF
  14488. cat >>confdefs.h <<_ACEOF
  14489. #define PACKAGE_PIXMAPS_DIR "${packageprefix}/${packagepixmapsdir}"
  14490. _ACEOF
  14491. cat >>confdefs.h <<_ACEOF
  14492. #define PACKAGE_HELP_DIR "${packageprefix}/${packagehelpdir}"
  14493. _ACEOF
  14494. cat >>confdefs.h <<_ACEOF
  14495. #define PACKAGE_MENU_DIR "${packageprefix}/${packagemenudir}"
  14496. _ACEOF
  14497. cat >>confdefs.h <<_ACEOF
  14498. #define PACKAGE_SOURCE_DIR "${packagesrcdir}"
  14499. _ACEOF
  14500. ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile data/Makefile"
  14501. cat >confcache <<\_ACEOF
  14502. # This file is a shell script that caches the results of configure
  14503. # tests run on this system so they can be shared between configure
  14504. # scripts and configure runs, see configure's option --config-cache.
  14505. # It is not useful on other systems. If it contains results you don't
  14506. # want to keep, you may remove or edit it.
  14507. #
  14508. # config.status only pays attention to the cache file if you give it
  14509. # the --recheck option to rerun configure.
  14510. #
  14511. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14512. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14513. # following values.
  14514. _ACEOF
  14515. # The following way of writing the cache mishandles newlines in values,
  14516. # but we know of no workaround that is simple, portable, and efficient.
  14517. # So, we kill variables containing newlines.
  14518. # Ultrix sh set writes to stderr and can't be redirected directly,
  14519. # and sets the high bit in the cache file unless we assign to the vars.
  14520. (
  14521. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14522. eval ac_val=\$$ac_var
  14523. case $ac_val in #(
  14524. *${as_nl}*)
  14525. case $ac_var in #(
  14526. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14527. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14528. esac
  14529. case $ac_var in #(
  14530. _ | IFS | as_nl) ;; #(
  14531. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14532. *) { eval $ac_var=; unset $ac_var;} ;;
  14533. esac ;;
  14534. esac
  14535. done
  14536. (set) 2>&1 |
  14537. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14538. *${as_nl}ac_space=\ *)
  14539. # `set' does not quote correctly, so add quotes: double-quote
  14540. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14541. sed -n \
  14542. "s/'/'\\\\''/g;
  14543. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14544. ;; #(
  14545. *)
  14546. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14547. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14548. ;;
  14549. esac |
  14550. sort
  14551. ) |
  14552. sed '
  14553. /^ac_cv_env_/b end
  14554. t clear
  14555. :clear
  14556. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14557. t end
  14558. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14559. :end' >>confcache
  14560. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14561. if test -w "$cache_file"; then
  14562. test "x$cache_file" != "x/dev/null" &&
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14564. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14565. cat confcache >$cache_file
  14566. else
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14568. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14569. fi
  14570. fi
  14571. rm -f confcache
  14572. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14573. # Let make expand exec_prefix.
  14574. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14575. DEFS=-DHAVE_CONFIG_H
  14576. ac_libobjs=
  14577. ac_ltlibobjs=
  14578. U=
  14579. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14580. # 1. Remove the extension, and $U if already installed.
  14581. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14582. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14583. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14584. # will be set to the directory where LIBOBJS objects are built.
  14585. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14586. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14587. done
  14588. LIBOBJS=$ac_libobjs
  14589. LTLIBOBJS=$ac_ltlibobjs
  14590. if test -n "$EXEEXT"; then
  14591. am__EXEEXT_TRUE=
  14592. am__EXEEXT_FALSE='#'
  14593. else
  14594. am__EXEEXT_TRUE='#'
  14595. am__EXEEXT_FALSE=
  14596. fi
  14597. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14598. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14599. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14600. fi
  14601. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14602. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14603. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14604. fi
  14605. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14606. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14607. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14608. fi
  14609. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14610. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14611. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14612. fi
  14613. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14614. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14615. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14616. fi
  14617. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14618. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14619. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14620. fi
  14621. : ${CONFIG_STATUS=./config.status}
  14622. ac_write_fail=0
  14623. ac_clean_files_save=$ac_clean_files
  14624. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14626. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14627. as_write_fail=0
  14628. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14629. #! $SHELL
  14630. # Generated by $as_me.
  14631. # Run this file to recreate the current configuration.
  14632. # Compiler output produced by configure, useful for debugging
  14633. # configure, is in config.log if it exists.
  14634. debug=false
  14635. ac_cs_recheck=false
  14636. ac_cs_silent=false
  14637. SHELL=\${CONFIG_SHELL-$SHELL}
  14638. export SHELL
  14639. _ASEOF
  14640. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14641. ## -------------------- ##
  14642. ## M4sh Initialization. ##
  14643. ## -------------------- ##
  14644. # Be more Bourne compatible
  14645. DUALCASE=1; export DUALCASE # for MKS sh
  14646. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14647. emulate sh
  14648. NULLCMD=:
  14649. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14650. # is contrary to our usage. Disable this feature.
  14651. alias -g '${1+"$@"}'='"$@"'
  14652. setopt NO_GLOB_SUBST
  14653. else
  14654. case `(set -o) 2>/dev/null` in #(
  14655. *posix*) :
  14656. set -o posix ;; #(
  14657. *) :
  14658. ;;
  14659. esac
  14660. fi
  14661. as_nl='
  14662. '
  14663. export as_nl
  14664. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14665. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14666. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14667. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14668. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14669. # but without wasting forks for bash or zsh.
  14670. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14671. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14672. as_echo='print -r --'
  14673. as_echo_n='print -rn --'
  14674. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14675. as_echo='printf %s\n'
  14676. as_echo_n='printf %s'
  14677. else
  14678. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14679. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14680. as_echo_n='/usr/ucb/echo -n'
  14681. else
  14682. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14683. as_echo_n_body='eval
  14684. arg=$1;
  14685. case $arg in #(
  14686. *"$as_nl"*)
  14687. expr "X$arg" : "X\\(.*\\)$as_nl";
  14688. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14689. esac;
  14690. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14691. '
  14692. export as_echo_n_body
  14693. as_echo_n='sh -c $as_echo_n_body as_echo'
  14694. fi
  14695. export as_echo_body
  14696. as_echo='sh -c $as_echo_body as_echo'
  14697. fi
  14698. # The user is always right.
  14699. if test "${PATH_SEPARATOR+set}" != set; then
  14700. PATH_SEPARATOR=:
  14701. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14702. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14703. PATH_SEPARATOR=';'
  14704. }
  14705. fi
  14706. # IFS
  14707. # We need space, tab and new line, in precisely that order. Quoting is
  14708. # there to prevent editors from complaining about space-tab.
  14709. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14710. # splitting by setting IFS to empty value.)
  14711. IFS=" "" $as_nl"
  14712. # Find who we are. Look in the path if we contain no directory separator.
  14713. case $0 in #((
  14714. *[\\/]* ) as_myself=$0 ;;
  14715. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14716. for as_dir in $PATH
  14717. do
  14718. IFS=$as_save_IFS
  14719. test -z "$as_dir" && as_dir=.
  14720. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14721. done
  14722. IFS=$as_save_IFS
  14723. ;;
  14724. esac
  14725. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14726. # in which case we are not to be found in the path.
  14727. if test "x$as_myself" = x; then
  14728. as_myself=$0
  14729. fi
  14730. if test ! -f "$as_myself"; then
  14731. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14732. exit 1
  14733. fi
  14734. # Unset variables that we do not need and which cause bugs (e.g. in
  14735. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14736. # suppresses any "Segmentation fault" message there. '((' could
  14737. # trigger a bug in pdksh 5.2.14.
  14738. for as_var in BASH_ENV ENV MAIL MAILPATH
  14739. do eval test x\${$as_var+set} = xset \
  14740. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14741. done
  14742. PS1='$ '
  14743. PS2='> '
  14744. PS4='+ '
  14745. # NLS nuisances.
  14746. LC_ALL=C
  14747. export LC_ALL
  14748. LANGUAGE=C
  14749. export LANGUAGE
  14750. # CDPATH.
  14751. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14752. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14753. # ----------------------------------------
  14754. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14755. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14756. # script with STATUS, using 1 if that was 0.
  14757. as_fn_error ()
  14758. {
  14759. as_status=$1; test $as_status -eq 0 && as_status=1
  14760. if test "$4"; then
  14761. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14762. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14763. fi
  14764. $as_echo "$as_me: error: $2" >&2
  14765. as_fn_exit $as_status
  14766. } # as_fn_error
  14767. # as_fn_set_status STATUS
  14768. # -----------------------
  14769. # Set $? to STATUS, without forking.
  14770. as_fn_set_status ()
  14771. {
  14772. return $1
  14773. } # as_fn_set_status
  14774. # as_fn_exit STATUS
  14775. # -----------------
  14776. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14777. as_fn_exit ()
  14778. {
  14779. set +e
  14780. as_fn_set_status $1
  14781. exit $1
  14782. } # as_fn_exit
  14783. # as_fn_unset VAR
  14784. # ---------------
  14785. # Portably unset VAR.
  14786. as_fn_unset ()
  14787. {
  14788. { eval $1=; unset $1;}
  14789. }
  14790. as_unset=as_fn_unset
  14791. # as_fn_append VAR VALUE
  14792. # ----------------------
  14793. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14794. # advantage of any shell optimizations that allow amortized linear growth over
  14795. # repeated appends, instead of the typical quadratic growth present in naive
  14796. # implementations.
  14797. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14798. eval 'as_fn_append ()
  14799. {
  14800. eval $1+=\$2
  14801. }'
  14802. else
  14803. as_fn_append ()
  14804. {
  14805. eval $1=\$$1\$2
  14806. }
  14807. fi # as_fn_append
  14808. # as_fn_arith ARG...
  14809. # ------------------
  14810. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14811. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14812. # must be portable across $(()) and expr.
  14813. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14814. eval 'as_fn_arith ()
  14815. {
  14816. as_val=$(( $* ))
  14817. }'
  14818. else
  14819. as_fn_arith ()
  14820. {
  14821. as_val=`expr "$@" || test $? -eq 1`
  14822. }
  14823. fi # as_fn_arith
  14824. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14825. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14826. as_expr=expr
  14827. else
  14828. as_expr=false
  14829. fi
  14830. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14831. as_basename=basename
  14832. else
  14833. as_basename=false
  14834. fi
  14835. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14836. as_dirname=dirname
  14837. else
  14838. as_dirname=false
  14839. fi
  14840. as_me=`$as_basename -- "$0" ||
  14841. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14842. X"$0" : 'X\(//\)$' \| \
  14843. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14844. $as_echo X/"$0" |
  14845. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14846. s//\1/
  14847. q
  14848. }
  14849. /^X\/\(\/\/\)$/{
  14850. s//\1/
  14851. q
  14852. }
  14853. /^X\/\(\/\).*/{
  14854. s//\1/
  14855. q
  14856. }
  14857. s/.*/./; q'`
  14858. # Avoid depending upon Character Ranges.
  14859. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14860. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14861. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14862. as_cr_digits='0123456789'
  14863. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14864. ECHO_C= ECHO_N= ECHO_T=
  14865. case `echo -n x` in #(((((
  14866. -n*)
  14867. case `echo 'xy\c'` in
  14868. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14869. xy) ECHO_C='\c';;
  14870. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14871. ECHO_T=' ';;
  14872. esac;;
  14873. *)
  14874. ECHO_N='-n';;
  14875. esac
  14876. rm -f conf$$ conf$$.exe conf$$.file
  14877. if test -d conf$$.dir; then
  14878. rm -f conf$$.dir/conf$$.file
  14879. else
  14880. rm -f conf$$.dir
  14881. mkdir conf$$.dir 2>/dev/null
  14882. fi
  14883. if (echo >conf$$.file) 2>/dev/null; then
  14884. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14885. as_ln_s='ln -s'
  14886. # ... but there are two gotchas:
  14887. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14888. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14889. # In both cases, we have to default to `cp -p'.
  14890. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14891. as_ln_s='cp -p'
  14892. elif ln conf$$.file conf$$ 2>/dev/null; then
  14893. as_ln_s=ln
  14894. else
  14895. as_ln_s='cp -p'
  14896. fi
  14897. else
  14898. as_ln_s='cp -p'
  14899. fi
  14900. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14901. rmdir conf$$.dir 2>/dev/null
  14902. # as_fn_mkdir_p
  14903. # -------------
  14904. # Create "$as_dir" as a directory, including parents if necessary.
  14905. as_fn_mkdir_p ()
  14906. {
  14907. case $as_dir in #(
  14908. -*) as_dir=./$as_dir;;
  14909. esac
  14910. test -d "$as_dir" || eval $as_mkdir_p || {
  14911. as_dirs=
  14912. while :; do
  14913. case $as_dir in #(
  14914. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14915. *) as_qdir=$as_dir;;
  14916. esac
  14917. as_dirs="'$as_qdir' $as_dirs"
  14918. as_dir=`$as_dirname -- "$as_dir" ||
  14919. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14920. X"$as_dir" : 'X\(//\)[^/]' \| \
  14921. X"$as_dir" : 'X\(//\)$' \| \
  14922. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14923. $as_echo X"$as_dir" |
  14924. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14925. s//\1/
  14926. q
  14927. }
  14928. /^X\(\/\/\)[^/].*/{
  14929. s//\1/
  14930. q
  14931. }
  14932. /^X\(\/\/\)$/{
  14933. s//\1/
  14934. q
  14935. }
  14936. /^X\(\/\).*/{
  14937. s//\1/
  14938. q
  14939. }
  14940. s/.*/./; q'`
  14941. test -d "$as_dir" && break
  14942. done
  14943. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14944. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14945. } # as_fn_mkdir_p
  14946. if mkdir -p . 2>/dev/null; then
  14947. as_mkdir_p='mkdir -p "$as_dir"'
  14948. else
  14949. test -d ./-p && rmdir ./-p
  14950. as_mkdir_p=false
  14951. fi
  14952. if test -x / >/dev/null 2>&1; then
  14953. as_test_x='test -x'
  14954. else
  14955. if ls -dL / >/dev/null 2>&1; then
  14956. as_ls_L_option=L
  14957. else
  14958. as_ls_L_option=
  14959. fi
  14960. as_test_x='
  14961. eval sh -c '\''
  14962. if test -d "$1"; then
  14963. test -d "$1/.";
  14964. else
  14965. case $1 in #(
  14966. -*)set "./$1";;
  14967. esac;
  14968. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14969. ???[sx]*):;;*)false;;esac;fi
  14970. '\'' sh
  14971. '
  14972. fi
  14973. as_executable_p=$as_test_x
  14974. # Sed expression to map a string onto a valid CPP name.
  14975. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14976. # Sed expression to map a string onto a valid variable name.
  14977. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14978. exec 6>&1
  14979. ## ----------------------------------- ##
  14980. ## Main body of $CONFIG_STATUS script. ##
  14981. ## ----------------------------------- ##
  14982. _ASEOF
  14983. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14985. # Save the log message, to keep $0 and so on meaningful, and to
  14986. # report actual input values of CONFIG_FILES etc. instead of their
  14987. # values after options handling.
  14988. ac_log="
  14989. This file was extended by $as_me, which was
  14990. generated by GNU Autoconf 2.66. Invocation command line was
  14991. CONFIG_FILES = $CONFIG_FILES
  14992. CONFIG_HEADERS = $CONFIG_HEADERS
  14993. CONFIG_LINKS = $CONFIG_LINKS
  14994. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14995. $ $0 $@
  14996. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14997. "
  14998. _ACEOF
  14999. case $ac_config_files in *"
  15000. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15001. esac
  15002. case $ac_config_headers in *"
  15003. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15004. esac
  15005. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15006. # Files that config.status was made for.
  15007. config_files="$ac_config_files"
  15008. config_headers="$ac_config_headers"
  15009. config_commands="$ac_config_commands"
  15010. _ACEOF
  15011. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15012. ac_cs_usage="\
  15013. \`$as_me' instantiates files and other configuration actions
  15014. from templates according to the current configuration. Unless the files
  15015. and actions are specified as TAGs, all are instantiated by default.
  15016. Usage: $0 [OPTION]... [TAG]...
  15017. -h, --help print this help, then exit
  15018. -V, --version print version number and configuration settings, then exit
  15019. --config print configuration, then exit
  15020. -q, --quiet, --silent
  15021. do not print progress messages
  15022. -d, --debug don't remove temporary files
  15023. --recheck update $as_me by reconfiguring in the same conditions
  15024. --file=FILE[:TEMPLATE]
  15025. instantiate the configuration file FILE
  15026. --header=FILE[:TEMPLATE]
  15027. instantiate the configuration header FILE
  15028. Configuration files:
  15029. $config_files
  15030. Configuration headers:
  15031. $config_headers
  15032. Configuration commands:
  15033. $config_commands
  15034. Report bugs to the package provider."
  15035. _ACEOF
  15036. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15037. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15038. ac_cs_version="\\
  15039. config.status
  15040. configured by $0, generated by GNU Autoconf 2.66,
  15041. with options \\"\$ac_cs_config\\"
  15042. Copyright (C) 2010 Free Software Foundation, Inc.
  15043. This config.status script is free software; the Free Software Foundation
  15044. gives unlimited permission to copy, distribute and modify it."
  15045. ac_pwd='$ac_pwd'
  15046. srcdir='$srcdir'
  15047. INSTALL='$INSTALL'
  15048. MKDIR_P='$MKDIR_P'
  15049. AWK='$AWK'
  15050. test -n "\$AWK" || AWK=awk
  15051. _ACEOF
  15052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15053. # The default lists apply if the user does not specify any file.
  15054. ac_need_defaults=:
  15055. while test $# != 0
  15056. do
  15057. case $1 in
  15058. --*=*)
  15059. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15060. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15061. ac_shift=:
  15062. ;;
  15063. *)
  15064. ac_option=$1
  15065. ac_optarg=$2
  15066. ac_shift=shift
  15067. ;;
  15068. esac
  15069. case $ac_option in
  15070. # Handling of the options.
  15071. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15072. ac_cs_recheck=: ;;
  15073. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15074. $as_echo "$ac_cs_version"; exit ;;
  15075. --config | --confi | --conf | --con | --co | --c )
  15076. $as_echo "$ac_cs_config"; exit ;;
  15077. --debug | --debu | --deb | --de | --d | -d )
  15078. debug=: ;;
  15079. --file | --fil | --fi | --f )
  15080. $ac_shift
  15081. case $ac_optarg in
  15082. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15083. esac
  15084. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15085. ac_need_defaults=false;;
  15086. --header | --heade | --head | --hea )
  15087. $ac_shift
  15088. case $ac_optarg in
  15089. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15090. esac
  15091. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15092. ac_need_defaults=false;;
  15093. --he | --h)
  15094. # Conflict between --help and --header
  15095. as_fn_error $? "ambiguous option: \`$1'
  15096. Try \`$0 --help' for more information.";;
  15097. --help | --hel | -h )
  15098. $as_echo "$ac_cs_usage"; exit ;;
  15099. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15100. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15101. ac_cs_silent=: ;;
  15102. # This is an error.
  15103. -*) as_fn_error $? "unrecognized option: \`$1'
  15104. Try \`$0 --help' for more information." ;;
  15105. *) as_fn_append ac_config_targets " $1"
  15106. ac_need_defaults=false ;;
  15107. esac
  15108. shift
  15109. done
  15110. ac_configure_extra_args=
  15111. if $ac_cs_silent; then
  15112. exec 6>/dev/null
  15113. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15114. fi
  15115. _ACEOF
  15116. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15117. if \$ac_cs_recheck; then
  15118. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15119. shift
  15120. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15121. CONFIG_SHELL='$SHELL'
  15122. export CONFIG_SHELL
  15123. exec "\$@"
  15124. fi
  15125. _ACEOF
  15126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15127. exec 5>>config.log
  15128. {
  15129. echo
  15130. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15131. ## Running $as_me. ##
  15132. _ASBOX
  15133. $as_echo "$ac_log"
  15134. } >&5
  15135. _ACEOF
  15136. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15137. #
  15138. # INIT-COMMANDS
  15139. #
  15140. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15141. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15142. # if CDPATH is set.
  15143. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15144. sed_quote_subst='$sed_quote_subst'
  15145. double_quote_subst='$double_quote_subst'
  15146. delay_variable_subst='$delay_variable_subst'
  15147. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15148. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15149. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15150. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15151. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15152. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15153. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15154. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15155. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15156. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15157. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15158. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15159. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15160. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15161. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15162. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15163. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15164. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15165. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15166. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15167. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15168. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15169. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15170. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15171. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15172. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15173. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15174. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15175. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15176. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15177. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15178. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15179. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15180. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15181. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15182. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15183. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15184. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15185. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15186. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15187. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15188. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15189. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15190. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15191. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15192. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15193. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15194. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15195. 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"`'
  15196. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15197. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15198. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15199. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15200. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15201. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15202. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15203. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15204. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15205. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15206. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15207. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15208. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15209. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15210. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15211. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15212. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15213. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15214. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15215. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15216. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15217. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15218. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15219. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15220. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15221. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15222. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15223. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15224. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15225. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15226. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15227. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15228. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15229. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15230. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15231. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15232. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15233. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15234. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15235. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15236. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15237. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15238. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15239. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15240. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15241. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15242. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15243. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15244. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15245. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15246. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15247. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15248. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15249. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15250. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15251. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15252. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15253. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15254. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15255. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15256. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15257. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15258. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15259. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15260. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15261. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15262. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15263. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15264. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15265. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15266. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15267. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15268. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15269. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15270. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15271. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15272. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15273. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15274. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15275. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15276. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15277. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15278. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15279. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15280. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15281. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15282. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15283. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15284. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15285. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15286. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15287. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15288. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15289. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15290. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15291. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15292. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15293. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15294. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15295. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15296. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15297. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15298. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15299. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15300. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15301. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15302. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15303. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15304. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15305. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15306. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15307. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15308. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  15309. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15310. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15311. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15312. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15313. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15314. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15315. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15316. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15317. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15318. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15319. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15320. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15321. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15322. LTCC='$LTCC'
  15323. LTCFLAGS='$LTCFLAGS'
  15324. compiler='$compiler_DEFAULT'
  15325. # A function that is used when there is no print builtin or printf.
  15326. func_fallback_echo ()
  15327. {
  15328. eval 'cat <<_LTECHO_EOF
  15329. \$1
  15330. _LTECHO_EOF'
  15331. }
  15332. # Quote evaled strings.
  15333. for var in SHELL \
  15334. ECHO \
  15335. SED \
  15336. GREP \
  15337. EGREP \
  15338. FGREP \
  15339. LD \
  15340. NM \
  15341. LN_S \
  15342. lt_SP2NL \
  15343. lt_NL2SP \
  15344. reload_flag \
  15345. OBJDUMP \
  15346. deplibs_check_method \
  15347. file_magic_cmd \
  15348. AR \
  15349. AR_FLAGS \
  15350. STRIP \
  15351. RANLIB \
  15352. CC \
  15353. CFLAGS \
  15354. compiler \
  15355. lt_cv_sys_global_symbol_pipe \
  15356. lt_cv_sys_global_symbol_to_cdecl \
  15357. lt_cv_sys_global_symbol_to_c_name_address \
  15358. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15359. lt_prog_compiler_no_builtin_flag \
  15360. lt_prog_compiler_wl \
  15361. lt_prog_compiler_pic \
  15362. lt_prog_compiler_static \
  15363. lt_cv_prog_compiler_c_o \
  15364. need_locks \
  15365. DSYMUTIL \
  15366. NMEDIT \
  15367. LIPO \
  15368. OTOOL \
  15369. OTOOL64 \
  15370. shrext_cmds \
  15371. export_dynamic_flag_spec \
  15372. whole_archive_flag_spec \
  15373. compiler_needs_object \
  15374. with_gnu_ld \
  15375. allow_undefined_flag \
  15376. no_undefined_flag \
  15377. hardcode_libdir_flag_spec \
  15378. hardcode_libdir_flag_spec_ld \
  15379. hardcode_libdir_separator \
  15380. fix_srcfile_path \
  15381. exclude_expsyms \
  15382. include_expsyms \
  15383. file_list_spec \
  15384. variables_saved_for_relink \
  15385. libname_spec \
  15386. library_names_spec \
  15387. soname_spec \
  15388. install_override_mode \
  15389. finish_eval \
  15390. old_striplib \
  15391. striplib \
  15392. compiler_lib_search_dirs \
  15393. predep_objects \
  15394. postdep_objects \
  15395. predeps \
  15396. postdeps \
  15397. compiler_lib_search_path \
  15398. LD_CXX \
  15399. reload_flag_CXX \
  15400. compiler_CXX \
  15401. lt_prog_compiler_no_builtin_flag_CXX \
  15402. lt_prog_compiler_wl_CXX \
  15403. lt_prog_compiler_pic_CXX \
  15404. lt_prog_compiler_static_CXX \
  15405. lt_cv_prog_compiler_c_o_CXX \
  15406. export_dynamic_flag_spec_CXX \
  15407. whole_archive_flag_spec_CXX \
  15408. compiler_needs_object_CXX \
  15409. with_gnu_ld_CXX \
  15410. allow_undefined_flag_CXX \
  15411. no_undefined_flag_CXX \
  15412. hardcode_libdir_flag_spec_CXX \
  15413. hardcode_libdir_flag_spec_ld_CXX \
  15414. hardcode_libdir_separator_CXX \
  15415. fix_srcfile_path_CXX \
  15416. exclude_expsyms_CXX \
  15417. include_expsyms_CXX \
  15418. file_list_spec_CXX \
  15419. compiler_lib_search_dirs_CXX \
  15420. predep_objects_CXX \
  15421. postdep_objects_CXX \
  15422. predeps_CXX \
  15423. postdeps_CXX \
  15424. compiler_lib_search_path_CXX; do
  15425. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15426. *[\\\\\\\`\\"\\\$]*)
  15427. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15428. ;;
  15429. *)
  15430. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15431. ;;
  15432. esac
  15433. done
  15434. # Double-quote double-evaled strings.
  15435. for var in reload_cmds \
  15436. old_postinstall_cmds \
  15437. old_postuninstall_cmds \
  15438. old_archive_cmds \
  15439. extract_expsyms_cmds \
  15440. old_archive_from_new_cmds \
  15441. old_archive_from_expsyms_cmds \
  15442. archive_cmds \
  15443. archive_expsym_cmds \
  15444. module_cmds \
  15445. module_expsym_cmds \
  15446. export_symbols_cmds \
  15447. prelink_cmds \
  15448. postinstall_cmds \
  15449. postuninstall_cmds \
  15450. finish_cmds \
  15451. sys_lib_search_path_spec \
  15452. sys_lib_dlsearch_path_spec \
  15453. reload_cmds_CXX \
  15454. old_archive_cmds_CXX \
  15455. old_archive_from_new_cmds_CXX \
  15456. old_archive_from_expsyms_cmds_CXX \
  15457. archive_cmds_CXX \
  15458. archive_expsym_cmds_CXX \
  15459. module_cmds_CXX \
  15460. module_expsym_cmds_CXX \
  15461. export_symbols_cmds_CXX \
  15462. prelink_cmds_CXX; do
  15463. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15464. *[\\\\\\\`\\"\\\$]*)
  15465. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15466. ;;
  15467. *)
  15468. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15469. ;;
  15470. esac
  15471. done
  15472. ac_aux_dir='$ac_aux_dir'
  15473. xsi_shell='$xsi_shell'
  15474. lt_shell_append='$lt_shell_append'
  15475. # See if we are running on zsh, and set the options which allow our
  15476. # commands through without removal of \ escapes INIT.
  15477. if test -n "\${ZSH_VERSION+set}" ; then
  15478. setopt NO_GLOB_SUBST
  15479. fi
  15480. PACKAGE='$PACKAGE'
  15481. VERSION='$VERSION'
  15482. TIMESTAMP='$TIMESTAMP'
  15483. RM='$RM'
  15484. ofile='$ofile'
  15485. _ACEOF
  15486. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15487. # Handling of arguments.
  15488. for ac_config_target in $ac_config_targets
  15489. do
  15490. case $ac_config_target in
  15491. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15492. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15493. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15494. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15495. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15496. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  15497. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15498. "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
  15499. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15500. esac
  15501. done
  15502. # If the user did not use the arguments to specify the items to instantiate,
  15503. # then the envvar interface is used. Set only those that are not.
  15504. # We use the long form for the default assignment because of an extremely
  15505. # bizarre bug on SunOS 4.1.3.
  15506. if $ac_need_defaults; then
  15507. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15508. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15509. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15510. fi
  15511. # Have a temporary directory for convenience. Make it in the build tree
  15512. # simply because there is no reason against having it here, and in addition,
  15513. # creating and moving files from /tmp can sometimes cause problems.
  15514. # Hook for its removal unless debugging.
  15515. # Note that there is a small window in which the directory will not be cleaned:
  15516. # after its creation but before its name has been assigned to `$tmp'.
  15517. $debug ||
  15518. {
  15519. tmp=
  15520. trap 'exit_status=$?
  15521. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15522. ' 0
  15523. trap 'as_fn_exit 1' 1 2 13 15
  15524. }
  15525. # Create a (secure) tmp directory for tmp files.
  15526. {
  15527. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15528. test -n "$tmp" && test -d "$tmp"
  15529. } ||
  15530. {
  15531. tmp=./conf$$-$RANDOM
  15532. (umask 077 && mkdir "$tmp")
  15533. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15534. # Set up the scripts for CONFIG_FILES section.
  15535. # No need to generate them if there are no CONFIG_FILES.
  15536. # This happens for instance with `./config.status config.h'.
  15537. if test -n "$CONFIG_FILES"; then
  15538. ac_cr=`echo X | tr X '\015'`
  15539. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15540. # But we know of no other shell where ac_cr would be empty at this
  15541. # point, so we can use a bashism as a fallback.
  15542. if test "x$ac_cr" = x; then
  15543. eval ac_cr=\$\'\\r\'
  15544. fi
  15545. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15546. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15547. ac_cs_awk_cr='\\r'
  15548. else
  15549. ac_cs_awk_cr=$ac_cr
  15550. fi
  15551. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15552. _ACEOF
  15553. {
  15554. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15555. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15556. echo "_ACEOF"
  15557. } >conf$$subs.sh ||
  15558. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15559. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15560. ac_delim='%!_!# '
  15561. for ac_last_try in false false false false false :; do
  15562. . ./conf$$subs.sh ||
  15563. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15564. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15565. if test $ac_delim_n = $ac_delim_num; then
  15566. break
  15567. elif $ac_last_try; then
  15568. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15569. else
  15570. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15571. fi
  15572. done
  15573. rm -f conf$$subs.sh
  15574. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15575. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15576. _ACEOF
  15577. sed -n '
  15578. h
  15579. s/^/S["/; s/!.*/"]=/
  15580. p
  15581. g
  15582. s/^[^!]*!//
  15583. :repl
  15584. t repl
  15585. s/'"$ac_delim"'$//
  15586. t delim
  15587. :nl
  15588. h
  15589. s/\(.\{148\}\)..*/\1/
  15590. t more1
  15591. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15592. p
  15593. n
  15594. b repl
  15595. :more1
  15596. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15597. p
  15598. g
  15599. s/.\{148\}//
  15600. t nl
  15601. :delim
  15602. h
  15603. s/\(.\{148\}\)..*/\1/
  15604. t more2
  15605. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15606. p
  15607. b
  15608. :more2
  15609. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15610. p
  15611. g
  15612. s/.\{148\}//
  15613. t delim
  15614. ' <conf$$subs.awk | sed '
  15615. /^[^""]/{
  15616. N
  15617. s/\n//
  15618. }
  15619. ' >>$CONFIG_STATUS || ac_write_fail=1
  15620. rm -f conf$$subs.awk
  15621. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15622. _ACAWK
  15623. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15624. for (key in S) S_is_set[key] = 1
  15625. FS = ""
  15626. }
  15627. {
  15628. line = $ 0
  15629. nfields = split(line, field, "@")
  15630. substed = 0
  15631. len = length(field[1])
  15632. for (i = 2; i < nfields; i++) {
  15633. key = field[i]
  15634. keylen = length(key)
  15635. if (S_is_set[key]) {
  15636. value = S[key]
  15637. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15638. len += length(value) + length(field[++i])
  15639. substed = 1
  15640. } else
  15641. len += 1 + keylen
  15642. }
  15643. print line
  15644. }
  15645. _ACAWK
  15646. _ACEOF
  15647. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15648. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15649. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15650. else
  15651. cat
  15652. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15653. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15654. _ACEOF
  15655. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15656. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15657. # trailing colons and then remove the whole line if VPATH becomes empty
  15658. # (actually we leave an empty line to preserve line numbers).
  15659. if test "x$srcdir" = x.; then
  15660. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15661. h
  15662. s///
  15663. s/^/:/
  15664. s/[ ]*$/:/
  15665. s/:\$(srcdir):/:/g
  15666. s/:\${srcdir}:/:/g
  15667. s/:@srcdir@:/:/g
  15668. s/^:*//
  15669. s/:*$//
  15670. x
  15671. s/\(=[ ]*\).*/\1/
  15672. G
  15673. s/\n//
  15674. s/^[^=]*=[ ]*$//
  15675. }'
  15676. fi
  15677. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15678. fi # test -n "$CONFIG_FILES"
  15679. # Set up the scripts for CONFIG_HEADERS section.
  15680. # No need to generate them if there are no CONFIG_HEADERS.
  15681. # This happens for instance with `./config.status Makefile'.
  15682. if test -n "$CONFIG_HEADERS"; then
  15683. cat >"$tmp/defines.awk" <<\_ACAWK ||
  15684. BEGIN {
  15685. _ACEOF
  15686. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15687. # here-document in config.status, that substitutes the proper values into
  15688. # config.h.in to produce config.h.
  15689. # Create a delimiter string that does not exist in confdefs.h, to ease
  15690. # handling of long lines.
  15691. ac_delim='%!_!# '
  15692. for ac_last_try in false false :; do
  15693. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  15694. if test -z "$ac_t"; then
  15695. break
  15696. elif $ac_last_try; then
  15697. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15698. else
  15699. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15700. fi
  15701. done
  15702. # For the awk script, D is an array of macro values keyed by name,
  15703. # likewise P contains macro parameters if any. Preserve backslash
  15704. # newline sequences.
  15705. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15706. sed -n '
  15707. s/.\{148\}/&'"$ac_delim"'/g
  15708. t rset
  15709. :rset
  15710. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15711. t def
  15712. d
  15713. :def
  15714. s/\\$//
  15715. t bsnl
  15716. s/["\\]/\\&/g
  15717. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15718. D["\1"]=" \3"/p
  15719. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15720. d
  15721. :bsnl
  15722. s/["\\]/\\&/g
  15723. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15724. D["\1"]=" \3\\\\\\n"\\/p
  15725. t cont
  15726. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15727. t cont
  15728. d
  15729. :cont
  15730. n
  15731. s/.\{148\}/&'"$ac_delim"'/g
  15732. t clear
  15733. :clear
  15734. s/\\$//
  15735. t bsnlc
  15736. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15737. d
  15738. :bsnlc
  15739. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15740. b cont
  15741. ' <confdefs.h | sed '
  15742. s/'"$ac_delim"'/"\\\
  15743. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15745. for (key in D) D_is_set[key] = 1
  15746. FS = ""
  15747. }
  15748. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15749. line = \$ 0
  15750. split(line, arg, " ")
  15751. if (arg[1] == "#") {
  15752. defundef = arg[2]
  15753. mac1 = arg[3]
  15754. } else {
  15755. defundef = substr(arg[1], 2)
  15756. mac1 = arg[2]
  15757. }
  15758. split(mac1, mac2, "(") #)
  15759. macro = mac2[1]
  15760. prefix = substr(line, 1, index(line, defundef) - 1)
  15761. if (D_is_set[macro]) {
  15762. # Preserve the white space surrounding the "#".
  15763. print prefix "define", macro P[macro] D[macro]
  15764. next
  15765. } else {
  15766. # Replace #undef with comments. This is necessary, for example,
  15767. # in the case of _POSIX_SOURCE, which is predefined and required
  15768. # on some systems where configure will not decide to define it.
  15769. if (defundef == "undef") {
  15770. print "/*", prefix defundef, macro, "*/"
  15771. next
  15772. }
  15773. }
  15774. }
  15775. { print }
  15776. _ACAWK
  15777. _ACEOF
  15778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15779. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15780. fi # test -n "$CONFIG_HEADERS"
  15781. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15782. shift
  15783. for ac_tag
  15784. do
  15785. case $ac_tag in
  15786. :[FHLC]) ac_mode=$ac_tag; continue;;
  15787. esac
  15788. case $ac_mode$ac_tag in
  15789. :[FHL]*:*);;
  15790. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15791. :[FH]-) ac_tag=-:-;;
  15792. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15793. esac
  15794. ac_save_IFS=$IFS
  15795. IFS=:
  15796. set x $ac_tag
  15797. IFS=$ac_save_IFS
  15798. shift
  15799. ac_file=$1
  15800. shift
  15801. case $ac_mode in
  15802. :L) ac_source=$1;;
  15803. :[FH])
  15804. ac_file_inputs=
  15805. for ac_f
  15806. do
  15807. case $ac_f in
  15808. -) ac_f="$tmp/stdin";;
  15809. *) # Look for the file first in the build tree, then in the source tree
  15810. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15811. # because $ac_f cannot contain `:'.
  15812. test -f "$ac_f" ||
  15813. case $ac_f in
  15814. [\\/$]*) false;;
  15815. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15816. esac ||
  15817. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15818. esac
  15819. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15820. as_fn_append ac_file_inputs " '$ac_f'"
  15821. done
  15822. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15823. # use $as_me), people would be surprised to read:
  15824. # /* config.h. Generated by config.status. */
  15825. configure_input='Generated from '`
  15826. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15827. `' by configure.'
  15828. if test x"$ac_file" != x-; then
  15829. configure_input="$ac_file. $configure_input"
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15831. $as_echo "$as_me: creating $ac_file" >&6;}
  15832. fi
  15833. # Neutralize special characters interpreted by sed in replacement strings.
  15834. case $configure_input in #(
  15835. *\&* | *\|* | *\\* )
  15836. ac_sed_conf_input=`$as_echo "$configure_input" |
  15837. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15838. *) ac_sed_conf_input=$configure_input;;
  15839. esac
  15840. case $ac_tag in
  15841. *:-:* | *:-) cat >"$tmp/stdin" \
  15842. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15843. esac
  15844. ;;
  15845. esac
  15846. ac_dir=`$as_dirname -- "$ac_file" ||
  15847. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15848. X"$ac_file" : 'X\(//\)[^/]' \| \
  15849. X"$ac_file" : 'X\(//\)$' \| \
  15850. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15851. $as_echo X"$ac_file" |
  15852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15853. s//\1/
  15854. q
  15855. }
  15856. /^X\(\/\/\)[^/].*/{
  15857. s//\1/
  15858. q
  15859. }
  15860. /^X\(\/\/\)$/{
  15861. s//\1/
  15862. q
  15863. }
  15864. /^X\(\/\).*/{
  15865. s//\1/
  15866. q
  15867. }
  15868. s/.*/./; q'`
  15869. as_dir="$ac_dir"; as_fn_mkdir_p
  15870. ac_builddir=.
  15871. case "$ac_dir" in
  15872. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15873. *)
  15874. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15875. # A ".." for each directory in $ac_dir_suffix.
  15876. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15877. case $ac_top_builddir_sub in
  15878. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15879. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15880. esac ;;
  15881. esac
  15882. ac_abs_top_builddir=$ac_pwd
  15883. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15884. # for backward compatibility:
  15885. ac_top_builddir=$ac_top_build_prefix
  15886. case $srcdir in
  15887. .) # We are building in place.
  15888. ac_srcdir=.
  15889. ac_top_srcdir=$ac_top_builddir_sub
  15890. ac_abs_top_srcdir=$ac_pwd ;;
  15891. [\\/]* | ?:[\\/]* ) # Absolute name.
  15892. ac_srcdir=$srcdir$ac_dir_suffix;
  15893. ac_top_srcdir=$srcdir
  15894. ac_abs_top_srcdir=$srcdir ;;
  15895. *) # Relative name.
  15896. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15897. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15898. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15899. esac
  15900. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15901. case $ac_mode in
  15902. :F)
  15903. #
  15904. # CONFIG_FILE
  15905. #
  15906. case $INSTALL in
  15907. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15908. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15909. esac
  15910. ac_MKDIR_P=$MKDIR_P
  15911. case $MKDIR_P in
  15912. [\\/$]* | ?:[\\/]* ) ;;
  15913. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15914. esac
  15915. _ACEOF
  15916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15917. # If the template does not know about datarootdir, expand it.
  15918. # FIXME: This hack should be removed a few years after 2.60.
  15919. ac_datarootdir_hack=; ac_datarootdir_seen=
  15920. ac_sed_dataroot='
  15921. /datarootdir/ {
  15922. p
  15923. q
  15924. }
  15925. /@datadir@/p
  15926. /@docdir@/p
  15927. /@infodir@/p
  15928. /@localedir@/p
  15929. /@mandir@/p'
  15930. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15931. *datarootdir*) ac_datarootdir_seen=yes;;
  15932. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15934. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15935. _ACEOF
  15936. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15937. ac_datarootdir_hack='
  15938. s&@datadir@&$datadir&g
  15939. s&@docdir@&$docdir&g
  15940. s&@infodir@&$infodir&g
  15941. s&@localedir@&$localedir&g
  15942. s&@mandir@&$mandir&g
  15943. s&\\\${datarootdir}&$datarootdir&g' ;;
  15944. esac
  15945. _ACEOF
  15946. # Neutralize VPATH when `$srcdir' = `.'.
  15947. # Shell code in configure.ac might set extrasub.
  15948. # FIXME: do we really want to maintain this feature?
  15949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15950. ac_sed_extra="$ac_vpsub
  15951. $extrasub
  15952. _ACEOF
  15953. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15954. :t
  15955. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15956. s|@configure_input@|$ac_sed_conf_input|;t t
  15957. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15958. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15959. s&@srcdir@&$ac_srcdir&;t t
  15960. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15961. s&@top_srcdir@&$ac_top_srcdir&;t t
  15962. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15963. s&@builddir@&$ac_builddir&;t t
  15964. s&@abs_builddir@&$ac_abs_builddir&;t t
  15965. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15966. s&@INSTALL@&$ac_INSTALL&;t t
  15967. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15968. $ac_datarootdir_hack
  15969. "
  15970. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15971. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15972. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15973. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15974. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15976. which seems to be undefined. Please make sure it is defined" >&5
  15977. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15978. which seems to be undefined. Please make sure it is defined" >&2;}
  15979. rm -f "$tmp/stdin"
  15980. case $ac_file in
  15981. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15982. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15983. esac \
  15984. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15985. ;;
  15986. :H)
  15987. #
  15988. # CONFIG_HEADER
  15989. #
  15990. if test x"$ac_file" != x-; then
  15991. {
  15992. $as_echo "/* $configure_input */" \
  15993. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15994. } >"$tmp/config.h" \
  15995. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15996. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15998. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15999. else
  16000. rm -f "$ac_file"
  16001. mv "$tmp/config.h" "$ac_file" \
  16002. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16003. fi
  16004. else
  16005. $as_echo "/* $configure_input */" \
  16006. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  16007. || as_fn_error $? "could not create -" "$LINENO" 5
  16008. fi
  16009. # Compute "$ac_file"'s index in $config_headers.
  16010. _am_arg="$ac_file"
  16011. _am_stamp_count=1
  16012. for _am_header in $config_headers :; do
  16013. case $_am_header in
  16014. $_am_arg | $_am_arg:* )
  16015. break ;;
  16016. * )
  16017. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16018. esac
  16019. done
  16020. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16021. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16022. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16023. X"$_am_arg" : 'X\(//\)$' \| \
  16024. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16025. $as_echo X"$_am_arg" |
  16026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16027. s//\1/
  16028. q
  16029. }
  16030. /^X\(\/\/\)[^/].*/{
  16031. s//\1/
  16032. q
  16033. }
  16034. /^X\(\/\/\)$/{
  16035. s//\1/
  16036. q
  16037. }
  16038. /^X\(\/\).*/{
  16039. s//\1/
  16040. q
  16041. }
  16042. s/.*/./; q'`/stamp-h$_am_stamp_count
  16043. ;;
  16044. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16045. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16046. ;;
  16047. esac
  16048. case $ac_file$ac_mode in
  16049. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16050. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16051. # are listed without --file. Let's play safe and only enable the eval
  16052. # if we detect the quoting.
  16053. case $CONFIG_FILES in
  16054. *\'*) eval set x "$CONFIG_FILES" ;;
  16055. *) set x $CONFIG_FILES ;;
  16056. esac
  16057. shift
  16058. for mf
  16059. do
  16060. # Strip MF so we end up with the name of the file.
  16061. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16062. # Check whether this is an Automake generated Makefile or not.
  16063. # We used to match only the files named `Makefile.in', but
  16064. # some people rename them; so instead we look at the file content.
  16065. # Grep'ing the first line is not enough: some people post-process
  16066. # each Makefile.in and add a new line on top of each file to say so.
  16067. # Grep'ing the whole file is not good either: AIX grep has a line
  16068. # limit of 2048, but all sed's we know have understand at least 4000.
  16069. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16070. dirpart=`$as_dirname -- "$mf" ||
  16071. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16072. X"$mf" : 'X\(//\)[^/]' \| \
  16073. X"$mf" : 'X\(//\)$' \| \
  16074. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16075. $as_echo X"$mf" |
  16076. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16077. s//\1/
  16078. q
  16079. }
  16080. /^X\(\/\/\)[^/].*/{
  16081. s//\1/
  16082. q
  16083. }
  16084. /^X\(\/\/\)$/{
  16085. s//\1/
  16086. q
  16087. }
  16088. /^X\(\/\).*/{
  16089. s//\1/
  16090. q
  16091. }
  16092. s/.*/./; q'`
  16093. else
  16094. continue
  16095. fi
  16096. # Extract the definition of DEPDIR, am__include, and am__quote
  16097. # from the Makefile without running `make'.
  16098. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16099. test -z "$DEPDIR" && continue
  16100. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16101. test -z "am__include" && continue
  16102. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16103. # When using ansi2knr, U may be empty or an underscore; expand it
  16104. U=`sed -n 's/^U = //p' < "$mf"`
  16105. # Find all dependency output files, they are included files with
  16106. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16107. # simplest approach to changing $(DEPDIR) to its actual value in the
  16108. # expansion.
  16109. for file in `sed -n "
  16110. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16111. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16112. # Make sure the directory exists.
  16113. test -f "$dirpart/$file" && continue
  16114. fdir=`$as_dirname -- "$file" ||
  16115. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16116. X"$file" : 'X\(//\)[^/]' \| \
  16117. X"$file" : 'X\(//\)$' \| \
  16118. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16119. $as_echo X"$file" |
  16120. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16121. s//\1/
  16122. q
  16123. }
  16124. /^X\(\/\/\)[^/].*/{
  16125. s//\1/
  16126. q
  16127. }
  16128. /^X\(\/\/\)$/{
  16129. s//\1/
  16130. q
  16131. }
  16132. /^X\(\/\).*/{
  16133. s//\1/
  16134. q
  16135. }
  16136. s/.*/./; q'`
  16137. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16138. # echo "creating $dirpart/$file"
  16139. echo '# dummy' > "$dirpart/$file"
  16140. done
  16141. done
  16142. }
  16143. ;;
  16144. "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
  16145. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  16146. esac ;;
  16147. "libtool":C)
  16148. # See if we are running on zsh, and set the options which allow our
  16149. # commands through without removal of \ escapes.
  16150. if test -n "${ZSH_VERSION+set}" ; then
  16151. setopt NO_GLOB_SUBST
  16152. fi
  16153. cfgfile="${ofile}T"
  16154. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16155. $RM "$cfgfile"
  16156. cat <<_LT_EOF >> "$cfgfile"
  16157. #! $SHELL
  16158. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16159. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16160. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16161. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16162. #
  16163. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16164. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  16165. # Inc.
  16166. # Written by Gordon Matzigkeit, 1996
  16167. #
  16168. # This file is part of GNU Libtool.
  16169. #
  16170. # GNU Libtool is free software; you can redistribute it and/or
  16171. # modify it under the terms of the GNU General Public License as
  16172. # published by the Free Software Foundation; either version 2 of
  16173. # the License, or (at your option) any later version.
  16174. #
  16175. # As a special exception to the GNU General Public License,
  16176. # if you distribute this file as part of a program or library that
  16177. # is built using GNU Libtool, you may include this file under the
  16178. # same distribution terms that you use for the rest of that program.
  16179. #
  16180. # GNU Libtool is distributed in the hope that it will be useful,
  16181. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16182. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16183. # GNU General Public License for more details.
  16184. #
  16185. # You should have received a copy of the GNU General Public License
  16186. # along with GNU Libtool; see the file COPYING. If not, a copy
  16187. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16188. # obtained by writing to the Free Software Foundation, Inc.,
  16189. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16190. # The names of the tagged configurations supported by this script.
  16191. available_tags="CXX "
  16192. # ### BEGIN LIBTOOL CONFIG
  16193. # Which release of libtool.m4 was used?
  16194. macro_version=$macro_version
  16195. macro_revision=$macro_revision
  16196. # Whether or not to build shared libraries.
  16197. build_libtool_libs=$enable_shared
  16198. # Whether or not to build static libraries.
  16199. build_old_libs=$enable_static
  16200. # What type of objects to build.
  16201. pic_mode=$pic_mode
  16202. # Whether or not to optimize for fast installation.
  16203. fast_install=$enable_fast_install
  16204. # Shell to use when invoking shell scripts.
  16205. SHELL=$lt_SHELL
  16206. # An echo program that protects backslashes.
  16207. ECHO=$lt_ECHO
  16208. # The host system.
  16209. host_alias=$host_alias
  16210. host=$host
  16211. host_os=$host_os
  16212. # The build system.
  16213. build_alias=$build_alias
  16214. build=$build
  16215. build_os=$build_os
  16216. # A sed program that does not truncate output.
  16217. SED=$lt_SED
  16218. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16219. Xsed="\$SED -e 1s/^X//"
  16220. # A grep program that handles long lines.
  16221. GREP=$lt_GREP
  16222. # An ERE matcher.
  16223. EGREP=$lt_EGREP
  16224. # A literal string matcher.
  16225. FGREP=$lt_FGREP
  16226. # A BSD- or MS-compatible name lister.
  16227. NM=$lt_NM
  16228. # Whether we need soft or hard links.
  16229. LN_S=$lt_LN_S
  16230. # What is the maximum length of a command?
  16231. max_cmd_len=$max_cmd_len
  16232. # Object file suffix (normally "o").
  16233. objext=$ac_objext
  16234. # Executable file suffix (normally "").
  16235. exeext=$exeext
  16236. # whether the shell understands "unset".
  16237. lt_unset=$lt_unset
  16238. # turn spaces into newlines.
  16239. SP2NL=$lt_lt_SP2NL
  16240. # turn newlines into spaces.
  16241. NL2SP=$lt_lt_NL2SP
  16242. # An object symbol dumper.
  16243. OBJDUMP=$lt_OBJDUMP
  16244. # Method to check whether dependent libraries are shared objects.
  16245. deplibs_check_method=$lt_deplibs_check_method
  16246. # Command to use when deplibs_check_method == "file_magic".
  16247. file_magic_cmd=$lt_file_magic_cmd
  16248. # The archiver.
  16249. AR=$lt_AR
  16250. AR_FLAGS=$lt_AR_FLAGS
  16251. # A symbol stripping program.
  16252. STRIP=$lt_STRIP
  16253. # Commands used to install an old-style archive.
  16254. RANLIB=$lt_RANLIB
  16255. old_postinstall_cmds=$lt_old_postinstall_cmds
  16256. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16257. # Whether to use a lock for old archive extraction.
  16258. lock_old_archive_extraction=$lock_old_archive_extraction
  16259. # A C compiler.
  16260. LTCC=$lt_CC
  16261. # LTCC compiler flags.
  16262. LTCFLAGS=$lt_CFLAGS
  16263. # Take the output of nm and produce a listing of raw symbols and C names.
  16264. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16265. # Transform the output of nm in a proper C declaration.
  16266. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16267. # Transform the output of nm in a C name address pair.
  16268. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16269. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16270. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16271. # The name of the directory that contains temporary libtool files.
  16272. objdir=$objdir
  16273. # Used to examine libraries when file_magic_cmd begins with "file".
  16274. MAGIC_CMD=$MAGIC_CMD
  16275. # Must we lock files when doing compilation?
  16276. need_locks=$lt_need_locks
  16277. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16278. DSYMUTIL=$lt_DSYMUTIL
  16279. # Tool to change global to local symbols on Mac OS X.
  16280. NMEDIT=$lt_NMEDIT
  16281. # Tool to manipulate fat objects and archives on Mac OS X.
  16282. LIPO=$lt_LIPO
  16283. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16284. OTOOL=$lt_OTOOL
  16285. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16286. OTOOL64=$lt_OTOOL64
  16287. # Old archive suffix (normally "a").
  16288. libext=$libext
  16289. # Shared library suffix (normally ".so").
  16290. shrext_cmds=$lt_shrext_cmds
  16291. # The commands to extract the exported symbol list from a shared archive.
  16292. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16293. # Variables whose values should be saved in libtool wrapper scripts and
  16294. # restored at link time.
  16295. variables_saved_for_relink=$lt_variables_saved_for_relink
  16296. # Do we need the "lib" prefix for modules?
  16297. need_lib_prefix=$need_lib_prefix
  16298. # Do we need a version for libraries?
  16299. need_version=$need_version
  16300. # Library versioning type.
  16301. version_type=$version_type
  16302. # Shared library runtime path variable.
  16303. runpath_var=$runpath_var
  16304. # Shared library path variable.
  16305. shlibpath_var=$shlibpath_var
  16306. # Is shlibpath searched before the hard-coded library search path?
  16307. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16308. # Format of library name prefix.
  16309. libname_spec=$lt_libname_spec
  16310. # List of archive names. First name is the real one, the rest are links.
  16311. # The last name is the one that the linker finds with -lNAME
  16312. library_names_spec=$lt_library_names_spec
  16313. # The coded name of the library, if different from the real name.
  16314. soname_spec=$lt_soname_spec
  16315. # Permission mode override for installation of shared libraries.
  16316. install_override_mode=$lt_install_override_mode
  16317. # Command to use after installation of a shared archive.
  16318. postinstall_cmds=$lt_postinstall_cmds
  16319. # Command to use after uninstallation of a shared archive.
  16320. postuninstall_cmds=$lt_postuninstall_cmds
  16321. # Commands used to finish a libtool library installation in a directory.
  16322. finish_cmds=$lt_finish_cmds
  16323. # As "finish_cmds", except a single script fragment to be evaled but
  16324. # not shown.
  16325. finish_eval=$lt_finish_eval
  16326. # Whether we should hardcode library paths into libraries.
  16327. hardcode_into_libs=$hardcode_into_libs
  16328. # Compile-time system search path for libraries.
  16329. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16330. # Run-time system search path for libraries.
  16331. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16332. # Whether dlopen is supported.
  16333. dlopen_support=$enable_dlopen
  16334. # Whether dlopen of programs is supported.
  16335. dlopen_self=$enable_dlopen_self
  16336. # Whether dlopen of statically linked programs is supported.
  16337. dlopen_self_static=$enable_dlopen_self_static
  16338. # Commands to strip libraries.
  16339. old_striplib=$lt_old_striplib
  16340. striplib=$lt_striplib
  16341. # The linker used to build libraries.
  16342. LD=$lt_LD
  16343. # How to create reloadable object files.
  16344. reload_flag=$lt_reload_flag
  16345. reload_cmds=$lt_reload_cmds
  16346. # Commands used to build an old-style archive.
  16347. old_archive_cmds=$lt_old_archive_cmds
  16348. # A language specific compiler.
  16349. CC=$lt_compiler
  16350. # Is the compiler the GNU compiler?
  16351. with_gcc=$GCC
  16352. # Compiler flag to turn off builtin functions.
  16353. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16354. # How to pass a linker flag through the compiler.
  16355. wl=$lt_lt_prog_compiler_wl
  16356. # Additional compiler flags for building library objects.
  16357. pic_flag=$lt_lt_prog_compiler_pic
  16358. # Compiler flag to prevent dynamic linking.
  16359. link_static_flag=$lt_lt_prog_compiler_static
  16360. # Does compiler simultaneously support -c and -o options?
  16361. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16362. # Whether or not to add -lc for building shared libraries.
  16363. build_libtool_need_lc=$archive_cmds_need_lc
  16364. # Whether or not to disallow shared libs when runtime libs are static.
  16365. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16366. # Compiler flag to allow reflexive dlopens.
  16367. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16368. # Compiler flag to generate shared objects directly from archives.
  16369. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16370. # Whether the compiler copes with passing no objects directly.
  16371. compiler_needs_object=$lt_compiler_needs_object
  16372. # Create an old-style archive from a shared archive.
  16373. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16374. # Create a temporary old-style archive to link instead of a shared archive.
  16375. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16376. # Commands used to build a shared archive.
  16377. archive_cmds=$lt_archive_cmds
  16378. archive_expsym_cmds=$lt_archive_expsym_cmds
  16379. # Commands used to build a loadable module if different from building
  16380. # a shared archive.
  16381. module_cmds=$lt_module_cmds
  16382. module_expsym_cmds=$lt_module_expsym_cmds
  16383. # Whether we are building with GNU ld or not.
  16384. with_gnu_ld=$lt_with_gnu_ld
  16385. # Flag that allows shared libraries with undefined symbols to be built.
  16386. allow_undefined_flag=$lt_allow_undefined_flag
  16387. # Flag that enforces no undefined symbols.
  16388. no_undefined_flag=$lt_no_undefined_flag
  16389. # Flag to hardcode \$libdir into a binary during linking.
  16390. # This must work even if \$libdir does not exist
  16391. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16392. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16393. # during linking. This must work even if \$libdir does not exist.
  16394. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16395. # Whether we need a single "-rpath" flag with a separated argument.
  16396. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16397. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16398. # DIR into the resulting binary.
  16399. hardcode_direct=$hardcode_direct
  16400. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16401. # DIR into the resulting binary and the resulting library dependency is
  16402. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16403. # library is relocated.
  16404. hardcode_direct_absolute=$hardcode_direct_absolute
  16405. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16406. # into the resulting binary.
  16407. hardcode_minus_L=$hardcode_minus_L
  16408. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16409. # into the resulting binary.
  16410. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16411. # Set to "yes" if building a shared library automatically hardcodes DIR
  16412. # into the library and all subsequent libraries and executables linked
  16413. # against it.
  16414. hardcode_automatic=$hardcode_automatic
  16415. # Set to yes if linker adds runtime paths of dependent libraries
  16416. # to runtime path list.
  16417. inherit_rpath=$inherit_rpath
  16418. # Whether libtool must link a program against all its dependency libraries.
  16419. link_all_deplibs=$link_all_deplibs
  16420. # Fix the shell variable \$srcfile for the compiler.
  16421. fix_srcfile_path=$lt_fix_srcfile_path
  16422. # Set to "yes" if exported symbols are required.
  16423. always_export_symbols=$always_export_symbols
  16424. # The commands to list exported symbols.
  16425. export_symbols_cmds=$lt_export_symbols_cmds
  16426. # Symbols that should not be listed in the preloaded symbols.
  16427. exclude_expsyms=$lt_exclude_expsyms
  16428. # Symbols that must always be exported.
  16429. include_expsyms=$lt_include_expsyms
  16430. # Commands necessary for linking programs (against libraries) with templates.
  16431. prelink_cmds=$lt_prelink_cmds
  16432. # Specify filename containing input files.
  16433. file_list_spec=$lt_file_list_spec
  16434. # How to hardcode a shared library path into an executable.
  16435. hardcode_action=$hardcode_action
  16436. # The directories searched by this compiler when creating a shared library.
  16437. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16438. # Dependencies to place before and after the objects being linked to
  16439. # create a shared library.
  16440. predep_objects=$lt_predep_objects
  16441. postdep_objects=$lt_postdep_objects
  16442. predeps=$lt_predeps
  16443. postdeps=$lt_postdeps
  16444. # The library search path used internally by the compiler when linking
  16445. # a shared library.
  16446. compiler_lib_search_path=$lt_compiler_lib_search_path
  16447. # ### END LIBTOOL CONFIG
  16448. _LT_EOF
  16449. case $host_os in
  16450. aix3*)
  16451. cat <<\_LT_EOF >> "$cfgfile"
  16452. # AIX sometimes has problems with the GCC collect2 program. For some
  16453. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16454. # vanish in a puff of smoke.
  16455. if test "X${COLLECT_NAMES+set}" != Xset; then
  16456. COLLECT_NAMES=
  16457. export COLLECT_NAMES
  16458. fi
  16459. _LT_EOF
  16460. ;;
  16461. esac
  16462. ltmain="$ac_aux_dir/ltmain.sh"
  16463. # We use sed instead of cat because bash on DJGPP gets confused if
  16464. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16465. # text mode, it properly converts lines to CR/LF. This bash problem
  16466. # is reportedly fixed, but why not run on old versions too?
  16467. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16468. || (rm -f "$cfgfile"; exit 1)
  16469. case $xsi_shell in
  16470. yes)
  16471. cat << \_LT_EOF >> "$cfgfile"
  16472. # func_dirname file append nondir_replacement
  16473. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16474. # otherwise set result to NONDIR_REPLACEMENT.
  16475. func_dirname ()
  16476. {
  16477. case ${1} in
  16478. */*) func_dirname_result="${1%/*}${2}" ;;
  16479. * ) func_dirname_result="${3}" ;;
  16480. esac
  16481. }
  16482. # func_basename file
  16483. func_basename ()
  16484. {
  16485. func_basename_result="${1##*/}"
  16486. }
  16487. # func_dirname_and_basename file append nondir_replacement
  16488. # perform func_basename and func_dirname in a single function
  16489. # call:
  16490. # dirname: Compute the dirname of FILE. If nonempty,
  16491. # add APPEND to the result, otherwise set result
  16492. # to NONDIR_REPLACEMENT.
  16493. # value returned in "$func_dirname_result"
  16494. # basename: Compute filename of FILE.
  16495. # value retuned in "$func_basename_result"
  16496. # Implementation must be kept synchronized with func_dirname
  16497. # and func_basename. For efficiency, we do not delegate to
  16498. # those functions but instead duplicate the functionality here.
  16499. func_dirname_and_basename ()
  16500. {
  16501. case ${1} in
  16502. */*) func_dirname_result="${1%/*}${2}" ;;
  16503. * ) func_dirname_result="${3}" ;;
  16504. esac
  16505. func_basename_result="${1##*/}"
  16506. }
  16507. # func_stripname prefix suffix name
  16508. # strip PREFIX and SUFFIX off of NAME.
  16509. # PREFIX and SUFFIX must not contain globbing or regex special
  16510. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16511. # dot (in which case that matches only a dot).
  16512. func_stripname ()
  16513. {
  16514. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16515. # positional parameters, so assign one to ordinary parameter first.
  16516. func_stripname_result=${3}
  16517. func_stripname_result=${func_stripname_result#"${1}"}
  16518. func_stripname_result=${func_stripname_result%"${2}"}
  16519. }
  16520. # func_opt_split
  16521. func_opt_split ()
  16522. {
  16523. func_opt_split_opt=${1%%=*}
  16524. func_opt_split_arg=${1#*=}
  16525. }
  16526. # func_lo2o object
  16527. func_lo2o ()
  16528. {
  16529. case ${1} in
  16530. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16531. *) func_lo2o_result=${1} ;;
  16532. esac
  16533. }
  16534. # func_xform libobj-or-source
  16535. func_xform ()
  16536. {
  16537. func_xform_result=${1%.*}.lo
  16538. }
  16539. # func_arith arithmetic-term...
  16540. func_arith ()
  16541. {
  16542. func_arith_result=$(( $* ))
  16543. }
  16544. # func_len string
  16545. # STRING may not start with a hyphen.
  16546. func_len ()
  16547. {
  16548. func_len_result=${#1}
  16549. }
  16550. _LT_EOF
  16551. ;;
  16552. *) # Bourne compatible functions.
  16553. cat << \_LT_EOF >> "$cfgfile"
  16554. # func_dirname file append nondir_replacement
  16555. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16556. # otherwise set result to NONDIR_REPLACEMENT.
  16557. func_dirname ()
  16558. {
  16559. # Extract subdirectory from the argument.
  16560. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16561. if test "X$func_dirname_result" = "X${1}"; then
  16562. func_dirname_result="${3}"
  16563. else
  16564. func_dirname_result="$func_dirname_result${2}"
  16565. fi
  16566. }
  16567. # func_basename file
  16568. func_basename ()
  16569. {
  16570. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16571. }
  16572. # func_stripname prefix suffix name
  16573. # strip PREFIX and SUFFIX off of NAME.
  16574. # PREFIX and SUFFIX must not contain globbing or regex special
  16575. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16576. # dot (in which case that matches only a dot).
  16577. # func_strip_suffix prefix name
  16578. func_stripname ()
  16579. {
  16580. case ${2} in
  16581. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16582. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16583. esac
  16584. }
  16585. # sed scripts:
  16586. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16587. my_sed_long_arg='1s/^-[^=]*=//'
  16588. # func_opt_split
  16589. func_opt_split ()
  16590. {
  16591. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16592. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16593. }
  16594. # func_lo2o object
  16595. func_lo2o ()
  16596. {
  16597. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16598. }
  16599. # func_xform libobj-or-source
  16600. func_xform ()
  16601. {
  16602. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16603. }
  16604. # func_arith arithmetic-term...
  16605. func_arith ()
  16606. {
  16607. func_arith_result=`expr "$@"`
  16608. }
  16609. # func_len string
  16610. # STRING may not start with a hyphen.
  16611. func_len ()
  16612. {
  16613. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16614. }
  16615. _LT_EOF
  16616. esac
  16617. case $lt_shell_append in
  16618. yes)
  16619. cat << \_LT_EOF >> "$cfgfile"
  16620. # func_append var value
  16621. # Append VALUE to the end of shell variable VAR.
  16622. func_append ()
  16623. {
  16624. eval "$1+=\$2"
  16625. }
  16626. _LT_EOF
  16627. ;;
  16628. *)
  16629. cat << \_LT_EOF >> "$cfgfile"
  16630. # func_append var value
  16631. # Append VALUE to the end of shell variable VAR.
  16632. func_append ()
  16633. {
  16634. eval "$1=\$$1\$2"
  16635. }
  16636. _LT_EOF
  16637. ;;
  16638. esac
  16639. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16640. || (rm -f "$cfgfile"; exit 1)
  16641. mv -f "$cfgfile" "$ofile" ||
  16642. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16643. chmod +x "$ofile"
  16644. cat <<_LT_EOF >> "$ofile"
  16645. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16646. # The linker used to build libraries.
  16647. LD=$lt_LD_CXX
  16648. # How to create reloadable object files.
  16649. reload_flag=$lt_reload_flag_CXX
  16650. reload_cmds=$lt_reload_cmds_CXX
  16651. # Commands used to build an old-style archive.
  16652. old_archive_cmds=$lt_old_archive_cmds_CXX
  16653. # A language specific compiler.
  16654. CC=$lt_compiler_CXX
  16655. # Is the compiler the GNU compiler?
  16656. with_gcc=$GCC_CXX
  16657. # Compiler flag to turn off builtin functions.
  16658. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16659. # How to pass a linker flag through the compiler.
  16660. wl=$lt_lt_prog_compiler_wl_CXX
  16661. # Additional compiler flags for building library objects.
  16662. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16663. # Compiler flag to prevent dynamic linking.
  16664. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16665. # Does compiler simultaneously support -c and -o options?
  16666. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16667. # Whether or not to add -lc for building shared libraries.
  16668. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16669. # Whether or not to disallow shared libs when runtime libs are static.
  16670. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16671. # Compiler flag to allow reflexive dlopens.
  16672. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16673. # Compiler flag to generate shared objects directly from archives.
  16674. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16675. # Whether the compiler copes with passing no objects directly.
  16676. compiler_needs_object=$lt_compiler_needs_object_CXX
  16677. # Create an old-style archive from a shared archive.
  16678. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16679. # Create a temporary old-style archive to link instead of a shared archive.
  16680. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16681. # Commands used to build a shared archive.
  16682. archive_cmds=$lt_archive_cmds_CXX
  16683. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16684. # Commands used to build a loadable module if different from building
  16685. # a shared archive.
  16686. module_cmds=$lt_module_cmds_CXX
  16687. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16688. # Whether we are building with GNU ld or not.
  16689. with_gnu_ld=$lt_with_gnu_ld_CXX
  16690. # Flag that allows shared libraries with undefined symbols to be built.
  16691. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16692. # Flag that enforces no undefined symbols.
  16693. no_undefined_flag=$lt_no_undefined_flag_CXX
  16694. # Flag to hardcode \$libdir into a binary during linking.
  16695. # This must work even if \$libdir does not exist
  16696. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16697. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16698. # during linking. This must work even if \$libdir does not exist.
  16699. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16700. # Whether we need a single "-rpath" flag with a separated argument.
  16701. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16702. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16703. # DIR into the resulting binary.
  16704. hardcode_direct=$hardcode_direct_CXX
  16705. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16706. # DIR into the resulting binary and the resulting library dependency is
  16707. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16708. # library is relocated.
  16709. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16710. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16711. # into the resulting binary.
  16712. hardcode_minus_L=$hardcode_minus_L_CXX
  16713. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16714. # into the resulting binary.
  16715. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16716. # Set to "yes" if building a shared library automatically hardcodes DIR
  16717. # into the library and all subsequent libraries and executables linked
  16718. # against it.
  16719. hardcode_automatic=$hardcode_automatic_CXX
  16720. # Set to yes if linker adds runtime paths of dependent libraries
  16721. # to runtime path list.
  16722. inherit_rpath=$inherit_rpath_CXX
  16723. # Whether libtool must link a program against all its dependency libraries.
  16724. link_all_deplibs=$link_all_deplibs_CXX
  16725. # Fix the shell variable \$srcfile for the compiler.
  16726. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16727. # Set to "yes" if exported symbols are required.
  16728. always_export_symbols=$always_export_symbols_CXX
  16729. # The commands to list exported symbols.
  16730. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16731. # Symbols that should not be listed in the preloaded symbols.
  16732. exclude_expsyms=$lt_exclude_expsyms_CXX
  16733. # Symbols that must always be exported.
  16734. include_expsyms=$lt_include_expsyms_CXX
  16735. # Commands necessary for linking programs (against libraries) with templates.
  16736. prelink_cmds=$lt_prelink_cmds_CXX
  16737. # Specify filename containing input files.
  16738. file_list_spec=$lt_file_list_spec_CXX
  16739. # How to hardcode a shared library path into an executable.
  16740. hardcode_action=$hardcode_action_CXX
  16741. # The directories searched by this compiler when creating a shared library.
  16742. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16743. # Dependencies to place before and after the objects being linked to
  16744. # create a shared library.
  16745. predep_objects=$lt_predep_objects_CXX
  16746. postdep_objects=$lt_postdep_objects_CXX
  16747. predeps=$lt_predeps_CXX
  16748. postdeps=$lt_postdeps_CXX
  16749. # The library search path used internally by the compiler when linking
  16750. # a shared library.
  16751. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16752. # ### END LIBTOOL TAG CONFIG: CXX
  16753. _LT_EOF
  16754. ;;
  16755. esac
  16756. done # for ac_tag
  16757. as_fn_exit 0
  16758. _ACEOF
  16759. ac_clean_files=$ac_clean_files_save
  16760. test $ac_write_fail = 0 ||
  16761. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16762. # configure is writing to config.log, and then calls config.status.
  16763. # config.status does its own redirection, appending to config.log.
  16764. # Unfortunately, on DOS this fails, as config.log is still kept open
  16765. # by configure, so config.status won't be able to write to it; its
  16766. # output is simply discarded. So we exec the FD to /dev/null,
  16767. # effectively closing config.log, so it can be properly (re)opened and
  16768. # appended to by config.status. When coming back to configure, we
  16769. # need to make the FD available again.
  16770. if test "$no_create" != yes; then
  16771. ac_cs_success=:
  16772. ac_config_status_args=
  16773. test "$silent" = yes &&
  16774. ac_config_status_args="$ac_config_status_args --quiet"
  16775. exec 5>/dev/null
  16776. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16777. exec 5>>config.log
  16778. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16779. # would make configure fail if this is the last instruction.
  16780. $ac_cs_success || as_fn_exit 1
  16781. fi
  16782. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16784. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16785. fi