configure 586 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gprofng 2.38.50.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='gprofng'
  539. PACKAGE_TARNAME='gprofng'
  540. PACKAGE_VERSION='2.38.50'
  541. PACKAGE_STRING='gprofng 2.38.50'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. enable_option_checking=no
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. BUILD_SUBDIRS
  585. CLOCK_GETTIME_LINK
  586. GPROFNG_CPPFLAGS
  587. GPROFNG_CFLAGS
  588. LD_NO_AS_NEEDED
  589. BUILD_MAN_FALSE
  590. BUILD_MAN_TRUE
  591. HELP2MAN
  592. zlibinc
  593. zlibdir
  594. TCL_TRY_FALSE
  595. TCL_TRY_TRUE
  596. EXPECT
  597. jdk_inc
  598. GPROFNG_BROKEN_JAVAC
  599. JAVA
  600. JAVAC
  601. PTHREAD_CFLAGS
  602. PTHREAD_LIBS
  603. PTHREAD_CC
  604. ax_pthread_config
  605. RUN_TESTS_FALSE
  606. RUN_TESTS_TRUE
  607. subdirs
  608. BUILD_SRC_FALSE
  609. BUILD_SRC_TRUE
  610. BUILD_COLLECTOR_FALSE
  611. BUILD_COLLECTOR_TRUE
  612. GPROFNG_NO_SWITCH_CFLAGS
  613. GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
  614. gprofng_cflags
  615. WERROR
  616. GPROFNG_LIBADD
  617. CXXCPP
  618. OTOOL64
  619. OTOOL
  620. LIPO
  621. NMEDIT
  622. DSYMUTIL
  623. OBJDUMP
  624. LN_S
  625. NM
  626. ac_ct_DUMPBIN
  627. DUMPBIN
  628. LD
  629. FGREP
  630. SED
  631. LIBTOOL
  632. ac_ct_AR
  633. AR
  634. RANLIB
  635. am__fastdepCXX_FALSE
  636. am__fastdepCXX_TRUE
  637. CXXDEPMODE
  638. ac_ct_CXX
  639. CXXFLAGS
  640. CXX
  641. EGREP
  642. GREP
  643. CPP
  644. am__fastdepCC_FALSE
  645. am__fastdepCC_TRUE
  646. CCDEPMODE
  647. am__nodep
  648. AMDEPBACKSLASH
  649. AMDEP_FALSE
  650. AMDEP_TRUE
  651. am__quote
  652. am__include
  653. DEPDIR
  654. OBJEXT
  655. EXEEXT
  656. ac_ct_CC
  657. CPPFLAGS
  658. LDFLAGS
  659. CFLAGS
  660. CC
  661. MAINT
  662. MAINTAINER_MODE_FALSE
  663. MAINTAINER_MODE_TRUE
  664. AM_BACKSLASH
  665. AM_DEFAULT_VERBOSITY
  666. AM_DEFAULT_V
  667. AM_V
  668. am__untar
  669. am__tar
  670. AMTAR
  671. am__leading_dot
  672. SET_MAKE
  673. AWK
  674. mkdir_p
  675. MKDIR_P
  676. INSTALL_STRIP_PROGRAM
  677. STRIP
  678. install_sh
  679. MAKEINFO
  680. AUTOHEADER
  681. AUTOMAKE
  682. AUTOCONF
  683. ACLOCAL
  684. VERSION
  685. PACKAGE
  686. CYGPATH_W
  687. am__isrc
  688. INSTALL_DATA
  689. INSTALL_SCRIPT
  690. INSTALL_PROGRAM
  691. target_os
  692. target_vendor
  693. target_cpu
  694. target
  695. host_os
  696. host_vendor
  697. host_cpu
  698. host
  699. build_os
  700. build_vendor
  701. build_cpu
  702. build
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_silent_rules
  745. enable_maintainer_mode
  746. enable_dependency_tracking
  747. enable_shared
  748. enable_static
  749. with_pic
  750. enable_fast_install
  751. with_gnu_ld
  752. enable_libtool_lock
  753. enable_werror_always
  754. enable_gprofng_tools
  755. with_jdk
  756. enable_gprofng_debug
  757. with_system_zlib
  758. '
  759. ac_precious_vars='build_alias
  760. host_alias
  761. target_alias
  762. CC
  763. CFLAGS
  764. LDFLAGS
  765. LIBS
  766. CPPFLAGS
  767. CPP
  768. CXX
  769. CXXFLAGS
  770. CCC
  771. CXXCPP'
  772. ac_subdirs_all='libcollector'
  773. # Initialize some variables set by options.
  774. ac_init_help=
  775. ac_init_version=false
  776. ac_unrecognized_opts=
  777. ac_unrecognized_sep=
  778. # The variables have the same names as the options, with
  779. # dashes changed to underlines.
  780. cache_file=/dev/null
  781. exec_prefix=NONE
  782. no_create=
  783. no_recursion=
  784. prefix=NONE
  785. program_prefix=NONE
  786. program_suffix=NONE
  787. program_transform_name=s,x,x,
  788. silent=
  789. site=
  790. srcdir=
  791. verbose=
  792. x_includes=NONE
  793. x_libraries=NONE
  794. # Installation directory options.
  795. # These are left unexpanded so users can "make install exec_prefix=/foo"
  796. # and all the variables that are supposed to be based on exec_prefix
  797. # by default will actually change.
  798. # Use braces instead of parens because sh, perl, etc. also accept them.
  799. # (The list follows the same order as the GNU Coding Standards.)
  800. bindir='${exec_prefix}/bin'
  801. sbindir='${exec_prefix}/sbin'
  802. libexecdir='${exec_prefix}/libexec'
  803. datarootdir='${prefix}/share'
  804. datadir='${datarootdir}'
  805. sysconfdir='${prefix}/etc'
  806. sharedstatedir='${prefix}/com'
  807. localstatedir='${prefix}/var'
  808. includedir='${prefix}/include'
  809. oldincludedir='/usr/include'
  810. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  811. infodir='${datarootdir}/info'
  812. htmldir='${docdir}'
  813. dvidir='${docdir}'
  814. pdfdir='${docdir}'
  815. psdir='${docdir}'
  816. libdir='${exec_prefix}/lib'
  817. localedir='${datarootdir}/locale'
  818. mandir='${datarootdir}/man'
  819. ac_prev=
  820. ac_dashdash=
  821. for ac_option
  822. do
  823. # If the previous option needs an argument, assign it.
  824. if test -n "$ac_prev"; then
  825. eval $ac_prev=\$ac_option
  826. ac_prev=
  827. continue
  828. fi
  829. case $ac_option in
  830. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  831. *=) ac_optarg= ;;
  832. *) ac_optarg=yes ;;
  833. esac
  834. # Accept the important Cygnus configure options, so we can diagnose typos.
  835. case $ac_dashdash$ac_option in
  836. --)
  837. ac_dashdash=yes ;;
  838. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  839. ac_prev=bindir ;;
  840. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  841. bindir=$ac_optarg ;;
  842. -build | --build | --buil | --bui | --bu)
  843. ac_prev=build_alias ;;
  844. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  845. build_alias=$ac_optarg ;;
  846. -cache-file | --cache-file | --cache-fil | --cache-fi \
  847. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  848. ac_prev=cache_file ;;
  849. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  850. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  851. cache_file=$ac_optarg ;;
  852. --config-cache | -C)
  853. cache_file=config.cache ;;
  854. -datadir | --datadir | --datadi | --datad)
  855. ac_prev=datadir ;;
  856. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  857. datadir=$ac_optarg ;;
  858. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  859. | --dataroo | --dataro | --datar)
  860. ac_prev=datarootdir ;;
  861. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  862. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  863. datarootdir=$ac_optarg ;;
  864. -disable-* | --disable-*)
  865. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  866. # Reject names that are not valid shell variable names.
  867. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  868. as_fn_error $? "invalid feature name: $ac_useropt"
  869. ac_useropt_orig=$ac_useropt
  870. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  871. case $ac_user_opts in
  872. *"
  873. "enable_$ac_useropt"
  874. "*) ;;
  875. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  876. ac_unrecognized_sep=', ';;
  877. esac
  878. eval enable_$ac_useropt=no ;;
  879. -docdir | --docdir | --docdi | --doc | --do)
  880. ac_prev=docdir ;;
  881. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  882. docdir=$ac_optarg ;;
  883. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  884. ac_prev=dvidir ;;
  885. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  886. dvidir=$ac_optarg ;;
  887. -enable-* | --enable-*)
  888. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  891. as_fn_error $? "invalid feature name: $ac_useropt"
  892. ac_useropt_orig=$ac_useropt
  893. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  894. case $ac_user_opts in
  895. *"
  896. "enable_$ac_useropt"
  897. "*) ;;
  898. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  899. ac_unrecognized_sep=', ';;
  900. esac
  901. eval enable_$ac_useropt=\$ac_optarg ;;
  902. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  903. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  904. | --exec | --exe | --ex)
  905. ac_prev=exec_prefix ;;
  906. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  907. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  908. | --exec=* | --exe=* | --ex=*)
  909. exec_prefix=$ac_optarg ;;
  910. -gas | --gas | --ga | --g)
  911. # Obsolete; use --with-gas.
  912. with_gas=yes ;;
  913. -help | --help | --hel | --he | -h)
  914. ac_init_help=long ;;
  915. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  916. ac_init_help=recursive ;;
  917. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  918. ac_init_help=short ;;
  919. -host | --host | --hos | --ho)
  920. ac_prev=host_alias ;;
  921. -host=* | --host=* | --hos=* | --ho=*)
  922. host_alias=$ac_optarg ;;
  923. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  924. ac_prev=htmldir ;;
  925. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  926. | --ht=*)
  927. htmldir=$ac_optarg ;;
  928. -includedir | --includedir | --includedi | --included | --include \
  929. | --includ | --inclu | --incl | --inc)
  930. ac_prev=includedir ;;
  931. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  932. | --includ=* | --inclu=* | --incl=* | --inc=*)
  933. includedir=$ac_optarg ;;
  934. -infodir | --infodir | --infodi | --infod | --info | --inf)
  935. ac_prev=infodir ;;
  936. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  937. infodir=$ac_optarg ;;
  938. -libdir | --libdir | --libdi | --libd)
  939. ac_prev=libdir ;;
  940. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  941. libdir=$ac_optarg ;;
  942. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  943. | --libexe | --libex | --libe)
  944. ac_prev=libexecdir ;;
  945. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  946. | --libexe=* | --libex=* | --libe=*)
  947. libexecdir=$ac_optarg ;;
  948. -localedir | --localedir | --localedi | --localed | --locale)
  949. ac_prev=localedir ;;
  950. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  951. localedir=$ac_optarg ;;
  952. -localstatedir | --localstatedir | --localstatedi | --localstated \
  953. | --localstate | --localstat | --localsta | --localst | --locals)
  954. ac_prev=localstatedir ;;
  955. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  956. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  957. localstatedir=$ac_optarg ;;
  958. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  959. ac_prev=mandir ;;
  960. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  961. mandir=$ac_optarg ;;
  962. -nfp | --nfp | --nf)
  963. # Obsolete; use --without-fp.
  964. with_fp=no ;;
  965. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  966. | --no-cr | --no-c | -n)
  967. no_create=yes ;;
  968. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  969. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  970. no_recursion=yes ;;
  971. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  972. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  973. | --oldin | --oldi | --old | --ol | --o)
  974. ac_prev=oldincludedir ;;
  975. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  976. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  977. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  978. oldincludedir=$ac_optarg ;;
  979. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  980. ac_prev=prefix ;;
  981. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  982. prefix=$ac_optarg ;;
  983. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  984. | --program-pre | --program-pr | --program-p)
  985. ac_prev=program_prefix ;;
  986. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  987. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  988. program_prefix=$ac_optarg ;;
  989. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  990. | --program-suf | --program-su | --program-s)
  991. ac_prev=program_suffix ;;
  992. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  993. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  994. program_suffix=$ac_optarg ;;
  995. -program-transform-name | --program-transform-name \
  996. | --program-transform-nam | --program-transform-na \
  997. | --program-transform-n | --program-transform- \
  998. | --program-transform | --program-transfor \
  999. | --program-transfo | --program-transf \
  1000. | --program-trans | --program-tran \
  1001. | --progr-tra | --program-tr | --program-t)
  1002. ac_prev=program_transform_name ;;
  1003. -program-transform-name=* | --program-transform-name=* \
  1004. | --program-transform-nam=* | --program-transform-na=* \
  1005. | --program-transform-n=* | --program-transform-=* \
  1006. | --program-transform=* | --program-transfor=* \
  1007. | --program-transfo=* | --program-transf=* \
  1008. | --program-trans=* | --program-tran=* \
  1009. | --progr-tra=* | --program-tr=* | --program-t=*)
  1010. program_transform_name=$ac_optarg ;;
  1011. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1012. ac_prev=pdfdir ;;
  1013. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1014. pdfdir=$ac_optarg ;;
  1015. -psdir | --psdir | --psdi | --psd | --ps)
  1016. ac_prev=psdir ;;
  1017. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1018. psdir=$ac_optarg ;;
  1019. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1020. | -silent | --silent | --silen | --sile | --sil)
  1021. silent=yes ;;
  1022. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1023. ac_prev=sbindir ;;
  1024. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1025. | --sbi=* | --sb=*)
  1026. sbindir=$ac_optarg ;;
  1027. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1028. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1029. | --sharedst | --shareds | --shared | --share | --shar \
  1030. | --sha | --sh)
  1031. ac_prev=sharedstatedir ;;
  1032. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1033. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1034. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1035. | --sha=* | --sh=*)
  1036. sharedstatedir=$ac_optarg ;;
  1037. -site | --site | --sit)
  1038. ac_prev=site ;;
  1039. -site=* | --site=* | --sit=*)
  1040. site=$ac_optarg ;;
  1041. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1042. ac_prev=srcdir ;;
  1043. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1044. srcdir=$ac_optarg ;;
  1045. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1046. | --syscon | --sysco | --sysc | --sys | --sy)
  1047. ac_prev=sysconfdir ;;
  1048. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1049. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1050. sysconfdir=$ac_optarg ;;
  1051. -target | --target | --targe | --targ | --tar | --ta | --t)
  1052. ac_prev=target_alias ;;
  1053. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1054. target_alias=$ac_optarg ;;
  1055. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1056. verbose=yes ;;
  1057. -version | --version | --versio | --versi | --vers | -V)
  1058. ac_init_version=: ;;
  1059. -with-* | --with-*)
  1060. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1061. # Reject names that are not valid shell variable names.
  1062. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1063. as_fn_error $? "invalid package name: $ac_useropt"
  1064. ac_useropt_orig=$ac_useropt
  1065. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1066. case $ac_user_opts in
  1067. *"
  1068. "with_$ac_useropt"
  1069. "*) ;;
  1070. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1071. ac_unrecognized_sep=', ';;
  1072. esac
  1073. eval with_$ac_useropt=\$ac_optarg ;;
  1074. -without-* | --without-*)
  1075. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1076. # Reject names that are not valid shell variable names.
  1077. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1078. as_fn_error $? "invalid package name: $ac_useropt"
  1079. ac_useropt_orig=$ac_useropt
  1080. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1081. case $ac_user_opts in
  1082. *"
  1083. "with_$ac_useropt"
  1084. "*) ;;
  1085. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1086. ac_unrecognized_sep=', ';;
  1087. esac
  1088. eval with_$ac_useropt=no ;;
  1089. --x)
  1090. # Obsolete; use --with-x.
  1091. with_x=yes ;;
  1092. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1093. | --x-incl | --x-inc | --x-in | --x-i)
  1094. ac_prev=x_includes ;;
  1095. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1096. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1097. x_includes=$ac_optarg ;;
  1098. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1099. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1100. ac_prev=x_libraries ;;
  1101. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1102. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1103. x_libraries=$ac_optarg ;;
  1104. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1105. Try \`$0 --help' for more information"
  1106. ;;
  1107. *=*)
  1108. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1109. # Reject names that are not valid shell variable names.
  1110. case $ac_envvar in #(
  1111. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1112. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1113. esac
  1114. eval $ac_envvar=\$ac_optarg
  1115. export $ac_envvar ;;
  1116. *)
  1117. # FIXME: should be removed in autoconf 3.0.
  1118. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1119. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1120. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1121. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1122. ;;
  1123. esac
  1124. done
  1125. if test -n "$ac_prev"; then
  1126. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1127. as_fn_error $? "missing argument to $ac_option"
  1128. fi
  1129. if test -n "$ac_unrecognized_opts"; then
  1130. case $enable_option_checking in
  1131. no) ;;
  1132. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1133. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1134. esac
  1135. fi
  1136. # Check all directory arguments for consistency.
  1137. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1138. datadir sysconfdir sharedstatedir localstatedir includedir \
  1139. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1140. libdir localedir mandir
  1141. do
  1142. eval ac_val=\$$ac_var
  1143. # Remove trailing slashes.
  1144. case $ac_val in
  1145. */ )
  1146. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1147. eval $ac_var=\$ac_val;;
  1148. esac
  1149. # Be sure to have absolute directory names.
  1150. case $ac_val in
  1151. [\\/$]* | ?:[\\/]* ) continue;;
  1152. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1153. esac
  1154. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1155. done
  1156. # There might be people who depend on the old broken behavior: `$host'
  1157. # used to hold the argument of --host etc.
  1158. # FIXME: To remove some day.
  1159. build=$build_alias
  1160. host=$host_alias
  1161. target=$target_alias
  1162. # FIXME: To remove some day.
  1163. if test "x$host_alias" != x; then
  1164. if test "x$build_alias" = x; then
  1165. cross_compiling=maybe
  1166. elif test "x$build_alias" != "x$host_alias"; then
  1167. cross_compiling=yes
  1168. fi
  1169. fi
  1170. ac_tool_prefix=
  1171. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1172. test "$silent" = yes && exec 6>/dev/null
  1173. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1174. ac_ls_di=`ls -di .` &&
  1175. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1176. as_fn_error $? "working directory cannot be determined"
  1177. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1178. as_fn_error $? "pwd does not report name of working directory"
  1179. # Find the source files, if location was not specified.
  1180. if test -z "$srcdir"; then
  1181. ac_srcdir_defaulted=yes
  1182. # Try the directory containing this script, then the parent directory.
  1183. ac_confdir=`$as_dirname -- "$as_myself" ||
  1184. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1185. X"$as_myself" : 'X\(//\)[^/]' \| \
  1186. X"$as_myself" : 'X\(//\)$' \| \
  1187. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1188. $as_echo X"$as_myself" |
  1189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1190. s//\1/
  1191. q
  1192. }
  1193. /^X\(\/\/\)[^/].*/{
  1194. s//\1/
  1195. q
  1196. }
  1197. /^X\(\/\/\)$/{
  1198. s//\1/
  1199. q
  1200. }
  1201. /^X\(\/\).*/{
  1202. s//\1/
  1203. q
  1204. }
  1205. s/.*/./; q'`
  1206. srcdir=$ac_confdir
  1207. if test ! -r "$srcdir/$ac_unique_file"; then
  1208. srcdir=..
  1209. fi
  1210. else
  1211. ac_srcdir_defaulted=no
  1212. fi
  1213. if test ! -r "$srcdir/$ac_unique_file"; then
  1214. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1215. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1216. fi
  1217. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1218. ac_abs_confdir=`(
  1219. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1220. pwd)`
  1221. # When building in place, set srcdir=.
  1222. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1223. srcdir=.
  1224. fi
  1225. # Remove unnecessary trailing slashes from srcdir.
  1226. # Double slashes in file names in object file debugging info
  1227. # mess up M-x gdb in Emacs.
  1228. case $srcdir in
  1229. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1230. esac
  1231. for ac_var in $ac_precious_vars; do
  1232. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1233. eval ac_env_${ac_var}_value=\$${ac_var}
  1234. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1235. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1236. done
  1237. #
  1238. # Report the --help message.
  1239. #
  1240. if test "$ac_init_help" = "long"; then
  1241. # Omit some internal or obsolete options to make the list less imposing.
  1242. # This message is too long to be a string in the A/UX 3.1 sh.
  1243. cat <<_ACEOF
  1244. \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
  1245. Usage: $0 [OPTION]... [VAR=VALUE]...
  1246. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1247. VAR=VALUE. See below for descriptions of some of the useful variables.
  1248. Defaults for the options are specified in brackets.
  1249. Configuration:
  1250. -h, --help display this help and exit
  1251. --help=short display options specific to this package
  1252. --help=recursive display the short help of all the included packages
  1253. -V, --version display version information and exit
  1254. -q, --quiet, --silent do not print \`checking ...' messages
  1255. --cache-file=FILE cache test results in FILE [disabled]
  1256. -C, --config-cache alias for \`--cache-file=config.cache'
  1257. -n, --no-create do not create output files
  1258. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1259. Installation directories:
  1260. --prefix=PREFIX install architecture-independent files in PREFIX
  1261. [$ac_default_prefix]
  1262. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1263. [PREFIX]
  1264. By default, \`make install' will install all the files in
  1265. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1266. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1267. for instance \`--prefix=\$HOME'.
  1268. For better control, use the options below.
  1269. Fine tuning of the installation directories:
  1270. --bindir=DIR user executables [EPREFIX/bin]
  1271. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1272. --libexecdir=DIR program executables [EPREFIX/libexec]
  1273. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1274. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1275. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1276. --libdir=DIR object code libraries [EPREFIX/lib]
  1277. --includedir=DIR C header files [PREFIX/include]
  1278. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1279. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1280. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1281. --infodir=DIR info documentation [DATAROOTDIR/info]
  1282. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1283. --mandir=DIR man documentation [DATAROOTDIR/man]
  1284. --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
  1285. --htmldir=DIR html documentation [DOCDIR]
  1286. --dvidir=DIR dvi documentation [DOCDIR]
  1287. --pdfdir=DIR pdf documentation [DOCDIR]
  1288. --psdir=DIR ps documentation [DOCDIR]
  1289. _ACEOF
  1290. cat <<\_ACEOF
  1291. Program names:
  1292. --program-prefix=PREFIX prepend PREFIX to installed program names
  1293. --program-suffix=SUFFIX append SUFFIX to installed program names
  1294. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1295. System types:
  1296. --build=BUILD configure for building on BUILD [guessed]
  1297. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1298. --target=TARGET configure for building compilers for TARGET [HOST]
  1299. _ACEOF
  1300. fi
  1301. if test -n "$ac_init_help"; then
  1302. case $ac_init_help in
  1303. short | recursive ) echo "Configuration of gprofng 2.38.50:";;
  1304. esac
  1305. cat <<\_ACEOF
  1306. Optional Features:
  1307. --disable-option-checking ignore unrecognized --enable/--with options
  1308. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1309. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1310. --enable-silent-rules less verbose build output (undo: "make V=1")
  1311. --disable-silent-rules verbose build output (undo: "make V=0")
  1312. --enable-maintainer-mode
  1313. enable make rules and dependencies not useful (and
  1314. sometimes confusing) to the casual installer
  1315. --enable-dependency-tracking
  1316. do not reject slow dependency extractors
  1317. --disable-dependency-tracking
  1318. speeds up one-time build
  1319. --enable-shared[=PKGS] build shared libraries [default=no]
  1320. --enable-static[=PKGS] build static libraries [default=yes]
  1321. --enable-fast-install[=PKGS]
  1322. optimize for fast installation [default=yes]
  1323. --disable-libtool-lock avoid locking (might break parallel builds)
  1324. --enable-werror-always enable -Werror despite compiler version
  1325. --disable-gprofng-tools do not build gprofng/src directory
  1326. --enable-gprofng-debug Enable debugging output [default=no]
  1327. Optional Packages:
  1328. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1329. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1330. --with-pic try to use only PIC/non-PIC objects [default=use
  1331. both]
  1332. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1333. --with-jdk=PATH specify prefix directory for installed JDK.
  1334. --with-system-zlib use installed libz
  1335. Some influential environment variables:
  1336. CC C compiler command
  1337. CFLAGS C compiler flags
  1338. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1339. nonstandard directory <lib dir>
  1340. LIBS libraries to pass to the linker, e.g. -l<library>
  1341. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1342. you have headers in a nonstandard directory <include dir>
  1343. CPP C preprocessor
  1344. CXX C++ compiler command
  1345. CXXFLAGS C++ compiler flags
  1346. CXXCPP C++ preprocessor
  1347. Use these variables to override the choices made by `configure' or to help
  1348. it to find libraries and programs with nonstandard names/locations.
  1349. Report bugs to the package provider.
  1350. _ACEOF
  1351. ac_status=$?
  1352. fi
  1353. if test "$ac_init_help" = "recursive"; then
  1354. # If there are subdirs, report their specific --help.
  1355. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1356. test -d "$ac_dir" ||
  1357. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1358. continue
  1359. ac_builddir=.
  1360. case "$ac_dir" in
  1361. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *)
  1363. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1364. # A ".." for each directory in $ac_dir_suffix.
  1365. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1366. case $ac_top_builddir_sub in
  1367. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1368. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1369. esac ;;
  1370. esac
  1371. ac_abs_top_builddir=$ac_pwd
  1372. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1373. # for backward compatibility:
  1374. ac_top_builddir=$ac_top_build_prefix
  1375. case $srcdir in
  1376. .) # We are building in place.
  1377. ac_srcdir=.
  1378. ac_top_srcdir=$ac_top_builddir_sub
  1379. ac_abs_top_srcdir=$ac_pwd ;;
  1380. [\\/]* | ?:[\\/]* ) # Absolute name.
  1381. ac_srcdir=$srcdir$ac_dir_suffix;
  1382. ac_top_srcdir=$srcdir
  1383. ac_abs_top_srcdir=$srcdir ;;
  1384. *) # Relative name.
  1385. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1386. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1387. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1388. esac
  1389. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1390. cd "$ac_dir" || { ac_status=$?; continue; }
  1391. # Check for guested configure.
  1392. if test -f "$ac_srcdir/configure.gnu"; then
  1393. echo &&
  1394. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1395. elif test -f "$ac_srcdir/configure"; then
  1396. echo &&
  1397. $SHELL "$ac_srcdir/configure" --help=recursive
  1398. else
  1399. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1400. fi || ac_status=$?
  1401. cd "$ac_pwd" || { ac_status=$?; break; }
  1402. done
  1403. fi
  1404. test -n "$ac_init_help" && exit $ac_status
  1405. if $ac_init_version; then
  1406. cat <<\_ACEOF
  1407. gprofng configure 2.38.50
  1408. generated by GNU Autoconf 2.69
  1409. Copyright (C) 2012 Free Software Foundation, Inc.
  1410. This configure script is free software; the Free Software Foundation
  1411. gives unlimited permission to copy, distribute and modify it.
  1412. _ACEOF
  1413. exit
  1414. fi
  1415. ## ------------------------ ##
  1416. ## Autoconf initialization. ##
  1417. ## ------------------------ ##
  1418. # ac_fn_c_try_compile LINENO
  1419. # --------------------------
  1420. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1421. ac_fn_c_try_compile ()
  1422. {
  1423. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1424. rm -f conftest.$ac_objext
  1425. if { { ac_try="$ac_compile"
  1426. case "(($ac_try" in
  1427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1428. *) ac_try_echo=$ac_try;;
  1429. esac
  1430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1431. $as_echo "$ac_try_echo"; } >&5
  1432. (eval "$ac_compile") 2>conftest.err
  1433. ac_status=$?
  1434. if test -s conftest.err; then
  1435. grep -v '^ *+' conftest.err >conftest.er1
  1436. cat conftest.er1 >&5
  1437. mv -f conftest.er1 conftest.err
  1438. fi
  1439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1440. test $ac_status = 0; } && {
  1441. test -z "$ac_c_werror_flag" ||
  1442. test ! -s conftest.err
  1443. } && test -s conftest.$ac_objext; then :
  1444. ac_retval=0
  1445. else
  1446. $as_echo "$as_me: failed program was:" >&5
  1447. sed 's/^/| /' conftest.$ac_ext >&5
  1448. ac_retval=1
  1449. fi
  1450. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1451. as_fn_set_status $ac_retval
  1452. } # ac_fn_c_try_compile
  1453. # ac_fn_c_try_cpp LINENO
  1454. # ----------------------
  1455. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1456. ac_fn_c_try_cpp ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1460. case "(($ac_try" in
  1461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1462. *) ac_try_echo=$ac_try;;
  1463. esac
  1464. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1465. $as_echo "$ac_try_echo"; } >&5
  1466. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1467. ac_status=$?
  1468. if test -s conftest.err; then
  1469. grep -v '^ *+' conftest.err >conftest.er1
  1470. cat conftest.er1 >&5
  1471. mv -f conftest.er1 conftest.err
  1472. fi
  1473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1474. test $ac_status = 0; } > conftest.i && {
  1475. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1476. test ! -s conftest.err
  1477. }; then :
  1478. ac_retval=0
  1479. else
  1480. $as_echo "$as_me: failed program was:" >&5
  1481. sed 's/^/| /' conftest.$ac_ext >&5
  1482. ac_retval=1
  1483. fi
  1484. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1485. as_fn_set_status $ac_retval
  1486. } # ac_fn_c_try_cpp
  1487. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1488. # -------------------------------------------------------
  1489. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1490. # the include files in INCLUDES and setting the cache variable VAR
  1491. # accordingly.
  1492. ac_fn_c_check_header_mongrel ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. if eval \${$3+:} false; then :
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1497. $as_echo_n "checking for $2... " >&6; }
  1498. if eval \${$3+:} false; then :
  1499. $as_echo_n "(cached) " >&6
  1500. fi
  1501. eval ac_res=\$$3
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1503. $as_echo "$ac_res" >&6; }
  1504. else
  1505. # Is the header compilable?
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1507. $as_echo_n "checking $2 usability... " >&6; }
  1508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1509. /* end confdefs.h. */
  1510. $4
  1511. #include <$2>
  1512. _ACEOF
  1513. if ac_fn_c_try_compile "$LINENO"; then :
  1514. ac_header_compiler=yes
  1515. else
  1516. ac_header_compiler=no
  1517. fi
  1518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1520. $as_echo "$ac_header_compiler" >&6; }
  1521. # Is the header present?
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1523. $as_echo_n "checking $2 presence... " >&6; }
  1524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1525. /* end confdefs.h. */
  1526. #include <$2>
  1527. _ACEOF
  1528. if ac_fn_c_try_cpp "$LINENO"; then :
  1529. ac_header_preproc=yes
  1530. else
  1531. ac_header_preproc=no
  1532. fi
  1533. rm -f conftest.err conftest.i conftest.$ac_ext
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1535. $as_echo "$ac_header_preproc" >&6; }
  1536. # So? What about this header?
  1537. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1538. yes:no: )
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1540. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1542. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1543. ;;
  1544. no:yes:* )
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1546. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1548. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1550. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1552. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1554. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1555. ;;
  1556. esac
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1558. $as_echo_n "checking for $2... " >&6; }
  1559. if eval \${$3+:} false; then :
  1560. $as_echo_n "(cached) " >&6
  1561. else
  1562. eval "$3=\$ac_header_compiler"
  1563. fi
  1564. eval ac_res=\$$3
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1566. $as_echo "$ac_res" >&6; }
  1567. fi
  1568. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1569. } # ac_fn_c_check_header_mongrel
  1570. # ac_fn_c_try_run LINENO
  1571. # ----------------------
  1572. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1573. # that executables *can* be run.
  1574. ac_fn_c_try_run ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. if { { ac_try="$ac_link"
  1578. case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584. (eval "$ac_link") 2>&5
  1585. ac_status=$?
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1588. { { case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_try") 2>&5
  1595. ac_status=$?
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; }; }; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: program exited with status $ac_status" >&5
  1601. $as_echo "$as_me: failed program was:" >&5
  1602. sed 's/^/| /' conftest.$ac_ext >&5
  1603. ac_retval=$ac_status
  1604. fi
  1605. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } # ac_fn_c_try_run
  1609. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1610. # -------------------------------------------------------
  1611. # Tests whether HEADER exists and can be compiled using the include files in
  1612. # INCLUDES, setting the cache variable VAR accordingly.
  1613. ac_fn_c_check_header_compile ()
  1614. {
  1615. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1617. $as_echo_n "checking for $2... " >&6; }
  1618. if eval \${$3+:} false; then :
  1619. $as_echo_n "(cached) " >&6
  1620. else
  1621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1622. /* end confdefs.h. */
  1623. $4
  1624. #include <$2>
  1625. _ACEOF
  1626. if ac_fn_c_try_compile "$LINENO"; then :
  1627. eval "$3=yes"
  1628. else
  1629. eval "$3=no"
  1630. fi
  1631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1637. } # ac_fn_c_check_header_compile
  1638. # ac_fn_cxx_try_compile LINENO
  1639. # ----------------------------
  1640. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1641. ac_fn_cxx_try_compile ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. rm -f conftest.$ac_objext
  1645. if { { ac_try="$ac_compile"
  1646. case "(($ac_try" in
  1647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1648. *) ac_try_echo=$ac_try;;
  1649. esac
  1650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1651. $as_echo "$ac_try_echo"; } >&5
  1652. (eval "$ac_compile") 2>conftest.err
  1653. ac_status=$?
  1654. if test -s conftest.err; then
  1655. grep -v '^ *+' conftest.err >conftest.er1
  1656. cat conftest.er1 >&5
  1657. mv -f conftest.er1 conftest.err
  1658. fi
  1659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1660. test $ac_status = 0; } && {
  1661. test -z "$ac_cxx_werror_flag" ||
  1662. test ! -s conftest.err
  1663. } && test -s conftest.$ac_objext; then :
  1664. ac_retval=0
  1665. else
  1666. $as_echo "$as_me: failed program was:" >&5
  1667. sed 's/^/| /' conftest.$ac_ext >&5
  1668. ac_retval=1
  1669. fi
  1670. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1671. as_fn_set_status $ac_retval
  1672. } # ac_fn_cxx_try_compile
  1673. # ac_fn_c_try_link LINENO
  1674. # -----------------------
  1675. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1676. ac_fn_c_try_link ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. rm -f conftest.$ac_objext conftest$ac_exeext
  1680. if { { ac_try="$ac_link"
  1681. case "(($ac_try" in
  1682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1683. *) ac_try_echo=$ac_try;;
  1684. esac
  1685. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1686. $as_echo "$ac_try_echo"; } >&5
  1687. (eval "$ac_link") 2>conftest.err
  1688. ac_status=$?
  1689. if test -s conftest.err; then
  1690. grep -v '^ *+' conftest.err >conftest.er1
  1691. cat conftest.er1 >&5
  1692. mv -f conftest.er1 conftest.err
  1693. fi
  1694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1695. test $ac_status = 0; } && {
  1696. test -z "$ac_c_werror_flag" ||
  1697. test ! -s conftest.err
  1698. } && test -s conftest$ac_exeext && {
  1699. test "$cross_compiling" = yes ||
  1700. test -x conftest$ac_exeext
  1701. }; then :
  1702. ac_retval=0
  1703. else
  1704. $as_echo "$as_me: failed program was:" >&5
  1705. sed 's/^/| /' conftest.$ac_ext >&5
  1706. ac_retval=1
  1707. fi
  1708. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1709. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1710. # interfere with the next link command; also delete a directory that is
  1711. # left behind by Apple's compiler. We do this before executing the actions.
  1712. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1713. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1714. as_fn_set_status $ac_retval
  1715. } # ac_fn_c_try_link
  1716. # ac_fn_c_check_func LINENO FUNC VAR
  1717. # ----------------------------------
  1718. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1719. ac_fn_c_check_func ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1723. $as_echo_n "checking for $2... " >&6; }
  1724. if eval \${$3+:} false; then :
  1725. $as_echo_n "(cached) " >&6
  1726. else
  1727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h. */
  1729. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1730. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1731. #define $2 innocuous_$2
  1732. /* System header to define __stub macros and hopefully few prototypes,
  1733. which can conflict with char $2 (); below.
  1734. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1735. <limits.h> exists even on freestanding compilers. */
  1736. #ifdef __STDC__
  1737. # include <limits.h>
  1738. #else
  1739. # include <assert.h>
  1740. #endif
  1741. #undef $2
  1742. /* Override any GCC internal prototype to avoid an error.
  1743. Use char because int might match the return type of a GCC
  1744. builtin and then its argument prototype would still apply. */
  1745. #ifdef __cplusplus
  1746. extern "C"
  1747. #endif
  1748. char $2 ();
  1749. /* The GNU C library defines this for functions which it implements
  1750. to always fail with ENOSYS. Some functions are actually named
  1751. something starting with __ and the normal name is an alias. */
  1752. #if defined __stub_$2 || defined __stub___$2
  1753. choke me
  1754. #endif
  1755. int
  1756. main ()
  1757. {
  1758. return $2 ();
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_c_try_link "$LINENO"; then :
  1764. eval "$3=yes"
  1765. else
  1766. eval "$3=no"
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext \
  1769. conftest$ac_exeext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. } # ac_fn_c_check_func
  1776. # ac_fn_cxx_try_cpp LINENO
  1777. # ------------------------
  1778. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_cpp ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1790. ac_status=$?
  1791. if test -s conftest.err; then
  1792. grep -v '^ *+' conftest.err >conftest.er1
  1793. cat conftest.er1 >&5
  1794. mv -f conftest.er1 conftest.err
  1795. fi
  1796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1797. test $ac_status = 0; } > conftest.i && {
  1798. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1799. test ! -s conftest.err
  1800. }; then :
  1801. ac_retval=0
  1802. else
  1803. $as_echo "$as_me: failed program was:" >&5
  1804. sed 's/^/| /' conftest.$ac_ext >&5
  1805. ac_retval=1
  1806. fi
  1807. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808. as_fn_set_status $ac_retval
  1809. } # ac_fn_cxx_try_cpp
  1810. # ac_fn_cxx_try_link LINENO
  1811. # -------------------------
  1812. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1813. ac_fn_cxx_try_link ()
  1814. {
  1815. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1816. rm -f conftest.$ac_objext conftest$ac_exeext
  1817. if { { ac_try="$ac_link"
  1818. case "(($ac_try" in
  1819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820. *) ac_try_echo=$ac_try;;
  1821. esac
  1822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823. $as_echo "$ac_try_echo"; } >&5
  1824. (eval "$ac_link") 2>conftest.err
  1825. ac_status=$?
  1826. if test -s conftest.err; then
  1827. grep -v '^ *+' conftest.err >conftest.er1
  1828. cat conftest.er1 >&5
  1829. mv -f conftest.er1 conftest.err
  1830. fi
  1831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832. test $ac_status = 0; } && {
  1833. test -z "$ac_cxx_werror_flag" ||
  1834. test ! -s conftest.err
  1835. } && test -s conftest$ac_exeext && {
  1836. test "$cross_compiling" = yes ||
  1837. test -x conftest$ac_exeext
  1838. }; then :
  1839. ac_retval=0
  1840. else
  1841. $as_echo "$as_me: failed program was:" >&5
  1842. sed 's/^/| /' conftest.$ac_ext >&5
  1843. ac_retval=1
  1844. fi
  1845. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1846. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1847. # interfere with the next link command; also delete a directory that is
  1848. # left behind by Apple's compiler. We do this before executing the actions.
  1849. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1850. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1851. as_fn_set_status $ac_retval
  1852. } # ac_fn_cxx_try_link
  1853. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1854. # ---------------------------------------------
  1855. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1856. # accordingly.
  1857. ac_fn_c_check_decl ()
  1858. {
  1859. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1861. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1863. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1864. if eval \${$3+:} false; then :
  1865. $as_echo_n "(cached) " >&6
  1866. else
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. int
  1871. main ()
  1872. {
  1873. #ifndef $as_decl_name
  1874. #ifdef __cplusplus
  1875. (void) $as_decl_use;
  1876. #else
  1877. (void) $as_decl_name;
  1878. #endif
  1879. #endif
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. if ac_fn_c_try_compile "$LINENO"; then :
  1885. eval "$3=yes"
  1886. else
  1887. eval "$3=no"
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. fi
  1891. eval ac_res=\$$3
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1893. $as_echo "$ac_res" >&6; }
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. } # ac_fn_c_check_decl
  1896. cat >config.log <<_ACEOF
  1897. This file contains any messages produced by compilers while
  1898. running configure, to aid debugging if configure makes a mistake.
  1899. It was created by gprofng $as_me 2.38.50, which was
  1900. generated by GNU Autoconf 2.69. Invocation command line was
  1901. $ $0 $@
  1902. _ACEOF
  1903. exec 5>>config.log
  1904. {
  1905. cat <<_ASUNAME
  1906. ## --------- ##
  1907. ## Platform. ##
  1908. ## --------- ##
  1909. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1910. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1911. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1912. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1913. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1914. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1915. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1916. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1917. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1918. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1919. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1920. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1921. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1922. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1923. _ASUNAME
  1924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1925. for as_dir in $PATH
  1926. do
  1927. IFS=$as_save_IFS
  1928. test -z "$as_dir" && as_dir=.
  1929. $as_echo "PATH: $as_dir"
  1930. done
  1931. IFS=$as_save_IFS
  1932. } >&5
  1933. cat >&5 <<_ACEOF
  1934. ## ----------- ##
  1935. ## Core tests. ##
  1936. ## ----------- ##
  1937. _ACEOF
  1938. # Keep a trace of the command line.
  1939. # Strip out --no-create and --no-recursion so they do not pile up.
  1940. # Strip out --silent because we don't want to record it for future runs.
  1941. # Also quote any args containing shell meta-characters.
  1942. # Make two passes to allow for proper duplicate-argument suppression.
  1943. ac_configure_args=
  1944. ac_configure_args0=
  1945. ac_configure_args1=
  1946. ac_must_keep_next=false
  1947. for ac_pass in 1 2
  1948. do
  1949. for ac_arg
  1950. do
  1951. case $ac_arg in
  1952. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1953. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1954. | -silent | --silent | --silen | --sile | --sil)
  1955. continue ;;
  1956. *\'*)
  1957. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1958. esac
  1959. case $ac_pass in
  1960. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1961. 2)
  1962. as_fn_append ac_configure_args1 " '$ac_arg'"
  1963. if test $ac_must_keep_next = true; then
  1964. ac_must_keep_next=false # Got value, back to normal.
  1965. else
  1966. case $ac_arg in
  1967. *=* | --config-cache | -C | -disable-* | --disable-* \
  1968. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1969. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1970. | -with-* | --with-* | -without-* | --without-* | --x)
  1971. case "$ac_configure_args0 " in
  1972. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1973. esac
  1974. ;;
  1975. -* ) ac_must_keep_next=true ;;
  1976. esac
  1977. fi
  1978. as_fn_append ac_configure_args " '$ac_arg'"
  1979. ;;
  1980. esac
  1981. done
  1982. done
  1983. { ac_configure_args0=; unset ac_configure_args0;}
  1984. { ac_configure_args1=; unset ac_configure_args1;}
  1985. # When interrupted or exit'd, cleanup temporary files, and complete
  1986. # config.log. We remove comments because anyway the quotes in there
  1987. # would cause problems or look ugly.
  1988. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1989. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1990. trap 'exit_status=$?
  1991. # Save into config.log some information that might help in debugging.
  1992. {
  1993. echo
  1994. $as_echo "## ---------------- ##
  1995. ## Cache variables. ##
  1996. ## ---------------- ##"
  1997. echo
  1998. # The following way of writing the cache mishandles newlines in values,
  1999. (
  2000. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2001. eval ac_val=\$$ac_var
  2002. case $ac_val in #(
  2003. *${as_nl}*)
  2004. case $ac_var in #(
  2005. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2006. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2007. esac
  2008. case $ac_var in #(
  2009. _ | IFS | as_nl) ;; #(
  2010. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2011. *) { eval $ac_var=; unset $ac_var;} ;;
  2012. esac ;;
  2013. esac
  2014. done
  2015. (set) 2>&1 |
  2016. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2017. *${as_nl}ac_space=\ *)
  2018. sed -n \
  2019. "s/'\''/'\''\\\\'\'''\''/g;
  2020. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2021. ;; #(
  2022. *)
  2023. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2024. ;;
  2025. esac |
  2026. sort
  2027. )
  2028. echo
  2029. $as_echo "## ----------------- ##
  2030. ## Output variables. ##
  2031. ## ----------------- ##"
  2032. echo
  2033. for ac_var in $ac_subst_vars
  2034. do
  2035. eval ac_val=\$$ac_var
  2036. case $ac_val in
  2037. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2038. esac
  2039. $as_echo "$ac_var='\''$ac_val'\''"
  2040. done | sort
  2041. echo
  2042. if test -n "$ac_subst_files"; then
  2043. $as_echo "## ------------------- ##
  2044. ## File substitutions. ##
  2045. ## ------------------- ##"
  2046. echo
  2047. for ac_var in $ac_subst_files
  2048. do
  2049. eval ac_val=\$$ac_var
  2050. case $ac_val in
  2051. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2052. esac
  2053. $as_echo "$ac_var='\''$ac_val'\''"
  2054. done | sort
  2055. echo
  2056. fi
  2057. if test -s confdefs.h; then
  2058. $as_echo "## ----------- ##
  2059. ## confdefs.h. ##
  2060. ## ----------- ##"
  2061. echo
  2062. cat confdefs.h
  2063. echo
  2064. fi
  2065. test "$ac_signal" != 0 &&
  2066. $as_echo "$as_me: caught signal $ac_signal"
  2067. $as_echo "$as_me: exit $exit_status"
  2068. } >&5
  2069. rm -f core *.core core.conftest.* &&
  2070. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2071. exit $exit_status
  2072. ' 0
  2073. for ac_signal in 1 2 13 15; do
  2074. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2075. done
  2076. ac_signal=0
  2077. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2078. rm -f -r conftest* confdefs.h
  2079. $as_echo "/* confdefs.h */" > confdefs.h
  2080. # Predefined preprocessor variables.
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_NAME "$PACKAGE_NAME"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2089. _ACEOF
  2090. cat >>confdefs.h <<_ACEOF
  2091. #define PACKAGE_STRING "$PACKAGE_STRING"
  2092. _ACEOF
  2093. cat >>confdefs.h <<_ACEOF
  2094. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2095. _ACEOF
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE_URL "$PACKAGE_URL"
  2098. _ACEOF
  2099. # Let the site file select an alternate cache file if it wants to.
  2100. # Prefer an explicitly selected file to automatically selected ones.
  2101. ac_site_file1=NONE
  2102. ac_site_file2=NONE
  2103. if test -n "$CONFIG_SITE"; then
  2104. # We do not want a PATH search for config.site.
  2105. case $CONFIG_SITE in #((
  2106. -*) ac_site_file1=./$CONFIG_SITE;;
  2107. */*) ac_site_file1=$CONFIG_SITE;;
  2108. *) ac_site_file1=./$CONFIG_SITE;;
  2109. esac
  2110. elif test "x$prefix" != xNONE; then
  2111. ac_site_file1=$prefix/share/config.site
  2112. ac_site_file2=$prefix/etc/config.site
  2113. else
  2114. ac_site_file1=$ac_default_prefix/share/config.site
  2115. ac_site_file2=$ac_default_prefix/etc/config.site
  2116. fi
  2117. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2118. do
  2119. test "x$ac_site_file" = xNONE && continue
  2120. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2122. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2123. sed 's/^/| /' "$ac_site_file" >&5
  2124. . "$ac_site_file" \
  2125. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2126. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2127. as_fn_error $? "failed to load site script $ac_site_file
  2128. See \`config.log' for more details" "$LINENO" 5; }
  2129. fi
  2130. done
  2131. if test -r "$cache_file"; then
  2132. # Some versions of bash will fail to source /dev/null (special files
  2133. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2134. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2136. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2137. case $cache_file in
  2138. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2139. *) . "./$cache_file";;
  2140. esac
  2141. fi
  2142. else
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2144. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2145. >$cache_file
  2146. fi
  2147. # Check that the precious variables saved in the cache have kept the same
  2148. # value.
  2149. ac_cache_corrupted=false
  2150. for ac_var in $ac_precious_vars; do
  2151. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2152. eval ac_new_set=\$ac_env_${ac_var}_set
  2153. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2154. eval ac_new_val=\$ac_env_${ac_var}_value
  2155. case $ac_old_set,$ac_new_set in
  2156. set,)
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2159. ac_cache_corrupted=: ;;
  2160. ,set)
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2162. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2163. ac_cache_corrupted=: ;;
  2164. ,);;
  2165. *)
  2166. if test "x$ac_old_val" != "x$ac_new_val"; then
  2167. # differences in whitespace do not lead to failure.
  2168. ac_old_val_w=`echo x $ac_old_val`
  2169. ac_new_val_w=`echo x $ac_new_val`
  2170. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2172. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2173. ac_cache_corrupted=:
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2176. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2177. eval $ac_var=\$ac_old_val
  2178. fi
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2180. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2182. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2183. fi;;
  2184. esac
  2185. # Pass precious variables to config.status.
  2186. if test "$ac_new_set" = set; then
  2187. case $ac_new_val in
  2188. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2189. *) ac_arg=$ac_var=$ac_new_val ;;
  2190. esac
  2191. case " $ac_configure_args " in
  2192. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2193. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2194. esac
  2195. fi
  2196. done
  2197. if $ac_cache_corrupted; then
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2201. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2202. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2203. fi
  2204. ## -------------------- ##
  2205. ## Main body of script. ##
  2206. ## -------------------- ##
  2207. ac_ext=c
  2208. ac_cpp='$CPP $CPPFLAGS'
  2209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2212. ac_aux_dir=
  2213. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2214. if test -f "$ac_dir/install-sh"; then
  2215. ac_aux_dir=$ac_dir
  2216. ac_install_sh="$ac_aux_dir/install-sh -c"
  2217. break
  2218. elif test -f "$ac_dir/install.sh"; then
  2219. ac_aux_dir=$ac_dir
  2220. ac_install_sh="$ac_aux_dir/install.sh -c"
  2221. break
  2222. elif test -f "$ac_dir/shtool"; then
  2223. ac_aux_dir=$ac_dir
  2224. ac_install_sh="$ac_aux_dir/shtool install -c"
  2225. break
  2226. fi
  2227. done
  2228. if test -z "$ac_aux_dir"; then
  2229. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2230. fi
  2231. # These three variables are undocumented and unsupported,
  2232. # and are intended to be withdrawn in a future Autoconf release.
  2233. # They can cause serious problems if a builder's source tree is in a directory
  2234. # whose full name contains unusual characters.
  2235. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2236. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2237. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2238. # Make sure we can run config.sub.
  2239. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2240. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2242. $as_echo_n "checking build system type... " >&6; }
  2243. if ${ac_cv_build+:} false; then :
  2244. $as_echo_n "(cached) " >&6
  2245. else
  2246. ac_build_alias=$build_alias
  2247. test "x$ac_build_alias" = x &&
  2248. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2249. test "x$ac_build_alias" = x &&
  2250. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2251. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2252. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2253. fi
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2255. $as_echo "$ac_cv_build" >&6; }
  2256. case $ac_cv_build in
  2257. *-*-*) ;;
  2258. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2259. esac
  2260. build=$ac_cv_build
  2261. ac_save_IFS=$IFS; IFS='-'
  2262. set x $ac_cv_build
  2263. shift
  2264. build_cpu=$1
  2265. build_vendor=$2
  2266. shift; shift
  2267. # Remember, the first character of IFS is used to create $*,
  2268. # except with old shells:
  2269. build_os=$*
  2270. IFS=$ac_save_IFS
  2271. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2273. $as_echo_n "checking host system type... " >&6; }
  2274. if ${ac_cv_host+:} false; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test "x$host_alias" = x; then
  2278. ac_cv_host=$ac_cv_build
  2279. else
  2280. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2281. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2282. fi
  2283. fi
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2285. $as_echo "$ac_cv_host" >&6; }
  2286. case $ac_cv_host in
  2287. *-*-*) ;;
  2288. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2289. esac
  2290. host=$ac_cv_host
  2291. ac_save_IFS=$IFS; IFS='-'
  2292. set x $ac_cv_host
  2293. shift
  2294. host_cpu=$1
  2295. host_vendor=$2
  2296. shift; shift
  2297. # Remember, the first character of IFS is used to create $*,
  2298. # except with old shells:
  2299. host_os=$*
  2300. IFS=$ac_save_IFS
  2301. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2303. $as_echo_n "checking target system type... " >&6; }
  2304. if ${ac_cv_target+:} false; then :
  2305. $as_echo_n "(cached) " >&6
  2306. else
  2307. if test "x$target_alias" = x; then
  2308. ac_cv_target=$ac_cv_host
  2309. else
  2310. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2311. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2312. fi
  2313. fi
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2315. $as_echo "$ac_cv_target" >&6; }
  2316. case $ac_cv_target in
  2317. *-*-*) ;;
  2318. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2319. esac
  2320. target=$ac_cv_target
  2321. ac_save_IFS=$IFS; IFS='-'
  2322. set x $ac_cv_target
  2323. shift
  2324. target_cpu=$1
  2325. target_vendor=$2
  2326. shift; shift
  2327. # Remember, the first character of IFS is used to create $*,
  2328. # except with old shells:
  2329. target_os=$*
  2330. IFS=$ac_save_IFS
  2331. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2332. # The aliases save the names the user supplied, while $host etc.
  2333. # will get canonicalized.
  2334. test -n "$target_alias" &&
  2335. test "$program_prefix$program_suffix$program_transform_name" = \
  2336. NONENONEs,x,x, &&
  2337. program_prefix=${target_alias}-
  2338. am__api_version='1.15'
  2339. # Find a good install program. We prefer a C program (faster),
  2340. # so one script is as good as another. But avoid the broken or
  2341. # incompatible versions:
  2342. # SysV /etc/install, /usr/sbin/install
  2343. # SunOS /usr/etc/install
  2344. # IRIX /sbin/install
  2345. # AIX /bin/install
  2346. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2347. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2348. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2349. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2350. # OS/2's system install, which has a completely different semantic
  2351. # ./install, which can be erroneously created by make from ./install.sh.
  2352. # Reject install programs that cannot install multiple files.
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2354. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2355. if test -z "$INSTALL"; then
  2356. if ${ac_cv_path_install+:} false; then :
  2357. $as_echo_n "(cached) " >&6
  2358. else
  2359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360. for as_dir in $PATH
  2361. do
  2362. IFS=$as_save_IFS
  2363. test -z "$as_dir" && as_dir=.
  2364. # Account for people who put trailing slashes in PATH elements.
  2365. case $as_dir/ in #((
  2366. ./ | .// | /[cC]/* | \
  2367. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2368. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2369. /usr/ucb/* ) ;;
  2370. *)
  2371. # OSF1 and SCO ODT 3.0 have their own names for install.
  2372. # Don't use installbsd from OSF since it installs stuff as root
  2373. # by default.
  2374. for ac_prog in ginstall scoinst install; do
  2375. for ac_exec_ext in '' $ac_executable_extensions; do
  2376. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2377. if test $ac_prog = install &&
  2378. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2379. # AIX install. It has an incompatible calling convention.
  2380. :
  2381. elif test $ac_prog = install &&
  2382. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2383. # program-specific install script used by HP pwplus--don't use.
  2384. :
  2385. else
  2386. rm -rf conftest.one conftest.two conftest.dir
  2387. echo one > conftest.one
  2388. echo two > conftest.two
  2389. mkdir conftest.dir
  2390. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2391. test -s conftest.one && test -s conftest.two &&
  2392. test -s conftest.dir/conftest.one &&
  2393. test -s conftest.dir/conftest.two
  2394. then
  2395. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2396. break 3
  2397. fi
  2398. fi
  2399. fi
  2400. done
  2401. done
  2402. ;;
  2403. esac
  2404. done
  2405. IFS=$as_save_IFS
  2406. rm -rf conftest.one conftest.two conftest.dir
  2407. fi
  2408. if test "${ac_cv_path_install+set}" = set; then
  2409. INSTALL=$ac_cv_path_install
  2410. else
  2411. # As a last resort, use the slow shell script. Don't cache a
  2412. # value for INSTALL within a source directory, because that will
  2413. # break other packages using the cache if that directory is
  2414. # removed, or if the value is a relative name.
  2415. INSTALL=$ac_install_sh
  2416. fi
  2417. fi
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2419. $as_echo "$INSTALL" >&6; }
  2420. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2421. # It thinks the first close brace ends the variable substitution.
  2422. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2423. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2424. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2426. $as_echo_n "checking whether build environment is sane... " >&6; }
  2427. # Reject unsafe characters in $srcdir or the absolute working directory
  2428. # name. Accept space and tab only in the latter.
  2429. am_lf='
  2430. '
  2431. case `pwd` in
  2432. *[\\\"\#\$\&\'\`$am_lf]*)
  2433. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2434. esac
  2435. case $srcdir in
  2436. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2437. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2438. esac
  2439. # Do 'set' in a subshell so we don't clobber the current shell's
  2440. # arguments. Must try -L first in case configure is actually a
  2441. # symlink; some systems play weird games with the mod time of symlinks
  2442. # (eg FreeBSD returns the mod time of the symlink's containing
  2443. # directory).
  2444. if (
  2445. am_has_slept=no
  2446. for am_try in 1 2; do
  2447. echo "timestamp, slept: $am_has_slept" > conftest.file
  2448. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2449. if test "$*" = "X"; then
  2450. # -L didn't work.
  2451. set X `ls -t "$srcdir/configure" conftest.file`
  2452. fi
  2453. if test "$*" != "X $srcdir/configure conftest.file" \
  2454. && test "$*" != "X conftest.file $srcdir/configure"; then
  2455. # If neither matched, then we have a broken ls. This can happen
  2456. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2457. # broken ls alias from the environment. This has actually
  2458. # happened. Such a system could not be considered "sane".
  2459. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2460. alias in your environment" "$LINENO" 5
  2461. fi
  2462. if test "$2" = conftest.file || test $am_try -eq 2; then
  2463. break
  2464. fi
  2465. # Just in case.
  2466. sleep 1
  2467. am_has_slept=yes
  2468. done
  2469. test "$2" = conftest.file
  2470. )
  2471. then
  2472. # Ok.
  2473. :
  2474. else
  2475. as_fn_error $? "newly created file is older than distributed files!
  2476. Check your system clock" "$LINENO" 5
  2477. fi
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2479. $as_echo "yes" >&6; }
  2480. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2481. # generated files are strictly newer.
  2482. am_sleep_pid=
  2483. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2484. ( sleep 1 ) &
  2485. am_sleep_pid=$!
  2486. fi
  2487. rm -f conftest.file
  2488. test "$program_prefix" != NONE &&
  2489. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2490. # Use a double $ so make ignores it.
  2491. test "$program_suffix" != NONE &&
  2492. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2493. # Double any \ or $.
  2494. # By default was `s,x,x', remove it if useless.
  2495. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2496. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2497. # Expand $ac_aux_dir to an absolute path.
  2498. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2499. if test x"${MISSING+set}" != xset; then
  2500. case $am_aux_dir in
  2501. *\ * | *\ *)
  2502. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2503. *)
  2504. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2505. esac
  2506. fi
  2507. # Use eval to expand $SHELL
  2508. if eval "$MISSING --is-lightweight"; then
  2509. am_missing_run="$MISSING "
  2510. else
  2511. am_missing_run=
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2513. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2514. fi
  2515. if test x"${install_sh+set}" != xset; then
  2516. case $am_aux_dir in
  2517. *\ * | *\ *)
  2518. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2519. *)
  2520. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2521. esac
  2522. fi
  2523. # Installed binaries are usually stripped using 'strip' when the user
  2524. # run "make install-strip". However 'strip' might not be the right
  2525. # tool to use in cross-compilation environments, therefore Automake
  2526. # will honor the 'STRIP' environment variable to overrule this program.
  2527. if test "$cross_compiling" != no; then
  2528. if test -n "$ac_tool_prefix"; then
  2529. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2530. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2532. $as_echo_n "checking for $ac_word... " >&6; }
  2533. if ${ac_cv_prog_STRIP+:} false; then :
  2534. $as_echo_n "(cached) " >&6
  2535. else
  2536. if test -n "$STRIP"; then
  2537. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2538. else
  2539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2540. for as_dir in $PATH
  2541. do
  2542. IFS=$as_save_IFS
  2543. test -z "$as_dir" && as_dir=.
  2544. for ac_exec_ext in '' $ac_executable_extensions; do
  2545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2546. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2548. break 2
  2549. fi
  2550. done
  2551. done
  2552. IFS=$as_save_IFS
  2553. fi
  2554. fi
  2555. STRIP=$ac_cv_prog_STRIP
  2556. if test -n "$STRIP"; then
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2558. $as_echo "$STRIP" >&6; }
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2561. $as_echo "no" >&6; }
  2562. fi
  2563. fi
  2564. if test -z "$ac_cv_prog_STRIP"; then
  2565. ac_ct_STRIP=$STRIP
  2566. # Extract the first word of "strip", so it can be a program name with args.
  2567. set dummy strip; ac_word=$2
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2569. $as_echo_n "checking for $ac_word... " >&6; }
  2570. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2571. $as_echo_n "(cached) " >&6
  2572. else
  2573. if test -n "$ac_ct_STRIP"; then
  2574. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2575. else
  2576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2577. for as_dir in $PATH
  2578. do
  2579. IFS=$as_save_IFS
  2580. test -z "$as_dir" && as_dir=.
  2581. for ac_exec_ext in '' $ac_executable_extensions; do
  2582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2583. ac_cv_prog_ac_ct_STRIP="strip"
  2584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2585. break 2
  2586. fi
  2587. done
  2588. done
  2589. IFS=$as_save_IFS
  2590. fi
  2591. fi
  2592. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2593. if test -n "$ac_ct_STRIP"; then
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2595. $as_echo "$ac_ct_STRIP" >&6; }
  2596. else
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2598. $as_echo "no" >&6; }
  2599. fi
  2600. if test "x$ac_ct_STRIP" = x; then
  2601. STRIP=":"
  2602. else
  2603. case $cross_compiling:$ac_tool_warned in
  2604. yes:)
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2607. ac_tool_warned=yes ;;
  2608. esac
  2609. STRIP=$ac_ct_STRIP
  2610. fi
  2611. else
  2612. STRIP="$ac_cv_prog_STRIP"
  2613. fi
  2614. fi
  2615. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2617. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2618. if test -z "$MKDIR_P"; then
  2619. if ${ac_cv_path_mkdir+:} false; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2623. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2624. do
  2625. IFS=$as_save_IFS
  2626. test -z "$as_dir" && as_dir=.
  2627. for ac_prog in mkdir gmkdir; do
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2630. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2631. 'mkdir (GNU coreutils) '* | \
  2632. 'mkdir (coreutils) '* | \
  2633. 'mkdir (fileutils) '4.1*)
  2634. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2635. break 3;;
  2636. esac
  2637. done
  2638. done
  2639. done
  2640. IFS=$as_save_IFS
  2641. fi
  2642. test -d ./--version && rmdir ./--version
  2643. if test "${ac_cv_path_mkdir+set}" = set; then
  2644. MKDIR_P="$ac_cv_path_mkdir -p"
  2645. else
  2646. # As a last resort, use the slow shell script. Don't cache a
  2647. # value for MKDIR_P within a source directory, because that will
  2648. # break other packages using the cache if that directory is
  2649. # removed, or if the value is a relative name.
  2650. MKDIR_P="$ac_install_sh -d"
  2651. fi
  2652. fi
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2654. $as_echo "$MKDIR_P" >&6; }
  2655. for ac_prog in gawk mawk nawk awk
  2656. do
  2657. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2658. set dummy $ac_prog; ac_word=$2
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. $as_echo_n "checking for $ac_word... " >&6; }
  2661. if ${ac_cv_prog_AWK+:} false; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test -n "$AWK"; then
  2665. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2674. ac_cv_prog_AWK="$ac_prog"
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. IFS=$as_save_IFS
  2681. fi
  2682. fi
  2683. AWK=$ac_cv_prog_AWK
  2684. if test -n "$AWK"; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2686. $as_echo "$AWK" >&6; }
  2687. else
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. fi
  2691. test -n "$AWK" && break
  2692. done
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2694. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2695. set x ${MAKE-make}
  2696. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2697. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. cat >conftest.make <<\_ACEOF
  2701. SHELL = /bin/sh
  2702. all:
  2703. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2704. _ACEOF
  2705. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2706. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2707. *@@@%%%=?*=@@@%%%*)
  2708. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2709. *)
  2710. eval ac_cv_prog_make_${ac_make}_set=no;;
  2711. esac
  2712. rm -f conftest.make
  2713. fi
  2714. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2716. $as_echo "yes" >&6; }
  2717. SET_MAKE=
  2718. else
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2720. $as_echo "no" >&6; }
  2721. SET_MAKE="MAKE=${MAKE-make}"
  2722. fi
  2723. rm -rf .tst 2>/dev/null
  2724. mkdir .tst 2>/dev/null
  2725. if test -d .tst; then
  2726. am__leading_dot=.
  2727. else
  2728. am__leading_dot=_
  2729. fi
  2730. rmdir .tst 2>/dev/null
  2731. # Check whether --enable-silent-rules was given.
  2732. if test "${enable_silent_rules+set}" = set; then :
  2733. enableval=$enable_silent_rules;
  2734. fi
  2735. case $enable_silent_rules in # (((
  2736. yes) AM_DEFAULT_VERBOSITY=0;;
  2737. no) AM_DEFAULT_VERBOSITY=1;;
  2738. *) AM_DEFAULT_VERBOSITY=1;;
  2739. esac
  2740. am_make=${MAKE-make}
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2742. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2743. if ${am_cv_make_support_nested_variables+:} false; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. if $as_echo 'TRUE=$(BAR$(V))
  2747. BAR0=false
  2748. BAR1=true
  2749. V=1
  2750. am__doit:
  2751. @$(TRUE)
  2752. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2753. am_cv_make_support_nested_variables=yes
  2754. else
  2755. am_cv_make_support_nested_variables=no
  2756. fi
  2757. fi
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2759. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2760. if test $am_cv_make_support_nested_variables = yes; then
  2761. AM_V='$(V)'
  2762. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2763. else
  2764. AM_V=$AM_DEFAULT_VERBOSITY
  2765. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2766. fi
  2767. AM_BACKSLASH='\'
  2768. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2769. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2770. # is not polluted with repeated "-I."
  2771. am__isrc=' -I$(srcdir)'
  2772. # test to see if srcdir already configured
  2773. if test -f $srcdir/config.status; then
  2774. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2775. fi
  2776. fi
  2777. # test whether we have cygpath
  2778. if test -z "$CYGPATH_W"; then
  2779. if (cygpath --version) >/dev/null 2>/dev/null; then
  2780. CYGPATH_W='cygpath -w'
  2781. else
  2782. CYGPATH_W=echo
  2783. fi
  2784. fi
  2785. # Define the identity of the package.
  2786. PACKAGE='gprofng'
  2787. VERSION='2.38.50'
  2788. cat >>confdefs.h <<_ACEOF
  2789. #define PACKAGE "$PACKAGE"
  2790. _ACEOF
  2791. cat >>confdefs.h <<_ACEOF
  2792. #define VERSION "$VERSION"
  2793. _ACEOF
  2794. # Some tools Automake needs.
  2795. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2796. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2797. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2798. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2799. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2800. # For better backward compatibility. To be removed once Automake 1.9.x
  2801. # dies out for good. For more background, see:
  2802. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2803. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2804. mkdir_p='$(MKDIR_P)'
  2805. # We need awk for the "check" target (and possibly the TAP driver). The
  2806. # system "awk" is bad on some platforms.
  2807. # Always define AMTAR for backward compatibility. Yes, it's still used
  2808. # in the wild :-( We should find a proper way to deprecate it ...
  2809. AMTAR='$${TAR-tar}'
  2810. # We'll loop over all known methods to create a tar archive until one works.
  2811. _am_tools='gnutar pax cpio none'
  2812. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2813. # POSIX will say in a future version that running "rm -f" with no argument
  2814. # is OK; and we want to be able to make that assumption in our Makefile
  2815. # recipes. So use an aggressive probe to check that the usage we want is
  2816. # actually supported "in the wild" to an acceptable degree.
  2817. # See automake bug#10828.
  2818. # To make any issue more visible, cause the running configure to be aborted
  2819. # by default if the 'rm' program in use doesn't match our expectations; the
  2820. # user can still override this though.
  2821. if rm -f && rm -fr && rm -rf; then : OK; else
  2822. cat >&2 <<'END'
  2823. Oops!
  2824. Your 'rm' program seems unable to run without file operands specified
  2825. on the command line, even when the '-f' option is present. This is contrary
  2826. to the behaviour of most rm programs out there, and not conforming with
  2827. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2828. Please tell bug-automake@gnu.org about your system, including the value
  2829. of your $PATH and any error possibly output before this message. This
  2830. can help us improve future automake versions.
  2831. END
  2832. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2833. echo 'Configuration will proceed anyway, since you have set the' >&2
  2834. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2835. echo >&2
  2836. else
  2837. cat >&2 <<'END'
  2838. Aborting the configuration process, to ensure you take notice of the issue.
  2839. You can download and install GNU coreutils to get an 'rm' implementation
  2840. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2841. If you want to complete the configuration process using your problematic
  2842. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2843. to "yes", and re-run configure.
  2844. END
  2845. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2846. fi
  2847. fi
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2849. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2850. # Check whether --enable-maintainer-mode was given.
  2851. if test "${enable_maintainer_mode+set}" = set; then :
  2852. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2853. else
  2854. USE_MAINTAINER_MODE=no
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2857. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2858. if test $USE_MAINTAINER_MODE = yes; then
  2859. MAINTAINER_MODE_TRUE=
  2860. MAINTAINER_MODE_FALSE='#'
  2861. else
  2862. MAINTAINER_MODE_TRUE='#'
  2863. MAINTAINER_MODE_FALSE=
  2864. fi
  2865. MAINT=$MAINTAINER_MODE_TRUE
  2866. DEPDIR="${am__leading_dot}deps"
  2867. ac_config_commands="$ac_config_commands depfiles"
  2868. am_make=${MAKE-make}
  2869. cat > confinc << 'END'
  2870. am__doit:
  2871. @echo this is the am__doit target
  2872. .PHONY: am__doit
  2873. END
  2874. # If we don't find an include directive, just comment out the code.
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2876. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2877. am__include="#"
  2878. am__quote=
  2879. _am_result=none
  2880. # First try GNU make style include.
  2881. echo "include confinc" > confmf
  2882. # Ignore all kinds of additional output from 'make'.
  2883. case `$am_make -s -f confmf 2> /dev/null` in #(
  2884. *the\ am__doit\ target*)
  2885. am__include=include
  2886. am__quote=
  2887. _am_result=GNU
  2888. ;;
  2889. esac
  2890. # Now try BSD make style include.
  2891. if test "$am__include" = "#"; then
  2892. echo '.include "confinc"' > confmf
  2893. case `$am_make -s -f confmf 2> /dev/null` in #(
  2894. *the\ am__doit\ target*)
  2895. am__include=.include
  2896. am__quote="\""
  2897. _am_result=BSD
  2898. ;;
  2899. esac
  2900. fi
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2902. $as_echo "$_am_result" >&6; }
  2903. rm -f confinc confmf
  2904. # Check whether --enable-dependency-tracking was given.
  2905. if test "${enable_dependency_tracking+set}" = set; then :
  2906. enableval=$enable_dependency_tracking;
  2907. fi
  2908. if test "x$enable_dependency_tracking" != xno; then
  2909. am_depcomp="$ac_aux_dir/depcomp"
  2910. AMDEPBACKSLASH='\'
  2911. am__nodep='_no'
  2912. fi
  2913. if test "x$enable_dependency_tracking" != xno; then
  2914. AMDEP_TRUE=
  2915. AMDEP_FALSE='#'
  2916. else
  2917. AMDEP_TRUE='#'
  2918. AMDEP_FALSE=
  2919. fi
  2920. ac_ext=c
  2921. ac_cpp='$CPP $CPPFLAGS'
  2922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2925. if test -n "$ac_tool_prefix"; then
  2926. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2927. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2929. $as_echo_n "checking for $ac_word... " >&6; }
  2930. if ${ac_cv_prog_CC+:} false; then :
  2931. $as_echo_n "(cached) " >&6
  2932. else
  2933. if test -n "$CC"; then
  2934. ac_cv_prog_CC="$CC" # Let the user override the test.
  2935. else
  2936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2937. for as_dir in $PATH
  2938. do
  2939. IFS=$as_save_IFS
  2940. test -z "$as_dir" && as_dir=.
  2941. for ac_exec_ext in '' $ac_executable_extensions; do
  2942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2943. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2945. break 2
  2946. fi
  2947. done
  2948. done
  2949. IFS=$as_save_IFS
  2950. fi
  2951. fi
  2952. CC=$ac_cv_prog_CC
  2953. if test -n "$CC"; then
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2955. $as_echo "$CC" >&6; }
  2956. else
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2958. $as_echo "no" >&6; }
  2959. fi
  2960. fi
  2961. if test -z "$ac_cv_prog_CC"; then
  2962. ac_ct_CC=$CC
  2963. # Extract the first word of "gcc", so it can be a program name with args.
  2964. set dummy gcc; ac_word=$2
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2966. $as_echo_n "checking for $ac_word... " >&6; }
  2967. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. if test -n "$ac_ct_CC"; then
  2971. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2972. else
  2973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2974. for as_dir in $PATH
  2975. do
  2976. IFS=$as_save_IFS
  2977. test -z "$as_dir" && as_dir=.
  2978. for ac_exec_ext in '' $ac_executable_extensions; do
  2979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2980. ac_cv_prog_ac_ct_CC="gcc"
  2981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2982. break 2
  2983. fi
  2984. done
  2985. done
  2986. IFS=$as_save_IFS
  2987. fi
  2988. fi
  2989. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2990. if test -n "$ac_ct_CC"; then
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2992. $as_echo "$ac_ct_CC" >&6; }
  2993. else
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2995. $as_echo "no" >&6; }
  2996. fi
  2997. if test "x$ac_ct_CC" = x; then
  2998. CC=""
  2999. else
  3000. case $cross_compiling:$ac_tool_warned in
  3001. yes:)
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3004. ac_tool_warned=yes ;;
  3005. esac
  3006. CC=$ac_ct_CC
  3007. fi
  3008. else
  3009. CC="$ac_cv_prog_CC"
  3010. fi
  3011. if test -z "$CC"; then
  3012. if test -n "$ac_tool_prefix"; then
  3013. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3014. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3016. $as_echo_n "checking for $ac_word... " >&6; }
  3017. if ${ac_cv_prog_CC+:} false; then :
  3018. $as_echo_n "(cached) " >&6
  3019. else
  3020. if test -n "$CC"; then
  3021. ac_cv_prog_CC="$CC" # Let the user override the test.
  3022. else
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. test -z "$as_dir" && as_dir=.
  3028. for ac_exec_ext in '' $ac_executable_extensions; do
  3029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3030. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3032. break 2
  3033. fi
  3034. done
  3035. done
  3036. IFS=$as_save_IFS
  3037. fi
  3038. fi
  3039. CC=$ac_cv_prog_CC
  3040. if test -n "$CC"; then
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3042. $as_echo "$CC" >&6; }
  3043. else
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3045. $as_echo "no" >&6; }
  3046. fi
  3047. fi
  3048. fi
  3049. if test -z "$CC"; then
  3050. # Extract the first word of "cc", so it can be a program name with args.
  3051. set dummy cc; ac_word=$2
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3053. $as_echo_n "checking for $ac_word... " >&6; }
  3054. if ${ac_cv_prog_CC+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. if test -n "$CC"; then
  3058. ac_cv_prog_CC="$CC" # Let the user override the test.
  3059. else
  3060. ac_prog_rejected=no
  3061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3062. for as_dir in $PATH
  3063. do
  3064. IFS=$as_save_IFS
  3065. test -z "$as_dir" && as_dir=.
  3066. for ac_exec_ext in '' $ac_executable_extensions; do
  3067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3068. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3069. ac_prog_rejected=yes
  3070. continue
  3071. fi
  3072. ac_cv_prog_CC="cc"
  3073. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3074. break 2
  3075. fi
  3076. done
  3077. done
  3078. IFS=$as_save_IFS
  3079. if test $ac_prog_rejected = yes; then
  3080. # We found a bogon in the path, so make sure we never use it.
  3081. set dummy $ac_cv_prog_CC
  3082. shift
  3083. if test $# != 0; then
  3084. # We chose a different compiler from the bogus one.
  3085. # However, it has the same basename, so the bogon will be chosen
  3086. # first if we set CC to just the basename; use the full file name.
  3087. shift
  3088. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3089. fi
  3090. fi
  3091. fi
  3092. fi
  3093. CC=$ac_cv_prog_CC
  3094. if test -n "$CC"; then
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3096. $as_echo "$CC" >&6; }
  3097. else
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3099. $as_echo "no" >&6; }
  3100. fi
  3101. fi
  3102. if test -z "$CC"; then
  3103. if test -n "$ac_tool_prefix"; then
  3104. for ac_prog in cl.exe
  3105. do
  3106. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3107. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. $as_echo_n "checking for $ac_word... " >&6; }
  3110. if ${ac_cv_prog_CC+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. if test -n "$CC"; then
  3114. ac_cv_prog_CC="$CC" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3123. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. IFS=$as_save_IFS
  3130. fi
  3131. fi
  3132. CC=$ac_cv_prog_CC
  3133. if test -n "$CC"; then
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3135. $as_echo "$CC" >&6; }
  3136. else
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. fi
  3140. test -n "$CC" && break
  3141. done
  3142. fi
  3143. if test -z "$CC"; then
  3144. ac_ct_CC=$CC
  3145. for ac_prog in cl.exe
  3146. do
  3147. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3148. set dummy $ac_prog; ac_word=$2
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3150. $as_echo_n "checking for $ac_word... " >&6; }
  3151. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. if test -n "$ac_ct_CC"; then
  3155. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3156. else
  3157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3158. for as_dir in $PATH
  3159. do
  3160. IFS=$as_save_IFS
  3161. test -z "$as_dir" && as_dir=.
  3162. for ac_exec_ext in '' $ac_executable_extensions; do
  3163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3164. ac_cv_prog_ac_ct_CC="$ac_prog"
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3166. break 2
  3167. fi
  3168. done
  3169. done
  3170. IFS=$as_save_IFS
  3171. fi
  3172. fi
  3173. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3174. if test -n "$ac_ct_CC"; then
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3176. $as_echo "$ac_ct_CC" >&6; }
  3177. else
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3179. $as_echo "no" >&6; }
  3180. fi
  3181. test -n "$ac_ct_CC" && break
  3182. done
  3183. if test "x$ac_ct_CC" = x; then
  3184. CC=""
  3185. else
  3186. case $cross_compiling:$ac_tool_warned in
  3187. yes:)
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3190. ac_tool_warned=yes ;;
  3191. esac
  3192. CC=$ac_ct_CC
  3193. fi
  3194. fi
  3195. fi
  3196. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3197. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3198. as_fn_error $? "no acceptable C compiler found in \$PATH
  3199. See \`config.log' for more details" "$LINENO" 5; }
  3200. # Provide some information about the compiler.
  3201. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3202. set X $ac_compile
  3203. ac_compiler=$2
  3204. for ac_option in --version -v -V -qversion; do
  3205. { { ac_try="$ac_compiler $ac_option >&5"
  3206. case "(($ac_try" in
  3207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3208. *) ac_try_echo=$ac_try;;
  3209. esac
  3210. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3211. $as_echo "$ac_try_echo"; } >&5
  3212. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3213. ac_status=$?
  3214. if test -s conftest.err; then
  3215. sed '10a\
  3216. ... rest of stderr output deleted ...
  3217. 10q' conftest.err >conftest.er1
  3218. cat conftest.er1 >&5
  3219. fi
  3220. rm -f conftest.er1 conftest.err
  3221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3222. test $ac_status = 0; }
  3223. done
  3224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3225. /* end confdefs.h. */
  3226. int
  3227. main ()
  3228. {
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. ac_clean_files_save=$ac_clean_files
  3234. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3235. # Try to create an executable without -o first, disregard a.out.
  3236. # It will help us diagnose broken compilers, and finding out an intuition
  3237. # of exeext.
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3239. $as_echo_n "checking whether the C compiler works... " >&6; }
  3240. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3241. # The possible output files:
  3242. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3243. ac_rmfiles=
  3244. for ac_file in $ac_files
  3245. do
  3246. case $ac_file in
  3247. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3248. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3249. esac
  3250. done
  3251. rm -f $ac_rmfiles
  3252. if { { ac_try="$ac_link_default"
  3253. case "(($ac_try" in
  3254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3255. *) ac_try_echo=$ac_try;;
  3256. esac
  3257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3258. $as_echo "$ac_try_echo"; } >&5
  3259. (eval "$ac_link_default") 2>&5
  3260. ac_status=$?
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3262. test $ac_status = 0; }; then :
  3263. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3264. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3265. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3266. # so that the user can short-circuit this test for compilers unknown to
  3267. # Autoconf.
  3268. for ac_file in $ac_files ''
  3269. do
  3270. test -f "$ac_file" || continue
  3271. case $ac_file in
  3272. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3273. ;;
  3274. [ab].out )
  3275. # We found the default executable, but exeext='' is most
  3276. # certainly right.
  3277. break;;
  3278. *.* )
  3279. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3280. then :; else
  3281. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3282. fi
  3283. # We set ac_cv_exeext here because the later test for it is not
  3284. # safe: cross compilers may not add the suffix if given an `-o'
  3285. # argument, so we may need to know it at that point already.
  3286. # Even if this section looks crufty: it has the advantage of
  3287. # actually working.
  3288. break;;
  3289. * )
  3290. break;;
  3291. esac
  3292. done
  3293. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3294. else
  3295. ac_file=''
  3296. fi
  3297. if test -z "$ac_file"; then :
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3299. $as_echo "no" >&6; }
  3300. $as_echo "$as_me: failed program was:" >&5
  3301. sed 's/^/| /' conftest.$ac_ext >&5
  3302. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3303. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3304. as_fn_error 77 "C compiler cannot create executables
  3305. See \`config.log' for more details" "$LINENO" 5; }
  3306. else
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3308. $as_echo "yes" >&6; }
  3309. fi
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3311. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3313. $as_echo "$ac_file" >&6; }
  3314. ac_exeext=$ac_cv_exeext
  3315. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3316. ac_clean_files=$ac_clean_files_save
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3318. $as_echo_n "checking for suffix of executables... " >&6; }
  3319. if { { ac_try="$ac_link"
  3320. case "(($ac_try" in
  3321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3322. *) ac_try_echo=$ac_try;;
  3323. esac
  3324. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3325. $as_echo "$ac_try_echo"; } >&5
  3326. (eval "$ac_link") 2>&5
  3327. ac_status=$?
  3328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3329. test $ac_status = 0; }; then :
  3330. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3331. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3332. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3333. # `rm'.
  3334. for ac_file in conftest.exe conftest conftest.*; do
  3335. test -f "$ac_file" || continue
  3336. case $ac_file in
  3337. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3338. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3339. break;;
  3340. * ) break;;
  3341. esac
  3342. done
  3343. else
  3344. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3346. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3347. See \`config.log' for more details" "$LINENO" 5; }
  3348. fi
  3349. rm -f conftest conftest$ac_cv_exeext
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3351. $as_echo "$ac_cv_exeext" >&6; }
  3352. rm -f conftest.$ac_ext
  3353. EXEEXT=$ac_cv_exeext
  3354. ac_exeext=$EXEEXT
  3355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3356. /* end confdefs.h. */
  3357. #include <stdio.h>
  3358. int
  3359. main ()
  3360. {
  3361. FILE *f = fopen ("conftest.out", "w");
  3362. return ferror (f) || fclose (f) != 0;
  3363. ;
  3364. return 0;
  3365. }
  3366. _ACEOF
  3367. ac_clean_files="$ac_clean_files conftest.out"
  3368. # Check that the compiler produces executables we can run. If not, either
  3369. # the compiler is broken, or we cross compile.
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3371. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3372. if test "$cross_compiling" != yes; then
  3373. { { ac_try="$ac_link"
  3374. case "(($ac_try" in
  3375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3376. *) ac_try_echo=$ac_try;;
  3377. esac
  3378. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3379. $as_echo "$ac_try_echo"; } >&5
  3380. (eval "$ac_link") 2>&5
  3381. ac_status=$?
  3382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3383. test $ac_status = 0; }
  3384. if { ac_try='./conftest$ac_cv_exeext'
  3385. { { case "(($ac_try" in
  3386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3387. *) ac_try_echo=$ac_try;;
  3388. esac
  3389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3390. $as_echo "$ac_try_echo"; } >&5
  3391. (eval "$ac_try") 2>&5
  3392. ac_status=$?
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3394. test $ac_status = 0; }; }; then
  3395. cross_compiling=no
  3396. else
  3397. if test "$cross_compiling" = maybe; then
  3398. cross_compiling=yes
  3399. else
  3400. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3401. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3402. as_fn_error $? "cannot run C compiled programs.
  3403. If you meant to cross compile, use \`--host'.
  3404. See \`config.log' for more details" "$LINENO" 5; }
  3405. fi
  3406. fi
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3409. $as_echo "$cross_compiling" >&6; }
  3410. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3411. ac_clean_files=$ac_clean_files_save
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3413. $as_echo_n "checking for suffix of object files... " >&6; }
  3414. if ${ac_cv_objext+:} false; then :
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3418. /* end confdefs.h. */
  3419. int
  3420. main ()
  3421. {
  3422. ;
  3423. return 0;
  3424. }
  3425. _ACEOF
  3426. rm -f conftest.o conftest.obj
  3427. if { { ac_try="$ac_compile"
  3428. case "(($ac_try" in
  3429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3430. *) ac_try_echo=$ac_try;;
  3431. esac
  3432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3433. $as_echo "$ac_try_echo"; } >&5
  3434. (eval "$ac_compile") 2>&5
  3435. ac_status=$?
  3436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3437. test $ac_status = 0; }; then :
  3438. for ac_file in conftest.o conftest.obj conftest.*; do
  3439. test -f "$ac_file" || continue;
  3440. case $ac_file in
  3441. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3442. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3443. break;;
  3444. esac
  3445. done
  3446. else
  3447. $as_echo "$as_me: failed program was:" >&5
  3448. sed 's/^/| /' conftest.$ac_ext >&5
  3449. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3450. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3451. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3452. See \`config.log' for more details" "$LINENO" 5; }
  3453. fi
  3454. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3457. $as_echo "$ac_cv_objext" >&6; }
  3458. OBJEXT=$ac_cv_objext
  3459. ac_objext=$OBJEXT
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3461. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3462. if ${ac_cv_c_compiler_gnu+:} false; then :
  3463. $as_echo_n "(cached) " >&6
  3464. else
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. int
  3468. main ()
  3469. {
  3470. #ifndef __GNUC__
  3471. choke me
  3472. #endif
  3473. ;
  3474. return 0;
  3475. }
  3476. _ACEOF
  3477. if ac_fn_c_try_compile "$LINENO"; then :
  3478. ac_compiler_gnu=yes
  3479. else
  3480. ac_compiler_gnu=no
  3481. fi
  3482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3483. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3486. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3487. if test $ac_compiler_gnu = yes; then
  3488. GCC=yes
  3489. else
  3490. GCC=
  3491. fi
  3492. ac_test_CFLAGS=${CFLAGS+set}
  3493. ac_save_CFLAGS=$CFLAGS
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3495. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3496. if ${ac_cv_prog_cc_g+:} false; then :
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. ac_save_c_werror_flag=$ac_c_werror_flag
  3500. ac_c_werror_flag=yes
  3501. ac_cv_prog_cc_g=no
  3502. CFLAGS="-g"
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. if ac_fn_c_try_compile "$LINENO"; then :
  3513. ac_cv_prog_cc_g=yes
  3514. else
  3515. CFLAGS=""
  3516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3517. /* end confdefs.h. */
  3518. int
  3519. main ()
  3520. {
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. if ac_fn_c_try_compile "$LINENO"; then :
  3526. else
  3527. ac_c_werror_flag=$ac_save_c_werror_flag
  3528. CFLAGS="-g"
  3529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3530. /* end confdefs.h. */
  3531. int
  3532. main ()
  3533. {
  3534. ;
  3535. return 0;
  3536. }
  3537. _ACEOF
  3538. if ac_fn_c_try_compile "$LINENO"; then :
  3539. ac_cv_prog_cc_g=yes
  3540. fi
  3541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3542. fi
  3543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3544. fi
  3545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3546. ac_c_werror_flag=$ac_save_c_werror_flag
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3549. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3550. if test "$ac_test_CFLAGS" = set; then
  3551. CFLAGS=$ac_save_CFLAGS
  3552. elif test $ac_cv_prog_cc_g = yes; then
  3553. if test "$GCC" = yes; then
  3554. CFLAGS="-g -O2"
  3555. else
  3556. CFLAGS="-g"
  3557. fi
  3558. else
  3559. if test "$GCC" = yes; then
  3560. CFLAGS="-O2"
  3561. else
  3562. CFLAGS=
  3563. fi
  3564. fi
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3566. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3567. if ${ac_cv_prog_cc_c89+:} false; then :
  3568. $as_echo_n "(cached) " >&6
  3569. else
  3570. ac_cv_prog_cc_c89=no
  3571. ac_save_CC=$CC
  3572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3573. /* end confdefs.h. */
  3574. #include <stdarg.h>
  3575. #include <stdio.h>
  3576. struct stat;
  3577. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3578. struct buf { int x; };
  3579. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3580. static char *e (p, i)
  3581. char **p;
  3582. int i;
  3583. {
  3584. return p[i];
  3585. }
  3586. static char *f (char * (*g) (char **, int), char **p, ...)
  3587. {
  3588. char *s;
  3589. va_list v;
  3590. va_start (v,p);
  3591. s = g (p, va_arg (v,int));
  3592. va_end (v);
  3593. return s;
  3594. }
  3595. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3596. function prototypes and stuff, but not '\xHH' hex character constants.
  3597. These don't provoke an error unfortunately, instead are silently treated
  3598. as 'x'. The following induces an error, until -std is added to get
  3599. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3600. array size at least. It's necessary to write '\x00'==0 to get something
  3601. that's true only with -std. */
  3602. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3603. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3604. inside strings and character constants. */
  3605. #define FOO(x) 'x'
  3606. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3607. int test (int i, double x);
  3608. struct s1 {int (*f) (int a);};
  3609. struct s2 {int (*f) (double a);};
  3610. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3611. int argc;
  3612. char **argv;
  3613. int
  3614. main ()
  3615. {
  3616. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3622. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3623. do
  3624. CC="$ac_save_CC $ac_arg"
  3625. if ac_fn_c_try_compile "$LINENO"; then :
  3626. ac_cv_prog_cc_c89=$ac_arg
  3627. fi
  3628. rm -f core conftest.err conftest.$ac_objext
  3629. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3630. done
  3631. rm -f conftest.$ac_ext
  3632. CC=$ac_save_CC
  3633. fi
  3634. # AC_CACHE_VAL
  3635. case "x$ac_cv_prog_cc_c89" in
  3636. x)
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3638. $as_echo "none needed" >&6; } ;;
  3639. xno)
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3641. $as_echo "unsupported" >&6; } ;;
  3642. *)
  3643. CC="$CC $ac_cv_prog_cc_c89"
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3645. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3646. esac
  3647. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3648. fi
  3649. ac_ext=c
  3650. ac_cpp='$CPP $CPPFLAGS'
  3651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3654. ac_ext=c
  3655. ac_cpp='$CPP $CPPFLAGS'
  3656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3660. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3661. if ${am_cv_prog_cc_c_o+:} false; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. int
  3667. main ()
  3668. {
  3669. ;
  3670. return 0;
  3671. }
  3672. _ACEOF
  3673. # Make sure it works both with $CC and with simple cc.
  3674. # Following AC_PROG_CC_C_O, we do the test twice because some
  3675. # compilers refuse to overwrite an existing .o file with -o,
  3676. # though they will create one.
  3677. am_cv_prog_cc_c_o=yes
  3678. for am_i in 1 2; do
  3679. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3680. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3681. ac_status=$?
  3682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. (exit $ac_status); } \
  3684. && test -f conftest2.$ac_objext; then
  3685. : OK
  3686. else
  3687. am_cv_prog_cc_c_o=no
  3688. break
  3689. fi
  3690. done
  3691. rm -f core conftest*
  3692. unset am_i
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3695. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3696. if test "$am_cv_prog_cc_c_o" != yes; then
  3697. # Losing compiler, so override with the script.
  3698. # FIXME: It is wrong to rewrite CC.
  3699. # But if we don't then we get into trouble of one sort or another.
  3700. # A longer-term fix would be to have automake use am__CC in this case,
  3701. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3702. CC="$am_aux_dir/compile $CC"
  3703. fi
  3704. ac_ext=c
  3705. ac_cpp='$CPP $CPPFLAGS'
  3706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3709. depcc="$CC" am_compiler_list=
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3711. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3712. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3716. # We make a subdir and do the tests there. Otherwise we can end up
  3717. # making bogus files that we don't know about and never remove. For
  3718. # instance it was reported that on HP-UX the gcc test will end up
  3719. # making a dummy file named 'D' -- because '-MD' means "put the output
  3720. # in D".
  3721. rm -rf conftest.dir
  3722. mkdir conftest.dir
  3723. # Copy depcomp to subdir because otherwise we won't find it if we're
  3724. # using a relative directory.
  3725. cp "$am_depcomp" conftest.dir
  3726. cd conftest.dir
  3727. # We will build objects and dependencies in a subdirectory because
  3728. # it helps to detect inapplicable dependency modes. For instance
  3729. # both Tru64's cc and ICC support -MD to output dependencies as a
  3730. # side effect of compilation, but ICC will put the dependencies in
  3731. # the current directory while Tru64 will put them in the object
  3732. # directory.
  3733. mkdir sub
  3734. am_cv_CC_dependencies_compiler_type=none
  3735. if test "$am_compiler_list" = ""; then
  3736. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3737. fi
  3738. am__universal=false
  3739. case " $depcc " in #(
  3740. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3741. esac
  3742. for depmode in $am_compiler_list; do
  3743. # Setup a source with many dependencies, because some compilers
  3744. # like to wrap large dependency lists on column 80 (with \), and
  3745. # we should not choose a depcomp mode which is confused by this.
  3746. #
  3747. # We need to recreate these files for each test, as the compiler may
  3748. # overwrite some of them when testing with obscure command lines.
  3749. # This happens at least with the AIX C compiler.
  3750. : > sub/conftest.c
  3751. for i in 1 2 3 4 5 6; do
  3752. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3753. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3754. # Solaris 10 /bin/sh.
  3755. echo '/* dummy */' > sub/conftst$i.h
  3756. done
  3757. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3758. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3759. # mode. It turns out that the SunPro C++ compiler does not properly
  3760. # handle '-M -o', and we need to detect this. Also, some Intel
  3761. # versions had trouble with output in subdirs.
  3762. am__obj=sub/conftest.${OBJEXT-o}
  3763. am__minus_obj="-o $am__obj"
  3764. case $depmode in
  3765. gcc)
  3766. # This depmode causes a compiler race in universal mode.
  3767. test "$am__universal" = false || continue
  3768. ;;
  3769. nosideeffect)
  3770. # After this tag, mechanisms are not by side-effect, so they'll
  3771. # only be used when explicitly requested.
  3772. if test "x$enable_dependency_tracking" = xyes; then
  3773. continue
  3774. else
  3775. break
  3776. fi
  3777. ;;
  3778. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3779. # This compiler won't grok '-c -o', but also, the minuso test has
  3780. # not run yet. These depmodes are late enough in the game, and
  3781. # so weak that their functioning should not be impacted.
  3782. am__obj=conftest.${OBJEXT-o}
  3783. am__minus_obj=
  3784. ;;
  3785. none) break ;;
  3786. esac
  3787. if depmode=$depmode \
  3788. source=sub/conftest.c object=$am__obj \
  3789. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3790. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3791. >/dev/null 2>conftest.err &&
  3792. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3793. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3794. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3795. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3796. # icc doesn't choke on unknown options, it will just issue warnings
  3797. # or remarks (even with -Werror). So we grep stderr for any message
  3798. # that says an option was ignored or not supported.
  3799. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3800. # icc: Command line warning: ignoring option '-M'; no argument required
  3801. # The diagnosis changed in icc 8.0:
  3802. # icc: Command line remark: option '-MP' not supported
  3803. if (grep 'ignoring option' conftest.err ||
  3804. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3805. am_cv_CC_dependencies_compiler_type=$depmode
  3806. break
  3807. fi
  3808. fi
  3809. done
  3810. cd ..
  3811. rm -rf conftest.dir
  3812. else
  3813. am_cv_CC_dependencies_compiler_type=none
  3814. fi
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3817. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3818. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3819. if
  3820. test "x$enable_dependency_tracking" != xno \
  3821. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3822. am__fastdepCC_TRUE=
  3823. am__fastdepCC_FALSE='#'
  3824. else
  3825. am__fastdepCC_TRUE='#'
  3826. am__fastdepCC_FALSE=
  3827. fi
  3828. ac_ext=c
  3829. ac_cpp='$CPP $CPPFLAGS'
  3830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3834. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3835. # On Suns, sometimes $CPP names a directory.
  3836. if test -n "$CPP" && test -d "$CPP"; then
  3837. CPP=
  3838. fi
  3839. if test -z "$CPP"; then
  3840. if ${ac_cv_prog_CPP+:} false; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. # Double quotes because CPP needs to be expanded
  3844. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3845. do
  3846. ac_preproc_ok=false
  3847. for ac_c_preproc_warn_flag in '' yes
  3848. do
  3849. # Use a header file that comes with gcc, so configuring glibc
  3850. # with a fresh cross-compiler works.
  3851. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3852. # <limits.h> exists even on freestanding compilers.
  3853. # On the NeXT, cc -E runs the code through the compiler's parser,
  3854. # not just through cpp. "Syntax error" is here to catch this case.
  3855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3856. /* end confdefs.h. */
  3857. #ifdef __STDC__
  3858. # include <limits.h>
  3859. #else
  3860. # include <assert.h>
  3861. #endif
  3862. Syntax error
  3863. _ACEOF
  3864. if ac_fn_c_try_cpp "$LINENO"; then :
  3865. else
  3866. # Broken: fails on valid input.
  3867. continue
  3868. fi
  3869. rm -f conftest.err conftest.i conftest.$ac_ext
  3870. # OK, works on sane cases. Now check whether nonexistent headers
  3871. # can be detected and how.
  3872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3873. /* end confdefs.h. */
  3874. #include <ac_nonexistent.h>
  3875. _ACEOF
  3876. if ac_fn_c_try_cpp "$LINENO"; then :
  3877. # Broken: success on invalid input.
  3878. continue
  3879. else
  3880. # Passes both tests.
  3881. ac_preproc_ok=:
  3882. break
  3883. fi
  3884. rm -f conftest.err conftest.i conftest.$ac_ext
  3885. done
  3886. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3887. rm -f conftest.i conftest.err conftest.$ac_ext
  3888. if $ac_preproc_ok; then :
  3889. break
  3890. fi
  3891. done
  3892. ac_cv_prog_CPP=$CPP
  3893. fi
  3894. CPP=$ac_cv_prog_CPP
  3895. else
  3896. ac_cv_prog_CPP=$CPP
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3899. $as_echo "$CPP" >&6; }
  3900. ac_preproc_ok=false
  3901. for ac_c_preproc_warn_flag in '' yes
  3902. do
  3903. # Use a header file that comes with gcc, so configuring glibc
  3904. # with a fresh cross-compiler works.
  3905. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3906. # <limits.h> exists even on freestanding compilers.
  3907. # On the NeXT, cc -E runs the code through the compiler's parser,
  3908. # not just through cpp. "Syntax error" is here to catch this case.
  3909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3910. /* end confdefs.h. */
  3911. #ifdef __STDC__
  3912. # include <limits.h>
  3913. #else
  3914. # include <assert.h>
  3915. #endif
  3916. Syntax error
  3917. _ACEOF
  3918. if ac_fn_c_try_cpp "$LINENO"; then :
  3919. else
  3920. # Broken: fails on valid input.
  3921. continue
  3922. fi
  3923. rm -f conftest.err conftest.i conftest.$ac_ext
  3924. # OK, works on sane cases. Now check whether nonexistent headers
  3925. # can be detected and how.
  3926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3927. /* end confdefs.h. */
  3928. #include <ac_nonexistent.h>
  3929. _ACEOF
  3930. if ac_fn_c_try_cpp "$LINENO"; then :
  3931. # Broken: success on invalid input.
  3932. continue
  3933. else
  3934. # Passes both tests.
  3935. ac_preproc_ok=:
  3936. break
  3937. fi
  3938. rm -f conftest.err conftest.i conftest.$ac_ext
  3939. done
  3940. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3941. rm -f conftest.i conftest.err conftest.$ac_ext
  3942. if $ac_preproc_ok; then :
  3943. else
  3944. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3946. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3947. See \`config.log' for more details" "$LINENO" 5; }
  3948. fi
  3949. ac_ext=c
  3950. ac_cpp='$CPP $CPPFLAGS'
  3951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3955. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3956. if ${ac_cv_path_GREP+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -z "$GREP"; then
  3960. ac_path_GREP_found=false
  3961. # Loop through the user's path and test for each of PROGNAME-LIST
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_prog in grep ggrep; do
  3968. for ac_exec_ext in '' $ac_executable_extensions; do
  3969. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3970. as_fn_executable_p "$ac_path_GREP" || continue
  3971. # Check for GNU ac_path_GREP and select it if it is found.
  3972. # Check for GNU $ac_path_GREP
  3973. case `"$ac_path_GREP" --version 2>&1` in
  3974. *GNU*)
  3975. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3976. *)
  3977. ac_count=0
  3978. $as_echo_n 0123456789 >"conftest.in"
  3979. while :
  3980. do
  3981. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3982. mv "conftest.tmp" "conftest.in"
  3983. cp "conftest.in" "conftest.nl"
  3984. $as_echo 'GREP' >> "conftest.nl"
  3985. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3986. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3987. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3988. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3989. # Best one so far, save it but keep looking for a better one
  3990. ac_cv_path_GREP="$ac_path_GREP"
  3991. ac_path_GREP_max=$ac_count
  3992. fi
  3993. # 10*(2^10) chars as input seems more than enough
  3994. test $ac_count -gt 10 && break
  3995. done
  3996. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3997. esac
  3998. $ac_path_GREP_found && break 3
  3999. done
  4000. done
  4001. done
  4002. IFS=$as_save_IFS
  4003. if test -z "$ac_cv_path_GREP"; then
  4004. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4005. fi
  4006. else
  4007. ac_cv_path_GREP=$GREP
  4008. fi
  4009. fi
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4011. $as_echo "$ac_cv_path_GREP" >&6; }
  4012. GREP="$ac_cv_path_GREP"
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4014. $as_echo_n "checking for egrep... " >&6; }
  4015. if ${ac_cv_path_EGREP+:} false; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4019. then ac_cv_path_EGREP="$GREP -E"
  4020. else
  4021. if test -z "$EGREP"; then
  4022. ac_path_EGREP_found=false
  4023. # Loop through the user's path and test for each of PROGNAME-LIST
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_prog in egrep; do
  4030. for ac_exec_ext in '' $ac_executable_extensions; do
  4031. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4032. as_fn_executable_p "$ac_path_EGREP" || continue
  4033. # Check for GNU ac_path_EGREP and select it if it is found.
  4034. # Check for GNU $ac_path_EGREP
  4035. case `"$ac_path_EGREP" --version 2>&1` in
  4036. *GNU*)
  4037. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4038. *)
  4039. ac_count=0
  4040. $as_echo_n 0123456789 >"conftest.in"
  4041. while :
  4042. do
  4043. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4044. mv "conftest.tmp" "conftest.in"
  4045. cp "conftest.in" "conftest.nl"
  4046. $as_echo 'EGREP' >> "conftest.nl"
  4047. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4048. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4049. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4050. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4051. # Best one so far, save it but keep looking for a better one
  4052. ac_cv_path_EGREP="$ac_path_EGREP"
  4053. ac_path_EGREP_max=$ac_count
  4054. fi
  4055. # 10*(2^10) chars as input seems more than enough
  4056. test $ac_count -gt 10 && break
  4057. done
  4058. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4059. esac
  4060. $ac_path_EGREP_found && break 3
  4061. done
  4062. done
  4063. done
  4064. IFS=$as_save_IFS
  4065. if test -z "$ac_cv_path_EGREP"; then
  4066. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4067. fi
  4068. else
  4069. ac_cv_path_EGREP=$EGREP
  4070. fi
  4071. fi
  4072. fi
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4074. $as_echo "$ac_cv_path_EGREP" >&6; }
  4075. EGREP="$ac_cv_path_EGREP"
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4077. $as_echo_n "checking for ANSI C header files... " >&6; }
  4078. if ${ac_cv_header_stdc+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. #include <stdlib.h>
  4084. #include <stdarg.h>
  4085. #include <string.h>
  4086. #include <float.h>
  4087. int
  4088. main ()
  4089. {
  4090. ;
  4091. return 0;
  4092. }
  4093. _ACEOF
  4094. if ac_fn_c_try_compile "$LINENO"; then :
  4095. ac_cv_header_stdc=yes
  4096. else
  4097. ac_cv_header_stdc=no
  4098. fi
  4099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4100. if test $ac_cv_header_stdc = yes; then
  4101. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4103. /* end confdefs.h. */
  4104. #include <string.h>
  4105. _ACEOF
  4106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4107. $EGREP "memchr" >/dev/null 2>&1; then :
  4108. else
  4109. ac_cv_header_stdc=no
  4110. fi
  4111. rm -f conftest*
  4112. fi
  4113. if test $ac_cv_header_stdc = yes; then
  4114. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. #include <stdlib.h>
  4118. _ACEOF
  4119. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4120. $EGREP "free" >/dev/null 2>&1; then :
  4121. else
  4122. ac_cv_header_stdc=no
  4123. fi
  4124. rm -f conftest*
  4125. fi
  4126. if test $ac_cv_header_stdc = yes; then
  4127. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4128. if test "$cross_compiling" = yes; then :
  4129. :
  4130. else
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. #include <ctype.h>
  4134. #include <stdlib.h>
  4135. #if ((' ' & 0x0FF) == 0x020)
  4136. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4137. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4138. #else
  4139. # define ISLOWER(c) \
  4140. (('a' <= (c) && (c) <= 'i') \
  4141. || ('j' <= (c) && (c) <= 'r') \
  4142. || ('s' <= (c) && (c) <= 'z'))
  4143. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4144. #endif
  4145. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4146. int
  4147. main ()
  4148. {
  4149. int i;
  4150. for (i = 0; i < 256; i++)
  4151. if (XOR (islower (i), ISLOWER (i))
  4152. || toupper (i) != TOUPPER (i))
  4153. return 2;
  4154. return 0;
  4155. }
  4156. _ACEOF
  4157. if ac_fn_c_try_run "$LINENO"; then :
  4158. else
  4159. ac_cv_header_stdc=no
  4160. fi
  4161. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4162. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4163. fi
  4164. fi
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4167. $as_echo "$ac_cv_header_stdc" >&6; }
  4168. if test $ac_cv_header_stdc = yes; then
  4169. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4170. fi
  4171. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4172. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4173. inttypes.h stdint.h unistd.h
  4174. do :
  4175. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4176. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4177. "
  4178. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4179. cat >>confdefs.h <<_ACEOF
  4180. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4181. _ACEOF
  4182. fi
  4183. done
  4184. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4185. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4186. MINIX=yes
  4187. else
  4188. MINIX=
  4189. fi
  4190. if test "$MINIX" = yes; then
  4191. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4192. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4193. $as_echo "#define _MINIX 1" >>confdefs.h
  4194. fi
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4196. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4197. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4201. /* end confdefs.h. */
  4202. # define __EXTENSIONS__ 1
  4203. $ac_includes_default
  4204. int
  4205. main ()
  4206. {
  4207. ;
  4208. return 0;
  4209. }
  4210. _ACEOF
  4211. if ac_fn_c_try_compile "$LINENO"; then :
  4212. ac_cv_safe_to_define___extensions__=yes
  4213. else
  4214. ac_cv_safe_to_define___extensions__=no
  4215. fi
  4216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4219. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4220. test $ac_cv_safe_to_define___extensions__ = yes &&
  4221. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4222. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4223. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4224. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4225. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4226. ac_ext=c
  4227. ac_cpp='$CPP $CPPFLAGS'
  4228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4231. if test -n "$ac_tool_prefix"; then
  4232. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4233. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4235. $as_echo_n "checking for $ac_word... " >&6; }
  4236. if ${ac_cv_prog_CC+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. if test -n "$CC"; then
  4240. ac_cv_prog_CC="$CC" # Let the user override the test.
  4241. else
  4242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4243. for as_dir in $PATH
  4244. do
  4245. IFS=$as_save_IFS
  4246. test -z "$as_dir" && as_dir=.
  4247. for ac_exec_ext in '' $ac_executable_extensions; do
  4248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4249. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4251. break 2
  4252. fi
  4253. done
  4254. done
  4255. IFS=$as_save_IFS
  4256. fi
  4257. fi
  4258. CC=$ac_cv_prog_CC
  4259. if test -n "$CC"; then
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4261. $as_echo "$CC" >&6; }
  4262. else
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4264. $as_echo "no" >&6; }
  4265. fi
  4266. fi
  4267. if test -z "$ac_cv_prog_CC"; then
  4268. ac_ct_CC=$CC
  4269. # Extract the first word of "gcc", so it can be a program name with args.
  4270. set dummy gcc; ac_word=$2
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4272. $as_echo_n "checking for $ac_word... " >&6; }
  4273. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. if test -n "$ac_ct_CC"; then
  4277. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4278. else
  4279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4280. for as_dir in $PATH
  4281. do
  4282. IFS=$as_save_IFS
  4283. test -z "$as_dir" && as_dir=.
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4286. ac_cv_prog_ac_ct_CC="gcc"
  4287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4288. break 2
  4289. fi
  4290. done
  4291. done
  4292. IFS=$as_save_IFS
  4293. fi
  4294. fi
  4295. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4296. if test -n "$ac_ct_CC"; then
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4298. $as_echo "$ac_ct_CC" >&6; }
  4299. else
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4301. $as_echo "no" >&6; }
  4302. fi
  4303. if test "x$ac_ct_CC" = x; then
  4304. CC=""
  4305. else
  4306. case $cross_compiling:$ac_tool_warned in
  4307. yes:)
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4310. ac_tool_warned=yes ;;
  4311. esac
  4312. CC=$ac_ct_CC
  4313. fi
  4314. else
  4315. CC="$ac_cv_prog_CC"
  4316. fi
  4317. if test -z "$CC"; then
  4318. if test -n "$ac_tool_prefix"; then
  4319. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4320. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4322. $as_echo_n "checking for $ac_word... " >&6; }
  4323. if ${ac_cv_prog_CC+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. if test -n "$CC"; then
  4327. ac_cv_prog_CC="$CC" # Let the user override the test.
  4328. else
  4329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4330. for as_dir in $PATH
  4331. do
  4332. IFS=$as_save_IFS
  4333. test -z "$as_dir" && as_dir=.
  4334. for ac_exec_ext in '' $ac_executable_extensions; do
  4335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4336. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4338. break 2
  4339. fi
  4340. done
  4341. done
  4342. IFS=$as_save_IFS
  4343. fi
  4344. fi
  4345. CC=$ac_cv_prog_CC
  4346. if test -n "$CC"; then
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4348. $as_echo "$CC" >&6; }
  4349. else
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4351. $as_echo "no" >&6; }
  4352. fi
  4353. fi
  4354. fi
  4355. if test -z "$CC"; then
  4356. # Extract the first word of "cc", so it can be a program name with args.
  4357. set dummy cc; ac_word=$2
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4359. $as_echo_n "checking for $ac_word... " >&6; }
  4360. if ${ac_cv_prog_CC+:} false; then :
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. if test -n "$CC"; then
  4364. ac_cv_prog_CC="$CC" # Let the user override the test.
  4365. else
  4366. ac_prog_rejected=no
  4367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4368. for as_dir in $PATH
  4369. do
  4370. IFS=$as_save_IFS
  4371. test -z "$as_dir" && as_dir=.
  4372. for ac_exec_ext in '' $ac_executable_extensions; do
  4373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4374. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4375. ac_prog_rejected=yes
  4376. continue
  4377. fi
  4378. ac_cv_prog_CC="cc"
  4379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4380. break 2
  4381. fi
  4382. done
  4383. done
  4384. IFS=$as_save_IFS
  4385. if test $ac_prog_rejected = yes; then
  4386. # We found a bogon in the path, so make sure we never use it.
  4387. set dummy $ac_cv_prog_CC
  4388. shift
  4389. if test $# != 0; then
  4390. # We chose a different compiler from the bogus one.
  4391. # However, it has the same basename, so the bogon will be chosen
  4392. # first if we set CC to just the basename; use the full file name.
  4393. shift
  4394. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4395. fi
  4396. fi
  4397. fi
  4398. fi
  4399. CC=$ac_cv_prog_CC
  4400. if test -n "$CC"; then
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4402. $as_echo "$CC" >&6; }
  4403. else
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4405. $as_echo "no" >&6; }
  4406. fi
  4407. fi
  4408. if test -z "$CC"; then
  4409. if test -n "$ac_tool_prefix"; then
  4410. for ac_prog in cl.exe
  4411. do
  4412. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4413. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4415. $as_echo_n "checking for $ac_word... " >&6; }
  4416. if ${ac_cv_prog_CC+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -n "$CC"; then
  4420. ac_cv_prog_CC="$CC" # Let the user override the test.
  4421. else
  4422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4423. for as_dir in $PATH
  4424. do
  4425. IFS=$as_save_IFS
  4426. test -z "$as_dir" && as_dir=.
  4427. for ac_exec_ext in '' $ac_executable_extensions; do
  4428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4429. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4431. break 2
  4432. fi
  4433. done
  4434. done
  4435. IFS=$as_save_IFS
  4436. fi
  4437. fi
  4438. CC=$ac_cv_prog_CC
  4439. if test -n "$CC"; then
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4441. $as_echo "$CC" >&6; }
  4442. else
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4444. $as_echo "no" >&6; }
  4445. fi
  4446. test -n "$CC" && break
  4447. done
  4448. fi
  4449. if test -z "$CC"; then
  4450. ac_ct_CC=$CC
  4451. for ac_prog in cl.exe
  4452. do
  4453. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4454. set dummy $ac_prog; ac_word=$2
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4456. $as_echo_n "checking for $ac_word... " >&6; }
  4457. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4458. $as_echo_n "(cached) " >&6
  4459. else
  4460. if test -n "$ac_ct_CC"; then
  4461. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4462. else
  4463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4464. for as_dir in $PATH
  4465. do
  4466. IFS=$as_save_IFS
  4467. test -z "$as_dir" && as_dir=.
  4468. for ac_exec_ext in '' $ac_executable_extensions; do
  4469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4470. ac_cv_prog_ac_ct_CC="$ac_prog"
  4471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4472. break 2
  4473. fi
  4474. done
  4475. done
  4476. IFS=$as_save_IFS
  4477. fi
  4478. fi
  4479. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4480. if test -n "$ac_ct_CC"; then
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4482. $as_echo "$ac_ct_CC" >&6; }
  4483. else
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4485. $as_echo "no" >&6; }
  4486. fi
  4487. test -n "$ac_ct_CC" && break
  4488. done
  4489. if test "x$ac_ct_CC" = x; then
  4490. CC=""
  4491. else
  4492. case $cross_compiling:$ac_tool_warned in
  4493. yes:)
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4495. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4496. ac_tool_warned=yes ;;
  4497. esac
  4498. CC=$ac_ct_CC
  4499. fi
  4500. fi
  4501. fi
  4502. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4504. as_fn_error $? "no acceptable C compiler found in \$PATH
  4505. See \`config.log' for more details" "$LINENO" 5; }
  4506. # Provide some information about the compiler.
  4507. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4508. set X $ac_compile
  4509. ac_compiler=$2
  4510. for ac_option in --version -v -V -qversion; do
  4511. { { ac_try="$ac_compiler $ac_option >&5"
  4512. case "(($ac_try" in
  4513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4514. *) ac_try_echo=$ac_try;;
  4515. esac
  4516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4517. $as_echo "$ac_try_echo"; } >&5
  4518. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4519. ac_status=$?
  4520. if test -s conftest.err; then
  4521. sed '10a\
  4522. ... rest of stderr output deleted ...
  4523. 10q' conftest.err >conftest.er1
  4524. cat conftest.er1 >&5
  4525. fi
  4526. rm -f conftest.er1 conftest.err
  4527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4528. test $ac_status = 0; }
  4529. done
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4531. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4532. if ${ac_cv_c_compiler_gnu+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4536. /* end confdefs.h. */
  4537. int
  4538. main ()
  4539. {
  4540. #ifndef __GNUC__
  4541. choke me
  4542. #endif
  4543. ;
  4544. return 0;
  4545. }
  4546. _ACEOF
  4547. if ac_fn_c_try_compile "$LINENO"; then :
  4548. ac_compiler_gnu=yes
  4549. else
  4550. ac_compiler_gnu=no
  4551. fi
  4552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4553. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4554. fi
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4556. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4557. if test $ac_compiler_gnu = yes; then
  4558. GCC=yes
  4559. else
  4560. GCC=
  4561. fi
  4562. ac_test_CFLAGS=${CFLAGS+set}
  4563. ac_save_CFLAGS=$CFLAGS
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4565. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4566. if ${ac_cv_prog_cc_g+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. ac_save_c_werror_flag=$ac_c_werror_flag
  4570. ac_c_werror_flag=yes
  4571. ac_cv_prog_cc_g=no
  4572. CFLAGS="-g"
  4573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4574. /* end confdefs.h. */
  4575. int
  4576. main ()
  4577. {
  4578. ;
  4579. return 0;
  4580. }
  4581. _ACEOF
  4582. if ac_fn_c_try_compile "$LINENO"; then :
  4583. ac_cv_prog_cc_g=yes
  4584. else
  4585. CFLAGS=""
  4586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4587. /* end confdefs.h. */
  4588. int
  4589. main ()
  4590. {
  4591. ;
  4592. return 0;
  4593. }
  4594. _ACEOF
  4595. if ac_fn_c_try_compile "$LINENO"; then :
  4596. else
  4597. ac_c_werror_flag=$ac_save_c_werror_flag
  4598. CFLAGS="-g"
  4599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end confdefs.h. */
  4601. int
  4602. main ()
  4603. {
  4604. ;
  4605. return 0;
  4606. }
  4607. _ACEOF
  4608. if ac_fn_c_try_compile "$LINENO"; then :
  4609. ac_cv_prog_cc_g=yes
  4610. fi
  4611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4612. fi
  4613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4614. fi
  4615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4616. ac_c_werror_flag=$ac_save_c_werror_flag
  4617. fi
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4619. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4620. if test "$ac_test_CFLAGS" = set; then
  4621. CFLAGS=$ac_save_CFLAGS
  4622. elif test $ac_cv_prog_cc_g = yes; then
  4623. if test "$GCC" = yes; then
  4624. CFLAGS="-g -O2"
  4625. else
  4626. CFLAGS="-g"
  4627. fi
  4628. else
  4629. if test "$GCC" = yes; then
  4630. CFLAGS="-O2"
  4631. else
  4632. CFLAGS=
  4633. fi
  4634. fi
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4636. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4637. if ${ac_cv_prog_cc_c89+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. ac_cv_prog_cc_c89=no
  4641. ac_save_CC=$CC
  4642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4643. /* end confdefs.h. */
  4644. #include <stdarg.h>
  4645. #include <stdio.h>
  4646. struct stat;
  4647. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4648. struct buf { int x; };
  4649. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4650. static char *e (p, i)
  4651. char **p;
  4652. int i;
  4653. {
  4654. return p[i];
  4655. }
  4656. static char *f (char * (*g) (char **, int), char **p, ...)
  4657. {
  4658. char *s;
  4659. va_list v;
  4660. va_start (v,p);
  4661. s = g (p, va_arg (v,int));
  4662. va_end (v);
  4663. return s;
  4664. }
  4665. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4666. function prototypes and stuff, but not '\xHH' hex character constants.
  4667. These don't provoke an error unfortunately, instead are silently treated
  4668. as 'x'. The following induces an error, until -std is added to get
  4669. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4670. array size at least. It's necessary to write '\x00'==0 to get something
  4671. that's true only with -std. */
  4672. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4673. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4674. inside strings and character constants. */
  4675. #define FOO(x) 'x'
  4676. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4677. int test (int i, double x);
  4678. struct s1 {int (*f) (int a);};
  4679. struct s2 {int (*f) (double a);};
  4680. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4681. int argc;
  4682. char **argv;
  4683. int
  4684. main ()
  4685. {
  4686. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4687. ;
  4688. return 0;
  4689. }
  4690. _ACEOF
  4691. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4692. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4693. do
  4694. CC="$ac_save_CC $ac_arg"
  4695. if ac_fn_c_try_compile "$LINENO"; then :
  4696. ac_cv_prog_cc_c89=$ac_arg
  4697. fi
  4698. rm -f core conftest.err conftest.$ac_objext
  4699. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4700. done
  4701. rm -f conftest.$ac_ext
  4702. CC=$ac_save_CC
  4703. fi
  4704. # AC_CACHE_VAL
  4705. case "x$ac_cv_prog_cc_c89" in
  4706. x)
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4708. $as_echo "none needed" >&6; } ;;
  4709. xno)
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4711. $as_echo "unsupported" >&6; } ;;
  4712. *)
  4713. CC="$CC $ac_cv_prog_cc_c89"
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4715. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4716. esac
  4717. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4718. fi
  4719. ac_ext=c
  4720. ac_cpp='$CPP $CPPFLAGS'
  4721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4724. ac_ext=c
  4725. ac_cpp='$CPP $CPPFLAGS'
  4726. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4727. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4728. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4730. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4731. if ${am_cv_prog_cc_c_o+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h. */
  4736. int
  4737. main ()
  4738. {
  4739. ;
  4740. return 0;
  4741. }
  4742. _ACEOF
  4743. # Make sure it works both with $CC and with simple cc.
  4744. # Following AC_PROG_CC_C_O, we do the test twice because some
  4745. # compilers refuse to overwrite an existing .o file with -o,
  4746. # though they will create one.
  4747. am_cv_prog_cc_c_o=yes
  4748. for am_i in 1 2; do
  4749. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4750. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4751. ac_status=$?
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); } \
  4754. && test -f conftest2.$ac_objext; then
  4755. : OK
  4756. else
  4757. am_cv_prog_cc_c_o=no
  4758. break
  4759. fi
  4760. done
  4761. rm -f core conftest*
  4762. unset am_i
  4763. fi
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4765. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4766. if test "$am_cv_prog_cc_c_o" != yes; then
  4767. # Losing compiler, so override with the script.
  4768. # FIXME: It is wrong to rewrite CC.
  4769. # But if we don't then we get into trouble of one sort or another.
  4770. # A longer-term fix would be to have automake use am__CC in this case,
  4771. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4772. CC="$am_aux_dir/compile $CC"
  4773. fi
  4774. ac_ext=c
  4775. ac_cpp='$CPP $CPPFLAGS'
  4776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4779. depcc="$CC" am_compiler_list=
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4781. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4782. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4786. # We make a subdir and do the tests there. Otherwise we can end up
  4787. # making bogus files that we don't know about and never remove. For
  4788. # instance it was reported that on HP-UX the gcc test will end up
  4789. # making a dummy file named 'D' -- because '-MD' means "put the output
  4790. # in D".
  4791. rm -rf conftest.dir
  4792. mkdir conftest.dir
  4793. # Copy depcomp to subdir because otherwise we won't find it if we're
  4794. # using a relative directory.
  4795. cp "$am_depcomp" conftest.dir
  4796. cd conftest.dir
  4797. # We will build objects and dependencies in a subdirectory because
  4798. # it helps to detect inapplicable dependency modes. For instance
  4799. # both Tru64's cc and ICC support -MD to output dependencies as a
  4800. # side effect of compilation, but ICC will put the dependencies in
  4801. # the current directory while Tru64 will put them in the object
  4802. # directory.
  4803. mkdir sub
  4804. am_cv_CC_dependencies_compiler_type=none
  4805. if test "$am_compiler_list" = ""; then
  4806. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4807. fi
  4808. am__universal=false
  4809. case " $depcc " in #(
  4810. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4811. esac
  4812. for depmode in $am_compiler_list; do
  4813. # Setup a source with many dependencies, because some compilers
  4814. # like to wrap large dependency lists on column 80 (with \), and
  4815. # we should not choose a depcomp mode which is confused by this.
  4816. #
  4817. # We need to recreate these files for each test, as the compiler may
  4818. # overwrite some of them when testing with obscure command lines.
  4819. # This happens at least with the AIX C compiler.
  4820. : > sub/conftest.c
  4821. for i in 1 2 3 4 5 6; do
  4822. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4823. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4824. # Solaris 10 /bin/sh.
  4825. echo '/* dummy */' > sub/conftst$i.h
  4826. done
  4827. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4828. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4829. # mode. It turns out that the SunPro C++ compiler does not properly
  4830. # handle '-M -o', and we need to detect this. Also, some Intel
  4831. # versions had trouble with output in subdirs.
  4832. am__obj=sub/conftest.${OBJEXT-o}
  4833. am__minus_obj="-o $am__obj"
  4834. case $depmode in
  4835. gcc)
  4836. # This depmode causes a compiler race in universal mode.
  4837. test "$am__universal" = false || continue
  4838. ;;
  4839. nosideeffect)
  4840. # After this tag, mechanisms are not by side-effect, so they'll
  4841. # only be used when explicitly requested.
  4842. if test "x$enable_dependency_tracking" = xyes; then
  4843. continue
  4844. else
  4845. break
  4846. fi
  4847. ;;
  4848. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4849. # This compiler won't grok '-c -o', but also, the minuso test has
  4850. # not run yet. These depmodes are late enough in the game, and
  4851. # so weak that their functioning should not be impacted.
  4852. am__obj=conftest.${OBJEXT-o}
  4853. am__minus_obj=
  4854. ;;
  4855. none) break ;;
  4856. esac
  4857. if depmode=$depmode \
  4858. source=sub/conftest.c object=$am__obj \
  4859. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4860. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4861. >/dev/null 2>conftest.err &&
  4862. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4863. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4864. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4865. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4866. # icc doesn't choke on unknown options, it will just issue warnings
  4867. # or remarks (even with -Werror). So we grep stderr for any message
  4868. # that says an option was ignored or not supported.
  4869. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4870. # icc: Command line warning: ignoring option '-M'; no argument required
  4871. # The diagnosis changed in icc 8.0:
  4872. # icc: Command line remark: option '-MP' not supported
  4873. if (grep 'ignoring option' conftest.err ||
  4874. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4875. am_cv_CC_dependencies_compiler_type=$depmode
  4876. break
  4877. fi
  4878. fi
  4879. done
  4880. cd ..
  4881. rm -rf conftest.dir
  4882. else
  4883. am_cv_CC_dependencies_compiler_type=none
  4884. fi
  4885. fi
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4887. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4888. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4889. if
  4890. test "x$enable_dependency_tracking" != xno \
  4891. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4892. am__fastdepCC_TRUE=
  4893. am__fastdepCC_FALSE='#'
  4894. else
  4895. am__fastdepCC_TRUE='#'
  4896. am__fastdepCC_FALSE=
  4897. fi
  4898. ac_ext=cpp
  4899. ac_cpp='$CXXCPP $CPPFLAGS'
  4900. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4901. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4902. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4903. if test -z "$CXX"; then
  4904. if test -n "$CCC"; then
  4905. CXX=$CCC
  4906. else
  4907. if test -n "$ac_tool_prefix"; then
  4908. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4909. do
  4910. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4911. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_CXX+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$CXX"; then
  4918. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. CXX=$ac_cv_prog_CXX
  4937. if test -n "$CXX"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4939. $as_echo "$CXX" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. test -n "$CXX" && break
  4945. done
  4946. fi
  4947. if test -z "$CXX"; then
  4948. ac_ct_CXX=$CXX
  4949. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4950. do
  4951. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4952. set dummy $ac_prog; ac_word=$2
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4954. $as_echo_n "checking for $ac_word... " >&6; }
  4955. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. if test -n "$ac_ct_CXX"; then
  4959. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4960. else
  4961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4962. for as_dir in $PATH
  4963. do
  4964. IFS=$as_save_IFS
  4965. test -z "$as_dir" && as_dir=.
  4966. for ac_exec_ext in '' $ac_executable_extensions; do
  4967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4968. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4970. break 2
  4971. fi
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. fi
  4976. fi
  4977. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4978. if test -n "$ac_ct_CXX"; then
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4980. $as_echo "$ac_ct_CXX" >&6; }
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4983. $as_echo "no" >&6; }
  4984. fi
  4985. test -n "$ac_ct_CXX" && break
  4986. done
  4987. if test "x$ac_ct_CXX" = x; then
  4988. CXX="g++"
  4989. else
  4990. case $cross_compiling:$ac_tool_warned in
  4991. yes:)
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4994. ac_tool_warned=yes ;;
  4995. esac
  4996. CXX=$ac_ct_CXX
  4997. fi
  4998. fi
  4999. fi
  5000. fi
  5001. # Provide some information about the compiler.
  5002. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5003. set X $ac_compile
  5004. ac_compiler=$2
  5005. for ac_option in --version -v -V -qversion; do
  5006. { { ac_try="$ac_compiler $ac_option >&5"
  5007. case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5012. $as_echo "$ac_try_echo"; } >&5
  5013. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5014. ac_status=$?
  5015. if test -s conftest.err; then
  5016. sed '10a\
  5017. ... rest of stderr output deleted ...
  5018. 10q' conftest.err >conftest.er1
  5019. cat conftest.er1 >&5
  5020. fi
  5021. rm -f conftest.er1 conftest.err
  5022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5023. test $ac_status = 0; }
  5024. done
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5026. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5027. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5031. /* end confdefs.h. */
  5032. int
  5033. main ()
  5034. {
  5035. #ifndef __GNUC__
  5036. choke me
  5037. #endif
  5038. ;
  5039. return 0;
  5040. }
  5041. _ACEOF
  5042. if ac_fn_cxx_try_compile "$LINENO"; then :
  5043. ac_compiler_gnu=yes
  5044. else
  5045. ac_compiler_gnu=no
  5046. fi
  5047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5048. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5049. fi
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5051. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5052. if test $ac_compiler_gnu = yes; then
  5053. GXX=yes
  5054. else
  5055. GXX=
  5056. fi
  5057. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5058. ac_save_CXXFLAGS=$CXXFLAGS
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5060. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5061. if ${ac_cv_prog_cxx_g+:} false; then :
  5062. $as_echo_n "(cached) " >&6
  5063. else
  5064. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5065. ac_cxx_werror_flag=yes
  5066. ac_cv_prog_cxx_g=no
  5067. CXXFLAGS="-g"
  5068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5069. /* end confdefs.h. */
  5070. int
  5071. main ()
  5072. {
  5073. ;
  5074. return 0;
  5075. }
  5076. _ACEOF
  5077. if ac_fn_cxx_try_compile "$LINENO"; then :
  5078. ac_cv_prog_cxx_g=yes
  5079. else
  5080. CXXFLAGS=""
  5081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5082. /* end confdefs.h. */
  5083. int
  5084. main ()
  5085. {
  5086. ;
  5087. return 0;
  5088. }
  5089. _ACEOF
  5090. if ac_fn_cxx_try_compile "$LINENO"; then :
  5091. else
  5092. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5093. CXXFLAGS="-g"
  5094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5095. /* end confdefs.h. */
  5096. int
  5097. main ()
  5098. {
  5099. ;
  5100. return 0;
  5101. }
  5102. _ACEOF
  5103. if ac_fn_cxx_try_compile "$LINENO"; then :
  5104. ac_cv_prog_cxx_g=yes
  5105. fi
  5106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. fi
  5110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5111. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5112. fi
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5114. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5115. if test "$ac_test_CXXFLAGS" = set; then
  5116. CXXFLAGS=$ac_save_CXXFLAGS
  5117. elif test $ac_cv_prog_cxx_g = yes; then
  5118. if test "$GXX" = yes; then
  5119. CXXFLAGS="-g -O2"
  5120. else
  5121. CXXFLAGS="-g"
  5122. fi
  5123. else
  5124. if test "$GXX" = yes; then
  5125. CXXFLAGS="-O2"
  5126. else
  5127. CXXFLAGS=
  5128. fi
  5129. fi
  5130. ac_ext=c
  5131. ac_cpp='$CPP $CPPFLAGS'
  5132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5135. depcc="$CXX" am_compiler_list=
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5137. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5138. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5142. # We make a subdir and do the tests there. Otherwise we can end up
  5143. # making bogus files that we don't know about and never remove. For
  5144. # instance it was reported that on HP-UX the gcc test will end up
  5145. # making a dummy file named 'D' -- because '-MD' means "put the output
  5146. # in D".
  5147. rm -rf conftest.dir
  5148. mkdir conftest.dir
  5149. # Copy depcomp to subdir because otherwise we won't find it if we're
  5150. # using a relative directory.
  5151. cp "$am_depcomp" conftest.dir
  5152. cd conftest.dir
  5153. # We will build objects and dependencies in a subdirectory because
  5154. # it helps to detect inapplicable dependency modes. For instance
  5155. # both Tru64's cc and ICC support -MD to output dependencies as a
  5156. # side effect of compilation, but ICC will put the dependencies in
  5157. # the current directory while Tru64 will put them in the object
  5158. # directory.
  5159. mkdir sub
  5160. am_cv_CXX_dependencies_compiler_type=none
  5161. if test "$am_compiler_list" = ""; then
  5162. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5163. fi
  5164. am__universal=false
  5165. case " $depcc " in #(
  5166. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5167. esac
  5168. for depmode in $am_compiler_list; do
  5169. # Setup a source with many dependencies, because some compilers
  5170. # like to wrap large dependency lists on column 80 (with \), and
  5171. # we should not choose a depcomp mode which is confused by this.
  5172. #
  5173. # We need to recreate these files for each test, as the compiler may
  5174. # overwrite some of them when testing with obscure command lines.
  5175. # This happens at least with the AIX C compiler.
  5176. : > sub/conftest.c
  5177. for i in 1 2 3 4 5 6; do
  5178. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5179. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5180. # Solaris 10 /bin/sh.
  5181. echo '/* dummy */' > sub/conftst$i.h
  5182. done
  5183. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5184. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5185. # mode. It turns out that the SunPro C++ compiler does not properly
  5186. # handle '-M -o', and we need to detect this. Also, some Intel
  5187. # versions had trouble with output in subdirs.
  5188. am__obj=sub/conftest.${OBJEXT-o}
  5189. am__minus_obj="-o $am__obj"
  5190. case $depmode in
  5191. gcc)
  5192. # This depmode causes a compiler race in universal mode.
  5193. test "$am__universal" = false || continue
  5194. ;;
  5195. nosideeffect)
  5196. # After this tag, mechanisms are not by side-effect, so they'll
  5197. # only be used when explicitly requested.
  5198. if test "x$enable_dependency_tracking" = xyes; then
  5199. continue
  5200. else
  5201. break
  5202. fi
  5203. ;;
  5204. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5205. # This compiler won't grok '-c -o', but also, the minuso test has
  5206. # not run yet. These depmodes are late enough in the game, and
  5207. # so weak that their functioning should not be impacted.
  5208. am__obj=conftest.${OBJEXT-o}
  5209. am__minus_obj=
  5210. ;;
  5211. none) break ;;
  5212. esac
  5213. if depmode=$depmode \
  5214. source=sub/conftest.c object=$am__obj \
  5215. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5216. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5217. >/dev/null 2>conftest.err &&
  5218. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5219. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5220. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5221. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5222. # icc doesn't choke on unknown options, it will just issue warnings
  5223. # or remarks (even with -Werror). So we grep stderr for any message
  5224. # that says an option was ignored or not supported.
  5225. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5226. # icc: Command line warning: ignoring option '-M'; no argument required
  5227. # The diagnosis changed in icc 8.0:
  5228. # icc: Command line remark: option '-MP' not supported
  5229. if (grep 'ignoring option' conftest.err ||
  5230. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5231. am_cv_CXX_dependencies_compiler_type=$depmode
  5232. break
  5233. fi
  5234. fi
  5235. done
  5236. cd ..
  5237. rm -rf conftest.dir
  5238. else
  5239. am_cv_CXX_dependencies_compiler_type=none
  5240. fi
  5241. fi
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5243. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5244. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5245. if
  5246. test "x$enable_dependency_tracking" != xno \
  5247. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5248. am__fastdepCXX_TRUE=
  5249. am__fastdepCXX_FALSE='#'
  5250. else
  5251. am__fastdepCXX_TRUE='#'
  5252. am__fastdepCXX_FALSE=
  5253. fi
  5254. if test -n "$ac_tool_prefix"; then
  5255. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5256. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5258. $as_echo_n "checking for $ac_word... " >&6; }
  5259. if ${ac_cv_prog_RANLIB+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -n "$RANLIB"; then
  5263. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_exec_ext in '' $ac_executable_extensions; do
  5271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5272. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274. break 2
  5275. fi
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. fi
  5280. fi
  5281. RANLIB=$ac_cv_prog_RANLIB
  5282. if test -n "$RANLIB"; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5284. $as_echo "$RANLIB" >&6; }
  5285. else
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5287. $as_echo "no" >&6; }
  5288. fi
  5289. fi
  5290. if test -z "$ac_cv_prog_RANLIB"; then
  5291. ac_ct_RANLIB=$RANLIB
  5292. # Extract the first word of "ranlib", so it can be a program name with args.
  5293. set dummy ranlib; ac_word=$2
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5295. $as_echo_n "checking for $ac_word... " >&6; }
  5296. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. if test -n "$ac_ct_RANLIB"; then
  5300. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5301. else
  5302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5303. for as_dir in $PATH
  5304. do
  5305. IFS=$as_save_IFS
  5306. test -z "$as_dir" && as_dir=.
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5309. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5311. break 2
  5312. fi
  5313. done
  5314. done
  5315. IFS=$as_save_IFS
  5316. fi
  5317. fi
  5318. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5319. if test -n "$ac_ct_RANLIB"; then
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5321. $as_echo "$ac_ct_RANLIB" >&6; }
  5322. else
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5324. $as_echo "no" >&6; }
  5325. fi
  5326. if test "x$ac_ct_RANLIB" = x; then
  5327. RANLIB=":"
  5328. else
  5329. case $cross_compiling:$ac_tool_warned in
  5330. yes:)
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5333. ac_tool_warned=yes ;;
  5334. esac
  5335. RANLIB=$ac_ct_RANLIB
  5336. fi
  5337. else
  5338. RANLIB="$ac_cv_prog_RANLIB"
  5339. fi
  5340. if test -n "$ac_tool_prefix"; then
  5341. for ac_prog in ar lib "link -lib"
  5342. do
  5343. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5344. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5346. $as_echo_n "checking for $ac_word... " >&6; }
  5347. if ${ac_cv_prog_AR+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. if test -n "$AR"; then
  5351. ac_cv_prog_AR="$AR" # Let the user override the test.
  5352. else
  5353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5354. for as_dir in $PATH
  5355. do
  5356. IFS=$as_save_IFS
  5357. test -z "$as_dir" && as_dir=.
  5358. for ac_exec_ext in '' $ac_executable_extensions; do
  5359. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5360. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5362. break 2
  5363. fi
  5364. done
  5365. done
  5366. IFS=$as_save_IFS
  5367. fi
  5368. fi
  5369. AR=$ac_cv_prog_AR
  5370. if test -n "$AR"; then
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5372. $as_echo "$AR" >&6; }
  5373. else
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5375. $as_echo "no" >&6; }
  5376. fi
  5377. test -n "$AR" && break
  5378. done
  5379. fi
  5380. if test -z "$AR"; then
  5381. ac_ct_AR=$AR
  5382. for ac_prog in ar lib "link -lib"
  5383. do
  5384. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5385. set dummy $ac_prog; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_AR"; then
  5392. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_ac_ct_AR="$ac_prog"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5411. if test -n "$ac_ct_AR"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5413. $as_echo "$ac_ct_AR" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. test -n "$ac_ct_AR" && break
  5419. done
  5420. if test "x$ac_ct_AR" = x; then
  5421. AR="false"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. AR=$ac_ct_AR
  5430. fi
  5431. fi
  5432. : ${AR=ar}
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5434. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  5435. if ${am_cv_ar_interface+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. ac_ext=c
  5439. ac_cpp='$CPP $CPPFLAGS'
  5440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5443. am_cv_ar_interface=ar
  5444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5445. /* end confdefs.h. */
  5446. int some_variable = 0;
  5447. _ACEOF
  5448. if ac_fn_c_try_compile "$LINENO"; then :
  5449. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  5450. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5451. (eval $am_ar_try) 2>&5
  5452. ac_status=$?
  5453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5454. test $ac_status = 0; }
  5455. if test "$ac_status" -eq 0; then
  5456. am_cv_ar_interface=ar
  5457. else
  5458. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5459. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5460. (eval $am_ar_try) 2>&5
  5461. ac_status=$?
  5462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5463. test $ac_status = 0; }
  5464. if test "$ac_status" -eq 0; then
  5465. am_cv_ar_interface=lib
  5466. else
  5467. am_cv_ar_interface=unknown
  5468. fi
  5469. fi
  5470. rm -f conftest.lib libconftest.a
  5471. fi
  5472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5473. ac_ext=c
  5474. ac_cpp='$CPP $CPPFLAGS'
  5475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5478. fi
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5480. $as_echo "$am_cv_ar_interface" >&6; }
  5481. case $am_cv_ar_interface in
  5482. ar)
  5483. ;;
  5484. lib)
  5485. # Microsoft lib, so override with the ar-lib wrapper script.
  5486. # FIXME: It is wrong to rewrite AR.
  5487. # But if we don't then we get into trouble of one sort or another.
  5488. # A longer-term fix would be to have automake use am__AR in this case,
  5489. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5490. # similar.
  5491. AR="$am_aux_dir/ar-lib $AR"
  5492. ;;
  5493. unknown)
  5494. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5495. ;;
  5496. esac
  5497. # Check whether --enable-shared was given.
  5498. if test "${enable_shared+set}" = set; then :
  5499. enableval=$enable_shared; p=${PACKAGE-default}
  5500. case $enableval in
  5501. yes) enable_shared=yes ;;
  5502. no) enable_shared=no ;;
  5503. *)
  5504. enable_shared=no
  5505. # Look at the argument we got. We use all the common list separators.
  5506. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5507. for pkg in $enableval; do
  5508. IFS="$lt_save_ifs"
  5509. if test "X$pkg" = "X$p"; then
  5510. enable_shared=yes
  5511. fi
  5512. done
  5513. IFS="$lt_save_ifs"
  5514. ;;
  5515. esac
  5516. else
  5517. enable_shared=no
  5518. fi
  5519. case `pwd` in
  5520. *\ * | *\ *)
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5522. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5523. esac
  5524. macro_version='2.2.7a'
  5525. macro_revision='1.3134'
  5526. ltmain="$ac_aux_dir/ltmain.sh"
  5527. # Backslashify metacharacters that are still active within
  5528. # double-quoted strings.
  5529. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5530. # Same as above, but do not quote variable references.
  5531. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5532. # Sed substitution to delay expansion of an escaped shell variable in a
  5533. # double_quote_subst'ed string.
  5534. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5535. # Sed substitution to delay expansion of an escaped single quote.
  5536. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5537. # Sed substitution to avoid accidental globbing in evaled expressions
  5538. no_glob_subst='s/\*/\\\*/g'
  5539. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5540. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5541. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5543. $as_echo_n "checking how to print strings... " >&6; }
  5544. # Test print first, because it will be a builtin if present.
  5545. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5546. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5547. ECHO='print -r --'
  5548. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5549. ECHO='printf %s\n'
  5550. else
  5551. # Use this function as a fallback that always works.
  5552. func_fallback_echo ()
  5553. {
  5554. eval 'cat <<_LTECHO_EOF
  5555. $1
  5556. _LTECHO_EOF'
  5557. }
  5558. ECHO='func_fallback_echo'
  5559. fi
  5560. # func_echo_all arg...
  5561. # Invoke $ECHO with all args, space-separated.
  5562. func_echo_all ()
  5563. {
  5564. $ECHO ""
  5565. }
  5566. case "$ECHO" in
  5567. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5568. $as_echo "printf" >&6; } ;;
  5569. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5570. $as_echo "print -r" >&6; } ;;
  5571. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5572. $as_echo "cat" >&6; } ;;
  5573. esac
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5575. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5576. if ${ac_cv_path_SED+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5580. for ac_i in 1 2 3 4 5 6 7; do
  5581. ac_script="$ac_script$as_nl$ac_script"
  5582. done
  5583. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5584. { ac_script=; unset ac_script;}
  5585. if test -z "$SED"; then
  5586. ac_path_SED_found=false
  5587. # Loop through the user's path and test for each of PROGNAME-LIST
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_prog in sed gsed; do
  5594. for ac_exec_ext in '' $ac_executable_extensions; do
  5595. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5596. as_fn_executable_p "$ac_path_SED" || continue
  5597. # Check for GNU ac_path_SED and select it if it is found.
  5598. # Check for GNU $ac_path_SED
  5599. case `"$ac_path_SED" --version 2>&1` in
  5600. *GNU*)
  5601. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5602. *)
  5603. ac_count=0
  5604. $as_echo_n 0123456789 >"conftest.in"
  5605. while :
  5606. do
  5607. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5608. mv "conftest.tmp" "conftest.in"
  5609. cp "conftest.in" "conftest.nl"
  5610. $as_echo '' >> "conftest.nl"
  5611. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5612. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5613. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5614. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5615. # Best one so far, save it but keep looking for a better one
  5616. ac_cv_path_SED="$ac_path_SED"
  5617. ac_path_SED_max=$ac_count
  5618. fi
  5619. # 10*(2^10) chars as input seems more than enough
  5620. test $ac_count -gt 10 && break
  5621. done
  5622. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5623. esac
  5624. $ac_path_SED_found && break 3
  5625. done
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. if test -z "$ac_cv_path_SED"; then
  5630. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5631. fi
  5632. else
  5633. ac_cv_path_SED=$SED
  5634. fi
  5635. fi
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5637. $as_echo "$ac_cv_path_SED" >&6; }
  5638. SED="$ac_cv_path_SED"
  5639. rm -f conftest.sed
  5640. test -z "$SED" && SED=sed
  5641. Xsed="$SED -e 1s/^X//"
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5643. $as_echo_n "checking for fgrep... " >&6; }
  5644. if ${ac_cv_path_FGREP+:} false; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5648. then ac_cv_path_FGREP="$GREP -F"
  5649. else
  5650. if test -z "$FGREP"; then
  5651. ac_path_FGREP_found=false
  5652. # Loop through the user's path and test for each of PROGNAME-LIST
  5653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5654. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5655. do
  5656. IFS=$as_save_IFS
  5657. test -z "$as_dir" && as_dir=.
  5658. for ac_prog in fgrep; do
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5661. as_fn_executable_p "$ac_path_FGREP" || continue
  5662. # Check for GNU ac_path_FGREP and select it if it is found.
  5663. # Check for GNU $ac_path_FGREP
  5664. case `"$ac_path_FGREP" --version 2>&1` in
  5665. *GNU*)
  5666. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5667. *)
  5668. ac_count=0
  5669. $as_echo_n 0123456789 >"conftest.in"
  5670. while :
  5671. do
  5672. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5673. mv "conftest.tmp" "conftest.in"
  5674. cp "conftest.in" "conftest.nl"
  5675. $as_echo 'FGREP' >> "conftest.nl"
  5676. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5677. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5678. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5679. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5680. # Best one so far, save it but keep looking for a better one
  5681. ac_cv_path_FGREP="$ac_path_FGREP"
  5682. ac_path_FGREP_max=$ac_count
  5683. fi
  5684. # 10*(2^10) chars as input seems more than enough
  5685. test $ac_count -gt 10 && break
  5686. done
  5687. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5688. esac
  5689. $ac_path_FGREP_found && break 3
  5690. done
  5691. done
  5692. done
  5693. IFS=$as_save_IFS
  5694. if test -z "$ac_cv_path_FGREP"; then
  5695. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5696. fi
  5697. else
  5698. ac_cv_path_FGREP=$FGREP
  5699. fi
  5700. fi
  5701. fi
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5703. $as_echo "$ac_cv_path_FGREP" >&6; }
  5704. FGREP="$ac_cv_path_FGREP"
  5705. test -z "$GREP" && GREP=grep
  5706. # Check whether --with-gnu-ld was given.
  5707. if test "${with_gnu_ld+set}" = set; then :
  5708. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5709. else
  5710. with_gnu_ld=no
  5711. fi
  5712. ac_prog=ld
  5713. if test "$GCC" = yes; then
  5714. # Check if gcc -print-prog-name=ld gives a path.
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5716. $as_echo_n "checking for ld used by $CC... " >&6; }
  5717. case $host in
  5718. *-*-mingw*)
  5719. # gcc leaves a trailing carriage return which upsets mingw
  5720. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5721. *)
  5722. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5723. esac
  5724. case $ac_prog in
  5725. # Accept absolute paths.
  5726. [\\/]* | ?:[\\/]*)
  5727. re_direlt='/[^/][^/]*/\.\./'
  5728. # Canonicalize the pathname of ld
  5729. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5730. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5731. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5732. done
  5733. test -z "$LD" && LD="$ac_prog"
  5734. ;;
  5735. "")
  5736. # If it fails, then pretend we aren't using GCC.
  5737. ac_prog=ld
  5738. ;;
  5739. *)
  5740. # If it is relative, then search for the first ld in PATH.
  5741. with_gnu_ld=unknown
  5742. ;;
  5743. esac
  5744. elif test "$with_gnu_ld" = yes; then
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5746. $as_echo_n "checking for GNU ld... " >&6; }
  5747. else
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5749. $as_echo_n "checking for non-GNU ld... " >&6; }
  5750. fi
  5751. if ${lt_cv_path_LD+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. if test -z "$LD"; then
  5755. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5756. for ac_dir in $PATH; do
  5757. IFS="$lt_save_ifs"
  5758. test -z "$ac_dir" && ac_dir=.
  5759. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5760. lt_cv_path_LD="$ac_dir/$ac_prog"
  5761. # Check to see if the program is GNU ld. I'd rather use --version,
  5762. # but apparently some variants of GNU ld only accept -v.
  5763. # Break only if it was the GNU/non-GNU ld that we prefer.
  5764. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5765. *GNU* | *'with BFD'*)
  5766. test "$with_gnu_ld" != no && break
  5767. ;;
  5768. *)
  5769. test "$with_gnu_ld" != yes && break
  5770. ;;
  5771. esac
  5772. fi
  5773. done
  5774. IFS="$lt_save_ifs"
  5775. else
  5776. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5777. fi
  5778. fi
  5779. LD="$lt_cv_path_LD"
  5780. if test -n "$LD"; then
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5782. $as_echo "$LD" >&6; }
  5783. else
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5785. $as_echo "no" >&6; }
  5786. fi
  5787. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5789. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5790. if ${lt_cv_prog_gnu_ld+:} false; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5794. case `$LD -v 2>&1 </dev/null` in
  5795. *GNU* | *'with BFD'*)
  5796. lt_cv_prog_gnu_ld=yes
  5797. ;;
  5798. *)
  5799. lt_cv_prog_gnu_ld=no
  5800. ;;
  5801. esac
  5802. fi
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5804. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5805. with_gnu_ld=$lt_cv_prog_gnu_ld
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5807. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5808. if ${lt_cv_path_NM+:} false; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. if test -n "$NM"; then
  5812. # Let the user override the nm to test.
  5813. lt_nm_to_check="$NM"
  5814. else
  5815. lt_nm_to_check="${ac_tool_prefix}nm"
  5816. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5817. lt_nm_to_check="$lt_nm_to_check nm"
  5818. fi
  5819. fi
  5820. for lt_tmp_nm in "$lt_nm_to_check"; do
  5821. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5822. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5823. IFS="$lt_save_ifs"
  5824. test -z "$ac_dir" && ac_dir=.
  5825. # Strip out any user-provided options from the nm to test twice,
  5826. # the first time to test to see if nm (rather than its options) has
  5827. # an explicit path, the second time to yield a file which can be
  5828. # nm'ed itself.
  5829. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  5830. case "$tmp_nm_path" in
  5831. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  5832. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  5833. esac
  5834. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  5835. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  5836. # Check to see if the nm accepts a BSD-compat flag.
  5837. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5838. # nm: unknown option "B" ignored
  5839. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5840. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  5841. break
  5842. ;;
  5843. *)
  5844. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5845. *$tmp_nm*)
  5846. lt_cv_path_NM="$tmp_nm -p"
  5847. break
  5848. ;;
  5849. *)
  5850. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5851. continue # so that we can try to find one that supports BSD flags
  5852. ;;
  5853. esac
  5854. ;;
  5855. esac
  5856. fi
  5857. done
  5858. IFS="$lt_save_ifs"
  5859. done
  5860. : ${lt_cv_path_NM=no}
  5861. fi
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5863. $as_echo "$lt_cv_path_NM" >&6; }
  5864. if test "$lt_cv_path_NM" != "no"; then
  5865. NM="$lt_cv_path_NM"
  5866. else
  5867. # Didn't find any BSD compatible name lister, look for dumpbin.
  5868. if test -n "$DUMPBIN"; then :
  5869. # Let the user override the test.
  5870. else
  5871. if test -n "$ac_tool_prefix"; then
  5872. for ac_prog in dumpbin "link -dump"
  5873. do
  5874. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5875. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5877. $as_echo_n "checking for $ac_word... " >&6; }
  5878. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. if test -n "$DUMPBIN"; then
  5882. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5883. else
  5884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5885. for as_dir in $PATH
  5886. do
  5887. IFS=$as_save_IFS
  5888. test -z "$as_dir" && as_dir=.
  5889. for ac_exec_ext in '' $ac_executable_extensions; do
  5890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5891. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5893. break 2
  5894. fi
  5895. done
  5896. done
  5897. IFS=$as_save_IFS
  5898. fi
  5899. fi
  5900. DUMPBIN=$ac_cv_prog_DUMPBIN
  5901. if test -n "$DUMPBIN"; then
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5903. $as_echo "$DUMPBIN" >&6; }
  5904. else
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5906. $as_echo "no" >&6; }
  5907. fi
  5908. test -n "$DUMPBIN" && break
  5909. done
  5910. fi
  5911. if test -z "$DUMPBIN"; then
  5912. ac_ct_DUMPBIN=$DUMPBIN
  5913. for ac_prog in dumpbin "link -dump"
  5914. do
  5915. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5916. set dummy $ac_prog; ac_word=$2
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5918. $as_echo_n "checking for $ac_word... " >&6; }
  5919. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. if test -n "$ac_ct_DUMPBIN"; then
  5923. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5924. else
  5925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5926. for as_dir in $PATH
  5927. do
  5928. IFS=$as_save_IFS
  5929. test -z "$as_dir" && as_dir=.
  5930. for ac_exec_ext in '' $ac_executable_extensions; do
  5931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5932. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5934. break 2
  5935. fi
  5936. done
  5937. done
  5938. IFS=$as_save_IFS
  5939. fi
  5940. fi
  5941. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5942. if test -n "$ac_ct_DUMPBIN"; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5944. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. fi
  5949. test -n "$ac_ct_DUMPBIN" && break
  5950. done
  5951. if test "x$ac_ct_DUMPBIN" = x; then
  5952. DUMPBIN=":"
  5953. else
  5954. case $cross_compiling:$ac_tool_warned in
  5955. yes:)
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5957. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5958. ac_tool_warned=yes ;;
  5959. esac
  5960. DUMPBIN=$ac_ct_DUMPBIN
  5961. fi
  5962. fi
  5963. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5964. *COFF*)
  5965. DUMPBIN="$DUMPBIN -symbols"
  5966. ;;
  5967. *)
  5968. DUMPBIN=:
  5969. ;;
  5970. esac
  5971. fi
  5972. if test "$DUMPBIN" != ":"; then
  5973. NM="$DUMPBIN"
  5974. fi
  5975. fi
  5976. test -z "$NM" && NM=nm
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5978. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5979. if ${lt_cv_nm_interface+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. lt_cv_nm_interface="BSD nm"
  5983. echo "int some_variable = 0;" > conftest.$ac_ext
  5984. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5985. (eval "$ac_compile" 2>conftest.err)
  5986. cat conftest.err >&5
  5987. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5988. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5989. cat conftest.err >&5
  5990. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5991. cat conftest.out >&5
  5992. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5993. lt_cv_nm_interface="MS dumpbin"
  5994. fi
  5995. rm -f conftest*
  5996. fi
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5998. $as_echo "$lt_cv_nm_interface" >&6; }
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6000. $as_echo_n "checking whether ln -s works... " >&6; }
  6001. LN_S=$as_ln_s
  6002. if test "$LN_S" = "ln -s"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6004. $as_echo "yes" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6007. $as_echo "no, using $LN_S" >&6; }
  6008. fi
  6009. # find the maximum length of command line arguments
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6011. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6012. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6013. $as_echo_n "(cached) " >&6
  6014. else
  6015. i=0
  6016. teststring="ABCD"
  6017. case $build_os in
  6018. msdosdjgpp*)
  6019. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6020. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6021. # during glob expansion). Even if it were fixed, the result of this
  6022. # check would be larger than it should be.
  6023. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6024. ;;
  6025. gnu*)
  6026. # Under GNU Hurd, this test is not required because there is
  6027. # no limit to the length of command line arguments.
  6028. # Libtool will interpret -1 as no limit whatsoever
  6029. lt_cv_sys_max_cmd_len=-1;
  6030. ;;
  6031. cygwin* | mingw* | cegcc*)
  6032. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6033. # about 5 minutes as the teststring grows exponentially.
  6034. # Worse, since 9x/ME are not pre-emptively multitasking,
  6035. # you end up with a "frozen" computer, even though with patience
  6036. # the test eventually succeeds (with a max line length of 256k).
  6037. # Instead, let's just punt: use the minimum linelength reported by
  6038. # all of the supported platforms: 8192 (on NT/2K/XP).
  6039. lt_cv_sys_max_cmd_len=8192;
  6040. ;;
  6041. mint*)
  6042. # On MiNT this can take a long time and run out of memory.
  6043. lt_cv_sys_max_cmd_len=8192;
  6044. ;;
  6045. amigaos*)
  6046. # On AmigaOS with pdksh, this test takes hours, literally.
  6047. # So we just punt and use a minimum line length of 8192.
  6048. lt_cv_sys_max_cmd_len=8192;
  6049. ;;
  6050. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6051. # This has been around since 386BSD, at least. Likely further.
  6052. if test -x /sbin/sysctl; then
  6053. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6054. elif test -x /usr/sbin/sysctl; then
  6055. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6056. else
  6057. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6058. fi
  6059. # And add a safety zone
  6060. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6061. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6062. ;;
  6063. interix*)
  6064. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6065. lt_cv_sys_max_cmd_len=196608
  6066. ;;
  6067. osf*)
  6068. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6069. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6070. # nice to cause kernel panics so lets avoid the loop below.
  6071. # First set a reasonable default.
  6072. lt_cv_sys_max_cmd_len=16384
  6073. #
  6074. if test -x /sbin/sysconfig; then
  6075. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6076. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6077. esac
  6078. fi
  6079. ;;
  6080. sco3.2v5*)
  6081. lt_cv_sys_max_cmd_len=102400
  6082. ;;
  6083. sysv5* | sco5v6* | sysv4.2uw2*)
  6084. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6085. if test -n "$kargmax"; then
  6086. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6087. else
  6088. lt_cv_sys_max_cmd_len=32768
  6089. fi
  6090. ;;
  6091. *)
  6092. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6093. if test -n "$lt_cv_sys_max_cmd_len"; then
  6094. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6095. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6096. else
  6097. # Make teststring a little bigger before we do anything with it.
  6098. # a 1K string should be a reasonable start.
  6099. for i in 1 2 3 4 5 6 7 8 ; do
  6100. teststring=$teststring$teststring
  6101. done
  6102. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6103. # If test is not a shell built-in, we'll probably end up computing a
  6104. # maximum length that is only half of the actual maximum length, but
  6105. # we can't tell.
  6106. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6107. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6108. test $i != 17 # 1/2 MB should be enough
  6109. do
  6110. i=`expr $i + 1`
  6111. teststring=$teststring$teststring
  6112. done
  6113. # Only check the string length outside the loop.
  6114. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6115. teststring=
  6116. # Add a significant safety factor because C++ compilers can tack on
  6117. # massive amounts of additional arguments before passing them to the
  6118. # linker. It appears as though 1/2 is a usable value.
  6119. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6120. fi
  6121. ;;
  6122. esac
  6123. fi
  6124. if test -n $lt_cv_sys_max_cmd_len ; then
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6126. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6127. else
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6129. $as_echo "none" >&6; }
  6130. fi
  6131. max_cmd_len=$lt_cv_sys_max_cmd_len
  6132. : ${CP="cp -f"}
  6133. : ${MV="mv -f"}
  6134. : ${RM="rm -f"}
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6136. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6137. # Try some XSI features
  6138. xsi_shell=no
  6139. ( _lt_dummy="a/b/c"
  6140. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6141. = c,a/b,, \
  6142. && eval 'test $(( 1 + 1 )) -eq 2 \
  6143. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6144. && xsi_shell=yes
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6146. $as_echo "$xsi_shell" >&6; }
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6148. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6149. lt_shell_append=no
  6150. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6151. >/dev/null 2>&1 \
  6152. && lt_shell_append=yes
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6154. $as_echo "$lt_shell_append" >&6; }
  6155. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6156. lt_unset=unset
  6157. else
  6158. lt_unset=false
  6159. fi
  6160. # test EBCDIC or ASCII
  6161. case `echo X|tr X '\101'` in
  6162. A) # ASCII based system
  6163. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6164. lt_SP2NL='tr \040 \012'
  6165. lt_NL2SP='tr \015\012 \040\040'
  6166. ;;
  6167. *) # EBCDIC based system
  6168. lt_SP2NL='tr \100 \n'
  6169. lt_NL2SP='tr \r\n \100\100'
  6170. ;;
  6171. esac
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6173. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6174. if ${lt_cv_ld_reload_flag+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. lt_cv_ld_reload_flag='-r'
  6178. fi
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6180. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6181. reload_flag=$lt_cv_ld_reload_flag
  6182. case $reload_flag in
  6183. "" | " "*) ;;
  6184. *) reload_flag=" $reload_flag" ;;
  6185. esac
  6186. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6187. case $host_os in
  6188. darwin*)
  6189. if test "$GCC" = yes; then
  6190. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6191. else
  6192. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6193. fi
  6194. ;;
  6195. esac
  6196. if test -n "$ac_tool_prefix"; then
  6197. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6198. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6200. $as_echo_n "checking for $ac_word... " >&6; }
  6201. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6202. $as_echo_n "(cached) " >&6
  6203. else
  6204. if test -n "$OBJDUMP"; then
  6205. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6206. else
  6207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6208. for as_dir in $PATH
  6209. do
  6210. IFS=$as_save_IFS
  6211. test -z "$as_dir" && as_dir=.
  6212. for ac_exec_ext in '' $ac_executable_extensions; do
  6213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6214. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6216. break 2
  6217. fi
  6218. done
  6219. done
  6220. IFS=$as_save_IFS
  6221. fi
  6222. fi
  6223. OBJDUMP=$ac_cv_prog_OBJDUMP
  6224. if test -n "$OBJDUMP"; then
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6226. $as_echo "$OBJDUMP" >&6; }
  6227. else
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6229. $as_echo "no" >&6; }
  6230. fi
  6231. fi
  6232. if test -z "$ac_cv_prog_OBJDUMP"; then
  6233. ac_ct_OBJDUMP=$OBJDUMP
  6234. # Extract the first word of "objdump", so it can be a program name with args.
  6235. set dummy objdump; ac_word=$2
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6237. $as_echo_n "checking for $ac_word... " >&6; }
  6238. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. if test -n "$ac_ct_OBJDUMP"; then
  6242. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6243. else
  6244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6245. for as_dir in $PATH
  6246. do
  6247. IFS=$as_save_IFS
  6248. test -z "$as_dir" && as_dir=.
  6249. for ac_exec_ext in '' $ac_executable_extensions; do
  6250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6251. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6253. break 2
  6254. fi
  6255. done
  6256. done
  6257. IFS=$as_save_IFS
  6258. fi
  6259. fi
  6260. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6261. if test -n "$ac_ct_OBJDUMP"; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6263. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6264. else
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6266. $as_echo "no" >&6; }
  6267. fi
  6268. if test "x$ac_ct_OBJDUMP" = x; then
  6269. OBJDUMP="false"
  6270. else
  6271. case $cross_compiling:$ac_tool_warned in
  6272. yes:)
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6275. ac_tool_warned=yes ;;
  6276. esac
  6277. OBJDUMP=$ac_ct_OBJDUMP
  6278. fi
  6279. else
  6280. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6281. fi
  6282. test -z "$OBJDUMP" && OBJDUMP=objdump
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6284. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6285. if ${lt_cv_deplibs_check_method+:} false; then :
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6289. lt_cv_file_magic_test_file=
  6290. lt_cv_deplibs_check_method='unknown'
  6291. # Need to set the preceding variable on all platforms that support
  6292. # interlibrary dependencies.
  6293. # 'none' -- dependencies not supported.
  6294. # `unknown' -- same as none, but documents that we really don't know.
  6295. # 'pass_all' -- all dependencies passed with no checks.
  6296. # 'test_compile' -- check by making test program.
  6297. # 'file_magic [[regex]]' -- check by looking for files in library path
  6298. # which responds to the $file_magic_cmd with a given extended regex.
  6299. # If you have `file' or equivalent on your system and you're not sure
  6300. # whether `pass_all' will *always* work, you probably want this one.
  6301. case $host_os in
  6302. aix[4-9]*)
  6303. lt_cv_deplibs_check_method=pass_all
  6304. ;;
  6305. beos*)
  6306. lt_cv_deplibs_check_method=pass_all
  6307. ;;
  6308. bsdi[45]*)
  6309. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6310. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6311. lt_cv_file_magic_test_file=/shlib/libc.so
  6312. ;;
  6313. cygwin*)
  6314. # func_win32_libid is a shell function defined in ltmain.sh
  6315. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6316. lt_cv_file_magic_cmd='func_win32_libid'
  6317. ;;
  6318. mingw* | pw32*)
  6319. # Base MSYS/MinGW do not provide the 'file' command needed by
  6320. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6321. # unless we find 'file', for example because we are cross-compiling.
  6322. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6323. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6324. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6325. lt_cv_file_magic_cmd='func_win32_libid'
  6326. else
  6327. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6328. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6329. fi
  6330. ;;
  6331. cegcc*)
  6332. # use the weaker test based on 'objdump'. See mingw*.
  6333. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6334. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6335. ;;
  6336. darwin* | rhapsody*)
  6337. lt_cv_deplibs_check_method=pass_all
  6338. ;;
  6339. freebsd* | dragonfly*)
  6340. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6341. case $host_cpu in
  6342. i*86 )
  6343. # Not sure whether the presence of OpenBSD here was a mistake.
  6344. # Let's accept both of them until this is cleared up.
  6345. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6346. lt_cv_file_magic_cmd=/usr/bin/file
  6347. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6348. ;;
  6349. esac
  6350. else
  6351. lt_cv_deplibs_check_method=pass_all
  6352. fi
  6353. ;;
  6354. gnu*)
  6355. lt_cv_deplibs_check_method=pass_all
  6356. ;;
  6357. haiku*)
  6358. lt_cv_deplibs_check_method=pass_all
  6359. ;;
  6360. hpux10.20* | hpux11*)
  6361. lt_cv_file_magic_cmd=/usr/bin/file
  6362. case $host_cpu in
  6363. ia64*)
  6364. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6365. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6366. ;;
  6367. hppa*64*)
  6368. 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]'
  6369. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6370. ;;
  6371. *)
  6372. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6373. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6374. ;;
  6375. esac
  6376. ;;
  6377. interix[3-9]*)
  6378. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6379. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6380. ;;
  6381. irix5* | irix6* | nonstopux*)
  6382. case $LD in
  6383. *-32|*"-32 ") libmagic=32-bit;;
  6384. *-n32|*"-n32 ") libmagic=N32;;
  6385. *-64|*"-64 ") libmagic=64-bit;;
  6386. *) libmagic=never-match;;
  6387. esac
  6388. lt_cv_deplibs_check_method=pass_all
  6389. ;;
  6390. # This must be Linux ELF.
  6391. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6392. lt_cv_deplibs_check_method=pass_all
  6393. ;;
  6394. netbsd*)
  6395. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6396. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6397. else
  6398. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6399. fi
  6400. ;;
  6401. newos6*)
  6402. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6403. lt_cv_file_magic_cmd=/usr/bin/file
  6404. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6405. ;;
  6406. *nto* | *qnx*)
  6407. lt_cv_deplibs_check_method=pass_all
  6408. ;;
  6409. openbsd*)
  6410. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6411. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6412. else
  6413. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6414. fi
  6415. ;;
  6416. osf3* | osf4* | osf5*)
  6417. lt_cv_deplibs_check_method=pass_all
  6418. ;;
  6419. rdos*)
  6420. lt_cv_deplibs_check_method=pass_all
  6421. ;;
  6422. solaris*)
  6423. lt_cv_deplibs_check_method=pass_all
  6424. ;;
  6425. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6426. lt_cv_deplibs_check_method=pass_all
  6427. ;;
  6428. sysv4 | sysv4.3*)
  6429. case $host_vendor in
  6430. motorola)
  6431. 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]'
  6432. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6433. ;;
  6434. ncr)
  6435. lt_cv_deplibs_check_method=pass_all
  6436. ;;
  6437. sequent)
  6438. lt_cv_file_magic_cmd='/bin/file'
  6439. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6440. ;;
  6441. sni)
  6442. lt_cv_file_magic_cmd='/bin/file'
  6443. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6444. lt_cv_file_magic_test_file=/lib/libc.so
  6445. ;;
  6446. siemens)
  6447. lt_cv_deplibs_check_method=pass_all
  6448. ;;
  6449. pc)
  6450. lt_cv_deplibs_check_method=pass_all
  6451. ;;
  6452. esac
  6453. ;;
  6454. tpf*)
  6455. lt_cv_deplibs_check_method=pass_all
  6456. ;;
  6457. esac
  6458. fi
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6460. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6461. file_magic_cmd=$lt_cv_file_magic_cmd
  6462. deplibs_check_method=$lt_cv_deplibs_check_method
  6463. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6464. plugin_option=
  6465. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  6466. for plugin in $plugin_names; do
  6467. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  6468. if test x$plugin_so = x$plugin; then
  6469. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  6470. fi
  6471. if test x$plugin_so != x$plugin; then
  6472. plugin_option="--plugin $plugin_so"
  6473. break
  6474. fi
  6475. done
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if ${ac_cv_prog_AR+:} false; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$AR"; then
  6485. ac_cv_prog_AR="$AR" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6494. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. AR=$ac_cv_prog_AR
  6504. if test -n "$AR"; then
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6506. $as_echo "$AR" >&6; }
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. fi
  6512. if test -z "$ac_cv_prog_AR"; then
  6513. ac_ct_AR=$AR
  6514. # Extract the first word of "ar", so it can be a program name with args.
  6515. set dummy ar; ac_word=$2
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6517. $as_echo_n "checking for $ac_word... " >&6; }
  6518. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. if test -n "$ac_ct_AR"; then
  6522. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6523. else
  6524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6525. for as_dir in $PATH
  6526. do
  6527. IFS=$as_save_IFS
  6528. test -z "$as_dir" && as_dir=.
  6529. for ac_exec_ext in '' $ac_executable_extensions; do
  6530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6531. ac_cv_prog_ac_ct_AR="ar"
  6532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6533. break 2
  6534. fi
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. fi
  6539. fi
  6540. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6541. if test -n "$ac_ct_AR"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6543. $as_echo "$ac_ct_AR" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. if test "x$ac_ct_AR" = x; then
  6549. AR="false"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. AR=$ac_ct_AR
  6558. fi
  6559. else
  6560. AR="$ac_cv_prog_AR"
  6561. fi
  6562. test -z "$AR" && AR=ar
  6563. if test -n "$plugin_option"; then
  6564. if $AR --help 2>&1 | grep -q "\--plugin"; then
  6565. touch conftest.c
  6566. $AR $plugin_option rc conftest.a conftest.c
  6567. if test "$?" != 0; then
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  6569. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  6570. else
  6571. AR="$AR $plugin_option"
  6572. fi
  6573. rm -f conftest.*
  6574. fi
  6575. fi
  6576. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6577. if test -n "$ac_tool_prefix"; then
  6578. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6579. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if ${ac_cv_prog_STRIP+:} false; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$STRIP"; then
  6586. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6595. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. STRIP=$ac_cv_prog_STRIP
  6605. if test -n "$STRIP"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6607. $as_echo "$STRIP" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. fi
  6613. if test -z "$ac_cv_prog_STRIP"; then
  6614. ac_ct_STRIP=$STRIP
  6615. # Extract the first word of "strip", so it can be a program name with args.
  6616. set dummy strip; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_STRIP"; then
  6623. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6632. ac_cv_prog_ac_ct_STRIP="strip"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6642. if test -n "$ac_ct_STRIP"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6644. $as_echo "$ac_ct_STRIP" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. if test "x$ac_ct_STRIP" = x; then
  6650. STRIP=":"
  6651. else
  6652. case $cross_compiling:$ac_tool_warned in
  6653. yes:)
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6656. ac_tool_warned=yes ;;
  6657. esac
  6658. STRIP=$ac_ct_STRIP
  6659. fi
  6660. else
  6661. STRIP="$ac_cv_prog_STRIP"
  6662. fi
  6663. test -z "$STRIP" && STRIP=:
  6664. if test -n "$ac_tool_prefix"; then
  6665. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6666. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6668. $as_echo_n "checking for $ac_word... " >&6; }
  6669. if ${ac_cv_prog_RANLIB+:} false; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. if test -n "$RANLIB"; then
  6673. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6674. else
  6675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6676. for as_dir in $PATH
  6677. do
  6678. IFS=$as_save_IFS
  6679. test -z "$as_dir" && as_dir=.
  6680. for ac_exec_ext in '' $ac_executable_extensions; do
  6681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6682. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6684. break 2
  6685. fi
  6686. done
  6687. done
  6688. IFS=$as_save_IFS
  6689. fi
  6690. fi
  6691. RANLIB=$ac_cv_prog_RANLIB
  6692. if test -n "$RANLIB"; then
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6694. $as_echo "$RANLIB" >&6; }
  6695. else
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6697. $as_echo "no" >&6; }
  6698. fi
  6699. fi
  6700. if test -z "$ac_cv_prog_RANLIB"; then
  6701. ac_ct_RANLIB=$RANLIB
  6702. # Extract the first word of "ranlib", so it can be a program name with args.
  6703. set dummy ranlib; ac_word=$2
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6705. $as_echo_n "checking for $ac_word... " >&6; }
  6706. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. if test -n "$ac_ct_RANLIB"; then
  6710. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6711. else
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6719. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. fi
  6727. fi
  6728. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6729. if test -n "$ac_ct_RANLIB"; then
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6731. $as_echo "$ac_ct_RANLIB" >&6; }
  6732. else
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. $as_echo "no" >&6; }
  6735. fi
  6736. if test "x$ac_ct_RANLIB" = x; then
  6737. RANLIB=":"
  6738. else
  6739. case $cross_compiling:$ac_tool_warned in
  6740. yes:)
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6743. ac_tool_warned=yes ;;
  6744. esac
  6745. RANLIB=$ac_ct_RANLIB
  6746. fi
  6747. else
  6748. RANLIB="$ac_cv_prog_RANLIB"
  6749. fi
  6750. test -z "$RANLIB" && RANLIB=:
  6751. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  6752. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  6753. RANLIB="$RANLIB $plugin_option"
  6754. fi
  6755. fi
  6756. # Determine commands to create old-style static archives.
  6757. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6758. old_postinstall_cmds='chmod 644 $oldlib'
  6759. old_postuninstall_cmds=
  6760. if test -n "$RANLIB"; then
  6761. case $host_os in
  6762. openbsd*)
  6763. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6764. ;;
  6765. *)
  6766. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6767. ;;
  6768. esac
  6769. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6770. fi
  6771. case $host_os in
  6772. darwin*)
  6773. lock_old_archive_extraction=yes ;;
  6774. *)
  6775. lock_old_archive_extraction=no ;;
  6776. esac
  6777. # If no C compiler was specified, use CC.
  6778. LTCC=${LTCC-"$CC"}
  6779. # If no C compiler flags were specified, use CFLAGS.
  6780. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6781. # Allow CC to be a program name with arguments.
  6782. compiler=$CC
  6783. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6785. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6786. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6787. $as_echo_n "(cached) " >&6
  6788. else
  6789. # These are sane defaults that work on at least a few old systems.
  6790. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6791. # Character class describing NM global symbol codes.
  6792. symcode='[BCDEGRST]'
  6793. # Regexp to match symbols that can be accessed directly from C.
  6794. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6795. # Define system-specific variables.
  6796. case $host_os in
  6797. aix*)
  6798. symcode='[BCDT]'
  6799. ;;
  6800. cygwin* | mingw* | pw32* | cegcc*)
  6801. symcode='[ABCDGISTW]'
  6802. ;;
  6803. hpux*)
  6804. if test "$host_cpu" = ia64; then
  6805. symcode='[ABCDEGRST]'
  6806. fi
  6807. ;;
  6808. irix* | nonstopux*)
  6809. symcode='[BCDEGRST]'
  6810. ;;
  6811. osf*)
  6812. symcode='[BCDEGQRST]'
  6813. ;;
  6814. solaris*)
  6815. symcode='[BCDRT]'
  6816. ;;
  6817. sco3.2v5*)
  6818. symcode='[DT]'
  6819. ;;
  6820. sysv4.2uw2*)
  6821. symcode='[DT]'
  6822. ;;
  6823. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6824. symcode='[ABDT]'
  6825. ;;
  6826. sysv4)
  6827. symcode='[DFNSTU]'
  6828. ;;
  6829. esac
  6830. # If we're using GNU nm, then use its standard symbol codes.
  6831. case `$NM -V 2>&1` in
  6832. *GNU* | *'with BFD'*)
  6833. symcode='[ABCDGIRSTW]' ;;
  6834. esac
  6835. # Transform an extracted symbol line into a proper C declaration.
  6836. # Some systems (esp. on ia64) link data and code symbols differently,
  6837. # so use this general approach.
  6838. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6839. # Transform an extracted symbol line into symbol name and symbol address
  6840. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6841. 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'"
  6842. # Handle CRLF in mingw tool chain
  6843. opt_cr=
  6844. case $build_os in
  6845. mingw*)
  6846. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6847. ;;
  6848. esac
  6849. # Try without a prefix underscore, then with it.
  6850. for ac_symprfx in "" "_"; do
  6851. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6852. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6853. # Write the raw and C identifiers.
  6854. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6855. # Fake it for dumpbin and say T for any non-static function
  6856. # and D for any global variable.
  6857. # Also find C++ and __fastcall symbols from MSVC++,
  6858. # which start with @ or ?.
  6859. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6860. " {last_section=section; section=\$ 3};"\
  6861. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6862. " \$ 0!~/External *\|/{next};"\
  6863. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6864. " {if(hide[section]) next};"\
  6865. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6866. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6867. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6868. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6869. " ' prfx=^$ac_symprfx"
  6870. else
  6871. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6872. fi
  6873. # Check to see that the pipe works correctly.
  6874. pipe_works=no
  6875. rm -f conftest*
  6876. cat > conftest.$ac_ext <<_LT_EOF
  6877. #ifdef __cplusplus
  6878. extern "C" {
  6879. #endif
  6880. char nm_test_var;
  6881. void nm_test_func(void);
  6882. void nm_test_func(void){}
  6883. #ifdef __cplusplus
  6884. }
  6885. #endif
  6886. int main(){nm_test_var='a';nm_test_func();return(0);}
  6887. _LT_EOF
  6888. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6889. (eval $ac_compile) 2>&5
  6890. ac_status=$?
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6892. test $ac_status = 0; }; then
  6893. # Now try to grab the symbols.
  6894. nlist=conftest.nm
  6895. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6896. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6897. ac_status=$?
  6898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6899. test $ac_status = 0; } && test -s "$nlist"; then
  6900. # Try sorting and uniquifying the output.
  6901. if sort "$nlist" | uniq > "$nlist"T; then
  6902. mv -f "$nlist"T "$nlist"
  6903. else
  6904. rm -f "$nlist"T
  6905. fi
  6906. # Make sure that we snagged all the symbols we need.
  6907. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6908. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6909. cat <<_LT_EOF > conftest.$ac_ext
  6910. #ifdef __cplusplus
  6911. extern "C" {
  6912. #endif
  6913. _LT_EOF
  6914. # Now generate the symbol file.
  6915. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6916. cat <<_LT_EOF >> conftest.$ac_ext
  6917. /* The mapping between symbol names and symbols. */
  6918. const struct {
  6919. const char *name;
  6920. void *address;
  6921. }
  6922. lt__PROGRAM__LTX_preloaded_symbols[] =
  6923. {
  6924. { "@PROGRAM@", (void *) 0 },
  6925. _LT_EOF
  6926. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6927. cat <<\_LT_EOF >> conftest.$ac_ext
  6928. {0, (void *) 0}
  6929. };
  6930. /* This works around a problem in FreeBSD linker */
  6931. #ifdef FREEBSD_WORKAROUND
  6932. static const void *lt_preloaded_setup() {
  6933. return lt__PROGRAM__LTX_preloaded_symbols;
  6934. }
  6935. #endif
  6936. #ifdef __cplusplus
  6937. }
  6938. #endif
  6939. _LT_EOF
  6940. # Now try linking the two files.
  6941. mv conftest.$ac_objext conftstm.$ac_objext
  6942. lt_save_LIBS="$LIBS"
  6943. lt_save_CFLAGS="$CFLAGS"
  6944. LIBS="conftstm.$ac_objext"
  6945. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6946. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6947. (eval $ac_link) 2>&5
  6948. ac_status=$?
  6949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6950. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6951. pipe_works=yes
  6952. fi
  6953. LIBS="$lt_save_LIBS"
  6954. CFLAGS="$lt_save_CFLAGS"
  6955. else
  6956. echo "cannot find nm_test_func in $nlist" >&5
  6957. fi
  6958. else
  6959. echo "cannot find nm_test_var in $nlist" >&5
  6960. fi
  6961. else
  6962. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6963. fi
  6964. else
  6965. echo "$progname: failed program was:" >&5
  6966. cat conftest.$ac_ext >&5
  6967. fi
  6968. rm -rf conftest* conftst*
  6969. # Do not use the global_symbol_pipe unless it works.
  6970. if test "$pipe_works" = yes; then
  6971. break
  6972. else
  6973. lt_cv_sys_global_symbol_pipe=
  6974. fi
  6975. done
  6976. fi
  6977. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6978. lt_cv_sys_global_symbol_to_cdecl=
  6979. fi
  6980. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6982. $as_echo "failed" >&6; }
  6983. else
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6985. $as_echo "ok" >&6; }
  6986. fi
  6987. # Check whether --enable-libtool-lock was given.
  6988. if test "${enable_libtool_lock+set}" = set; then :
  6989. enableval=$enable_libtool_lock;
  6990. fi
  6991. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6992. # Some flags need to be propagated to the compiler or linker for good
  6993. # libtool support.
  6994. case $host in
  6995. ia64-*-hpux*)
  6996. # Find out which ABI we are using.
  6997. echo 'int i;' > conftest.$ac_ext
  6998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6999. (eval $ac_compile) 2>&5
  7000. ac_status=$?
  7001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7002. test $ac_status = 0; }; then
  7003. case `/usr/bin/file conftest.$ac_objext` in
  7004. *ELF-32*)
  7005. HPUX_IA64_MODE="32"
  7006. ;;
  7007. *ELF-64*)
  7008. HPUX_IA64_MODE="64"
  7009. ;;
  7010. esac
  7011. fi
  7012. rm -rf conftest*
  7013. ;;
  7014. *-*-irix6*)
  7015. # Find out which ABI we are using.
  7016. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7017. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7018. (eval $ac_compile) 2>&5
  7019. ac_status=$?
  7020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7021. test $ac_status = 0; }; then
  7022. if test "$lt_cv_prog_gnu_ld" = yes; then
  7023. case `/usr/bin/file conftest.$ac_objext` in
  7024. *32-bit*)
  7025. LD="${LD-ld} -melf32bsmip"
  7026. ;;
  7027. *N32*)
  7028. LD="${LD-ld} -melf32bmipn32"
  7029. ;;
  7030. *64-bit*)
  7031. LD="${LD-ld} -melf64bmip"
  7032. ;;
  7033. esac
  7034. else
  7035. case `/usr/bin/file conftest.$ac_objext` in
  7036. *32-bit*)
  7037. LD="${LD-ld} -32"
  7038. ;;
  7039. *N32*)
  7040. LD="${LD-ld} -n32"
  7041. ;;
  7042. *64-bit*)
  7043. LD="${LD-ld} -64"
  7044. ;;
  7045. esac
  7046. fi
  7047. fi
  7048. rm -rf conftest*
  7049. ;;
  7050. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7051. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7052. # Find out which ABI we are using.
  7053. echo 'int i;' > conftest.$ac_ext
  7054. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7055. (eval $ac_compile) 2>&5
  7056. ac_status=$?
  7057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7058. test $ac_status = 0; }; then
  7059. case `/usr/bin/file conftest.o` in
  7060. *32-bit*)
  7061. case $host in
  7062. x86_64-*kfreebsd*-gnu)
  7063. LD="${LD-ld} -m elf_i386_fbsd"
  7064. ;;
  7065. x86_64-*linux*)
  7066. case `/usr/bin/file conftest.o` in
  7067. *x86-64*)
  7068. LD="${LD-ld} -m elf32_x86_64"
  7069. ;;
  7070. *)
  7071. LD="${LD-ld} -m elf_i386"
  7072. ;;
  7073. esac
  7074. ;;
  7075. powerpc64le-*linux*)
  7076. LD="${LD-ld} -m elf32lppclinux"
  7077. ;;
  7078. powerpc64-*linux*)
  7079. LD="${LD-ld} -m elf32ppclinux"
  7080. ;;
  7081. s390x-*linux*)
  7082. LD="${LD-ld} -m elf_s390"
  7083. ;;
  7084. sparc64-*linux*)
  7085. LD="${LD-ld} -m elf32_sparc"
  7086. ;;
  7087. esac
  7088. ;;
  7089. *64-bit*)
  7090. case $host in
  7091. x86_64-*kfreebsd*-gnu)
  7092. LD="${LD-ld} -m elf_x86_64_fbsd"
  7093. ;;
  7094. x86_64-*linux*)
  7095. LD="${LD-ld} -m elf_x86_64"
  7096. ;;
  7097. powerpcle-*linux*)
  7098. LD="${LD-ld} -m elf64lppc"
  7099. ;;
  7100. powerpc-*linux*)
  7101. LD="${LD-ld} -m elf64ppc"
  7102. ;;
  7103. s390*-*linux*|s390*-*tpf*)
  7104. LD="${LD-ld} -m elf64_s390"
  7105. ;;
  7106. sparc*-*linux*)
  7107. LD="${LD-ld} -m elf64_sparc"
  7108. ;;
  7109. esac
  7110. ;;
  7111. esac
  7112. fi
  7113. rm -rf conftest*
  7114. ;;
  7115. *-*-sco3.2v5*)
  7116. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7117. SAVE_CFLAGS="$CFLAGS"
  7118. CFLAGS="$CFLAGS -belf"
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7120. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7121. if ${lt_cv_cc_needs_belf+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. ac_ext=c
  7125. ac_cpp='$CPP $CPPFLAGS'
  7126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7130. /* end confdefs.h. */
  7131. int
  7132. main ()
  7133. {
  7134. ;
  7135. return 0;
  7136. }
  7137. _ACEOF
  7138. if ac_fn_c_try_link "$LINENO"; then :
  7139. lt_cv_cc_needs_belf=yes
  7140. else
  7141. lt_cv_cc_needs_belf=no
  7142. fi
  7143. rm -f core conftest.err conftest.$ac_objext \
  7144. conftest$ac_exeext conftest.$ac_ext
  7145. ac_ext=c
  7146. ac_cpp='$CPP $CPPFLAGS'
  7147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7150. fi
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7152. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7153. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7154. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7155. CFLAGS="$SAVE_CFLAGS"
  7156. fi
  7157. ;;
  7158. sparc*-*solaris*)
  7159. # Find out which ABI we are using.
  7160. echo 'int i;' > conftest.$ac_ext
  7161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7162. (eval $ac_compile) 2>&5
  7163. ac_status=$?
  7164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7165. test $ac_status = 0; }; then
  7166. case `/usr/bin/file conftest.o` in
  7167. *64-bit*)
  7168. case $lt_cv_prog_gnu_ld in
  7169. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7170. *)
  7171. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7172. LD="${LD-ld} -64"
  7173. fi
  7174. ;;
  7175. esac
  7176. ;;
  7177. esac
  7178. fi
  7179. rm -rf conftest*
  7180. ;;
  7181. esac
  7182. need_locks="$enable_libtool_lock"
  7183. case $host_os in
  7184. rhapsody* | darwin*)
  7185. if test -n "$ac_tool_prefix"; then
  7186. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7187. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7189. $as_echo_n "checking for $ac_word... " >&6; }
  7190. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. if test -n "$DSYMUTIL"; then
  7194. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7195. else
  7196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7197. for as_dir in $PATH
  7198. do
  7199. IFS=$as_save_IFS
  7200. test -z "$as_dir" && as_dir=.
  7201. for ac_exec_ext in '' $ac_executable_extensions; do
  7202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7203. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7205. break 2
  7206. fi
  7207. done
  7208. done
  7209. IFS=$as_save_IFS
  7210. fi
  7211. fi
  7212. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7213. if test -n "$DSYMUTIL"; then
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7215. $as_echo "$DSYMUTIL" >&6; }
  7216. else
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7218. $as_echo "no" >&6; }
  7219. fi
  7220. fi
  7221. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7222. ac_ct_DSYMUTIL=$DSYMUTIL
  7223. # Extract the first word of "dsymutil", so it can be a program name with args.
  7224. set dummy dsymutil; ac_word=$2
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7226. $as_echo_n "checking for $ac_word... " >&6; }
  7227. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. if test -n "$ac_ct_DSYMUTIL"; then
  7231. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7232. else
  7233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7234. for as_dir in $PATH
  7235. do
  7236. IFS=$as_save_IFS
  7237. test -z "$as_dir" && as_dir=.
  7238. for ac_exec_ext in '' $ac_executable_extensions; do
  7239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7240. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7242. break 2
  7243. fi
  7244. done
  7245. done
  7246. IFS=$as_save_IFS
  7247. fi
  7248. fi
  7249. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7250. if test -n "$ac_ct_DSYMUTIL"; then
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7252. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7253. else
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7255. $as_echo "no" >&6; }
  7256. fi
  7257. if test "x$ac_ct_DSYMUTIL" = x; then
  7258. DSYMUTIL=":"
  7259. else
  7260. case $cross_compiling:$ac_tool_warned in
  7261. yes:)
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7263. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7264. ac_tool_warned=yes ;;
  7265. esac
  7266. DSYMUTIL=$ac_ct_DSYMUTIL
  7267. fi
  7268. else
  7269. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7270. fi
  7271. if test -n "$ac_tool_prefix"; then
  7272. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7273. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7275. $as_echo_n "checking for $ac_word... " >&6; }
  7276. if ${ac_cv_prog_NMEDIT+:} false; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. if test -n "$NMEDIT"; then
  7280. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7281. else
  7282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7283. for as_dir in $PATH
  7284. do
  7285. IFS=$as_save_IFS
  7286. test -z "$as_dir" && as_dir=.
  7287. for ac_exec_ext in '' $ac_executable_extensions; do
  7288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7289. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7291. break 2
  7292. fi
  7293. done
  7294. done
  7295. IFS=$as_save_IFS
  7296. fi
  7297. fi
  7298. NMEDIT=$ac_cv_prog_NMEDIT
  7299. if test -n "$NMEDIT"; then
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7301. $as_echo "$NMEDIT" >&6; }
  7302. else
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7304. $as_echo "no" >&6; }
  7305. fi
  7306. fi
  7307. if test -z "$ac_cv_prog_NMEDIT"; then
  7308. ac_ct_NMEDIT=$NMEDIT
  7309. # Extract the first word of "nmedit", so it can be a program name with args.
  7310. set dummy nmedit; ac_word=$2
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7312. $as_echo_n "checking for $ac_word... " >&6; }
  7313. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. if test -n "$ac_ct_NMEDIT"; then
  7317. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7318. else
  7319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. for as_dir in $PATH
  7321. do
  7322. IFS=$as_save_IFS
  7323. test -z "$as_dir" && as_dir=.
  7324. for ac_exec_ext in '' $ac_executable_extensions; do
  7325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7326. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7328. break 2
  7329. fi
  7330. done
  7331. done
  7332. IFS=$as_save_IFS
  7333. fi
  7334. fi
  7335. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7336. if test -n "$ac_ct_NMEDIT"; then
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7338. $as_echo "$ac_ct_NMEDIT" >&6; }
  7339. else
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7341. $as_echo "no" >&6; }
  7342. fi
  7343. if test "x$ac_ct_NMEDIT" = x; then
  7344. NMEDIT=":"
  7345. else
  7346. case $cross_compiling:$ac_tool_warned in
  7347. yes:)
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7350. ac_tool_warned=yes ;;
  7351. esac
  7352. NMEDIT=$ac_ct_NMEDIT
  7353. fi
  7354. else
  7355. NMEDIT="$ac_cv_prog_NMEDIT"
  7356. fi
  7357. if test -n "$ac_tool_prefix"; then
  7358. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7359. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7361. $as_echo_n "checking for $ac_word... " >&6; }
  7362. if ${ac_cv_prog_LIPO+:} false; then :
  7363. $as_echo_n "(cached) " >&6
  7364. else
  7365. if test -n "$LIPO"; then
  7366. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7367. else
  7368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7369. for as_dir in $PATH
  7370. do
  7371. IFS=$as_save_IFS
  7372. test -z "$as_dir" && as_dir=.
  7373. for ac_exec_ext in '' $ac_executable_extensions; do
  7374. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7375. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7377. break 2
  7378. fi
  7379. done
  7380. done
  7381. IFS=$as_save_IFS
  7382. fi
  7383. fi
  7384. LIPO=$ac_cv_prog_LIPO
  7385. if test -n "$LIPO"; then
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7387. $as_echo "$LIPO" >&6; }
  7388. else
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7390. $as_echo "no" >&6; }
  7391. fi
  7392. fi
  7393. if test -z "$ac_cv_prog_LIPO"; then
  7394. ac_ct_LIPO=$LIPO
  7395. # Extract the first word of "lipo", so it can be a program name with args.
  7396. set dummy lipo; ac_word=$2
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7398. $as_echo_n "checking for $ac_word... " >&6; }
  7399. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7400. $as_echo_n "(cached) " >&6
  7401. else
  7402. if test -n "$ac_ct_LIPO"; then
  7403. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7404. else
  7405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7406. for as_dir in $PATH
  7407. do
  7408. IFS=$as_save_IFS
  7409. test -z "$as_dir" && as_dir=.
  7410. for ac_exec_ext in '' $ac_executable_extensions; do
  7411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7412. ac_cv_prog_ac_ct_LIPO="lipo"
  7413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7414. break 2
  7415. fi
  7416. done
  7417. done
  7418. IFS=$as_save_IFS
  7419. fi
  7420. fi
  7421. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7422. if test -n "$ac_ct_LIPO"; then
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7424. $as_echo "$ac_ct_LIPO" >&6; }
  7425. else
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7427. $as_echo "no" >&6; }
  7428. fi
  7429. if test "x$ac_ct_LIPO" = x; then
  7430. LIPO=":"
  7431. else
  7432. case $cross_compiling:$ac_tool_warned in
  7433. yes:)
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7436. ac_tool_warned=yes ;;
  7437. esac
  7438. LIPO=$ac_ct_LIPO
  7439. fi
  7440. else
  7441. LIPO="$ac_cv_prog_LIPO"
  7442. fi
  7443. if test -n "$ac_tool_prefix"; then
  7444. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7445. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7447. $as_echo_n "checking for $ac_word... " >&6; }
  7448. if ${ac_cv_prog_OTOOL+:} false; then :
  7449. $as_echo_n "(cached) " >&6
  7450. else
  7451. if test -n "$OTOOL"; then
  7452. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7453. else
  7454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7455. for as_dir in $PATH
  7456. do
  7457. IFS=$as_save_IFS
  7458. test -z "$as_dir" && as_dir=.
  7459. for ac_exec_ext in '' $ac_executable_extensions; do
  7460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7461. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7463. break 2
  7464. fi
  7465. done
  7466. done
  7467. IFS=$as_save_IFS
  7468. fi
  7469. fi
  7470. OTOOL=$ac_cv_prog_OTOOL
  7471. if test -n "$OTOOL"; then
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7473. $as_echo "$OTOOL" >&6; }
  7474. else
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7476. $as_echo "no" >&6; }
  7477. fi
  7478. fi
  7479. if test -z "$ac_cv_prog_OTOOL"; then
  7480. ac_ct_OTOOL=$OTOOL
  7481. # Extract the first word of "otool", so it can be a program name with args.
  7482. set dummy otool; ac_word=$2
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7484. $as_echo_n "checking for $ac_word... " >&6; }
  7485. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7486. $as_echo_n "(cached) " >&6
  7487. else
  7488. if test -n "$ac_ct_OTOOL"; then
  7489. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7490. else
  7491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7492. for as_dir in $PATH
  7493. do
  7494. IFS=$as_save_IFS
  7495. test -z "$as_dir" && as_dir=.
  7496. for ac_exec_ext in '' $ac_executable_extensions; do
  7497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7498. ac_cv_prog_ac_ct_OTOOL="otool"
  7499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7500. break 2
  7501. fi
  7502. done
  7503. done
  7504. IFS=$as_save_IFS
  7505. fi
  7506. fi
  7507. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7508. if test -n "$ac_ct_OTOOL"; then
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7510. $as_echo "$ac_ct_OTOOL" >&6; }
  7511. else
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7513. $as_echo "no" >&6; }
  7514. fi
  7515. if test "x$ac_ct_OTOOL" = x; then
  7516. OTOOL=":"
  7517. else
  7518. case $cross_compiling:$ac_tool_warned in
  7519. yes:)
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7522. ac_tool_warned=yes ;;
  7523. esac
  7524. OTOOL=$ac_ct_OTOOL
  7525. fi
  7526. else
  7527. OTOOL="$ac_cv_prog_OTOOL"
  7528. fi
  7529. if test -n "$ac_tool_prefix"; then
  7530. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7531. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7533. $as_echo_n "checking for $ac_word... " >&6; }
  7534. if ${ac_cv_prog_OTOOL64+:} false; then :
  7535. $as_echo_n "(cached) " >&6
  7536. else
  7537. if test -n "$OTOOL64"; then
  7538. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7539. else
  7540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7541. for as_dir in $PATH
  7542. do
  7543. IFS=$as_save_IFS
  7544. test -z "$as_dir" && as_dir=.
  7545. for ac_exec_ext in '' $ac_executable_extensions; do
  7546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7547. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7549. break 2
  7550. fi
  7551. done
  7552. done
  7553. IFS=$as_save_IFS
  7554. fi
  7555. fi
  7556. OTOOL64=$ac_cv_prog_OTOOL64
  7557. if test -n "$OTOOL64"; then
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7559. $as_echo "$OTOOL64" >&6; }
  7560. else
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7562. $as_echo "no" >&6; }
  7563. fi
  7564. fi
  7565. if test -z "$ac_cv_prog_OTOOL64"; then
  7566. ac_ct_OTOOL64=$OTOOL64
  7567. # Extract the first word of "otool64", so it can be a program name with args.
  7568. set dummy otool64; ac_word=$2
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7570. $as_echo_n "checking for $ac_word... " >&6; }
  7571. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7572. $as_echo_n "(cached) " >&6
  7573. else
  7574. if test -n "$ac_ct_OTOOL64"; then
  7575. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7576. else
  7577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7578. for as_dir in $PATH
  7579. do
  7580. IFS=$as_save_IFS
  7581. test -z "$as_dir" && as_dir=.
  7582. for ac_exec_ext in '' $ac_executable_extensions; do
  7583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7584. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7586. break 2
  7587. fi
  7588. done
  7589. done
  7590. IFS=$as_save_IFS
  7591. fi
  7592. fi
  7593. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7594. if test -n "$ac_ct_OTOOL64"; then
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7596. $as_echo "$ac_ct_OTOOL64" >&6; }
  7597. else
  7598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7599. $as_echo "no" >&6; }
  7600. fi
  7601. if test "x$ac_ct_OTOOL64" = x; then
  7602. OTOOL64=":"
  7603. else
  7604. case $cross_compiling:$ac_tool_warned in
  7605. yes:)
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7608. ac_tool_warned=yes ;;
  7609. esac
  7610. OTOOL64=$ac_ct_OTOOL64
  7611. fi
  7612. else
  7613. OTOOL64="$ac_cv_prog_OTOOL64"
  7614. fi
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7616. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7617. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7618. $as_echo_n "(cached) " >&6
  7619. else
  7620. lt_cv_apple_cc_single_mod=no
  7621. if test -z "${LT_MULTI_MODULE}"; then
  7622. # By default we will add the -single_module flag. You can override
  7623. # by either setting the environment variable LT_MULTI_MODULE
  7624. # non-empty at configure time, or by adding -multi_module to the
  7625. # link flags.
  7626. rm -rf libconftest.dylib*
  7627. echo "int foo(void){return 1;}" > conftest.c
  7628. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7629. -dynamiclib -Wl,-single_module conftest.c" >&5
  7630. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7631. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7632. _lt_result=$?
  7633. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7634. lt_cv_apple_cc_single_mod=yes
  7635. else
  7636. cat conftest.err >&5
  7637. fi
  7638. rm -rf libconftest.dylib*
  7639. rm -f conftest.*
  7640. fi
  7641. fi
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7643. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7645. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7646. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7647. $as_echo_n "(cached) " >&6
  7648. else
  7649. lt_cv_ld_exported_symbols_list=no
  7650. save_LDFLAGS=$LDFLAGS
  7651. echo "_main" > conftest.sym
  7652. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7654. /* end confdefs.h. */
  7655. int
  7656. main ()
  7657. {
  7658. ;
  7659. return 0;
  7660. }
  7661. _ACEOF
  7662. if ac_fn_c_try_link "$LINENO"; then :
  7663. lt_cv_ld_exported_symbols_list=yes
  7664. else
  7665. lt_cv_ld_exported_symbols_list=no
  7666. fi
  7667. rm -f core conftest.err conftest.$ac_objext \
  7668. conftest$ac_exeext conftest.$ac_ext
  7669. LDFLAGS="$save_LDFLAGS"
  7670. fi
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7672. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7674. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7675. if ${lt_cv_ld_force_load+:} false; then :
  7676. $as_echo_n "(cached) " >&6
  7677. else
  7678. lt_cv_ld_force_load=no
  7679. cat > conftest.c << _LT_EOF
  7680. int forced_loaded() { return 2;}
  7681. _LT_EOF
  7682. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7683. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7684. echo "$AR cru libconftest.a conftest.o" >&5
  7685. $AR cru libconftest.a conftest.o 2>&5
  7686. cat > conftest.c << _LT_EOF
  7687. int main() { return 0;}
  7688. _LT_EOF
  7689. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7690. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7691. _lt_result=$?
  7692. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7693. lt_cv_ld_force_load=yes
  7694. else
  7695. cat conftest.err >&5
  7696. fi
  7697. rm -f conftest.err libconftest.a conftest conftest.c
  7698. rm -rf conftest.dSYM
  7699. fi
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7701. $as_echo "$lt_cv_ld_force_load" >&6; }
  7702. case $host_os in
  7703. rhapsody* | darwin1.[012])
  7704. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7705. darwin1.*)
  7706. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7707. darwin*) # darwin 5.x on
  7708. # if running on 10.5 or later, the deployment target defaults
  7709. # to the OS version, if on x86, and 10.4, the deployment
  7710. # target defaults to 10.4. Don't you love it?
  7711. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7712. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7713. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7714. 10.[012][,.]*)
  7715. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7716. 10.*)
  7717. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7718. esac
  7719. ;;
  7720. esac
  7721. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7722. _lt_dar_single_mod='$single_module'
  7723. fi
  7724. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7725. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7726. else
  7727. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7728. fi
  7729. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7730. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7731. else
  7732. _lt_dsymutil=
  7733. fi
  7734. ;;
  7735. esac
  7736. for ac_header in dlfcn.h
  7737. do :
  7738. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7739. "
  7740. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7741. cat >>confdefs.h <<_ACEOF
  7742. #define HAVE_DLFCN_H 1
  7743. _ACEOF
  7744. fi
  7745. done
  7746. # Set options
  7747. enable_dlopen=no
  7748. enable_win32_dll=no
  7749. # Check whether --enable-static was given.
  7750. if test "${enable_static+set}" = set; then :
  7751. enableval=$enable_static; p=${PACKAGE-default}
  7752. case $enableval in
  7753. yes) enable_static=yes ;;
  7754. no) enable_static=no ;;
  7755. *)
  7756. enable_static=no
  7757. # Look at the argument we got. We use all the common list separators.
  7758. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7759. for pkg in $enableval; do
  7760. IFS="$lt_save_ifs"
  7761. if test "X$pkg" = "X$p"; then
  7762. enable_static=yes
  7763. fi
  7764. done
  7765. IFS="$lt_save_ifs"
  7766. ;;
  7767. esac
  7768. else
  7769. enable_static=yes
  7770. fi
  7771. # Check whether --with-pic was given.
  7772. if test "${with_pic+set}" = set; then :
  7773. withval=$with_pic; pic_mode="$withval"
  7774. else
  7775. pic_mode=default
  7776. fi
  7777. test -z "$pic_mode" && pic_mode=default
  7778. # Check whether --enable-fast-install was given.
  7779. if test "${enable_fast_install+set}" = set; then :
  7780. enableval=$enable_fast_install; p=${PACKAGE-default}
  7781. case $enableval in
  7782. yes) enable_fast_install=yes ;;
  7783. no) enable_fast_install=no ;;
  7784. *)
  7785. enable_fast_install=no
  7786. # Look at the argument we got. We use all the common list separators.
  7787. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7788. for pkg in $enableval; do
  7789. IFS="$lt_save_ifs"
  7790. if test "X$pkg" = "X$p"; then
  7791. enable_fast_install=yes
  7792. fi
  7793. done
  7794. IFS="$lt_save_ifs"
  7795. ;;
  7796. esac
  7797. else
  7798. enable_fast_install=yes
  7799. fi
  7800. # This can be used to rebuild libtool when needed
  7801. LIBTOOL_DEPS="$ltmain"
  7802. # Always use our own libtool.
  7803. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7804. test -z "$LN_S" && LN_S="ln -s"
  7805. if test -n "${ZSH_VERSION+set}" ; then
  7806. setopt NO_GLOB_SUBST
  7807. fi
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7809. $as_echo_n "checking for objdir... " >&6; }
  7810. if ${lt_cv_objdir+:} false; then :
  7811. $as_echo_n "(cached) " >&6
  7812. else
  7813. rm -f .libs 2>/dev/null
  7814. mkdir .libs 2>/dev/null
  7815. if test -d .libs; then
  7816. lt_cv_objdir=.libs
  7817. else
  7818. # MS-DOS does not allow filenames that begin with a dot.
  7819. lt_cv_objdir=_libs
  7820. fi
  7821. rmdir .libs 2>/dev/null
  7822. fi
  7823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7824. $as_echo "$lt_cv_objdir" >&6; }
  7825. objdir=$lt_cv_objdir
  7826. cat >>confdefs.h <<_ACEOF
  7827. #define LT_OBJDIR "$lt_cv_objdir/"
  7828. _ACEOF
  7829. case $host_os in
  7830. aix3*)
  7831. # AIX sometimes has problems with the GCC collect2 program. For some
  7832. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7833. # vanish in a puff of smoke.
  7834. if test "X${COLLECT_NAMES+set}" != Xset; then
  7835. COLLECT_NAMES=
  7836. export COLLECT_NAMES
  7837. fi
  7838. ;;
  7839. esac
  7840. # Global variables:
  7841. ofile=libtool
  7842. can_build_shared=yes
  7843. # All known linkers require a `.a' archive for static linking (except MSVC,
  7844. # which needs '.lib').
  7845. libext=a
  7846. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7847. old_CC="$CC"
  7848. old_CFLAGS="$CFLAGS"
  7849. # Set sane defaults for various variables
  7850. test -z "$CC" && CC=cc
  7851. test -z "$LTCC" && LTCC=$CC
  7852. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7853. test -z "$LD" && LD=ld
  7854. test -z "$ac_objext" && ac_objext=o
  7855. for cc_temp in $compiler""; do
  7856. case $cc_temp in
  7857. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7858. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7859. \-*) ;;
  7860. *) break;;
  7861. esac
  7862. done
  7863. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7864. # Only perform the check for file, if the check method requires it
  7865. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7866. case $deplibs_check_method in
  7867. file_magic*)
  7868. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7870. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7871. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. case $MAGIC_CMD in
  7875. [\\/*] | ?:[\\/]*)
  7876. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7877. ;;
  7878. *)
  7879. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7880. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7881. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7882. for ac_dir in $ac_dummy; do
  7883. IFS="$lt_save_ifs"
  7884. test -z "$ac_dir" && ac_dir=.
  7885. if test -f $ac_dir/${ac_tool_prefix}file; then
  7886. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7887. if test -n "$file_magic_test_file"; then
  7888. case $deplibs_check_method in
  7889. "file_magic "*)
  7890. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7891. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7892. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7893. $EGREP "$file_magic_regex" > /dev/null; then
  7894. :
  7895. else
  7896. cat <<_LT_EOF 1>&2
  7897. *** Warning: the command libtool uses to detect shared libraries,
  7898. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7899. *** The result is that libtool may fail to recognize shared libraries
  7900. *** as such. This will affect the creation of libtool libraries that
  7901. *** depend on shared libraries, but programs linked with such libtool
  7902. *** libraries will work regardless of this problem. Nevertheless, you
  7903. *** may want to report the problem to your system manager and/or to
  7904. *** bug-libtool@gnu.org
  7905. _LT_EOF
  7906. fi ;;
  7907. esac
  7908. fi
  7909. break
  7910. fi
  7911. done
  7912. IFS="$lt_save_ifs"
  7913. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7914. ;;
  7915. esac
  7916. fi
  7917. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7918. if test -n "$MAGIC_CMD"; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7920. $as_echo "$MAGIC_CMD" >&6; }
  7921. else
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. fi
  7925. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7926. if test -n "$ac_tool_prefix"; then
  7927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7928. $as_echo_n "checking for file... " >&6; }
  7929. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7930. $as_echo_n "(cached) " >&6
  7931. else
  7932. case $MAGIC_CMD in
  7933. [\\/*] | ?:[\\/]*)
  7934. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7935. ;;
  7936. *)
  7937. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7938. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7939. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7940. for ac_dir in $ac_dummy; do
  7941. IFS="$lt_save_ifs"
  7942. test -z "$ac_dir" && ac_dir=.
  7943. if test -f $ac_dir/file; then
  7944. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7945. if test -n "$file_magic_test_file"; then
  7946. case $deplibs_check_method in
  7947. "file_magic "*)
  7948. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7949. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7950. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7951. $EGREP "$file_magic_regex" > /dev/null; then
  7952. :
  7953. else
  7954. cat <<_LT_EOF 1>&2
  7955. *** Warning: the command libtool uses to detect shared libraries,
  7956. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7957. *** The result is that libtool may fail to recognize shared libraries
  7958. *** as such. This will affect the creation of libtool libraries that
  7959. *** depend on shared libraries, but programs linked with such libtool
  7960. *** libraries will work regardless of this problem. Nevertheless, you
  7961. *** may want to report the problem to your system manager and/or to
  7962. *** bug-libtool@gnu.org
  7963. _LT_EOF
  7964. fi ;;
  7965. esac
  7966. fi
  7967. break
  7968. fi
  7969. done
  7970. IFS="$lt_save_ifs"
  7971. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7972. ;;
  7973. esac
  7974. fi
  7975. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7976. if test -n "$MAGIC_CMD"; then
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7978. $as_echo "$MAGIC_CMD" >&6; }
  7979. else
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7981. $as_echo "no" >&6; }
  7982. fi
  7983. else
  7984. MAGIC_CMD=:
  7985. fi
  7986. fi
  7987. fi
  7988. ;;
  7989. esac
  7990. # Use C for the default configuration in the libtool script
  7991. lt_save_CC="$CC"
  7992. ac_ext=c
  7993. ac_cpp='$CPP $CPPFLAGS'
  7994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7997. # Source file extension for C test sources.
  7998. ac_ext=c
  7999. # Object file extension for compiled C test sources.
  8000. objext=o
  8001. objext=$objext
  8002. # Code to be used in simple compile tests
  8003. lt_simple_compile_test_code="int some_variable = 0;"
  8004. # Code to be used in simple link tests
  8005. lt_simple_link_test_code='int main(){return(0);}'
  8006. # If no C compiler was specified, use CC.
  8007. LTCC=${LTCC-"$CC"}
  8008. # If no C compiler flags were specified, use CFLAGS.
  8009. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8010. # Allow CC to be a program name with arguments.
  8011. compiler=$CC
  8012. # Save the default compiler, since it gets overwritten when the other
  8013. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8014. compiler_DEFAULT=$CC
  8015. # save warnings/boilerplate of simple test code
  8016. ac_outfile=conftest.$ac_objext
  8017. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8018. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8019. _lt_compiler_boilerplate=`cat conftest.err`
  8020. $RM conftest*
  8021. ac_outfile=conftest.$ac_objext
  8022. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8023. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8024. _lt_linker_boilerplate=`cat conftest.err`
  8025. $RM -r conftest*
  8026. ## CAVEAT EMPTOR:
  8027. ## There is no encapsulation within the following macros, do not change
  8028. ## the running order or otherwise move them around unless you know exactly
  8029. ## what you are doing...
  8030. if test -n "$compiler"; then
  8031. lt_prog_compiler_no_builtin_flag=
  8032. if test "$GCC" = yes; then
  8033. case $cc_basename in
  8034. nvcc*)
  8035. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8036. *)
  8037. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8038. esac
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8040. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8041. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8042. $as_echo_n "(cached) " >&6
  8043. else
  8044. lt_cv_prog_compiler_rtti_exceptions=no
  8045. ac_outfile=conftest.$ac_objext
  8046. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8047. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8048. # Insert the option either (1) after the last *FLAGS variable, or
  8049. # (2) before a word containing "conftest.", or (3) at the end.
  8050. # Note that $ac_compile itself does not contain backslashes and begins
  8051. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8052. # The option is referenced via a variable to avoid confusing sed.
  8053. lt_compile=`echo "$ac_compile" | $SED \
  8054. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8055. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8056. -e 's:$: $lt_compiler_flag:'`
  8057. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8058. (eval "$lt_compile" 2>conftest.err)
  8059. ac_status=$?
  8060. cat conftest.err >&5
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. if (exit $ac_status) && test -s "$ac_outfile"; then
  8063. # The compiler can only warn and ignore the option if not recognized
  8064. # So say no if there are warnings other than the usual output.
  8065. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8066. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8067. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8068. lt_cv_prog_compiler_rtti_exceptions=yes
  8069. fi
  8070. fi
  8071. $RM conftest*
  8072. fi
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8074. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8075. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8076. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8077. else
  8078. :
  8079. fi
  8080. fi
  8081. lt_prog_compiler_wl=
  8082. lt_prog_compiler_pic=
  8083. lt_prog_compiler_static=
  8084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8085. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8086. if test "$GCC" = yes; then
  8087. lt_prog_compiler_wl='-Wl,'
  8088. lt_prog_compiler_static='-static'
  8089. case $host_os in
  8090. aix*)
  8091. # All AIX code is PIC.
  8092. if test "$host_cpu" = ia64; then
  8093. # AIX 5 now supports IA64 processor
  8094. lt_prog_compiler_static='-Bstatic'
  8095. fi
  8096. lt_prog_compiler_pic='-fPIC'
  8097. ;;
  8098. amigaos*)
  8099. case $host_cpu in
  8100. powerpc)
  8101. # see comment about AmigaOS4 .so support
  8102. lt_prog_compiler_pic='-fPIC'
  8103. ;;
  8104. m68k)
  8105. # FIXME: we need at least 68020 code to build shared libraries, but
  8106. # adding the `-m68020' flag to GCC prevents building anything better,
  8107. # like `-m68040'.
  8108. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8109. ;;
  8110. esac
  8111. ;;
  8112. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8113. # PIC is the default for these OSes.
  8114. ;;
  8115. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8116. # This hack is so that the source file can tell whether it is being
  8117. # built for inclusion in a dll (and should export symbols for example).
  8118. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8119. # (--disable-auto-import) libraries
  8120. lt_prog_compiler_pic='-DDLL_EXPORT'
  8121. ;;
  8122. darwin* | rhapsody*)
  8123. # PIC is the default on this platform
  8124. # Common symbols not allowed in MH_DYLIB files
  8125. lt_prog_compiler_pic='-fno-common'
  8126. ;;
  8127. haiku*)
  8128. # PIC is the default for Haiku.
  8129. # The "-static" flag exists, but is broken.
  8130. lt_prog_compiler_static=
  8131. ;;
  8132. hpux*)
  8133. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8134. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8135. # sets the default TLS model and affects inlining.
  8136. case $host_cpu in
  8137. hppa*64*)
  8138. # +Z the default
  8139. ;;
  8140. *)
  8141. lt_prog_compiler_pic='-fPIC'
  8142. ;;
  8143. esac
  8144. ;;
  8145. interix[3-9]*)
  8146. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8147. # Instead, we relocate shared libraries at runtime.
  8148. ;;
  8149. msdosdjgpp*)
  8150. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8151. # on systems that don't support them.
  8152. lt_prog_compiler_can_build_shared=no
  8153. enable_shared=no
  8154. ;;
  8155. *nto* | *qnx*)
  8156. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8157. # it will coredump.
  8158. lt_prog_compiler_pic='-fPIC -shared'
  8159. ;;
  8160. sysv4*MP*)
  8161. if test -d /usr/nec; then
  8162. lt_prog_compiler_pic=-Kconform_pic
  8163. fi
  8164. ;;
  8165. *)
  8166. lt_prog_compiler_pic='-fPIC'
  8167. ;;
  8168. esac
  8169. case $cc_basename in
  8170. nvcc*) # Cuda Compiler Driver 2.2
  8171. lt_prog_compiler_wl='-Xlinker '
  8172. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8173. ;;
  8174. esac
  8175. else
  8176. # PORTME Check for flag to pass linker flags through the system compiler.
  8177. case $host_os in
  8178. aix*)
  8179. lt_prog_compiler_wl='-Wl,'
  8180. if test "$host_cpu" = ia64; then
  8181. # AIX 5 now supports IA64 processor
  8182. lt_prog_compiler_static='-Bstatic'
  8183. else
  8184. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8185. fi
  8186. ;;
  8187. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8188. # This hack is so that the source file can tell whether it is being
  8189. # built for inclusion in a dll (and should export symbols for example).
  8190. lt_prog_compiler_pic='-DDLL_EXPORT'
  8191. ;;
  8192. hpux9* | hpux10* | hpux11*)
  8193. lt_prog_compiler_wl='-Wl,'
  8194. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8195. # not for PA HP-UX.
  8196. case $host_cpu in
  8197. hppa*64*|ia64*)
  8198. # +Z the default
  8199. ;;
  8200. *)
  8201. lt_prog_compiler_pic='+Z'
  8202. ;;
  8203. esac
  8204. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8205. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8206. ;;
  8207. irix5* | irix6* | nonstopux*)
  8208. lt_prog_compiler_wl='-Wl,'
  8209. # PIC (with -KPIC) is the default.
  8210. lt_prog_compiler_static='-non_shared'
  8211. ;;
  8212. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8213. case $cc_basename in
  8214. # old Intel for x86_64 which still supported -KPIC.
  8215. ecc*)
  8216. lt_prog_compiler_wl='-Wl,'
  8217. lt_prog_compiler_pic='-KPIC'
  8218. lt_prog_compiler_static='-static'
  8219. ;;
  8220. # icc used to be incompatible with GCC.
  8221. # ICC 10 doesn't accept -KPIC any more.
  8222. icc* | ifort*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. lt_prog_compiler_pic='-fPIC'
  8225. lt_prog_compiler_static='-static'
  8226. ;;
  8227. # Lahey Fortran 8.1.
  8228. lf95*)
  8229. lt_prog_compiler_wl='-Wl,'
  8230. lt_prog_compiler_pic='--shared'
  8231. lt_prog_compiler_static='--static'
  8232. ;;
  8233. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8234. # Portland Group compilers (*not* the Pentium gcc compiler,
  8235. # which looks to be a dead project)
  8236. lt_prog_compiler_wl='-Wl,'
  8237. lt_prog_compiler_pic='-fpic'
  8238. lt_prog_compiler_static='-Bstatic'
  8239. ;;
  8240. ccc*)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. # All Alpha code is PIC.
  8243. lt_prog_compiler_static='-non_shared'
  8244. ;;
  8245. xl* | bgxl* | bgf* | mpixl*)
  8246. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8247. lt_prog_compiler_wl='-Wl,'
  8248. lt_prog_compiler_pic='-qpic'
  8249. lt_prog_compiler_static='-qstaticlink'
  8250. ;;
  8251. *)
  8252. case `$CC -V 2>&1 | sed 5q` in
  8253. *Sun\ F* | *Sun*Fortran*)
  8254. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8255. lt_prog_compiler_pic='-KPIC'
  8256. lt_prog_compiler_static='-Bstatic'
  8257. lt_prog_compiler_wl=''
  8258. ;;
  8259. *Sun\ C*)
  8260. # Sun C 5.9
  8261. lt_prog_compiler_pic='-KPIC'
  8262. lt_prog_compiler_static='-Bstatic'
  8263. lt_prog_compiler_wl='-Wl,'
  8264. ;;
  8265. esac
  8266. ;;
  8267. esac
  8268. ;;
  8269. newsos6)
  8270. lt_prog_compiler_pic='-KPIC'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. ;;
  8273. *nto* | *qnx*)
  8274. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8275. # it will coredump.
  8276. lt_prog_compiler_pic='-fPIC -shared'
  8277. ;;
  8278. osf3* | osf4* | osf5*)
  8279. lt_prog_compiler_wl='-Wl,'
  8280. # All OSF/1 code is PIC.
  8281. lt_prog_compiler_static='-non_shared'
  8282. ;;
  8283. rdos*)
  8284. lt_prog_compiler_static='-non_shared'
  8285. ;;
  8286. solaris*)
  8287. lt_prog_compiler_pic='-KPIC'
  8288. lt_prog_compiler_static='-Bstatic'
  8289. case $cc_basename in
  8290. f77* | f90* | f95*)
  8291. lt_prog_compiler_wl='-Qoption ld ';;
  8292. *)
  8293. lt_prog_compiler_wl='-Wl,';;
  8294. esac
  8295. ;;
  8296. sunos4*)
  8297. lt_prog_compiler_wl='-Qoption ld '
  8298. lt_prog_compiler_pic='-PIC'
  8299. lt_prog_compiler_static='-Bstatic'
  8300. ;;
  8301. sysv4 | sysv4.2uw2* | sysv4.3*)
  8302. lt_prog_compiler_wl='-Wl,'
  8303. lt_prog_compiler_pic='-KPIC'
  8304. lt_prog_compiler_static='-Bstatic'
  8305. ;;
  8306. sysv4*MP*)
  8307. if test -d /usr/nec ;then
  8308. lt_prog_compiler_pic='-Kconform_pic'
  8309. lt_prog_compiler_static='-Bstatic'
  8310. fi
  8311. ;;
  8312. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8313. lt_prog_compiler_wl='-Wl,'
  8314. lt_prog_compiler_pic='-KPIC'
  8315. lt_prog_compiler_static='-Bstatic'
  8316. ;;
  8317. unicos*)
  8318. lt_prog_compiler_wl='-Wl,'
  8319. lt_prog_compiler_can_build_shared=no
  8320. ;;
  8321. uts4*)
  8322. lt_prog_compiler_pic='-pic'
  8323. lt_prog_compiler_static='-Bstatic'
  8324. ;;
  8325. *)
  8326. lt_prog_compiler_can_build_shared=no
  8327. ;;
  8328. esac
  8329. fi
  8330. case $host_os in
  8331. # For platforms which do not support PIC, -DPIC is meaningless:
  8332. *djgpp*)
  8333. lt_prog_compiler_pic=
  8334. ;;
  8335. *)
  8336. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8337. ;;
  8338. esac
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8340. $as_echo "$lt_prog_compiler_pic" >&6; }
  8341. #
  8342. # Check to make sure the PIC flag actually works.
  8343. #
  8344. if test -n "$lt_prog_compiler_pic"; then
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8346. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8347. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8348. $as_echo_n "(cached) " >&6
  8349. else
  8350. lt_cv_prog_compiler_pic_works=no
  8351. ac_outfile=conftest.$ac_objext
  8352. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8353. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8354. # Insert the option either (1) after the last *FLAGS variable, or
  8355. # (2) before a word containing "conftest.", or (3) at the end.
  8356. # Note that $ac_compile itself does not contain backslashes and begins
  8357. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8358. # The option is referenced via a variable to avoid confusing sed.
  8359. lt_compile=`echo "$ac_compile" | $SED \
  8360. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8361. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8362. -e 's:$: $lt_compiler_flag:'`
  8363. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8364. (eval "$lt_compile" 2>conftest.err)
  8365. ac_status=$?
  8366. cat conftest.err >&5
  8367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8368. if (exit $ac_status) && test -s "$ac_outfile"; then
  8369. # The compiler can only warn and ignore the option if not recognized
  8370. # So say no if there are warnings other than the usual output.
  8371. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8372. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8373. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8374. lt_cv_prog_compiler_pic_works=yes
  8375. fi
  8376. fi
  8377. $RM conftest*
  8378. fi
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8380. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8381. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8382. case $lt_prog_compiler_pic in
  8383. "" | " "*) ;;
  8384. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8385. esac
  8386. else
  8387. lt_prog_compiler_pic=
  8388. lt_prog_compiler_can_build_shared=no
  8389. fi
  8390. fi
  8391. #
  8392. # Check to make sure the static flag actually works.
  8393. #
  8394. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8396. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8397. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8398. $as_echo_n "(cached) " >&6
  8399. else
  8400. lt_cv_prog_compiler_static_works=no
  8401. save_LDFLAGS="$LDFLAGS"
  8402. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8403. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8404. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8405. # The linker can only warn and ignore the option if not recognized
  8406. # So say no if there are warnings
  8407. if test -s conftest.err; then
  8408. # Append any errors to the config.log.
  8409. cat conftest.err 1>&5
  8410. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8411. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8412. if diff conftest.exp conftest.er2 >/dev/null; then
  8413. lt_cv_prog_compiler_static_works=yes
  8414. fi
  8415. else
  8416. lt_cv_prog_compiler_static_works=yes
  8417. fi
  8418. fi
  8419. $RM -r conftest*
  8420. LDFLAGS="$save_LDFLAGS"
  8421. fi
  8422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8423. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8424. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8425. :
  8426. else
  8427. lt_prog_compiler_static=
  8428. fi
  8429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8430. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8431. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8432. $as_echo_n "(cached) " >&6
  8433. else
  8434. lt_cv_prog_compiler_c_o=no
  8435. $RM -r conftest 2>/dev/null
  8436. mkdir conftest
  8437. cd conftest
  8438. mkdir out
  8439. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8440. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8441. # Insert the option either (1) after the last *FLAGS variable, or
  8442. # (2) before a word containing "conftest.", or (3) at the end.
  8443. # Note that $ac_compile itself does not contain backslashes and begins
  8444. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8445. lt_compile=`echo "$ac_compile" | $SED \
  8446. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8447. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8448. -e 's:$: $lt_compiler_flag:'`
  8449. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8450. (eval "$lt_compile" 2>out/conftest.err)
  8451. ac_status=$?
  8452. cat out/conftest.err >&5
  8453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8454. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8455. then
  8456. # The compiler can only warn and ignore the option if not recognized
  8457. # So say no if there are warnings
  8458. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8459. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8460. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8461. lt_cv_prog_compiler_c_o=yes
  8462. fi
  8463. fi
  8464. chmod u+w . 2>&5
  8465. $RM conftest*
  8466. # SGI C++ compiler will create directory out/ii_files/ for
  8467. # template instantiation
  8468. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8469. $RM out/* && rmdir out
  8470. cd ..
  8471. $RM -r conftest
  8472. $RM conftest*
  8473. fi
  8474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8475. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8477. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8478. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8479. $as_echo_n "(cached) " >&6
  8480. else
  8481. lt_cv_prog_compiler_c_o=no
  8482. $RM -r conftest 2>/dev/null
  8483. mkdir conftest
  8484. cd conftest
  8485. mkdir out
  8486. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8487. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8488. # Insert the option either (1) after the last *FLAGS variable, or
  8489. # (2) before a word containing "conftest.", or (3) at the end.
  8490. # Note that $ac_compile itself does not contain backslashes and begins
  8491. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8492. lt_compile=`echo "$ac_compile" | $SED \
  8493. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8494. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8495. -e 's:$: $lt_compiler_flag:'`
  8496. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8497. (eval "$lt_compile" 2>out/conftest.err)
  8498. ac_status=$?
  8499. cat out/conftest.err >&5
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8502. then
  8503. # The compiler can only warn and ignore the option if not recognized
  8504. # So say no if there are warnings
  8505. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8506. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8507. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8508. lt_cv_prog_compiler_c_o=yes
  8509. fi
  8510. fi
  8511. chmod u+w . 2>&5
  8512. $RM conftest*
  8513. # SGI C++ compiler will create directory out/ii_files/ for
  8514. # template instantiation
  8515. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8516. $RM out/* && rmdir out
  8517. cd ..
  8518. $RM -r conftest
  8519. $RM conftest*
  8520. fi
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8522. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8523. hard_links="nottested"
  8524. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8525. # do not overwrite the value of need_locks provided by the user
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8527. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8528. hard_links=yes
  8529. $RM conftest*
  8530. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8531. touch conftest.a
  8532. ln conftest.a conftest.b 2>&5 || hard_links=no
  8533. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8535. $as_echo "$hard_links" >&6; }
  8536. if test "$hard_links" = no; then
  8537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8538. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8539. need_locks=warn
  8540. fi
  8541. else
  8542. need_locks=no
  8543. fi
  8544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8545. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8546. runpath_var=
  8547. allow_undefined_flag=
  8548. always_export_symbols=no
  8549. archive_cmds=
  8550. archive_expsym_cmds=
  8551. compiler_needs_object=no
  8552. enable_shared_with_static_runtimes=no
  8553. export_dynamic_flag_spec=
  8554. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8555. hardcode_automatic=no
  8556. hardcode_direct=no
  8557. hardcode_direct_absolute=no
  8558. hardcode_libdir_flag_spec=
  8559. hardcode_libdir_flag_spec_ld=
  8560. hardcode_libdir_separator=
  8561. hardcode_minus_L=no
  8562. hardcode_shlibpath_var=unsupported
  8563. inherit_rpath=no
  8564. link_all_deplibs=unknown
  8565. module_cmds=
  8566. module_expsym_cmds=
  8567. old_archive_from_new_cmds=
  8568. old_archive_from_expsyms_cmds=
  8569. thread_safe_flag_spec=
  8570. whole_archive_flag_spec=
  8571. # include_expsyms should be a list of space-separated symbols to be *always*
  8572. # included in the symbol list
  8573. include_expsyms=
  8574. # exclude_expsyms can be an extended regexp of symbols to exclude
  8575. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8576. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8577. # as well as any symbol that contains `d'.
  8578. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8579. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8580. # platforms (ab)use it in PIC code, but their linkers get confused if
  8581. # the symbol is explicitly referenced. Since portable code cannot
  8582. # rely on this symbol name, it's probably fine to never include it in
  8583. # preloaded symbol tables.
  8584. # Exclude shared library initialization/finalization symbols.
  8585. extract_expsyms_cmds=
  8586. case $host_os in
  8587. cygwin* | mingw* | pw32* | cegcc*)
  8588. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8589. # When not using gcc, we currently assume that we are using
  8590. # Microsoft Visual C++.
  8591. if test "$GCC" != yes; then
  8592. with_gnu_ld=no
  8593. fi
  8594. ;;
  8595. interix*)
  8596. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8597. with_gnu_ld=yes
  8598. ;;
  8599. openbsd*)
  8600. with_gnu_ld=no
  8601. ;;
  8602. esac
  8603. ld_shlibs=yes
  8604. # On some targets, GNU ld is compatible enough with the native linker
  8605. # that we're better off using the native interface for both.
  8606. lt_use_gnu_ld_interface=no
  8607. if test "$with_gnu_ld" = yes; then
  8608. case $host_os in
  8609. aix*)
  8610. # The AIX port of GNU ld has always aspired to compatibility
  8611. # with the native linker. However, as the warning in the GNU ld
  8612. # block says, versions before 2.19.5* couldn't really create working
  8613. # shared libraries, regardless of the interface used.
  8614. case `$LD -v 2>&1` in
  8615. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8616. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8617. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8618. *)
  8619. lt_use_gnu_ld_interface=yes
  8620. ;;
  8621. esac
  8622. ;;
  8623. *)
  8624. lt_use_gnu_ld_interface=yes
  8625. ;;
  8626. esac
  8627. fi
  8628. if test "$lt_use_gnu_ld_interface" = yes; then
  8629. # If archive_cmds runs LD, not CC, wlarc should be empty
  8630. wlarc='${wl}'
  8631. # Set some defaults for GNU ld with shared library support. These
  8632. # are reset later if shared libraries are not supported. Putting them
  8633. # here allows them to be overridden if necessary.
  8634. runpath_var=LD_RUN_PATH
  8635. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8636. export_dynamic_flag_spec='${wl}--export-dynamic'
  8637. # ancient GNU ld didn't support --whole-archive et. al.
  8638. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8639. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8640. else
  8641. whole_archive_flag_spec=
  8642. fi
  8643. supports_anon_versioning=no
  8644. case `$LD -v 2>&1` in
  8645. *GNU\ gold*) supports_anon_versioning=yes ;;
  8646. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8647. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8648. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8649. *\ 2.11.*) ;; # other 2.11 versions
  8650. *) supports_anon_versioning=yes ;;
  8651. esac
  8652. # See if GNU ld supports shared libraries.
  8653. case $host_os in
  8654. aix[3-9]*)
  8655. # On AIX/PPC, the GNU linker is very broken
  8656. if test "$host_cpu" != ia64; then
  8657. ld_shlibs=no
  8658. cat <<_LT_EOF 1>&2
  8659. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8660. *** to be unable to reliably create shared libraries on AIX.
  8661. *** Therefore, libtool is disabling shared libraries support. If you
  8662. *** really care for shared libraries, you may want to install binutils
  8663. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8664. *** You will then need to restart the configuration process.
  8665. _LT_EOF
  8666. fi
  8667. ;;
  8668. amigaos*)
  8669. case $host_cpu in
  8670. powerpc)
  8671. # see comment about AmigaOS4 .so support
  8672. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8673. archive_expsym_cmds=''
  8674. ;;
  8675. m68k)
  8676. 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)'
  8677. hardcode_libdir_flag_spec='-L$libdir'
  8678. hardcode_minus_L=yes
  8679. ;;
  8680. esac
  8681. ;;
  8682. beos*)
  8683. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8684. allow_undefined_flag=unsupported
  8685. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8686. # support --undefined. This deserves some investigation. FIXME
  8687. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8688. else
  8689. ld_shlibs=no
  8690. fi
  8691. ;;
  8692. cygwin* | mingw* | pw32* | cegcc*)
  8693. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8694. # as there is no search path for DLLs.
  8695. hardcode_libdir_flag_spec='-L$libdir'
  8696. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8697. allow_undefined_flag=unsupported
  8698. always_export_symbols=no
  8699. enable_shared_with_static_runtimes=yes
  8700. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8701. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8702. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8703. # If the export-symbols file already is a .def file (1st line
  8704. # is EXPORTS), use it as is; otherwise, prepend...
  8705. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8706. cp $export_symbols $output_objdir/$soname.def;
  8707. else
  8708. echo EXPORTS > $output_objdir/$soname.def;
  8709. cat $export_symbols >> $output_objdir/$soname.def;
  8710. fi~
  8711. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8712. else
  8713. ld_shlibs=no
  8714. fi
  8715. ;;
  8716. haiku*)
  8717. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8718. link_all_deplibs=yes
  8719. ;;
  8720. interix[3-9]*)
  8721. hardcode_direct=no
  8722. hardcode_shlibpath_var=no
  8723. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8724. export_dynamic_flag_spec='${wl}-E'
  8725. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8726. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8727. # default) and relocated if they conflict, which is a slow very memory
  8728. # consuming and fragmenting process. To avoid this, we pick a random,
  8729. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8730. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8731. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8732. 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'
  8733. ;;
  8734. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8735. tmp_diet=no
  8736. if test "$host_os" = linux-dietlibc; then
  8737. case $cc_basename in
  8738. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8739. esac
  8740. fi
  8741. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8742. && test "$tmp_diet" = no
  8743. then
  8744. tmp_addflag=' $pic_flag'
  8745. tmp_sharedflag='-shared'
  8746. case $cc_basename,$host_cpu in
  8747. pgcc*) # Portland Group C compiler
  8748. 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'
  8749. tmp_addflag=' $pic_flag'
  8750. ;;
  8751. pgf77* | pgf90* | pgf95* | pgfortran*)
  8752. # Portland Group f77 and f90 compilers
  8753. 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'
  8754. tmp_addflag=' $pic_flag -Mnomain' ;;
  8755. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8756. tmp_addflag=' -i_dynamic' ;;
  8757. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8758. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8759. ifc* | ifort*) # Intel Fortran compiler
  8760. tmp_addflag=' -nofor_main' ;;
  8761. lf95*) # Lahey Fortran 8.1
  8762. whole_archive_flag_spec=
  8763. tmp_sharedflag='--shared' ;;
  8764. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8765. tmp_sharedflag='-qmkshrobj'
  8766. tmp_addflag= ;;
  8767. nvcc*) # Cuda Compiler Driver 2.2
  8768. 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'
  8769. compiler_needs_object=yes
  8770. ;;
  8771. esac
  8772. case `$CC -V 2>&1 | sed 5q` in
  8773. *Sun\ C*) # Sun C 5.9
  8774. 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'
  8775. compiler_needs_object=yes
  8776. tmp_sharedflag='-G' ;;
  8777. *Sun\ F*) # Sun Fortran 8.3
  8778. tmp_sharedflag='-G' ;;
  8779. esac
  8780. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8781. if test "x$supports_anon_versioning" = xyes; then
  8782. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8783. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8784. echo "local: *; };" >> $output_objdir/$libname.ver~
  8785. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8786. fi
  8787. case $cc_basename in
  8788. xlf* | bgf* | bgxlf* | mpixlf*)
  8789. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8790. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8791. hardcode_libdir_flag_spec=
  8792. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8793. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8794. if test "x$supports_anon_versioning" = xyes; then
  8795. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8796. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8797. echo "local: *; };" >> $output_objdir/$libname.ver~
  8798. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8799. fi
  8800. ;;
  8801. esac
  8802. else
  8803. ld_shlibs=no
  8804. fi
  8805. ;;
  8806. netbsd*)
  8807. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8808. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8809. wlarc=
  8810. else
  8811. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8812. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8813. fi
  8814. ;;
  8815. solaris*)
  8816. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8817. ld_shlibs=no
  8818. cat <<_LT_EOF 1>&2
  8819. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8820. *** create shared libraries on Solaris systems. Therefore, libtool
  8821. *** is disabling shared libraries support. We urge you to upgrade GNU
  8822. *** binutils to release 2.9.1 or newer. Another option is to modify
  8823. *** your PATH or compiler configuration so that the native linker is
  8824. *** used, and then restart.
  8825. _LT_EOF
  8826. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8827. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8828. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8829. else
  8830. ld_shlibs=no
  8831. fi
  8832. ;;
  8833. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8834. case `$LD -v 2>&1` in
  8835. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8836. ld_shlibs=no
  8837. cat <<_LT_EOF 1>&2
  8838. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8839. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8840. *** is disabling shared libraries support. We urge you to upgrade GNU
  8841. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8842. *** your PATH or compiler configuration so that the native linker is
  8843. *** used, and then restart.
  8844. _LT_EOF
  8845. ;;
  8846. *)
  8847. # For security reasons, it is highly recommended that you always
  8848. # use absolute paths for naming shared libraries, and exclude the
  8849. # DT_RUNPATH tag from executables and libraries. But doing so
  8850. # requires that you compile everything twice, which is a pain.
  8851. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8852. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8853. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8854. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8855. else
  8856. ld_shlibs=no
  8857. fi
  8858. ;;
  8859. esac
  8860. ;;
  8861. sunos4*)
  8862. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8863. wlarc=
  8864. hardcode_direct=yes
  8865. hardcode_shlibpath_var=no
  8866. ;;
  8867. *)
  8868. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8869. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8870. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8871. else
  8872. ld_shlibs=no
  8873. fi
  8874. ;;
  8875. esac
  8876. if test "$ld_shlibs" = no; then
  8877. runpath_var=
  8878. hardcode_libdir_flag_spec=
  8879. export_dynamic_flag_spec=
  8880. whole_archive_flag_spec=
  8881. fi
  8882. else
  8883. # PORTME fill in a description of your system's linker (not GNU ld)
  8884. case $host_os in
  8885. aix3*)
  8886. allow_undefined_flag=unsupported
  8887. always_export_symbols=yes
  8888. 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'
  8889. # Note: this linker hardcodes the directories in LIBPATH if there
  8890. # are no directories specified by -L.
  8891. hardcode_minus_L=yes
  8892. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8893. # Neither direct hardcoding nor static linking is supported with a
  8894. # broken collect2.
  8895. hardcode_direct=unsupported
  8896. fi
  8897. ;;
  8898. aix[4-9]*)
  8899. if test "$host_cpu" = ia64; then
  8900. # On IA64, the linker does run time linking by default, so we don't
  8901. # have to do anything special.
  8902. aix_use_runtimelinking=no
  8903. exp_sym_flag='-Bexport'
  8904. no_entry_flag=""
  8905. else
  8906. # If we're using GNU nm, then we don't want the "-C" option.
  8907. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8908. # Also, AIX nm treats weak defined symbols like other global
  8909. # defined symbols, whereas GNU nm marks them as "W".
  8910. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8911. 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'
  8912. else
  8913. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8914. fi
  8915. aix_use_runtimelinking=no
  8916. # Test if we are trying to use run time linking or normal
  8917. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8918. # need to do runtime linking.
  8919. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8920. for ld_flag in $LDFLAGS; do
  8921. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8922. aix_use_runtimelinking=yes
  8923. break
  8924. fi
  8925. done
  8926. ;;
  8927. esac
  8928. exp_sym_flag='-bexport'
  8929. no_entry_flag='-bnoentry'
  8930. fi
  8931. # When large executables or shared objects are built, AIX ld can
  8932. # have problems creating the table of contents. If linking a library
  8933. # or program results in "error TOC overflow" add -mminimal-toc to
  8934. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8935. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8936. archive_cmds=''
  8937. hardcode_direct=yes
  8938. hardcode_direct_absolute=yes
  8939. hardcode_libdir_separator=':'
  8940. link_all_deplibs=yes
  8941. file_list_spec='${wl}-f,'
  8942. if test "$GCC" = yes; then
  8943. case $host_os in aix4.[012]|aix4.[012].*)
  8944. # We only want to do this on AIX 4.2 and lower, the check
  8945. # below for broken collect2 doesn't work under 4.3+
  8946. collect2name=`${CC} -print-prog-name=collect2`
  8947. if test -f "$collect2name" &&
  8948. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8949. then
  8950. # We have reworked collect2
  8951. :
  8952. else
  8953. # We have old collect2
  8954. hardcode_direct=unsupported
  8955. # It fails to find uninstalled libraries when the uninstalled
  8956. # path is not listed in the libpath. Setting hardcode_minus_L
  8957. # to unsupported forces relinking
  8958. hardcode_minus_L=yes
  8959. hardcode_libdir_flag_spec='-L$libdir'
  8960. hardcode_libdir_separator=
  8961. fi
  8962. ;;
  8963. esac
  8964. shared_flag='-shared'
  8965. if test "$aix_use_runtimelinking" = yes; then
  8966. shared_flag="$shared_flag "'${wl}-G'
  8967. fi
  8968. else
  8969. # not using gcc
  8970. if test "$host_cpu" = ia64; then
  8971. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8972. # chokes on -Wl,-G. The following line is correct:
  8973. shared_flag='-G'
  8974. else
  8975. if test "$aix_use_runtimelinking" = yes; then
  8976. shared_flag='${wl}-G'
  8977. else
  8978. shared_flag='${wl}-bM:SRE'
  8979. fi
  8980. fi
  8981. fi
  8982. export_dynamic_flag_spec='${wl}-bexpall'
  8983. # It seems that -bexpall does not export symbols beginning with
  8984. # underscore (_), so it is better to generate a list of symbols to export.
  8985. always_export_symbols=yes
  8986. if test "$aix_use_runtimelinking" = yes; then
  8987. # Warning - without using the other runtime loading flags (-brtl),
  8988. # -berok will link without error, but may produce a broken library.
  8989. allow_undefined_flag='-berok'
  8990. # Determine the default libpath from the value encoded in an
  8991. # empty executable.
  8992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8993. /* end confdefs.h. */
  8994. int
  8995. main ()
  8996. {
  8997. ;
  8998. return 0;
  8999. }
  9000. _ACEOF
  9001. if ac_fn_c_try_link "$LINENO"; then :
  9002. lt_aix_libpath_sed='
  9003. /Import File Strings/,/^$/ {
  9004. /^0/ {
  9005. s/^0 *\(.*\)$/\1/
  9006. p
  9007. }
  9008. }'
  9009. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9010. # Check for a 64-bit object if we didn't find anything.
  9011. if test -z "$aix_libpath"; then
  9012. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9013. fi
  9014. fi
  9015. rm -f core conftest.err conftest.$ac_objext \
  9016. conftest$ac_exeext conftest.$ac_ext
  9017. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9018. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9019. 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"
  9020. else
  9021. if test "$host_cpu" = ia64; then
  9022. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9023. allow_undefined_flag="-z nodefs"
  9024. 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"
  9025. else
  9026. # Determine the default libpath from the value encoded in an
  9027. # empty executable.
  9028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9029. /* end confdefs.h. */
  9030. int
  9031. main ()
  9032. {
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. if ac_fn_c_try_link "$LINENO"; then :
  9038. lt_aix_libpath_sed='
  9039. /Import File Strings/,/^$/ {
  9040. /^0/ {
  9041. s/^0 *\(.*\)$/\1/
  9042. p
  9043. }
  9044. }'
  9045. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9046. # Check for a 64-bit object if we didn't find anything.
  9047. if test -z "$aix_libpath"; then
  9048. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9049. fi
  9050. fi
  9051. rm -f core conftest.err conftest.$ac_objext \
  9052. conftest$ac_exeext conftest.$ac_ext
  9053. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9054. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9055. # Warning - without using the other run time loading flags,
  9056. # -berok will link without error, but may produce a broken library.
  9057. no_undefined_flag=' ${wl}-bernotok'
  9058. allow_undefined_flag=' ${wl}-berok'
  9059. if test "$with_gnu_ld" = yes; then
  9060. # We only use this code for GNU lds that support --whole-archive.
  9061. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9062. else
  9063. # Exported symbols can be pulled into shared objects from archives
  9064. whole_archive_flag_spec='$convenience'
  9065. fi
  9066. archive_cmds_need_lc=yes
  9067. # This is similar to how AIX traditionally builds its shared libraries.
  9068. 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'
  9069. fi
  9070. fi
  9071. ;;
  9072. amigaos*)
  9073. case $host_cpu in
  9074. powerpc)
  9075. # see comment about AmigaOS4 .so support
  9076. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9077. archive_expsym_cmds=''
  9078. ;;
  9079. m68k)
  9080. 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)'
  9081. hardcode_libdir_flag_spec='-L$libdir'
  9082. hardcode_minus_L=yes
  9083. ;;
  9084. esac
  9085. ;;
  9086. bsdi[45]*)
  9087. export_dynamic_flag_spec=-rdynamic
  9088. ;;
  9089. cygwin* | mingw* | pw32* | cegcc*)
  9090. # When not using gcc, we currently assume that we are using
  9091. # Microsoft Visual C++.
  9092. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9093. # no search path for DLLs.
  9094. hardcode_libdir_flag_spec=' '
  9095. allow_undefined_flag=unsupported
  9096. # Tell ltmain to make .lib files, not .a files.
  9097. libext=lib
  9098. # Tell ltmain to make .dll files, not .so files.
  9099. shrext_cmds=".dll"
  9100. # FIXME: Setting linknames here is a bad hack.
  9101. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9102. # The linker will automatically build a .lib file if we build a DLL.
  9103. old_archive_from_new_cmds='true'
  9104. # FIXME: Should let the user specify the lib program.
  9105. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9106. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9107. enable_shared_with_static_runtimes=yes
  9108. ;;
  9109. darwin* | rhapsody*)
  9110. archive_cmds_need_lc=no
  9111. hardcode_direct=no
  9112. hardcode_automatic=yes
  9113. hardcode_shlibpath_var=unsupported
  9114. if test "$lt_cv_ld_force_load" = "yes"; then
  9115. 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\"`'
  9116. else
  9117. whole_archive_flag_spec=''
  9118. fi
  9119. link_all_deplibs=yes
  9120. allow_undefined_flag="$_lt_dar_allow_undefined"
  9121. case $cc_basename in
  9122. ifort*) _lt_dar_can_shared=yes ;;
  9123. *) _lt_dar_can_shared=$GCC ;;
  9124. esac
  9125. if test "$_lt_dar_can_shared" = "yes"; then
  9126. output_verbose_link_cmd=func_echo_all
  9127. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9128. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9129. 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}"
  9130. 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}"
  9131. else
  9132. ld_shlibs=no
  9133. fi
  9134. ;;
  9135. dgux*)
  9136. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9137. hardcode_libdir_flag_spec='-L$libdir'
  9138. hardcode_shlibpath_var=no
  9139. ;;
  9140. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9141. # support. Future versions do this automatically, but an explicit c++rt0.o
  9142. # does not break anything, and helps significantly (at the cost of a little
  9143. # extra space).
  9144. freebsd2.2*)
  9145. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9146. hardcode_libdir_flag_spec='-R$libdir'
  9147. hardcode_direct=yes
  9148. hardcode_shlibpath_var=no
  9149. ;;
  9150. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9151. freebsd2.*)
  9152. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9153. hardcode_direct=yes
  9154. hardcode_minus_L=yes
  9155. hardcode_shlibpath_var=no
  9156. ;;
  9157. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9158. freebsd* | dragonfly*)
  9159. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9160. hardcode_libdir_flag_spec='-R$libdir'
  9161. hardcode_direct=yes
  9162. hardcode_shlibpath_var=no
  9163. ;;
  9164. hpux9*)
  9165. if test "$GCC" = yes; then
  9166. 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'
  9167. else
  9168. 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'
  9169. fi
  9170. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9171. hardcode_libdir_separator=:
  9172. hardcode_direct=yes
  9173. # hardcode_minus_L: Not really in the search PATH,
  9174. # but as the default location of the library.
  9175. hardcode_minus_L=yes
  9176. export_dynamic_flag_spec='${wl}-E'
  9177. ;;
  9178. hpux10*)
  9179. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9180. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9181. else
  9182. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9183. fi
  9184. if test "$with_gnu_ld" = no; then
  9185. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9186. hardcode_libdir_flag_spec_ld='+b $libdir'
  9187. hardcode_libdir_separator=:
  9188. hardcode_direct=yes
  9189. hardcode_direct_absolute=yes
  9190. export_dynamic_flag_spec='${wl}-E'
  9191. # hardcode_minus_L: Not really in the search PATH,
  9192. # but as the default location of the library.
  9193. hardcode_minus_L=yes
  9194. fi
  9195. ;;
  9196. hpux11*)
  9197. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9198. case $host_cpu in
  9199. hppa*64*)
  9200. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9201. ;;
  9202. ia64*)
  9203. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9204. ;;
  9205. *)
  9206. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9207. ;;
  9208. esac
  9209. else
  9210. case $host_cpu in
  9211. hppa*64*)
  9212. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9213. ;;
  9214. ia64*)
  9215. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9216. ;;
  9217. *)
  9218. # Older versions of the 11.00 compiler do not understand -b yet
  9219. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9221. $as_echo_n "checking if $CC understands -b... " >&6; }
  9222. if ${lt_cv_prog_compiler__b+:} false; then :
  9223. $as_echo_n "(cached) " >&6
  9224. else
  9225. lt_cv_prog_compiler__b=no
  9226. save_LDFLAGS="$LDFLAGS"
  9227. LDFLAGS="$LDFLAGS -b"
  9228. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9229. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9230. # The linker can only warn and ignore the option if not recognized
  9231. # So say no if there are warnings
  9232. if test -s conftest.err; then
  9233. # Append any errors to the config.log.
  9234. cat conftest.err 1>&5
  9235. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9236. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9237. if diff conftest.exp conftest.er2 >/dev/null; then
  9238. lt_cv_prog_compiler__b=yes
  9239. fi
  9240. else
  9241. lt_cv_prog_compiler__b=yes
  9242. fi
  9243. fi
  9244. $RM -r conftest*
  9245. LDFLAGS="$save_LDFLAGS"
  9246. fi
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9248. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9249. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9250. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9251. else
  9252. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9253. fi
  9254. ;;
  9255. esac
  9256. fi
  9257. if test "$with_gnu_ld" = no; then
  9258. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9259. hardcode_libdir_separator=:
  9260. case $host_cpu in
  9261. hppa*64*|ia64*)
  9262. hardcode_direct=no
  9263. hardcode_shlibpath_var=no
  9264. ;;
  9265. *)
  9266. hardcode_direct=yes
  9267. hardcode_direct_absolute=yes
  9268. export_dynamic_flag_spec='${wl}-E'
  9269. # hardcode_minus_L: Not really in the search PATH,
  9270. # but as the default location of the library.
  9271. hardcode_minus_L=yes
  9272. ;;
  9273. esac
  9274. fi
  9275. ;;
  9276. irix5* | irix6* | nonstopux*)
  9277. if test "$GCC" = yes; then
  9278. 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'
  9279. # Try to use the -exported_symbol ld option, if it does not
  9280. # work, assume that -exports_file does not work either and
  9281. # implicitly export all symbols.
  9282. save_LDFLAGS="$LDFLAGS"
  9283. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9285. /* end confdefs.h. */
  9286. int foo(void) {}
  9287. _ACEOF
  9288. if ac_fn_c_try_link "$LINENO"; then :
  9289. 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'
  9290. fi
  9291. rm -f core conftest.err conftest.$ac_objext \
  9292. conftest$ac_exeext conftest.$ac_ext
  9293. LDFLAGS="$save_LDFLAGS"
  9294. else
  9295. 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'
  9296. 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'
  9297. fi
  9298. archive_cmds_need_lc='no'
  9299. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9300. hardcode_libdir_separator=:
  9301. inherit_rpath=yes
  9302. link_all_deplibs=yes
  9303. ;;
  9304. netbsd*)
  9305. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9306. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9307. else
  9308. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9309. fi
  9310. hardcode_libdir_flag_spec='-R$libdir'
  9311. hardcode_direct=yes
  9312. hardcode_shlibpath_var=no
  9313. ;;
  9314. newsos6)
  9315. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9316. hardcode_direct=yes
  9317. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9318. hardcode_libdir_separator=:
  9319. hardcode_shlibpath_var=no
  9320. ;;
  9321. *nto* | *qnx*)
  9322. ;;
  9323. openbsd*)
  9324. if test -f /usr/libexec/ld.so; then
  9325. hardcode_direct=yes
  9326. hardcode_shlibpath_var=no
  9327. hardcode_direct_absolute=yes
  9328. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9329. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9330. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9331. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9332. export_dynamic_flag_spec='${wl}-E'
  9333. else
  9334. case $host_os in
  9335. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9336. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9337. hardcode_libdir_flag_spec='-R$libdir'
  9338. ;;
  9339. *)
  9340. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9341. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9342. ;;
  9343. esac
  9344. fi
  9345. else
  9346. ld_shlibs=no
  9347. fi
  9348. ;;
  9349. os2*)
  9350. hardcode_libdir_flag_spec='-L$libdir'
  9351. hardcode_minus_L=yes
  9352. allow_undefined_flag=unsupported
  9353. 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'
  9354. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9355. ;;
  9356. osf3*)
  9357. if test "$GCC" = yes; then
  9358. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9359. 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'
  9360. else
  9361. allow_undefined_flag=' -expect_unresolved \*'
  9362. 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'
  9363. fi
  9364. archive_cmds_need_lc='no'
  9365. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9366. hardcode_libdir_separator=:
  9367. ;;
  9368. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9369. if test "$GCC" = yes; then
  9370. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9371. 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'
  9372. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9373. else
  9374. allow_undefined_flag=' -expect_unresolved \*'
  9375. 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'
  9376. 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~
  9377. $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'
  9378. # Both c and cxx compiler support -rpath directly
  9379. hardcode_libdir_flag_spec='-rpath $libdir'
  9380. fi
  9381. archive_cmds_need_lc='no'
  9382. hardcode_libdir_separator=:
  9383. ;;
  9384. solaris*)
  9385. no_undefined_flag=' -z defs'
  9386. if test "$GCC" = yes; then
  9387. wlarc='${wl}'
  9388. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9390. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9391. else
  9392. case `$CC -V 2>&1` in
  9393. *"Compilers 5.0"*)
  9394. wlarc=''
  9395. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9396. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9397. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9398. ;;
  9399. *)
  9400. wlarc='${wl}'
  9401. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9402. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9403. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9404. ;;
  9405. esac
  9406. fi
  9407. hardcode_libdir_flag_spec='-R$libdir'
  9408. hardcode_shlibpath_var=no
  9409. case $host_os in
  9410. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9411. *)
  9412. # The compiler driver will combine and reorder linker options,
  9413. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9414. # but is careful enough not to reorder.
  9415. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9416. if test "$GCC" = yes; then
  9417. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9418. else
  9419. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9420. fi
  9421. ;;
  9422. esac
  9423. link_all_deplibs=yes
  9424. ;;
  9425. sunos4*)
  9426. if test "x$host_vendor" = xsequent; then
  9427. # Use $CC to link under sequent, because it throws in some extra .o
  9428. # files that make .init and .fini sections work.
  9429. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9430. else
  9431. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9432. fi
  9433. hardcode_libdir_flag_spec='-L$libdir'
  9434. hardcode_direct=yes
  9435. hardcode_minus_L=yes
  9436. hardcode_shlibpath_var=no
  9437. ;;
  9438. sysv4)
  9439. case $host_vendor in
  9440. sni)
  9441. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9442. hardcode_direct=yes # is this really true???
  9443. ;;
  9444. siemens)
  9445. ## LD is ld it makes a PLAMLIB
  9446. ## CC just makes a GrossModule.
  9447. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9448. reload_cmds='$CC -r -o $output$reload_objs'
  9449. hardcode_direct=no
  9450. ;;
  9451. motorola)
  9452. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9453. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9454. ;;
  9455. esac
  9456. runpath_var='LD_RUN_PATH'
  9457. hardcode_shlibpath_var=no
  9458. ;;
  9459. sysv4.3*)
  9460. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9461. hardcode_shlibpath_var=no
  9462. export_dynamic_flag_spec='-Bexport'
  9463. ;;
  9464. sysv4*MP*)
  9465. if test -d /usr/nec; then
  9466. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9467. hardcode_shlibpath_var=no
  9468. runpath_var=LD_RUN_PATH
  9469. hardcode_runpath_var=yes
  9470. ld_shlibs=yes
  9471. fi
  9472. ;;
  9473. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9474. no_undefined_flag='${wl}-z,text'
  9475. archive_cmds_need_lc=no
  9476. hardcode_shlibpath_var=no
  9477. runpath_var='LD_RUN_PATH'
  9478. if test "$GCC" = yes; then
  9479. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9480. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9481. else
  9482. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9483. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9484. fi
  9485. ;;
  9486. sysv5* | sco3.2v5* | sco5v6*)
  9487. # Note: We can NOT use -z defs as we might desire, because we do not
  9488. # link with -lc, and that would cause any symbols used from libc to
  9489. # always be unresolved, which means just about no library would
  9490. # ever link correctly. If we're not using GNU ld we use -z text
  9491. # though, which does catch some bad symbols but isn't as heavy-handed
  9492. # as -z defs.
  9493. no_undefined_flag='${wl}-z,text'
  9494. allow_undefined_flag='${wl}-z,nodefs'
  9495. archive_cmds_need_lc=no
  9496. hardcode_shlibpath_var=no
  9497. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9498. hardcode_libdir_separator=':'
  9499. link_all_deplibs=yes
  9500. export_dynamic_flag_spec='${wl}-Bexport'
  9501. runpath_var='LD_RUN_PATH'
  9502. if test "$GCC" = yes; then
  9503. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9504. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9505. else
  9506. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9507. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9508. fi
  9509. ;;
  9510. uts4*)
  9511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9512. hardcode_libdir_flag_spec='-L$libdir'
  9513. hardcode_shlibpath_var=no
  9514. ;;
  9515. *)
  9516. ld_shlibs=no
  9517. ;;
  9518. esac
  9519. if test x$host_vendor = xsni; then
  9520. case $host in
  9521. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9522. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9523. ;;
  9524. esac
  9525. fi
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9528. $as_echo "$ld_shlibs" >&6; }
  9529. test "$ld_shlibs" = no && can_build_shared=no
  9530. with_gnu_ld=$with_gnu_ld
  9531. #
  9532. # Do we need to explicitly link libc?
  9533. #
  9534. case "x$archive_cmds_need_lc" in
  9535. x|xyes)
  9536. # Assume -lc should be added
  9537. archive_cmds_need_lc=yes
  9538. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9539. case $archive_cmds in
  9540. *'~'*)
  9541. # FIXME: we may have to deal with multi-command sequences.
  9542. ;;
  9543. '$CC '*)
  9544. # Test whether the compiler implicitly links with -lc since on some
  9545. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9546. # to ld, don't add -lc before -lgcc.
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9548. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9549. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9550. $as_echo_n "(cached) " >&6
  9551. else
  9552. $RM conftest*
  9553. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9554. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9555. (eval $ac_compile) 2>&5
  9556. ac_status=$?
  9557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9558. test $ac_status = 0; } 2>conftest.err; then
  9559. soname=conftest
  9560. lib=conftest
  9561. libobjs=conftest.$ac_objext
  9562. deplibs=
  9563. wl=$lt_prog_compiler_wl
  9564. pic_flag=$lt_prog_compiler_pic
  9565. compiler_flags=-v
  9566. linker_flags=-v
  9567. verstring=
  9568. output_objdir=.
  9569. libname=conftest
  9570. lt_save_allow_undefined_flag=$allow_undefined_flag
  9571. allow_undefined_flag=
  9572. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9573. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9574. ac_status=$?
  9575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9576. test $ac_status = 0; }
  9577. then
  9578. lt_cv_archive_cmds_need_lc=no
  9579. else
  9580. lt_cv_archive_cmds_need_lc=yes
  9581. fi
  9582. allow_undefined_flag=$lt_save_allow_undefined_flag
  9583. else
  9584. cat conftest.err 1>&5
  9585. fi
  9586. $RM conftest*
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9589. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9590. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9591. ;;
  9592. esac
  9593. fi
  9594. ;;
  9595. esac
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9597. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9598. if test "$GCC" = yes; then
  9599. case $host_os in
  9600. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9601. *) lt_awk_arg="/^libraries:/" ;;
  9602. esac
  9603. case $host_os in
  9604. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9605. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9606. esac
  9607. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9608. case $lt_search_path_spec in
  9609. *\;*)
  9610. # if the path contains ";" then we assume it to be the separator
  9611. # otherwise default to the standard path separator (i.e. ":") - it is
  9612. # assumed that no part of a normal pathname contains ";" but that should
  9613. # okay in the real world where ";" in dirpaths is itself problematic.
  9614. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9615. ;;
  9616. *)
  9617. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9618. ;;
  9619. esac
  9620. # Ok, now we have the path, separated by spaces, we can step through it
  9621. # and add multilib dir if necessary.
  9622. lt_tmp_lt_search_path_spec=
  9623. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9624. for lt_sys_path in $lt_search_path_spec; do
  9625. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9626. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9627. else
  9628. test -d "$lt_sys_path" && \
  9629. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9630. fi
  9631. done
  9632. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9633. BEGIN {RS=" "; FS="/|\n";} {
  9634. lt_foo="";
  9635. lt_count=0;
  9636. for (lt_i = NF; lt_i > 0; lt_i--) {
  9637. if ($lt_i != "" && $lt_i != ".") {
  9638. if ($lt_i == "..") {
  9639. lt_count++;
  9640. } else {
  9641. if (lt_count == 0) {
  9642. lt_foo="/" $lt_i lt_foo;
  9643. } else {
  9644. lt_count--;
  9645. }
  9646. }
  9647. }
  9648. }
  9649. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9650. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9651. }'`
  9652. # AWK program above erroneously prepends '/' to C:/dos/paths
  9653. # for these hosts.
  9654. case $host_os in
  9655. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9656. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9657. esac
  9658. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9659. else
  9660. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9661. fi
  9662. library_names_spec=
  9663. libname_spec='lib$name'
  9664. soname_spec=
  9665. shrext_cmds=".so"
  9666. postinstall_cmds=
  9667. postuninstall_cmds=
  9668. finish_cmds=
  9669. finish_eval=
  9670. shlibpath_var=
  9671. shlibpath_overrides_runpath=unknown
  9672. version_type=none
  9673. dynamic_linker="$host_os ld.so"
  9674. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9675. need_lib_prefix=unknown
  9676. hardcode_into_libs=no
  9677. # when you set need_version to no, make sure it does not cause -set_version
  9678. # flags to be left without arguments
  9679. need_version=unknown
  9680. case $host_os in
  9681. aix3*)
  9682. version_type=linux
  9683. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9684. shlibpath_var=LIBPATH
  9685. # AIX 3 has no versioning support, so we append a major version to the name.
  9686. soname_spec='${libname}${release}${shared_ext}$major'
  9687. ;;
  9688. aix[4-9]*)
  9689. version_type=linux
  9690. need_lib_prefix=no
  9691. need_version=no
  9692. hardcode_into_libs=yes
  9693. if test "$host_cpu" = ia64; then
  9694. # AIX 5 supports IA64
  9695. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9696. shlibpath_var=LD_LIBRARY_PATH
  9697. else
  9698. # With GCC up to 2.95.x, collect2 would create an import file
  9699. # for dependence libraries. The import file would start with
  9700. # the line `#! .'. This would cause the generated library to
  9701. # depend on `.', always an invalid library. This was fixed in
  9702. # development snapshots of GCC prior to 3.0.
  9703. case $host_os in
  9704. aix4 | aix4.[01] | aix4.[01].*)
  9705. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9706. echo ' yes '
  9707. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9708. :
  9709. else
  9710. can_build_shared=no
  9711. fi
  9712. ;;
  9713. esac
  9714. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9715. # soname into executable. Probably we can add versioning support to
  9716. # collect2, so additional links can be useful in future.
  9717. if test "$aix_use_runtimelinking" = yes; then
  9718. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9719. # instead of lib<name>.a to let people know that these are not
  9720. # typical AIX shared libraries.
  9721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9722. else
  9723. # We preserve .a as extension for shared libraries through AIX4.2
  9724. # and later when we are not doing run time linking.
  9725. library_names_spec='${libname}${release}.a $libname.a'
  9726. soname_spec='${libname}${release}${shared_ext}$major'
  9727. fi
  9728. shlibpath_var=LIBPATH
  9729. fi
  9730. ;;
  9731. amigaos*)
  9732. case $host_cpu in
  9733. powerpc)
  9734. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9735. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9737. ;;
  9738. m68k)
  9739. library_names_spec='$libname.ixlibrary $libname.a'
  9740. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9741. 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'
  9742. ;;
  9743. esac
  9744. ;;
  9745. beos*)
  9746. library_names_spec='${libname}${shared_ext}'
  9747. dynamic_linker="$host_os ld.so"
  9748. shlibpath_var=LIBRARY_PATH
  9749. ;;
  9750. bsdi[45]*)
  9751. version_type=linux
  9752. need_version=no
  9753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9754. soname_spec='${libname}${release}${shared_ext}$major'
  9755. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9758. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9759. # the default ld.so.conf also contains /usr/contrib/lib and
  9760. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9761. # libtool to hard-code these into programs
  9762. ;;
  9763. cygwin* | mingw* | pw32* | cegcc*)
  9764. version_type=windows
  9765. shrext_cmds=".dll"
  9766. need_version=no
  9767. need_lib_prefix=no
  9768. case $GCC,$host_os in
  9769. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9770. library_names_spec='$libname.dll.a'
  9771. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9772. postinstall_cmds='base_file=`basename \${file}`~
  9773. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9774. dldir=$destdir/`dirname \$dlpath`~
  9775. test -d \$dldir || mkdir -p \$dldir~
  9776. $install_prog $dir/$dlname \$dldir/$dlname~
  9777. chmod a+x \$dldir/$dlname~
  9778. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9779. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9780. fi'
  9781. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9782. dlpath=$dir/\$dldll~
  9783. $RM \$dlpath'
  9784. shlibpath_overrides_runpath=yes
  9785. case $host_os in
  9786. cygwin*)
  9787. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9788. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9789. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9790. ;;
  9791. mingw* | cegcc*)
  9792. # MinGW DLLs use traditional 'lib' prefix
  9793. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9794. ;;
  9795. pw32*)
  9796. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9797. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9798. ;;
  9799. esac
  9800. ;;
  9801. *)
  9802. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9803. ;;
  9804. esac
  9805. dynamic_linker='Win32 ld.exe'
  9806. # FIXME: first we should search . and the directory the executable is in
  9807. shlibpath_var=PATH
  9808. ;;
  9809. darwin* | rhapsody*)
  9810. dynamic_linker="$host_os dyld"
  9811. version_type=darwin
  9812. need_lib_prefix=no
  9813. need_version=no
  9814. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9815. soname_spec='${libname}${release}${major}$shared_ext'
  9816. shlibpath_overrides_runpath=yes
  9817. shlibpath_var=DYLD_LIBRARY_PATH
  9818. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9819. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9820. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9821. ;;
  9822. dgux*)
  9823. version_type=linux
  9824. need_lib_prefix=no
  9825. need_version=no
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9827. soname_spec='${libname}${release}${shared_ext}$major'
  9828. shlibpath_var=LD_LIBRARY_PATH
  9829. ;;
  9830. freebsd* | dragonfly*)
  9831. # DragonFly does not have aout. When/if they implement a new
  9832. # versioning mechanism, adjust this.
  9833. if test -x /usr/bin/objformat; then
  9834. objformat=`/usr/bin/objformat`
  9835. else
  9836. case $host_os in
  9837. freebsd[23].*) objformat=aout ;;
  9838. *) objformat=elf ;;
  9839. esac
  9840. fi
  9841. version_type=freebsd-$objformat
  9842. case $version_type in
  9843. freebsd-elf*)
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9845. need_version=no
  9846. need_lib_prefix=no
  9847. ;;
  9848. freebsd-*)
  9849. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9850. need_version=yes
  9851. ;;
  9852. esac
  9853. shlibpath_var=LD_LIBRARY_PATH
  9854. case $host_os in
  9855. freebsd2.*)
  9856. shlibpath_overrides_runpath=yes
  9857. ;;
  9858. freebsd3.[01]* | freebsdelf3.[01]*)
  9859. shlibpath_overrides_runpath=yes
  9860. hardcode_into_libs=yes
  9861. ;;
  9862. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9863. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9864. shlibpath_overrides_runpath=no
  9865. hardcode_into_libs=yes
  9866. ;;
  9867. *) # from 4.6 on, and DragonFly
  9868. shlibpath_overrides_runpath=yes
  9869. hardcode_into_libs=yes
  9870. ;;
  9871. esac
  9872. ;;
  9873. haiku*)
  9874. version_type=linux
  9875. need_lib_prefix=no
  9876. need_version=no
  9877. dynamic_linker="$host_os runtime_loader"
  9878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9879. soname_spec='${libname}${release}${shared_ext}$major'
  9880. shlibpath_var=LIBRARY_PATH
  9881. shlibpath_overrides_runpath=yes
  9882. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9883. hardcode_into_libs=yes
  9884. ;;
  9885. hpux9* | hpux10* | hpux11*)
  9886. # Give a soname corresponding to the major version so that dld.sl refuses to
  9887. # link against other versions.
  9888. version_type=sunos
  9889. need_lib_prefix=no
  9890. need_version=no
  9891. case $host_cpu in
  9892. ia64*)
  9893. shrext_cmds='.so'
  9894. hardcode_into_libs=yes
  9895. dynamic_linker="$host_os dld.so"
  9896. shlibpath_var=LD_LIBRARY_PATH
  9897. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9899. soname_spec='${libname}${release}${shared_ext}$major'
  9900. if test "X$HPUX_IA64_MODE" = X32; then
  9901. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9902. else
  9903. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9904. fi
  9905. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9906. ;;
  9907. hppa*64*)
  9908. shrext_cmds='.sl'
  9909. hardcode_into_libs=yes
  9910. dynamic_linker="$host_os dld.sl"
  9911. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9912. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9914. soname_spec='${libname}${release}${shared_ext}$major'
  9915. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9916. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9917. ;;
  9918. *)
  9919. shrext_cmds='.sl'
  9920. dynamic_linker="$host_os dld.sl"
  9921. shlibpath_var=SHLIB_PATH
  9922. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9924. soname_spec='${libname}${release}${shared_ext}$major'
  9925. ;;
  9926. esac
  9927. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9928. postinstall_cmds='chmod 555 $lib'
  9929. # or fails outright, so override atomically:
  9930. install_override_mode=555
  9931. ;;
  9932. interix[3-9]*)
  9933. version_type=linux
  9934. need_lib_prefix=no
  9935. need_version=no
  9936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9937. soname_spec='${libname}${release}${shared_ext}$major'
  9938. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9939. shlibpath_var=LD_LIBRARY_PATH
  9940. shlibpath_overrides_runpath=no
  9941. hardcode_into_libs=yes
  9942. ;;
  9943. irix5* | irix6* | nonstopux*)
  9944. case $host_os in
  9945. nonstopux*) version_type=nonstopux ;;
  9946. *)
  9947. if test "$lt_cv_prog_gnu_ld" = yes; then
  9948. version_type=linux
  9949. else
  9950. version_type=irix
  9951. fi ;;
  9952. esac
  9953. need_lib_prefix=no
  9954. need_version=no
  9955. soname_spec='${libname}${release}${shared_ext}$major'
  9956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9957. case $host_os in
  9958. irix5* | nonstopux*)
  9959. libsuff= shlibsuff=
  9960. ;;
  9961. *)
  9962. case $LD in # libtool.m4 will add one of these switches to LD
  9963. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9964. libsuff= shlibsuff= libmagic=32-bit;;
  9965. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9966. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9967. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9968. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9969. *) libsuff= shlibsuff= libmagic=never-match;;
  9970. esac
  9971. ;;
  9972. esac
  9973. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9974. shlibpath_overrides_runpath=no
  9975. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9976. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9977. hardcode_into_libs=yes
  9978. ;;
  9979. # No shared lib support for Linux oldld, aout, or coff.
  9980. linux*oldld* | linux*aout* | linux*coff*)
  9981. dynamic_linker=no
  9982. ;;
  9983. # This must be Linux ELF.
  9984. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9985. version_type=linux
  9986. need_lib_prefix=no
  9987. need_version=no
  9988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9989. soname_spec='${libname}${release}${shared_ext}$major'
  9990. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9991. shlibpath_var=LD_LIBRARY_PATH
  9992. shlibpath_overrides_runpath=no
  9993. # Some binutils ld are patched to set DT_RUNPATH
  9994. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9995. $as_echo_n "(cached) " >&6
  9996. else
  9997. lt_cv_shlibpath_overrides_runpath=no
  9998. save_LDFLAGS=$LDFLAGS
  9999. save_libdir=$libdir
  10000. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10001. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10003. /* end confdefs.h. */
  10004. int
  10005. main ()
  10006. {
  10007. ;
  10008. return 0;
  10009. }
  10010. _ACEOF
  10011. if ac_fn_c_try_link "$LINENO"; then :
  10012. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10013. lt_cv_shlibpath_overrides_runpath=yes
  10014. fi
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. LDFLAGS=$save_LDFLAGS
  10019. libdir=$save_libdir
  10020. fi
  10021. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10022. # This implies no fast_install, which is unacceptable.
  10023. # Some rework will be needed to allow for fast_install
  10024. # before this can be enabled.
  10025. hardcode_into_libs=yes
  10026. # Append ld.so.conf contents to the search path
  10027. if test -f /etc/ld.so.conf; then
  10028. 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' ' '`
  10029. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10030. fi
  10031. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10032. # powerpc, because MkLinux only supported shared libraries with the
  10033. # GNU dynamic linker. Since this was broken with cross compilers,
  10034. # most powerpc-linux boxes support dynamic linking these days and
  10035. # people can always --disable-shared, the test was removed, and we
  10036. # assume the GNU/Linux dynamic linker is in use.
  10037. dynamic_linker='GNU/Linux ld.so'
  10038. ;;
  10039. netbsd*)
  10040. version_type=sunos
  10041. need_lib_prefix=no
  10042. need_version=no
  10043. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10045. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10046. dynamic_linker='NetBSD (a.out) ld.so'
  10047. else
  10048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10049. soname_spec='${libname}${release}${shared_ext}$major'
  10050. dynamic_linker='NetBSD ld.elf_so'
  10051. fi
  10052. shlibpath_var=LD_LIBRARY_PATH
  10053. shlibpath_overrides_runpath=yes
  10054. hardcode_into_libs=yes
  10055. ;;
  10056. newsos6)
  10057. version_type=linux
  10058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=yes
  10061. ;;
  10062. *nto* | *qnx*)
  10063. version_type=qnx
  10064. need_lib_prefix=no
  10065. need_version=no
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10067. soname_spec='${libname}${release}${shared_ext}$major'
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. shlibpath_overrides_runpath=no
  10070. hardcode_into_libs=yes
  10071. dynamic_linker='ldqnx.so'
  10072. ;;
  10073. openbsd*)
  10074. version_type=sunos
  10075. sys_lib_dlsearch_path_spec="/usr/lib"
  10076. need_lib_prefix=no
  10077. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10078. case $host_os in
  10079. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10080. *) need_version=no ;;
  10081. esac
  10082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10083. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10084. shlibpath_var=LD_LIBRARY_PATH
  10085. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10086. case $host_os in
  10087. openbsd2.[89] | openbsd2.[89].*)
  10088. shlibpath_overrides_runpath=no
  10089. ;;
  10090. *)
  10091. shlibpath_overrides_runpath=yes
  10092. ;;
  10093. esac
  10094. else
  10095. shlibpath_overrides_runpath=yes
  10096. fi
  10097. ;;
  10098. os2*)
  10099. libname_spec='$name'
  10100. shrext_cmds=".dll"
  10101. need_lib_prefix=no
  10102. library_names_spec='$libname${shared_ext} $libname.a'
  10103. dynamic_linker='OS/2 ld.exe'
  10104. shlibpath_var=LIBPATH
  10105. ;;
  10106. osf3* | osf4* | osf5*)
  10107. version_type=osf
  10108. need_lib_prefix=no
  10109. need_version=no
  10110. soname_spec='${libname}${release}${shared_ext}$major'
  10111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10112. shlibpath_var=LD_LIBRARY_PATH
  10113. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10114. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10115. ;;
  10116. rdos*)
  10117. dynamic_linker=no
  10118. ;;
  10119. solaris*)
  10120. version_type=linux
  10121. need_lib_prefix=no
  10122. need_version=no
  10123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10124. soname_spec='${libname}${release}${shared_ext}$major'
  10125. shlibpath_var=LD_LIBRARY_PATH
  10126. shlibpath_overrides_runpath=yes
  10127. hardcode_into_libs=yes
  10128. # ldd complains unless libraries are executable
  10129. postinstall_cmds='chmod +x $lib'
  10130. ;;
  10131. sunos4*)
  10132. version_type=sunos
  10133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10134. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10135. shlibpath_var=LD_LIBRARY_PATH
  10136. shlibpath_overrides_runpath=yes
  10137. if test "$with_gnu_ld" = yes; then
  10138. need_lib_prefix=no
  10139. fi
  10140. need_version=yes
  10141. ;;
  10142. sysv4 | sysv4.3*)
  10143. version_type=linux
  10144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10145. soname_spec='${libname}${release}${shared_ext}$major'
  10146. shlibpath_var=LD_LIBRARY_PATH
  10147. case $host_vendor in
  10148. sni)
  10149. shlibpath_overrides_runpath=no
  10150. need_lib_prefix=no
  10151. runpath_var=LD_RUN_PATH
  10152. ;;
  10153. siemens)
  10154. need_lib_prefix=no
  10155. ;;
  10156. motorola)
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. shlibpath_overrides_runpath=no
  10160. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10161. ;;
  10162. esac
  10163. ;;
  10164. sysv4*MP*)
  10165. if test -d /usr/nec ;then
  10166. version_type=linux
  10167. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10168. soname_spec='$libname${shared_ext}.$major'
  10169. shlibpath_var=LD_LIBRARY_PATH
  10170. fi
  10171. ;;
  10172. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10173. version_type=freebsd-elf
  10174. need_lib_prefix=no
  10175. need_version=no
  10176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10177. soname_spec='${libname}${release}${shared_ext}$major'
  10178. shlibpath_var=LD_LIBRARY_PATH
  10179. shlibpath_overrides_runpath=yes
  10180. hardcode_into_libs=yes
  10181. if test "$with_gnu_ld" = yes; then
  10182. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10183. else
  10184. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10185. case $host_os in
  10186. sco3.2v5*)
  10187. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10188. ;;
  10189. esac
  10190. fi
  10191. sys_lib_dlsearch_path_spec='/usr/lib'
  10192. ;;
  10193. tpf*)
  10194. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10195. version_type=linux
  10196. need_lib_prefix=no
  10197. need_version=no
  10198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10199. shlibpath_var=LD_LIBRARY_PATH
  10200. shlibpath_overrides_runpath=no
  10201. hardcode_into_libs=yes
  10202. ;;
  10203. uts4*)
  10204. version_type=linux
  10205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10206. soname_spec='${libname}${release}${shared_ext}$major'
  10207. shlibpath_var=LD_LIBRARY_PATH
  10208. ;;
  10209. *)
  10210. dynamic_linker=no
  10211. ;;
  10212. esac
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10214. $as_echo "$dynamic_linker" >&6; }
  10215. test "$dynamic_linker" = no && can_build_shared=no
  10216. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10217. if test "$GCC" = yes; then
  10218. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10219. fi
  10220. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10221. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10222. fi
  10223. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10224. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10225. fi
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10227. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10228. hardcode_action=
  10229. if test -n "$hardcode_libdir_flag_spec" ||
  10230. test -n "$runpath_var" ||
  10231. test "X$hardcode_automatic" = "Xyes" ; then
  10232. # We can hardcode non-existent directories.
  10233. if test "$hardcode_direct" != no &&
  10234. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10235. # have to relink, otherwise we might link with an installed library
  10236. # when we should be linking with a yet-to-be-installed one
  10237. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10238. test "$hardcode_minus_L" != no; then
  10239. # Linking always hardcodes the temporary library directory.
  10240. hardcode_action=relink
  10241. else
  10242. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10243. hardcode_action=immediate
  10244. fi
  10245. else
  10246. # We cannot hardcode anything, or else we can only hardcode existing
  10247. # directories.
  10248. hardcode_action=unsupported
  10249. fi
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10251. $as_echo "$hardcode_action" >&6; }
  10252. if test "$hardcode_action" = relink ||
  10253. test "$inherit_rpath" = yes; then
  10254. # Fast installation is not supported
  10255. enable_fast_install=no
  10256. elif test "$shlibpath_overrides_runpath" = yes ||
  10257. test "$enable_shared" = no; then
  10258. # Fast installation is not necessary
  10259. enable_fast_install=needless
  10260. fi
  10261. if test "x$enable_dlopen" != xyes; then
  10262. enable_dlopen=unknown
  10263. enable_dlopen_self=unknown
  10264. enable_dlopen_self_static=unknown
  10265. else
  10266. lt_cv_dlopen=no
  10267. lt_cv_dlopen_libs=
  10268. case $host_os in
  10269. beos*)
  10270. lt_cv_dlopen="load_add_on"
  10271. lt_cv_dlopen_libs=
  10272. lt_cv_dlopen_self=yes
  10273. ;;
  10274. mingw* | pw32* | cegcc*)
  10275. lt_cv_dlopen="LoadLibrary"
  10276. lt_cv_dlopen_libs=
  10277. ;;
  10278. cygwin*)
  10279. lt_cv_dlopen="dlopen"
  10280. lt_cv_dlopen_libs=
  10281. ;;
  10282. darwin*)
  10283. # if libdl is installed we need to link against it
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10285. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10286. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. ac_check_lib_save_LIBS=$LIBS
  10290. LIBS="-ldl $LIBS"
  10291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10292. /* end confdefs.h. */
  10293. /* Override any GCC internal prototype to avoid an error.
  10294. Use char because int might match the return type of a GCC
  10295. builtin and then its argument prototype would still apply. */
  10296. #ifdef __cplusplus
  10297. extern "C"
  10298. #endif
  10299. char dlopen ();
  10300. int
  10301. main ()
  10302. {
  10303. return dlopen ();
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_link "$LINENO"; then :
  10309. ac_cv_lib_dl_dlopen=yes
  10310. else
  10311. ac_cv_lib_dl_dlopen=no
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. LIBS=$ac_check_lib_save_LIBS
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10318. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10319. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10320. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10321. else
  10322. lt_cv_dlopen="dyld"
  10323. lt_cv_dlopen_libs=
  10324. lt_cv_dlopen_self=yes
  10325. fi
  10326. ;;
  10327. *)
  10328. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10329. if test "x$ac_cv_func_shl_load" = xyes; then :
  10330. lt_cv_dlopen="shl_load"
  10331. else
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10333. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10334. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10335. $as_echo_n "(cached) " >&6
  10336. else
  10337. ac_check_lib_save_LIBS=$LIBS
  10338. LIBS="-ldld $LIBS"
  10339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10340. /* end confdefs.h. */
  10341. /* Override any GCC internal prototype to avoid an error.
  10342. Use char because int might match the return type of a GCC
  10343. builtin and then its argument prototype would still apply. */
  10344. #ifdef __cplusplus
  10345. extern "C"
  10346. #endif
  10347. char shl_load ();
  10348. int
  10349. main ()
  10350. {
  10351. return shl_load ();
  10352. ;
  10353. return 0;
  10354. }
  10355. _ACEOF
  10356. if ac_fn_c_try_link "$LINENO"; then :
  10357. ac_cv_lib_dld_shl_load=yes
  10358. else
  10359. ac_cv_lib_dld_shl_load=no
  10360. fi
  10361. rm -f core conftest.err conftest.$ac_objext \
  10362. conftest$ac_exeext conftest.$ac_ext
  10363. LIBS=$ac_check_lib_save_LIBS
  10364. fi
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10366. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10367. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10368. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10369. else
  10370. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10371. if test "x$ac_cv_func_dlopen" = xyes; then :
  10372. lt_cv_dlopen="dlopen"
  10373. else
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10375. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10376. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. ac_check_lib_save_LIBS=$LIBS
  10380. LIBS="-ldl $LIBS"
  10381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10382. /* end confdefs.h. */
  10383. /* Override any GCC internal prototype to avoid an error.
  10384. Use char because int might match the return type of a GCC
  10385. builtin and then its argument prototype would still apply. */
  10386. #ifdef __cplusplus
  10387. extern "C"
  10388. #endif
  10389. char dlopen ();
  10390. int
  10391. main ()
  10392. {
  10393. return dlopen ();
  10394. ;
  10395. return 0;
  10396. }
  10397. _ACEOF
  10398. if ac_fn_c_try_link "$LINENO"; then :
  10399. ac_cv_lib_dl_dlopen=yes
  10400. else
  10401. ac_cv_lib_dl_dlopen=no
  10402. fi
  10403. rm -f core conftest.err conftest.$ac_objext \
  10404. conftest$ac_exeext conftest.$ac_ext
  10405. LIBS=$ac_check_lib_save_LIBS
  10406. fi
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10408. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10409. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10410. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10411. else
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10413. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10414. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10415. $as_echo_n "(cached) " >&6
  10416. else
  10417. ac_check_lib_save_LIBS=$LIBS
  10418. LIBS="-lsvld $LIBS"
  10419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10420. /* end confdefs.h. */
  10421. /* Override any GCC internal prototype to avoid an error.
  10422. Use char because int might match the return type of a GCC
  10423. builtin and then its argument prototype would still apply. */
  10424. #ifdef __cplusplus
  10425. extern "C"
  10426. #endif
  10427. char dlopen ();
  10428. int
  10429. main ()
  10430. {
  10431. return dlopen ();
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. if ac_fn_c_try_link "$LINENO"; then :
  10437. ac_cv_lib_svld_dlopen=yes
  10438. else
  10439. ac_cv_lib_svld_dlopen=no
  10440. fi
  10441. rm -f core conftest.err conftest.$ac_objext \
  10442. conftest$ac_exeext conftest.$ac_ext
  10443. LIBS=$ac_check_lib_save_LIBS
  10444. fi
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10446. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10447. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10448. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10449. else
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10451. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10452. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10453. $as_echo_n "(cached) " >&6
  10454. else
  10455. ac_check_lib_save_LIBS=$LIBS
  10456. LIBS="-ldld $LIBS"
  10457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10458. /* end confdefs.h. */
  10459. /* Override any GCC internal prototype to avoid an error.
  10460. Use char because int might match the return type of a GCC
  10461. builtin and then its argument prototype would still apply. */
  10462. #ifdef __cplusplus
  10463. extern "C"
  10464. #endif
  10465. char dld_link ();
  10466. int
  10467. main ()
  10468. {
  10469. return dld_link ();
  10470. ;
  10471. return 0;
  10472. }
  10473. _ACEOF
  10474. if ac_fn_c_try_link "$LINENO"; then :
  10475. ac_cv_lib_dld_dld_link=yes
  10476. else
  10477. ac_cv_lib_dld_dld_link=no
  10478. fi
  10479. rm -f core conftest.err conftest.$ac_objext \
  10480. conftest$ac_exeext conftest.$ac_ext
  10481. LIBS=$ac_check_lib_save_LIBS
  10482. fi
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10484. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10485. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10486. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10487. fi
  10488. fi
  10489. fi
  10490. fi
  10491. fi
  10492. fi
  10493. ;;
  10494. esac
  10495. if test "x$lt_cv_dlopen" != xno; then
  10496. enable_dlopen=yes
  10497. else
  10498. enable_dlopen=no
  10499. fi
  10500. case $lt_cv_dlopen in
  10501. dlopen)
  10502. save_CPPFLAGS="$CPPFLAGS"
  10503. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10504. save_LDFLAGS="$LDFLAGS"
  10505. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10506. save_LIBS="$LIBS"
  10507. LIBS="$lt_cv_dlopen_libs $LIBS"
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10509. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10510. if ${lt_cv_dlopen_self+:} false; then :
  10511. $as_echo_n "(cached) " >&6
  10512. else
  10513. if test "$cross_compiling" = yes; then :
  10514. lt_cv_dlopen_self=cross
  10515. else
  10516. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10517. lt_status=$lt_dlunknown
  10518. cat > conftest.$ac_ext <<_LT_EOF
  10519. #line 12149 "configure"
  10520. #include "confdefs.h"
  10521. #if HAVE_DLFCN_H
  10522. #include <dlfcn.h>
  10523. #endif
  10524. #include <stdio.h>
  10525. #ifdef RTLD_GLOBAL
  10526. # define LT_DLGLOBAL RTLD_GLOBAL
  10527. #else
  10528. # ifdef DL_GLOBAL
  10529. # define LT_DLGLOBAL DL_GLOBAL
  10530. # else
  10531. # define LT_DLGLOBAL 0
  10532. # endif
  10533. #endif
  10534. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10535. find out it does not work in some platform. */
  10536. #ifndef LT_DLLAZY_OR_NOW
  10537. # ifdef RTLD_LAZY
  10538. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10539. # else
  10540. # ifdef DL_LAZY
  10541. # define LT_DLLAZY_OR_NOW DL_LAZY
  10542. # else
  10543. # ifdef RTLD_NOW
  10544. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10545. # else
  10546. # ifdef DL_NOW
  10547. # define LT_DLLAZY_OR_NOW DL_NOW
  10548. # else
  10549. # define LT_DLLAZY_OR_NOW 0
  10550. # endif
  10551. # endif
  10552. # endif
  10553. # endif
  10554. #endif
  10555. /* When -fvisbility=hidden is used, assume the code has been annotated
  10556. correspondingly for the symbols needed. */
  10557. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10558. void fnord () __attribute__((visibility("default")));
  10559. #endif
  10560. void fnord () { int i=42; }
  10561. int main ()
  10562. {
  10563. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10564. int status = $lt_dlunknown;
  10565. if (self)
  10566. {
  10567. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10568. else
  10569. {
  10570. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10571. else puts (dlerror ());
  10572. }
  10573. /* dlclose (self); */
  10574. }
  10575. else
  10576. puts (dlerror ());
  10577. return status;
  10578. }
  10579. _LT_EOF
  10580. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10581. (eval $ac_link) 2>&5
  10582. ac_status=$?
  10583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10584. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10585. (./conftest; exit; ) >&5 2>/dev/null
  10586. lt_status=$?
  10587. case x$lt_status in
  10588. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10589. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10590. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10591. esac
  10592. else :
  10593. # compilation failed
  10594. lt_cv_dlopen_self=no
  10595. fi
  10596. fi
  10597. rm -fr conftest*
  10598. fi
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10600. $as_echo "$lt_cv_dlopen_self" >&6; }
  10601. if test "x$lt_cv_dlopen_self" = xyes; then
  10602. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10604. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10605. if ${lt_cv_dlopen_self_static+:} false; then :
  10606. $as_echo_n "(cached) " >&6
  10607. else
  10608. if test "$cross_compiling" = yes; then :
  10609. lt_cv_dlopen_self_static=cross
  10610. else
  10611. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10612. lt_status=$lt_dlunknown
  10613. cat > conftest.$ac_ext <<_LT_EOF
  10614. #line 12255 "configure"
  10615. #include "confdefs.h"
  10616. #if HAVE_DLFCN_H
  10617. #include <dlfcn.h>
  10618. #endif
  10619. #include <stdio.h>
  10620. #ifdef RTLD_GLOBAL
  10621. # define LT_DLGLOBAL RTLD_GLOBAL
  10622. #else
  10623. # ifdef DL_GLOBAL
  10624. # define LT_DLGLOBAL DL_GLOBAL
  10625. # else
  10626. # define LT_DLGLOBAL 0
  10627. # endif
  10628. #endif
  10629. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10630. find out it does not work in some platform. */
  10631. #ifndef LT_DLLAZY_OR_NOW
  10632. # ifdef RTLD_LAZY
  10633. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10634. # else
  10635. # ifdef DL_LAZY
  10636. # define LT_DLLAZY_OR_NOW DL_LAZY
  10637. # else
  10638. # ifdef RTLD_NOW
  10639. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10640. # else
  10641. # ifdef DL_NOW
  10642. # define LT_DLLAZY_OR_NOW DL_NOW
  10643. # else
  10644. # define LT_DLLAZY_OR_NOW 0
  10645. # endif
  10646. # endif
  10647. # endif
  10648. # endif
  10649. #endif
  10650. /* When -fvisbility=hidden is used, assume the code has been annotated
  10651. correspondingly for the symbols needed. */
  10652. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10653. void fnord () __attribute__((visibility("default")));
  10654. #endif
  10655. void fnord () { int i=42; }
  10656. int main ()
  10657. {
  10658. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10659. int status = $lt_dlunknown;
  10660. if (self)
  10661. {
  10662. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10663. else
  10664. {
  10665. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10666. else puts (dlerror ());
  10667. }
  10668. /* dlclose (self); */
  10669. }
  10670. else
  10671. puts (dlerror ());
  10672. return status;
  10673. }
  10674. _LT_EOF
  10675. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10676. (eval $ac_link) 2>&5
  10677. ac_status=$?
  10678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10679. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10680. (./conftest; exit; ) >&5 2>/dev/null
  10681. lt_status=$?
  10682. case x$lt_status in
  10683. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10684. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10685. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10686. esac
  10687. else :
  10688. # compilation failed
  10689. lt_cv_dlopen_self_static=no
  10690. fi
  10691. fi
  10692. rm -fr conftest*
  10693. fi
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10695. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10696. fi
  10697. CPPFLAGS="$save_CPPFLAGS"
  10698. LDFLAGS="$save_LDFLAGS"
  10699. LIBS="$save_LIBS"
  10700. ;;
  10701. esac
  10702. case $lt_cv_dlopen_self in
  10703. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10704. *) enable_dlopen_self=unknown ;;
  10705. esac
  10706. case $lt_cv_dlopen_self_static in
  10707. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10708. *) enable_dlopen_self_static=unknown ;;
  10709. esac
  10710. fi
  10711. striplib=
  10712. old_striplib=
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10714. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10715. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10716. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10717. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10719. $as_echo "yes" >&6; }
  10720. else
  10721. # FIXME - insert some real tests, host_os isn't really good enough
  10722. case $host_os in
  10723. darwin*)
  10724. if test -n "$STRIP" ; then
  10725. striplib="$STRIP -x"
  10726. old_striplib="$STRIP -S"
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10728. $as_echo "yes" >&6; }
  10729. else
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10731. $as_echo "no" >&6; }
  10732. fi
  10733. ;;
  10734. *)
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10736. $as_echo "no" >&6; }
  10737. ;;
  10738. esac
  10739. fi
  10740. # Report which library types will actually be built
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10742. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10744. $as_echo "$can_build_shared" >&6; }
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10746. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10747. test "$can_build_shared" = "no" && enable_shared=no
  10748. # On AIX, shared libraries and static libraries use the same namespace, and
  10749. # are all built from PIC.
  10750. case $host_os in
  10751. aix3*)
  10752. test "$enable_shared" = yes && enable_static=no
  10753. if test -n "$RANLIB"; then
  10754. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10755. postinstall_cmds='$RANLIB $lib'
  10756. fi
  10757. ;;
  10758. aix[4-9]*)
  10759. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10760. test "$enable_shared" = yes && enable_static=no
  10761. fi
  10762. ;;
  10763. esac
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10765. $as_echo "$enable_shared" >&6; }
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10767. $as_echo_n "checking whether to build static libraries... " >&6; }
  10768. # Make sure either enable_shared or enable_static is yes.
  10769. test "$enable_shared" = yes || enable_static=yes
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10771. $as_echo "$enable_static" >&6; }
  10772. fi
  10773. ac_ext=c
  10774. ac_cpp='$CPP $CPPFLAGS'
  10775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10778. CC="$lt_save_CC"
  10779. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10780. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10781. (test "X$CXX" != "Xg++"))) ; then
  10782. ac_ext=cpp
  10783. ac_cpp='$CXXCPP $CPPFLAGS'
  10784. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10785. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10786. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10788. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10789. if test -z "$CXXCPP"; then
  10790. if ${ac_cv_prog_CXXCPP+:} false; then :
  10791. $as_echo_n "(cached) " >&6
  10792. else
  10793. # Double quotes because CXXCPP needs to be expanded
  10794. for CXXCPP in "$CXX -E" "/lib/cpp"
  10795. do
  10796. ac_preproc_ok=false
  10797. for ac_cxx_preproc_warn_flag in '' yes
  10798. do
  10799. # Use a header file that comes with gcc, so configuring glibc
  10800. # with a fresh cross-compiler works.
  10801. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10802. # <limits.h> exists even on freestanding compilers.
  10803. # On the NeXT, cc -E runs the code through the compiler's parser,
  10804. # not just through cpp. "Syntax error" is here to catch this case.
  10805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10806. /* end confdefs.h. */
  10807. #ifdef __STDC__
  10808. # include <limits.h>
  10809. #else
  10810. # include <assert.h>
  10811. #endif
  10812. Syntax error
  10813. _ACEOF
  10814. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10815. else
  10816. # Broken: fails on valid input.
  10817. continue
  10818. fi
  10819. rm -f conftest.err conftest.i conftest.$ac_ext
  10820. # OK, works on sane cases. Now check whether nonexistent headers
  10821. # can be detected and how.
  10822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10823. /* end confdefs.h. */
  10824. #include <ac_nonexistent.h>
  10825. _ACEOF
  10826. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10827. # Broken: success on invalid input.
  10828. continue
  10829. else
  10830. # Passes both tests.
  10831. ac_preproc_ok=:
  10832. break
  10833. fi
  10834. rm -f conftest.err conftest.i conftest.$ac_ext
  10835. done
  10836. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10837. rm -f conftest.i conftest.err conftest.$ac_ext
  10838. if $ac_preproc_ok; then :
  10839. break
  10840. fi
  10841. done
  10842. ac_cv_prog_CXXCPP=$CXXCPP
  10843. fi
  10844. CXXCPP=$ac_cv_prog_CXXCPP
  10845. else
  10846. ac_cv_prog_CXXCPP=$CXXCPP
  10847. fi
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10849. $as_echo "$CXXCPP" >&6; }
  10850. ac_preproc_ok=false
  10851. for ac_cxx_preproc_warn_flag in '' yes
  10852. do
  10853. # Use a header file that comes with gcc, so configuring glibc
  10854. # with a fresh cross-compiler works.
  10855. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10856. # <limits.h> exists even on freestanding compilers.
  10857. # On the NeXT, cc -E runs the code through the compiler's parser,
  10858. # not just through cpp. "Syntax error" is here to catch this case.
  10859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10860. /* end confdefs.h. */
  10861. #ifdef __STDC__
  10862. # include <limits.h>
  10863. #else
  10864. # include <assert.h>
  10865. #endif
  10866. Syntax error
  10867. _ACEOF
  10868. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10869. else
  10870. # Broken: fails on valid input.
  10871. continue
  10872. fi
  10873. rm -f conftest.err conftest.i conftest.$ac_ext
  10874. # OK, works on sane cases. Now check whether nonexistent headers
  10875. # can be detected and how.
  10876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10877. /* end confdefs.h. */
  10878. #include <ac_nonexistent.h>
  10879. _ACEOF
  10880. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10881. # Broken: success on invalid input.
  10882. continue
  10883. else
  10884. # Passes both tests.
  10885. ac_preproc_ok=:
  10886. break
  10887. fi
  10888. rm -f conftest.err conftest.i conftest.$ac_ext
  10889. done
  10890. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10891. rm -f conftest.i conftest.err conftest.$ac_ext
  10892. if $ac_preproc_ok; then :
  10893. else
  10894. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10896. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10897. See \`config.log' for more details" "$LINENO" 5; }
  10898. fi
  10899. ac_ext=c
  10900. ac_cpp='$CPP $CPPFLAGS'
  10901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10904. else
  10905. _lt_caught_CXX_error=yes
  10906. fi
  10907. ac_ext=cpp
  10908. ac_cpp='$CXXCPP $CPPFLAGS'
  10909. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10910. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10911. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10912. archive_cmds_need_lc_CXX=no
  10913. allow_undefined_flag_CXX=
  10914. always_export_symbols_CXX=no
  10915. archive_expsym_cmds_CXX=
  10916. compiler_needs_object_CXX=no
  10917. export_dynamic_flag_spec_CXX=
  10918. hardcode_direct_CXX=no
  10919. hardcode_direct_absolute_CXX=no
  10920. hardcode_libdir_flag_spec_CXX=
  10921. hardcode_libdir_flag_spec_ld_CXX=
  10922. hardcode_libdir_separator_CXX=
  10923. hardcode_minus_L_CXX=no
  10924. hardcode_shlibpath_var_CXX=unsupported
  10925. hardcode_automatic_CXX=no
  10926. inherit_rpath_CXX=no
  10927. module_cmds_CXX=
  10928. module_expsym_cmds_CXX=
  10929. link_all_deplibs_CXX=unknown
  10930. old_archive_cmds_CXX=$old_archive_cmds
  10931. reload_flag_CXX=$reload_flag
  10932. reload_cmds_CXX=$reload_cmds
  10933. no_undefined_flag_CXX=
  10934. whole_archive_flag_spec_CXX=
  10935. enable_shared_with_static_runtimes_CXX=no
  10936. # Source file extension for C++ test sources.
  10937. ac_ext=cpp
  10938. # Object file extension for compiled C++ test sources.
  10939. objext=o
  10940. objext_CXX=$objext
  10941. # No sense in running all these tests if we already determined that
  10942. # the CXX compiler isn't working. Some variables (like enable_shared)
  10943. # are currently assumed to apply to all compilers on this platform,
  10944. # and will be corrupted by setting them based on a non-working compiler.
  10945. if test "$_lt_caught_CXX_error" != yes; then
  10946. # Code to be used in simple compile tests
  10947. lt_simple_compile_test_code="int some_variable = 0;"
  10948. # Code to be used in simple link tests
  10949. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10950. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10951. # If no C compiler was specified, use CC.
  10952. LTCC=${LTCC-"$CC"}
  10953. # If no C compiler flags were specified, use CFLAGS.
  10954. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10955. # Allow CC to be a program name with arguments.
  10956. compiler=$CC
  10957. # save warnings/boilerplate of simple test code
  10958. ac_outfile=conftest.$ac_objext
  10959. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10960. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10961. _lt_compiler_boilerplate=`cat conftest.err`
  10962. $RM conftest*
  10963. ac_outfile=conftest.$ac_objext
  10964. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10965. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10966. _lt_linker_boilerplate=`cat conftest.err`
  10967. $RM -r conftest*
  10968. # Allow CC to be a program name with arguments.
  10969. lt_save_CC=$CC
  10970. lt_save_LD=$LD
  10971. lt_save_GCC=$GCC
  10972. GCC=$GXX
  10973. lt_save_with_gnu_ld=$with_gnu_ld
  10974. lt_save_path_LD=$lt_cv_path_LD
  10975. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10976. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10977. else
  10978. $as_unset lt_cv_prog_gnu_ld
  10979. fi
  10980. if test -n "${lt_cv_path_LDCXX+set}"; then
  10981. lt_cv_path_LD=$lt_cv_path_LDCXX
  10982. else
  10983. $as_unset lt_cv_path_LD
  10984. fi
  10985. test -z "${LDCXX+set}" || LD=$LDCXX
  10986. CC=${CXX-"c++"}
  10987. compiler=$CC
  10988. compiler_CXX=$CC
  10989. for cc_temp in $compiler""; do
  10990. case $cc_temp in
  10991. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10992. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10993. \-*) ;;
  10994. *) break;;
  10995. esac
  10996. done
  10997. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10998. if test -n "$compiler"; then
  10999. # We don't want -fno-exception when compiling C++ code, so set the
  11000. # no_builtin_flag separately
  11001. if test "$GXX" = yes; then
  11002. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11003. else
  11004. lt_prog_compiler_no_builtin_flag_CXX=
  11005. fi
  11006. if test "$GXX" = yes; then
  11007. # Set up default GNU C++ configuration
  11008. # Check whether --with-gnu-ld was given.
  11009. if test "${with_gnu_ld+set}" = set; then :
  11010. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11011. else
  11012. with_gnu_ld=no
  11013. fi
  11014. ac_prog=ld
  11015. if test "$GCC" = yes; then
  11016. # Check if gcc -print-prog-name=ld gives a path.
  11017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11018. $as_echo_n "checking for ld used by $CC... " >&6; }
  11019. case $host in
  11020. *-*-mingw*)
  11021. # gcc leaves a trailing carriage return which upsets mingw
  11022. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11023. *)
  11024. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11025. esac
  11026. case $ac_prog in
  11027. # Accept absolute paths.
  11028. [\\/]* | ?:[\\/]*)
  11029. re_direlt='/[^/][^/]*/\.\./'
  11030. # Canonicalize the pathname of ld
  11031. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11032. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11033. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11034. done
  11035. test -z "$LD" && LD="$ac_prog"
  11036. ;;
  11037. "")
  11038. # If it fails, then pretend we aren't using GCC.
  11039. ac_prog=ld
  11040. ;;
  11041. *)
  11042. # If it is relative, then search for the first ld in PATH.
  11043. with_gnu_ld=unknown
  11044. ;;
  11045. esac
  11046. elif test "$with_gnu_ld" = yes; then
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11048. $as_echo_n "checking for GNU ld... " >&6; }
  11049. else
  11050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11051. $as_echo_n "checking for non-GNU ld... " >&6; }
  11052. fi
  11053. if ${lt_cv_path_LD+:} false; then :
  11054. $as_echo_n "(cached) " >&6
  11055. else
  11056. if test -z "$LD"; then
  11057. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11058. for ac_dir in $PATH; do
  11059. IFS="$lt_save_ifs"
  11060. test -z "$ac_dir" && ac_dir=.
  11061. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11062. lt_cv_path_LD="$ac_dir/$ac_prog"
  11063. # Check to see if the program is GNU ld. I'd rather use --version,
  11064. # but apparently some variants of GNU ld only accept -v.
  11065. # Break only if it was the GNU/non-GNU ld that we prefer.
  11066. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11067. *GNU* | *'with BFD'*)
  11068. test "$with_gnu_ld" != no && break
  11069. ;;
  11070. *)
  11071. test "$with_gnu_ld" != yes && break
  11072. ;;
  11073. esac
  11074. fi
  11075. done
  11076. IFS="$lt_save_ifs"
  11077. else
  11078. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11079. fi
  11080. fi
  11081. LD="$lt_cv_path_LD"
  11082. if test -n "$LD"; then
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11084. $as_echo "$LD" >&6; }
  11085. else
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11087. $as_echo "no" >&6; }
  11088. fi
  11089. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11091. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11092. if ${lt_cv_prog_gnu_ld+:} false; then :
  11093. $as_echo_n "(cached) " >&6
  11094. else
  11095. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11096. case `$LD -v 2>&1 </dev/null` in
  11097. *GNU* | *'with BFD'*)
  11098. lt_cv_prog_gnu_ld=yes
  11099. ;;
  11100. *)
  11101. lt_cv_prog_gnu_ld=no
  11102. ;;
  11103. esac
  11104. fi
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11106. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11107. with_gnu_ld=$lt_cv_prog_gnu_ld
  11108. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11109. # archiving commands below assume that GNU ld is being used.
  11110. if test "$with_gnu_ld" = yes; then
  11111. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11112. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11113. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11114. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11115. # If archive_cmds runs LD, not CC, wlarc should be empty
  11116. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11117. # investigate it a little bit more. (MM)
  11118. wlarc='${wl}'
  11119. # ancient GNU ld didn't support --whole-archive et. al.
  11120. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11121. $GREP 'no-whole-archive' > /dev/null; then
  11122. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11123. else
  11124. whole_archive_flag_spec_CXX=
  11125. fi
  11126. else
  11127. with_gnu_ld=no
  11128. wlarc=
  11129. # A generic and very simple default shared library creation
  11130. # command for GNU C++ for the case where it uses the native
  11131. # linker, instead of GNU ld. If possible, this setting should
  11132. # overridden to take advantage of the native linker features on
  11133. # the platform it is being used on.
  11134. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11135. fi
  11136. # Commands to make compiler produce verbose output that lists
  11137. # what "hidden" libraries, object files and flags are used when
  11138. # linking a shared library.
  11139. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11140. else
  11141. GXX=no
  11142. with_gnu_ld=no
  11143. wlarc=
  11144. fi
  11145. # PORTME: fill in a description of your system's C++ link characteristics
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11147. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11148. ld_shlibs_CXX=yes
  11149. case $host_os in
  11150. aix3*)
  11151. # FIXME: insert proper C++ library support
  11152. ld_shlibs_CXX=no
  11153. ;;
  11154. aix[4-9]*)
  11155. if test "$host_cpu" = ia64; then
  11156. # On IA64, the linker does run time linking by default, so we don't
  11157. # have to do anything special.
  11158. aix_use_runtimelinking=no
  11159. exp_sym_flag='-Bexport'
  11160. no_entry_flag=""
  11161. else
  11162. aix_use_runtimelinking=no
  11163. # Test if we are trying to use run time linking or normal
  11164. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11165. # need to do runtime linking.
  11166. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11167. for ld_flag in $LDFLAGS; do
  11168. case $ld_flag in
  11169. *-brtl*)
  11170. aix_use_runtimelinking=yes
  11171. break
  11172. ;;
  11173. esac
  11174. done
  11175. ;;
  11176. esac
  11177. exp_sym_flag='-bexport'
  11178. no_entry_flag='-bnoentry'
  11179. fi
  11180. # When large executables or shared objects are built, AIX ld can
  11181. # have problems creating the table of contents. If linking a library
  11182. # or program results in "error TOC overflow" add -mminimal-toc to
  11183. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11184. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11185. archive_cmds_CXX=''
  11186. hardcode_direct_CXX=yes
  11187. hardcode_direct_absolute_CXX=yes
  11188. hardcode_libdir_separator_CXX=':'
  11189. link_all_deplibs_CXX=yes
  11190. file_list_spec_CXX='${wl}-f,'
  11191. if test "$GXX" = yes; then
  11192. case $host_os in aix4.[012]|aix4.[012].*)
  11193. # We only want to do this on AIX 4.2 and lower, the check
  11194. # below for broken collect2 doesn't work under 4.3+
  11195. collect2name=`${CC} -print-prog-name=collect2`
  11196. if test -f "$collect2name" &&
  11197. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11198. then
  11199. # We have reworked collect2
  11200. :
  11201. else
  11202. # We have old collect2
  11203. hardcode_direct_CXX=unsupported
  11204. # It fails to find uninstalled libraries when the uninstalled
  11205. # path is not listed in the libpath. Setting hardcode_minus_L
  11206. # to unsupported forces relinking
  11207. hardcode_minus_L_CXX=yes
  11208. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11209. hardcode_libdir_separator_CXX=
  11210. fi
  11211. esac
  11212. shared_flag='-shared'
  11213. if test "$aix_use_runtimelinking" = yes; then
  11214. shared_flag="$shared_flag "'${wl}-G'
  11215. fi
  11216. else
  11217. # not using gcc
  11218. if test "$host_cpu" = ia64; then
  11219. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11220. # chokes on -Wl,-G. The following line is correct:
  11221. shared_flag='-G'
  11222. else
  11223. if test "$aix_use_runtimelinking" = yes; then
  11224. shared_flag='${wl}-G'
  11225. else
  11226. shared_flag='${wl}-bM:SRE'
  11227. fi
  11228. fi
  11229. fi
  11230. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11231. # It seems that -bexpall does not export symbols beginning with
  11232. # underscore (_), so it is better to generate a list of symbols to
  11233. # export.
  11234. always_export_symbols_CXX=yes
  11235. if test "$aix_use_runtimelinking" = yes; then
  11236. # Warning - without using the other runtime loading flags (-brtl),
  11237. # -berok will link without error, but may produce a broken library.
  11238. allow_undefined_flag_CXX='-berok'
  11239. # Determine the default libpath from the value encoded in an empty
  11240. # executable.
  11241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11242. /* end confdefs.h. */
  11243. int
  11244. main ()
  11245. {
  11246. ;
  11247. return 0;
  11248. }
  11249. _ACEOF
  11250. if ac_fn_cxx_try_link "$LINENO"; then :
  11251. lt_aix_libpath_sed='
  11252. /Import File Strings/,/^$/ {
  11253. /^0/ {
  11254. s/^0 *\(.*\)$/\1/
  11255. p
  11256. }
  11257. }'
  11258. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11259. # Check for a 64-bit object if we didn't find anything.
  11260. if test -z "$aix_libpath"; then
  11261. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11262. fi
  11263. fi
  11264. rm -f core conftest.err conftest.$ac_objext \
  11265. conftest$ac_exeext conftest.$ac_ext
  11266. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11267. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11268. 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"
  11269. else
  11270. if test "$host_cpu" = ia64; then
  11271. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11272. allow_undefined_flag_CXX="-z nodefs"
  11273. 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"
  11274. else
  11275. # Determine the default libpath from the value encoded in an
  11276. # empty executable.
  11277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11278. /* end confdefs.h. */
  11279. int
  11280. main ()
  11281. {
  11282. ;
  11283. return 0;
  11284. }
  11285. _ACEOF
  11286. if ac_fn_cxx_try_link "$LINENO"; then :
  11287. lt_aix_libpath_sed='
  11288. /Import File Strings/,/^$/ {
  11289. /^0/ {
  11290. s/^0 *\(.*\)$/\1/
  11291. p
  11292. }
  11293. }'
  11294. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11295. # Check for a 64-bit object if we didn't find anything.
  11296. if test -z "$aix_libpath"; then
  11297. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11298. fi
  11299. fi
  11300. rm -f core conftest.err conftest.$ac_objext \
  11301. conftest$ac_exeext conftest.$ac_ext
  11302. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11303. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11304. # Warning - without using the other run time loading flags,
  11305. # -berok will link without error, but may produce a broken library.
  11306. no_undefined_flag_CXX=' ${wl}-bernotok'
  11307. allow_undefined_flag_CXX=' ${wl}-berok'
  11308. if test "$with_gnu_ld" = yes; then
  11309. # We only use this code for GNU lds that support --whole-archive.
  11310. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11311. else
  11312. # Exported symbols can be pulled into shared objects from archives
  11313. whole_archive_flag_spec_CXX='$convenience'
  11314. fi
  11315. archive_cmds_need_lc_CXX=yes
  11316. # This is similar to how AIX traditionally builds its shared
  11317. # libraries.
  11318. 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'
  11319. fi
  11320. fi
  11321. ;;
  11322. beos*)
  11323. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11324. allow_undefined_flag_CXX=unsupported
  11325. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11326. # support --undefined. This deserves some investigation. FIXME
  11327. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11328. else
  11329. ld_shlibs_CXX=no
  11330. fi
  11331. ;;
  11332. chorus*)
  11333. case $cc_basename in
  11334. *)
  11335. # FIXME: insert proper C++ library support
  11336. ld_shlibs_CXX=no
  11337. ;;
  11338. esac
  11339. ;;
  11340. cygwin* | mingw* | pw32* | cegcc*)
  11341. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11342. # as there is no search path for DLLs.
  11343. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11344. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11345. allow_undefined_flag_CXX=unsupported
  11346. always_export_symbols_CXX=no
  11347. enable_shared_with_static_runtimes_CXX=yes
  11348. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11349. 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'
  11350. # If the export-symbols file already is a .def file (1st line
  11351. # is EXPORTS), use it as is; otherwise, prepend...
  11352. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11353. cp $export_symbols $output_objdir/$soname.def;
  11354. else
  11355. echo EXPORTS > $output_objdir/$soname.def;
  11356. cat $export_symbols >> $output_objdir/$soname.def;
  11357. fi~
  11358. $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'
  11359. else
  11360. ld_shlibs_CXX=no
  11361. fi
  11362. ;;
  11363. darwin* | rhapsody*)
  11364. archive_cmds_need_lc_CXX=no
  11365. hardcode_direct_CXX=no
  11366. hardcode_automatic_CXX=yes
  11367. hardcode_shlibpath_var_CXX=unsupported
  11368. if test "$lt_cv_ld_force_load" = "yes"; then
  11369. 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\"`'
  11370. else
  11371. whole_archive_flag_spec_CXX=''
  11372. fi
  11373. link_all_deplibs_CXX=yes
  11374. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11375. case $cc_basename in
  11376. ifort*) _lt_dar_can_shared=yes ;;
  11377. *) _lt_dar_can_shared=$GCC ;;
  11378. esac
  11379. if test "$_lt_dar_can_shared" = "yes"; then
  11380. output_verbose_link_cmd=func_echo_all
  11381. 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}"
  11382. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11383. 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}"
  11384. 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}"
  11385. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11386. 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}"
  11387. 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}"
  11388. fi
  11389. else
  11390. ld_shlibs_CXX=no
  11391. fi
  11392. ;;
  11393. dgux*)
  11394. case $cc_basename in
  11395. ec++*)
  11396. # FIXME: insert proper C++ library support
  11397. ld_shlibs_CXX=no
  11398. ;;
  11399. ghcx*)
  11400. # Green Hills C++ Compiler
  11401. # FIXME: insert proper C++ library support
  11402. ld_shlibs_CXX=no
  11403. ;;
  11404. *)
  11405. # FIXME: insert proper C++ library support
  11406. ld_shlibs_CXX=no
  11407. ;;
  11408. esac
  11409. ;;
  11410. freebsd2.*)
  11411. # C++ shared libraries reported to be fairly broken before
  11412. # switch to ELF
  11413. ld_shlibs_CXX=no
  11414. ;;
  11415. freebsd-elf*)
  11416. archive_cmds_need_lc_CXX=no
  11417. ;;
  11418. freebsd* | dragonfly*)
  11419. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11420. # conventions
  11421. ld_shlibs_CXX=yes
  11422. ;;
  11423. gnu*)
  11424. ;;
  11425. haiku*)
  11426. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11427. link_all_deplibs_CXX=yes
  11428. ;;
  11429. hpux9*)
  11430. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11431. hardcode_libdir_separator_CXX=:
  11432. export_dynamic_flag_spec_CXX='${wl}-E'
  11433. hardcode_direct_CXX=yes
  11434. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11435. # but as the default
  11436. # location of the library.
  11437. case $cc_basename in
  11438. CC*)
  11439. # FIXME: insert proper C++ library support
  11440. ld_shlibs_CXX=no
  11441. ;;
  11442. aCC*)
  11443. 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'
  11444. # Commands to make compiler produce verbose output that lists
  11445. # what "hidden" libraries, object files and flags are used when
  11446. # linking a shared library.
  11447. #
  11448. # There doesn't appear to be a way to prevent this compiler from
  11449. # explicitly linking system object files so we need to strip them
  11450. # from the output so that they don't get included in the library
  11451. # dependencies.
  11452. 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"'
  11453. ;;
  11454. *)
  11455. if test "$GXX" = yes; then
  11456. 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'
  11457. else
  11458. # FIXME: insert proper C++ library support
  11459. ld_shlibs_CXX=no
  11460. fi
  11461. ;;
  11462. esac
  11463. ;;
  11464. hpux10*|hpux11*)
  11465. if test $with_gnu_ld = no; then
  11466. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11467. hardcode_libdir_separator_CXX=:
  11468. case $host_cpu in
  11469. hppa*64*|ia64*)
  11470. ;;
  11471. *)
  11472. export_dynamic_flag_spec_CXX='${wl}-E'
  11473. ;;
  11474. esac
  11475. fi
  11476. case $host_cpu in
  11477. hppa*64*|ia64*)
  11478. hardcode_direct_CXX=no
  11479. hardcode_shlibpath_var_CXX=no
  11480. ;;
  11481. *)
  11482. hardcode_direct_CXX=yes
  11483. hardcode_direct_absolute_CXX=yes
  11484. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11485. # but as the default
  11486. # location of the library.
  11487. ;;
  11488. esac
  11489. case $cc_basename in
  11490. CC*)
  11491. # FIXME: insert proper C++ library support
  11492. ld_shlibs_CXX=no
  11493. ;;
  11494. aCC*)
  11495. case $host_cpu in
  11496. hppa*64*)
  11497. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11498. ;;
  11499. ia64*)
  11500. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11501. ;;
  11502. *)
  11503. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11504. ;;
  11505. esac
  11506. # Commands to make compiler produce verbose output that lists
  11507. # what "hidden" libraries, object files and flags are used when
  11508. # linking a shared library.
  11509. #
  11510. # There doesn't appear to be a way to prevent this compiler from
  11511. # explicitly linking system object files so we need to strip them
  11512. # from the output so that they don't get included in the library
  11513. # dependencies.
  11514. 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"'
  11515. ;;
  11516. *)
  11517. if test "$GXX" = yes; then
  11518. if test $with_gnu_ld = no; then
  11519. case $host_cpu in
  11520. hppa*64*)
  11521. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11522. ;;
  11523. ia64*)
  11524. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11525. ;;
  11526. *)
  11527. 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'
  11528. ;;
  11529. esac
  11530. fi
  11531. else
  11532. # FIXME: insert proper C++ library support
  11533. ld_shlibs_CXX=no
  11534. fi
  11535. ;;
  11536. esac
  11537. ;;
  11538. interix[3-9]*)
  11539. hardcode_direct_CXX=no
  11540. hardcode_shlibpath_var_CXX=no
  11541. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11542. export_dynamic_flag_spec_CXX='${wl}-E'
  11543. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11544. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11545. # default) and relocated if they conflict, which is a slow very memory
  11546. # consuming and fragmenting process. To avoid this, we pick a random,
  11547. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11548. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11549. 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'
  11550. 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'
  11551. ;;
  11552. irix5* | irix6*)
  11553. case $cc_basename in
  11554. CC*)
  11555. # SGI C++
  11556. 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'
  11557. # Archives containing C++ object files must be created using
  11558. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11559. # necessary to make sure instantiated templates are included
  11560. # in the archive.
  11561. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11562. ;;
  11563. *)
  11564. if test "$GXX" = yes; then
  11565. if test "$with_gnu_ld" = no; then
  11566. 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'
  11567. else
  11568. 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'
  11569. fi
  11570. fi
  11571. link_all_deplibs_CXX=yes
  11572. ;;
  11573. esac
  11574. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11575. hardcode_libdir_separator_CXX=:
  11576. inherit_rpath_CXX=yes
  11577. ;;
  11578. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11579. case $cc_basename in
  11580. KCC*)
  11581. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11582. # KCC will only create a shared library if the output file
  11583. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11584. # to its proper name (with version) after linking.
  11585. 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'
  11586. 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'
  11587. # Commands to make compiler produce verbose output that lists
  11588. # what "hidden" libraries, object files and flags are used when
  11589. # linking a shared library.
  11590. #
  11591. # There doesn't appear to be a way to prevent this compiler from
  11592. # explicitly linking system object files so we need to strip them
  11593. # from the output so that they don't get included in the library
  11594. # dependencies.
  11595. 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"'
  11596. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11597. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11598. # Archives containing C++ object files must be created using
  11599. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11600. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11601. ;;
  11602. icpc* | ecpc* )
  11603. # Intel C++
  11604. with_gnu_ld=yes
  11605. # version 8.0 and above of icpc choke on multiply defined symbols
  11606. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11607. # earlier do not add the objects themselves.
  11608. case `$CC -V 2>&1` in
  11609. *"Version 7."*)
  11610. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11611. 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'
  11612. ;;
  11613. *) # Version 8.0 or newer
  11614. tmp_idyn=
  11615. case $host_cpu in
  11616. ia64*) tmp_idyn=' -i_dynamic';;
  11617. esac
  11618. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11619. 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'
  11620. ;;
  11621. esac
  11622. archive_cmds_need_lc_CXX=no
  11623. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11624. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11625. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11626. ;;
  11627. pgCC* | pgcpp*)
  11628. # Portland Group C++ compiler
  11629. case `$CC -V` in
  11630. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11631. prelink_cmds_CXX='tpldir=Template.dir~
  11632. rm -rf $tpldir~
  11633. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11634. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11635. old_archive_cmds_CXX='tpldir=Template.dir~
  11636. rm -rf $tpldir~
  11637. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11638. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11639. $RANLIB $oldlib'
  11640. archive_cmds_CXX='tpldir=Template.dir~
  11641. rm -rf $tpldir~
  11642. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11643. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11644. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11645. rm -rf $tpldir~
  11646. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11647. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11648. ;;
  11649. *) # Version 6 and above use weak symbols
  11650. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11651. 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'
  11652. ;;
  11653. esac
  11654. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11655. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11656. 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'
  11657. ;;
  11658. cxx*)
  11659. # Compaq C++
  11660. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11661. 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'
  11662. runpath_var=LD_RUN_PATH
  11663. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11664. hardcode_libdir_separator_CXX=:
  11665. # Commands to make compiler produce verbose output that lists
  11666. # what "hidden" libraries, object files and flags are used when
  11667. # linking a shared library.
  11668. #
  11669. # There doesn't appear to be a way to prevent this compiler from
  11670. # explicitly linking system object files so we need to strip them
  11671. # from the output so that they don't get included in the library
  11672. # dependencies.
  11673. 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'
  11674. ;;
  11675. xl* | mpixl* | bgxl*)
  11676. # IBM XL 8.0 on PPC, with GNU ld
  11677. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11678. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11679. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11680. if test "x$supports_anon_versioning" = xyes; then
  11681. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11682. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11683. echo "local: *; };" >> $output_objdir/$libname.ver~
  11684. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11685. fi
  11686. ;;
  11687. *)
  11688. case `$CC -V 2>&1 | sed 5q` in
  11689. *Sun\ C*)
  11690. # Sun C++ 5.9
  11691. no_undefined_flag_CXX=' -zdefs'
  11692. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11693. 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'
  11694. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11695. 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'
  11696. compiler_needs_object_CXX=yes
  11697. # Not sure whether something based on
  11698. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11699. # would be better.
  11700. output_verbose_link_cmd='func_echo_all'
  11701. # Archives containing C++ object files must be created using
  11702. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11703. # necessary to make sure instantiated templates are included
  11704. # in the archive.
  11705. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11706. ;;
  11707. esac
  11708. ;;
  11709. esac
  11710. ;;
  11711. lynxos*)
  11712. # FIXME: insert proper C++ library support
  11713. ld_shlibs_CXX=no
  11714. ;;
  11715. m88k*)
  11716. # FIXME: insert proper C++ library support
  11717. ld_shlibs_CXX=no
  11718. ;;
  11719. mvs*)
  11720. case $cc_basename in
  11721. cxx*)
  11722. # FIXME: insert proper C++ library support
  11723. ld_shlibs_CXX=no
  11724. ;;
  11725. *)
  11726. # FIXME: insert proper C++ library support
  11727. ld_shlibs_CXX=no
  11728. ;;
  11729. esac
  11730. ;;
  11731. netbsd*)
  11732. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11733. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11734. wlarc=
  11735. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11736. hardcode_direct_CXX=yes
  11737. hardcode_shlibpath_var_CXX=no
  11738. fi
  11739. # Workaround some broken pre-1.5 toolchains
  11740. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11741. ;;
  11742. *nto* | *qnx*)
  11743. ld_shlibs_CXX=yes
  11744. ;;
  11745. openbsd2*)
  11746. # C++ shared libraries are fairly broken
  11747. ld_shlibs_CXX=no
  11748. ;;
  11749. openbsd*)
  11750. if test -f /usr/libexec/ld.so; then
  11751. hardcode_direct_CXX=yes
  11752. hardcode_shlibpath_var_CXX=no
  11753. hardcode_direct_absolute_CXX=yes
  11754. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11755. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11756. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11757. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11758. export_dynamic_flag_spec_CXX='${wl}-E'
  11759. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11760. fi
  11761. output_verbose_link_cmd=func_echo_all
  11762. else
  11763. ld_shlibs_CXX=no
  11764. fi
  11765. ;;
  11766. osf3* | osf4* | osf5*)
  11767. case $cc_basename in
  11768. KCC*)
  11769. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11770. # KCC will only create a shared library if the output file
  11771. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11772. # to its proper name (with version) after linking.
  11773. 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'
  11774. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11775. hardcode_libdir_separator_CXX=:
  11776. # Archives containing C++ object files must be created using
  11777. # the KAI C++ compiler.
  11778. case $host in
  11779. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11780. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11781. esac
  11782. ;;
  11783. RCC*)
  11784. # Rational C++ 2.4.1
  11785. # FIXME: insert proper C++ library support
  11786. ld_shlibs_CXX=no
  11787. ;;
  11788. cxx*)
  11789. case $host in
  11790. osf3*)
  11791. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11792. 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'
  11793. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11794. ;;
  11795. *)
  11796. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11797. 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'
  11798. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11799. echo "-hidden">> $lib.exp~
  11800. $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~
  11801. $RM $lib.exp'
  11802. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11803. ;;
  11804. esac
  11805. hardcode_libdir_separator_CXX=:
  11806. # Commands to make compiler produce verbose output that lists
  11807. # what "hidden" libraries, object files and flags are used when
  11808. # linking a shared library.
  11809. #
  11810. # There doesn't appear to be a way to prevent this compiler from
  11811. # explicitly linking system object files so we need to strip them
  11812. # from the output so that they don't get included in the library
  11813. # dependencies.
  11814. 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"'
  11815. ;;
  11816. *)
  11817. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11818. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11819. case $host in
  11820. osf3*)
  11821. 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'
  11822. ;;
  11823. *)
  11824. 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'
  11825. ;;
  11826. esac
  11827. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11828. hardcode_libdir_separator_CXX=:
  11829. # Commands to make compiler produce verbose output that lists
  11830. # what "hidden" libraries, object files and flags are used when
  11831. # linking a shared library.
  11832. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11833. else
  11834. # FIXME: insert proper C++ library support
  11835. ld_shlibs_CXX=no
  11836. fi
  11837. ;;
  11838. esac
  11839. ;;
  11840. psos*)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. sunos4*)
  11845. case $cc_basename in
  11846. CC*)
  11847. # Sun C++ 4.x
  11848. # FIXME: insert proper C++ library support
  11849. ld_shlibs_CXX=no
  11850. ;;
  11851. lcc*)
  11852. # Lucid
  11853. # FIXME: insert proper C++ library support
  11854. ld_shlibs_CXX=no
  11855. ;;
  11856. *)
  11857. # FIXME: insert proper C++ library support
  11858. ld_shlibs_CXX=no
  11859. ;;
  11860. esac
  11861. ;;
  11862. solaris*)
  11863. case $cc_basename in
  11864. CC*)
  11865. # Sun C++ 4.2, 5.x and Centerline C++
  11866. archive_cmds_need_lc_CXX=yes
  11867. no_undefined_flag_CXX=' -zdefs'
  11868. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11869. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11870. $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'
  11871. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11872. hardcode_shlibpath_var_CXX=no
  11873. case $host_os in
  11874. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11875. *)
  11876. # The compiler driver will combine and reorder linker options,
  11877. # but understands `-z linker_flag'.
  11878. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11879. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11880. ;;
  11881. esac
  11882. link_all_deplibs_CXX=yes
  11883. output_verbose_link_cmd='func_echo_all'
  11884. # Archives containing C++ object files must be created using
  11885. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11886. # necessary to make sure instantiated templates are included
  11887. # in the archive.
  11888. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11889. ;;
  11890. gcx*)
  11891. # Green Hills C++ Compiler
  11892. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11893. # The C++ compiler must be used to create the archive.
  11894. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11895. ;;
  11896. *)
  11897. # GNU C++ compiler with Solaris linker
  11898. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11899. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11900. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11901. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11902. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11903. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11904. # Commands to make compiler produce verbose output that lists
  11905. # what "hidden" libraries, object files and flags are used when
  11906. # linking a shared library.
  11907. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11908. else
  11909. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11910. # platform.
  11911. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11912. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11913. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11914. # Commands to make compiler produce verbose output that lists
  11915. # what "hidden" libraries, object files and flags are used when
  11916. # linking a shared library.
  11917. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11918. fi
  11919. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11920. case $host_os in
  11921. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11922. *)
  11923. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11924. ;;
  11925. esac
  11926. fi
  11927. ;;
  11928. esac
  11929. ;;
  11930. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11931. no_undefined_flag_CXX='${wl}-z,text'
  11932. archive_cmds_need_lc_CXX=no
  11933. hardcode_shlibpath_var_CXX=no
  11934. runpath_var='LD_RUN_PATH'
  11935. case $cc_basename in
  11936. CC*)
  11937. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11938. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11939. ;;
  11940. *)
  11941. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11942. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11943. ;;
  11944. esac
  11945. ;;
  11946. sysv5* | sco3.2v5* | sco5v6*)
  11947. # Note: We can NOT use -z defs as we might desire, because we do not
  11948. # link with -lc, and that would cause any symbols used from libc to
  11949. # always be unresolved, which means just about no library would
  11950. # ever link correctly. If we're not using GNU ld we use -z text
  11951. # though, which does catch some bad symbols but isn't as heavy-handed
  11952. # as -z defs.
  11953. no_undefined_flag_CXX='${wl}-z,text'
  11954. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11955. archive_cmds_need_lc_CXX=no
  11956. hardcode_shlibpath_var_CXX=no
  11957. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11958. hardcode_libdir_separator_CXX=':'
  11959. link_all_deplibs_CXX=yes
  11960. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11961. runpath_var='LD_RUN_PATH'
  11962. case $cc_basename in
  11963. CC*)
  11964. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11965. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11966. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11967. '"$old_archive_cmds_CXX"
  11968. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11969. '"$reload_cmds_CXX"
  11970. ;;
  11971. *)
  11972. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11973. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11974. ;;
  11975. esac
  11976. ;;
  11977. tandem*)
  11978. case $cc_basename in
  11979. NCC*)
  11980. # NonStop-UX NCC 3.20
  11981. # FIXME: insert proper C++ library support
  11982. ld_shlibs_CXX=no
  11983. ;;
  11984. *)
  11985. # FIXME: insert proper C++ library support
  11986. ld_shlibs_CXX=no
  11987. ;;
  11988. esac
  11989. ;;
  11990. vxworks*)
  11991. # FIXME: insert proper C++ library support
  11992. ld_shlibs_CXX=no
  11993. ;;
  11994. *)
  11995. # FIXME: insert proper C++ library support
  11996. ld_shlibs_CXX=no
  11997. ;;
  11998. esac
  11999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12000. $as_echo "$ld_shlibs_CXX" >&6; }
  12001. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12002. GCC_CXX="$GXX"
  12003. LD_CXX="$LD"
  12004. ## CAVEAT EMPTOR:
  12005. ## There is no encapsulation within the following macros, do not change
  12006. ## the running order or otherwise move them around unless you know exactly
  12007. ## what you are doing...
  12008. # Dependencies to place before and after the object being linked:
  12009. predep_objects_CXX=
  12010. postdep_objects_CXX=
  12011. predeps_CXX=
  12012. postdeps_CXX=
  12013. compiler_lib_search_path_CXX=
  12014. cat > conftest.$ac_ext <<_LT_EOF
  12015. class Foo
  12016. {
  12017. public:
  12018. Foo (void) { a = 0; }
  12019. private:
  12020. int a;
  12021. };
  12022. _LT_EOF
  12023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12024. (eval $ac_compile) 2>&5
  12025. ac_status=$?
  12026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12027. test $ac_status = 0; }; then
  12028. # Parse the compiler output and extract the necessary
  12029. # objects, libraries and library flags.
  12030. # Sentinel used to keep track of whether or not we are before
  12031. # the conftest object file.
  12032. pre_test_object_deps_done=no
  12033. for p in `eval "$output_verbose_link_cmd"`; do
  12034. case $p in
  12035. -L* | -R* | -l*)
  12036. # Some compilers place space between "-{L,R}" and the path.
  12037. # Remove the space.
  12038. if test $p = "-L" ||
  12039. test $p = "-R"; then
  12040. prev=$p
  12041. continue
  12042. else
  12043. prev=
  12044. fi
  12045. if test "$pre_test_object_deps_done" = no; then
  12046. case $p in
  12047. -L* | -R*)
  12048. # Internal compiler library paths should come after those
  12049. # provided the user. The postdeps already come after the
  12050. # user supplied libs so there is no need to process them.
  12051. if test -z "$compiler_lib_search_path_CXX"; then
  12052. compiler_lib_search_path_CXX="${prev}${p}"
  12053. else
  12054. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12055. fi
  12056. ;;
  12057. # The "-l" case would never come before the object being
  12058. # linked, so don't bother handling this case.
  12059. esac
  12060. else
  12061. if test -z "$postdeps_CXX"; then
  12062. postdeps_CXX="${prev}${p}"
  12063. else
  12064. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12065. fi
  12066. fi
  12067. ;;
  12068. *.$objext)
  12069. # This assumes that the test object file only shows up
  12070. # once in the compiler output.
  12071. if test "$p" = "conftest.$objext"; then
  12072. pre_test_object_deps_done=yes
  12073. continue
  12074. fi
  12075. if test "$pre_test_object_deps_done" = no; then
  12076. if test -z "$predep_objects_CXX"; then
  12077. predep_objects_CXX="$p"
  12078. else
  12079. predep_objects_CXX="$predep_objects_CXX $p"
  12080. fi
  12081. else
  12082. if test -z "$postdep_objects_CXX"; then
  12083. postdep_objects_CXX="$p"
  12084. else
  12085. postdep_objects_CXX="$postdep_objects_CXX $p"
  12086. fi
  12087. fi
  12088. ;;
  12089. *) ;; # Ignore the rest.
  12090. esac
  12091. done
  12092. # Clean up.
  12093. rm -f a.out a.exe
  12094. else
  12095. echo "libtool.m4: error: problem compiling CXX test program"
  12096. fi
  12097. $RM -f confest.$objext
  12098. # PORTME: override above test on systems where it is broken
  12099. case $host_os in
  12100. interix[3-9]*)
  12101. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12102. # hack all around it, let's just trust "g++" to DTRT.
  12103. predep_objects_CXX=
  12104. postdep_objects_CXX=
  12105. postdeps_CXX=
  12106. ;;
  12107. linux*)
  12108. case `$CC -V 2>&1 | sed 5q` in
  12109. *Sun\ C*)
  12110. # Sun C++ 5.9
  12111. # The more standards-conforming stlport4 library is
  12112. # incompatible with the Cstd library. Avoid specifying
  12113. # it if it's in CXXFLAGS. Ignore libCrun as
  12114. # -library=stlport4 depends on it.
  12115. case " $CXX $CXXFLAGS " in
  12116. *" -library=stlport4 "*)
  12117. solaris_use_stlport4=yes
  12118. ;;
  12119. esac
  12120. if test "$solaris_use_stlport4" != yes; then
  12121. postdeps_CXX='-library=Cstd -library=Crun'
  12122. fi
  12123. ;;
  12124. esac
  12125. ;;
  12126. solaris*)
  12127. case $cc_basename in
  12128. CC*)
  12129. # The more standards-conforming stlport4 library is
  12130. # incompatible with the Cstd library. Avoid specifying
  12131. # it if it's in CXXFLAGS. Ignore libCrun as
  12132. # -library=stlport4 depends on it.
  12133. case " $CXX $CXXFLAGS " in
  12134. *" -library=stlport4 "*)
  12135. solaris_use_stlport4=yes
  12136. ;;
  12137. esac
  12138. # Adding this requires a known-good setup of shared libraries for
  12139. # Sun compiler versions before 5.6, else PIC objects from an old
  12140. # archive will be linked into the output, leading to subtle bugs.
  12141. if test "$solaris_use_stlport4" != yes; then
  12142. postdeps_CXX='-library=Cstd -library=Crun'
  12143. fi
  12144. ;;
  12145. esac
  12146. ;;
  12147. esac
  12148. case " $postdeps_CXX " in
  12149. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12150. esac
  12151. compiler_lib_search_dirs_CXX=
  12152. if test -n "${compiler_lib_search_path_CXX}"; then
  12153. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12154. fi
  12155. lt_prog_compiler_wl_CXX=
  12156. lt_prog_compiler_pic_CXX=
  12157. lt_prog_compiler_static_CXX=
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12159. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12160. # C++ specific cases for pic, static, wl, etc.
  12161. if test "$GXX" = yes; then
  12162. lt_prog_compiler_wl_CXX='-Wl,'
  12163. lt_prog_compiler_static_CXX='-static'
  12164. case $host_os in
  12165. aix*)
  12166. # All AIX code is PIC.
  12167. if test "$host_cpu" = ia64; then
  12168. # AIX 5 now supports IA64 processor
  12169. lt_prog_compiler_static_CXX='-Bstatic'
  12170. fi
  12171. lt_prog_compiler_pic_CXX='-fPIC'
  12172. ;;
  12173. amigaos*)
  12174. case $host_cpu in
  12175. powerpc)
  12176. # see comment about AmigaOS4 .so support
  12177. lt_prog_compiler_pic_CXX='-fPIC'
  12178. ;;
  12179. m68k)
  12180. # FIXME: we need at least 68020 code to build shared libraries, but
  12181. # adding the `-m68020' flag to GCC prevents building anything better,
  12182. # like `-m68040'.
  12183. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12184. ;;
  12185. esac
  12186. ;;
  12187. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12188. # PIC is the default for these OSes.
  12189. ;;
  12190. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12191. # This hack is so that the source file can tell whether it is being
  12192. # built for inclusion in a dll (and should export symbols for example).
  12193. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12194. # (--disable-auto-import) libraries
  12195. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12196. ;;
  12197. darwin* | rhapsody*)
  12198. # PIC is the default on this platform
  12199. # Common symbols not allowed in MH_DYLIB files
  12200. lt_prog_compiler_pic_CXX='-fno-common'
  12201. ;;
  12202. *djgpp*)
  12203. # DJGPP does not support shared libraries at all
  12204. lt_prog_compiler_pic_CXX=
  12205. ;;
  12206. haiku*)
  12207. # PIC is the default for Haiku.
  12208. # The "-static" flag exists, but is broken.
  12209. lt_prog_compiler_static_CXX=
  12210. ;;
  12211. interix[3-9]*)
  12212. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12213. # Instead, we relocate shared libraries at runtime.
  12214. ;;
  12215. sysv4*MP*)
  12216. if test -d /usr/nec; then
  12217. lt_prog_compiler_pic_CXX=-Kconform_pic
  12218. fi
  12219. ;;
  12220. hpux*)
  12221. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12222. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12223. # sets the default TLS model and affects inlining.
  12224. case $host_cpu in
  12225. hppa*64*)
  12226. ;;
  12227. *)
  12228. lt_prog_compiler_pic_CXX='-fPIC'
  12229. ;;
  12230. esac
  12231. ;;
  12232. *qnx* | *nto*)
  12233. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12234. # it will coredump.
  12235. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12236. ;;
  12237. *)
  12238. lt_prog_compiler_pic_CXX='-fPIC'
  12239. ;;
  12240. esac
  12241. else
  12242. case $host_os in
  12243. aix[4-9]*)
  12244. # All AIX code is PIC.
  12245. if test "$host_cpu" = ia64; then
  12246. # AIX 5 now supports IA64 processor
  12247. lt_prog_compiler_static_CXX='-Bstatic'
  12248. else
  12249. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12250. fi
  12251. ;;
  12252. chorus*)
  12253. case $cc_basename in
  12254. cxch68*)
  12255. # Green Hills C++ Compiler
  12256. # _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"
  12257. ;;
  12258. esac
  12259. ;;
  12260. dgux*)
  12261. case $cc_basename in
  12262. ec++*)
  12263. lt_prog_compiler_pic_CXX='-KPIC'
  12264. ;;
  12265. ghcx*)
  12266. # Green Hills C++ Compiler
  12267. lt_prog_compiler_pic_CXX='-pic'
  12268. ;;
  12269. *)
  12270. ;;
  12271. esac
  12272. ;;
  12273. freebsd* | dragonfly*)
  12274. # FreeBSD uses GNU C++
  12275. ;;
  12276. hpux9* | hpux10* | hpux11*)
  12277. case $cc_basename in
  12278. CC*)
  12279. lt_prog_compiler_wl_CXX='-Wl,'
  12280. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12281. if test "$host_cpu" != ia64; then
  12282. lt_prog_compiler_pic_CXX='+Z'
  12283. fi
  12284. ;;
  12285. aCC*)
  12286. lt_prog_compiler_wl_CXX='-Wl,'
  12287. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12288. case $host_cpu in
  12289. hppa*64*|ia64*)
  12290. # +Z the default
  12291. ;;
  12292. *)
  12293. lt_prog_compiler_pic_CXX='+Z'
  12294. ;;
  12295. esac
  12296. ;;
  12297. *)
  12298. ;;
  12299. esac
  12300. ;;
  12301. interix*)
  12302. # This is c89, which is MS Visual C++ (no shared libs)
  12303. # Anyone wants to do a port?
  12304. ;;
  12305. irix5* | irix6* | nonstopux*)
  12306. case $cc_basename in
  12307. CC*)
  12308. lt_prog_compiler_wl_CXX='-Wl,'
  12309. lt_prog_compiler_static_CXX='-non_shared'
  12310. # CC pic flag -KPIC is the default.
  12311. ;;
  12312. *)
  12313. ;;
  12314. esac
  12315. ;;
  12316. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12317. case $cc_basename in
  12318. KCC*)
  12319. # KAI C++ Compiler
  12320. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12321. lt_prog_compiler_pic_CXX='-fPIC'
  12322. ;;
  12323. ecpc* )
  12324. # old Intel C++ for x86_64 which still supported -KPIC.
  12325. lt_prog_compiler_wl_CXX='-Wl,'
  12326. lt_prog_compiler_pic_CXX='-KPIC'
  12327. lt_prog_compiler_static_CXX='-static'
  12328. ;;
  12329. icpc* )
  12330. # Intel C++, used to be incompatible with GCC.
  12331. # ICC 10 doesn't accept -KPIC any more.
  12332. lt_prog_compiler_wl_CXX='-Wl,'
  12333. lt_prog_compiler_pic_CXX='-fPIC'
  12334. lt_prog_compiler_static_CXX='-static'
  12335. ;;
  12336. pgCC* | pgcpp*)
  12337. # Portland Group C++ compiler
  12338. lt_prog_compiler_wl_CXX='-Wl,'
  12339. lt_prog_compiler_pic_CXX='-fpic'
  12340. lt_prog_compiler_static_CXX='-Bstatic'
  12341. ;;
  12342. cxx*)
  12343. # Compaq C++
  12344. # Make sure the PIC flag is empty. It appears that all Alpha
  12345. # Linux and Compaq Tru64 Unix objects are PIC.
  12346. lt_prog_compiler_pic_CXX=
  12347. lt_prog_compiler_static_CXX='-non_shared'
  12348. ;;
  12349. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12350. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12351. lt_prog_compiler_wl_CXX='-Wl,'
  12352. lt_prog_compiler_pic_CXX='-qpic'
  12353. lt_prog_compiler_static_CXX='-qstaticlink'
  12354. ;;
  12355. *)
  12356. case `$CC -V 2>&1 | sed 5q` in
  12357. *Sun\ C*)
  12358. # Sun C++ 5.9
  12359. lt_prog_compiler_pic_CXX='-KPIC'
  12360. lt_prog_compiler_static_CXX='-Bstatic'
  12361. lt_prog_compiler_wl_CXX='-Qoption ld '
  12362. ;;
  12363. esac
  12364. ;;
  12365. esac
  12366. ;;
  12367. lynxos*)
  12368. ;;
  12369. m88k*)
  12370. ;;
  12371. mvs*)
  12372. case $cc_basename in
  12373. cxx*)
  12374. lt_prog_compiler_pic_CXX='-W c,exportall'
  12375. ;;
  12376. *)
  12377. ;;
  12378. esac
  12379. ;;
  12380. netbsd*)
  12381. ;;
  12382. *qnx* | *nto*)
  12383. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12384. # it will coredump.
  12385. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12386. ;;
  12387. osf3* | osf4* | osf5*)
  12388. case $cc_basename in
  12389. KCC*)
  12390. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12391. ;;
  12392. RCC*)
  12393. # Rational C++ 2.4.1
  12394. lt_prog_compiler_pic_CXX='-pic'
  12395. ;;
  12396. cxx*)
  12397. # Digital/Compaq C++
  12398. lt_prog_compiler_wl_CXX='-Wl,'
  12399. # Make sure the PIC flag is empty. It appears that all Alpha
  12400. # Linux and Compaq Tru64 Unix objects are PIC.
  12401. lt_prog_compiler_pic_CXX=
  12402. lt_prog_compiler_static_CXX='-non_shared'
  12403. ;;
  12404. *)
  12405. ;;
  12406. esac
  12407. ;;
  12408. psos*)
  12409. ;;
  12410. solaris*)
  12411. case $cc_basename in
  12412. CC*)
  12413. # Sun C++ 4.2, 5.x and Centerline C++
  12414. lt_prog_compiler_pic_CXX='-KPIC'
  12415. lt_prog_compiler_static_CXX='-Bstatic'
  12416. lt_prog_compiler_wl_CXX='-Qoption ld '
  12417. ;;
  12418. gcx*)
  12419. # Green Hills C++ Compiler
  12420. lt_prog_compiler_pic_CXX='-PIC'
  12421. ;;
  12422. *)
  12423. ;;
  12424. esac
  12425. ;;
  12426. sunos4*)
  12427. case $cc_basename in
  12428. CC*)
  12429. # Sun C++ 4.x
  12430. lt_prog_compiler_pic_CXX='-pic'
  12431. lt_prog_compiler_static_CXX='-Bstatic'
  12432. ;;
  12433. lcc*)
  12434. # Lucid
  12435. lt_prog_compiler_pic_CXX='-pic'
  12436. ;;
  12437. *)
  12438. ;;
  12439. esac
  12440. ;;
  12441. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12442. case $cc_basename in
  12443. CC*)
  12444. lt_prog_compiler_wl_CXX='-Wl,'
  12445. lt_prog_compiler_pic_CXX='-KPIC'
  12446. lt_prog_compiler_static_CXX='-Bstatic'
  12447. ;;
  12448. esac
  12449. ;;
  12450. tandem*)
  12451. case $cc_basename in
  12452. NCC*)
  12453. # NonStop-UX NCC 3.20
  12454. lt_prog_compiler_pic_CXX='-KPIC'
  12455. ;;
  12456. *)
  12457. ;;
  12458. esac
  12459. ;;
  12460. vxworks*)
  12461. ;;
  12462. *)
  12463. lt_prog_compiler_can_build_shared_CXX=no
  12464. ;;
  12465. esac
  12466. fi
  12467. case $host_os in
  12468. # For platforms which do not support PIC, -DPIC is meaningless:
  12469. *djgpp*)
  12470. lt_prog_compiler_pic_CXX=
  12471. ;;
  12472. *)
  12473. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12474. ;;
  12475. esac
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12477. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12478. #
  12479. # Check to make sure the PIC flag actually works.
  12480. #
  12481. if test -n "$lt_prog_compiler_pic_CXX"; then
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12483. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12484. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12485. $as_echo_n "(cached) " >&6
  12486. else
  12487. lt_cv_prog_compiler_pic_works_CXX=no
  12488. ac_outfile=conftest.$ac_objext
  12489. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12490. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12491. # Insert the option either (1) after the last *FLAGS variable, or
  12492. # (2) before a word containing "conftest.", or (3) at the end.
  12493. # Note that $ac_compile itself does not contain backslashes and begins
  12494. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12495. # The option is referenced via a variable to avoid confusing sed.
  12496. lt_compile=`echo "$ac_compile" | $SED \
  12497. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12498. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12499. -e 's:$: $lt_compiler_flag:'`
  12500. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12501. (eval "$lt_compile" 2>conftest.err)
  12502. ac_status=$?
  12503. cat conftest.err >&5
  12504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12505. if (exit $ac_status) && test -s "$ac_outfile"; then
  12506. # The compiler can only warn and ignore the option if not recognized
  12507. # So say no if there are warnings other than the usual output.
  12508. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12509. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12510. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12511. lt_cv_prog_compiler_pic_works_CXX=yes
  12512. fi
  12513. fi
  12514. $RM conftest*
  12515. fi
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12517. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12518. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12519. case $lt_prog_compiler_pic_CXX in
  12520. "" | " "*) ;;
  12521. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12522. esac
  12523. else
  12524. lt_prog_compiler_pic_CXX=
  12525. lt_prog_compiler_can_build_shared_CXX=no
  12526. fi
  12527. fi
  12528. #
  12529. # Check to make sure the static flag actually works.
  12530. #
  12531. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12533. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12534. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12535. $as_echo_n "(cached) " >&6
  12536. else
  12537. lt_cv_prog_compiler_static_works_CXX=no
  12538. save_LDFLAGS="$LDFLAGS"
  12539. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12540. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12541. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12542. # The linker can only warn and ignore the option if not recognized
  12543. # So say no if there are warnings
  12544. if test -s conftest.err; then
  12545. # Append any errors to the config.log.
  12546. cat conftest.err 1>&5
  12547. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12548. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12549. if diff conftest.exp conftest.er2 >/dev/null; then
  12550. lt_cv_prog_compiler_static_works_CXX=yes
  12551. fi
  12552. else
  12553. lt_cv_prog_compiler_static_works_CXX=yes
  12554. fi
  12555. fi
  12556. $RM -r conftest*
  12557. LDFLAGS="$save_LDFLAGS"
  12558. fi
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12560. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12561. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12562. :
  12563. else
  12564. lt_prog_compiler_static_CXX=
  12565. fi
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12567. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12568. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12569. $as_echo_n "(cached) " >&6
  12570. else
  12571. lt_cv_prog_compiler_c_o_CXX=no
  12572. $RM -r conftest 2>/dev/null
  12573. mkdir conftest
  12574. cd conftest
  12575. mkdir out
  12576. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12577. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12578. # Insert the option either (1) after the last *FLAGS variable, or
  12579. # (2) before a word containing "conftest.", or (3) at the end.
  12580. # Note that $ac_compile itself does not contain backslashes and begins
  12581. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12582. lt_compile=`echo "$ac_compile" | $SED \
  12583. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12584. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12585. -e 's:$: $lt_compiler_flag:'`
  12586. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12587. (eval "$lt_compile" 2>out/conftest.err)
  12588. ac_status=$?
  12589. cat out/conftest.err >&5
  12590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12591. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12592. then
  12593. # The compiler can only warn and ignore the option if not recognized
  12594. # So say no if there are warnings
  12595. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12596. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12597. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12598. lt_cv_prog_compiler_c_o_CXX=yes
  12599. fi
  12600. fi
  12601. chmod u+w . 2>&5
  12602. $RM conftest*
  12603. # SGI C++ compiler will create directory out/ii_files/ for
  12604. # template instantiation
  12605. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12606. $RM out/* && rmdir out
  12607. cd ..
  12608. $RM -r conftest
  12609. $RM conftest*
  12610. fi
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12612. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12614. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12615. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. lt_cv_prog_compiler_c_o_CXX=no
  12619. $RM -r conftest 2>/dev/null
  12620. mkdir conftest
  12621. cd conftest
  12622. mkdir out
  12623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12624. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12625. # Insert the option either (1) after the last *FLAGS variable, or
  12626. # (2) before a word containing "conftest.", or (3) at the end.
  12627. # Note that $ac_compile itself does not contain backslashes and begins
  12628. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12629. lt_compile=`echo "$ac_compile" | $SED \
  12630. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12631. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12632. -e 's:$: $lt_compiler_flag:'`
  12633. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12634. (eval "$lt_compile" 2>out/conftest.err)
  12635. ac_status=$?
  12636. cat out/conftest.err >&5
  12637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12638. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12639. then
  12640. # The compiler can only warn and ignore the option if not recognized
  12641. # So say no if there are warnings
  12642. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12643. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12644. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12645. lt_cv_prog_compiler_c_o_CXX=yes
  12646. fi
  12647. fi
  12648. chmod u+w . 2>&5
  12649. $RM conftest*
  12650. # SGI C++ compiler will create directory out/ii_files/ for
  12651. # template instantiation
  12652. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12653. $RM out/* && rmdir out
  12654. cd ..
  12655. $RM -r conftest
  12656. $RM conftest*
  12657. fi
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12659. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12660. hard_links="nottested"
  12661. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12662. # do not overwrite the value of need_locks provided by the user
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12664. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12665. hard_links=yes
  12666. $RM conftest*
  12667. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12668. touch conftest.a
  12669. ln conftest.a conftest.b 2>&5 || hard_links=no
  12670. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12672. $as_echo "$hard_links" >&6; }
  12673. if test "$hard_links" = no; then
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12675. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12676. need_locks=warn
  12677. fi
  12678. else
  12679. need_locks=no
  12680. fi
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12682. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12683. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12684. case $host_os in
  12685. aix[4-9]*)
  12686. # If we're using GNU nm, then we don't want the "-C" option.
  12687. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12688. # Also, AIX nm treats weak defined symbols like other global defined
  12689. # symbols, whereas GNU nm marks them as "W".
  12690. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12691. 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'
  12692. else
  12693. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12694. fi
  12695. ;;
  12696. pw32*)
  12697. export_symbols_cmds_CXX="$ltdll_cmds"
  12698. ;;
  12699. cygwin* | mingw* | cegcc*)
  12700. 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'
  12701. ;;
  12702. *)
  12703. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12704. ;;
  12705. esac
  12706. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12708. $as_echo "$ld_shlibs_CXX" >&6; }
  12709. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12710. with_gnu_ld_CXX=$with_gnu_ld
  12711. #
  12712. # Do we need to explicitly link libc?
  12713. #
  12714. case "x$archive_cmds_need_lc_CXX" in
  12715. x|xyes)
  12716. # Assume -lc should be added
  12717. archive_cmds_need_lc_CXX=yes
  12718. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12719. case $archive_cmds_CXX in
  12720. *'~'*)
  12721. # FIXME: we may have to deal with multi-command sequences.
  12722. ;;
  12723. '$CC '*)
  12724. # Test whether the compiler implicitly links with -lc since on some
  12725. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12726. # to ld, don't add -lc before -lgcc.
  12727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12728. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12729. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12730. $as_echo_n "(cached) " >&6
  12731. else
  12732. $RM conftest*
  12733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12734. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12735. (eval $ac_compile) 2>&5
  12736. ac_status=$?
  12737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12738. test $ac_status = 0; } 2>conftest.err; then
  12739. soname=conftest
  12740. lib=conftest
  12741. libobjs=conftest.$ac_objext
  12742. deplibs=
  12743. wl=$lt_prog_compiler_wl_CXX
  12744. pic_flag=$lt_prog_compiler_pic_CXX
  12745. compiler_flags=-v
  12746. linker_flags=-v
  12747. verstring=
  12748. output_objdir=.
  12749. libname=conftest
  12750. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12751. allow_undefined_flag_CXX=
  12752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12753. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12754. ac_status=$?
  12755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12756. test $ac_status = 0; }
  12757. then
  12758. lt_cv_archive_cmds_need_lc_CXX=no
  12759. else
  12760. lt_cv_archive_cmds_need_lc_CXX=yes
  12761. fi
  12762. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12763. else
  12764. cat conftest.err 1>&5
  12765. fi
  12766. $RM conftest*
  12767. fi
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12769. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12770. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12771. ;;
  12772. esac
  12773. fi
  12774. ;;
  12775. esac
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12777. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12778. library_names_spec=
  12779. libname_spec='lib$name'
  12780. soname_spec=
  12781. shrext_cmds=".so"
  12782. postinstall_cmds=
  12783. postuninstall_cmds=
  12784. finish_cmds=
  12785. finish_eval=
  12786. shlibpath_var=
  12787. shlibpath_overrides_runpath=unknown
  12788. version_type=none
  12789. dynamic_linker="$host_os ld.so"
  12790. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12791. need_lib_prefix=unknown
  12792. hardcode_into_libs=no
  12793. # when you set need_version to no, make sure it does not cause -set_version
  12794. # flags to be left without arguments
  12795. need_version=unknown
  12796. case $host_os in
  12797. aix3*)
  12798. version_type=linux
  12799. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12800. shlibpath_var=LIBPATH
  12801. # AIX 3 has no versioning support, so we append a major version to the name.
  12802. soname_spec='${libname}${release}${shared_ext}$major'
  12803. ;;
  12804. aix[4-9]*)
  12805. version_type=linux
  12806. need_lib_prefix=no
  12807. need_version=no
  12808. hardcode_into_libs=yes
  12809. if test "$host_cpu" = ia64; then
  12810. # AIX 5 supports IA64
  12811. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12812. shlibpath_var=LD_LIBRARY_PATH
  12813. else
  12814. # With GCC up to 2.95.x, collect2 would create an import file
  12815. # for dependence libraries. The import file would start with
  12816. # the line `#! .'. This would cause the generated library to
  12817. # depend on `.', always an invalid library. This was fixed in
  12818. # development snapshots of GCC prior to 3.0.
  12819. case $host_os in
  12820. aix4 | aix4.[01] | aix4.[01].*)
  12821. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12822. echo ' yes '
  12823. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12824. :
  12825. else
  12826. can_build_shared=no
  12827. fi
  12828. ;;
  12829. esac
  12830. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12831. # soname into executable. Probably we can add versioning support to
  12832. # collect2, so additional links can be useful in future.
  12833. if test "$aix_use_runtimelinking" = yes; then
  12834. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12835. # instead of lib<name>.a to let people know that these are not
  12836. # typical AIX shared libraries.
  12837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12838. else
  12839. # We preserve .a as extension for shared libraries through AIX4.2
  12840. # and later when we are not doing run time linking.
  12841. library_names_spec='${libname}${release}.a $libname.a'
  12842. soname_spec='${libname}${release}${shared_ext}$major'
  12843. fi
  12844. shlibpath_var=LIBPATH
  12845. fi
  12846. ;;
  12847. amigaos*)
  12848. case $host_cpu in
  12849. powerpc)
  12850. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12851. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12853. ;;
  12854. m68k)
  12855. library_names_spec='$libname.ixlibrary $libname.a'
  12856. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12857. 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'
  12858. ;;
  12859. esac
  12860. ;;
  12861. beos*)
  12862. library_names_spec='${libname}${shared_ext}'
  12863. dynamic_linker="$host_os ld.so"
  12864. shlibpath_var=LIBRARY_PATH
  12865. ;;
  12866. bsdi[45]*)
  12867. version_type=linux
  12868. need_version=no
  12869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12870. soname_spec='${libname}${release}${shared_ext}$major'
  12871. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12872. shlibpath_var=LD_LIBRARY_PATH
  12873. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12874. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12875. # the default ld.so.conf also contains /usr/contrib/lib and
  12876. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12877. # libtool to hard-code these into programs
  12878. ;;
  12879. cygwin* | mingw* | pw32* | cegcc*)
  12880. version_type=windows
  12881. shrext_cmds=".dll"
  12882. need_version=no
  12883. need_lib_prefix=no
  12884. case $GCC,$host_os in
  12885. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12886. library_names_spec='$libname.dll.a'
  12887. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12888. postinstall_cmds='base_file=`basename \${file}`~
  12889. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12890. dldir=$destdir/`dirname \$dlpath`~
  12891. test -d \$dldir || mkdir -p \$dldir~
  12892. $install_prog $dir/$dlname \$dldir/$dlname~
  12893. chmod a+x \$dldir/$dlname~
  12894. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12895. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12896. fi'
  12897. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12898. dlpath=$dir/\$dldll~
  12899. $RM \$dlpath'
  12900. shlibpath_overrides_runpath=yes
  12901. case $host_os in
  12902. cygwin*)
  12903. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12904. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12905. ;;
  12906. mingw* | cegcc*)
  12907. # MinGW DLLs use traditional 'lib' prefix
  12908. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12909. ;;
  12910. pw32*)
  12911. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12912. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12913. ;;
  12914. esac
  12915. ;;
  12916. *)
  12917. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12918. ;;
  12919. esac
  12920. dynamic_linker='Win32 ld.exe'
  12921. # FIXME: first we should search . and the directory the executable is in
  12922. shlibpath_var=PATH
  12923. ;;
  12924. darwin* | rhapsody*)
  12925. dynamic_linker="$host_os dyld"
  12926. version_type=darwin
  12927. need_lib_prefix=no
  12928. need_version=no
  12929. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12930. soname_spec='${libname}${release}${major}$shared_ext'
  12931. shlibpath_overrides_runpath=yes
  12932. shlibpath_var=DYLD_LIBRARY_PATH
  12933. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12934. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12935. ;;
  12936. dgux*)
  12937. version_type=linux
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12941. soname_spec='${libname}${release}${shared_ext}$major'
  12942. shlibpath_var=LD_LIBRARY_PATH
  12943. ;;
  12944. freebsd* | dragonfly*)
  12945. # DragonFly does not have aout. When/if they implement a new
  12946. # versioning mechanism, adjust this.
  12947. if test -x /usr/bin/objformat; then
  12948. objformat=`/usr/bin/objformat`
  12949. else
  12950. case $host_os in
  12951. freebsd[23].*) objformat=aout ;;
  12952. *) objformat=elf ;;
  12953. esac
  12954. fi
  12955. version_type=freebsd-$objformat
  12956. case $version_type in
  12957. freebsd-elf*)
  12958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12959. need_version=no
  12960. need_lib_prefix=no
  12961. ;;
  12962. freebsd-*)
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12964. need_version=yes
  12965. ;;
  12966. esac
  12967. shlibpath_var=LD_LIBRARY_PATH
  12968. case $host_os in
  12969. freebsd2.*)
  12970. shlibpath_overrides_runpath=yes
  12971. ;;
  12972. freebsd3.[01]* | freebsdelf3.[01]*)
  12973. shlibpath_overrides_runpath=yes
  12974. hardcode_into_libs=yes
  12975. ;;
  12976. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12977. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12978. shlibpath_overrides_runpath=no
  12979. hardcode_into_libs=yes
  12980. ;;
  12981. *) # from 4.6 on, and DragonFly
  12982. shlibpath_overrides_runpath=yes
  12983. hardcode_into_libs=yes
  12984. ;;
  12985. esac
  12986. ;;
  12987. haiku*)
  12988. version_type=linux
  12989. need_lib_prefix=no
  12990. need_version=no
  12991. dynamic_linker="$host_os runtime_loader"
  12992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12993. soname_spec='${libname}${release}${shared_ext}$major'
  12994. shlibpath_var=LIBRARY_PATH
  12995. shlibpath_overrides_runpath=yes
  12996. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12997. hardcode_into_libs=yes
  12998. ;;
  12999. hpux9* | hpux10* | hpux11*)
  13000. # Give a soname corresponding to the major version so that dld.sl refuses to
  13001. # link against other versions.
  13002. version_type=sunos
  13003. need_lib_prefix=no
  13004. need_version=no
  13005. case $host_cpu in
  13006. ia64*)
  13007. shrext_cmds='.so'
  13008. hardcode_into_libs=yes
  13009. dynamic_linker="$host_os dld.so"
  13010. shlibpath_var=LD_LIBRARY_PATH
  13011. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13013. soname_spec='${libname}${release}${shared_ext}$major'
  13014. if test "X$HPUX_IA64_MODE" = X32; then
  13015. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13016. else
  13017. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13018. fi
  13019. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13020. ;;
  13021. hppa*64*)
  13022. shrext_cmds='.sl'
  13023. hardcode_into_libs=yes
  13024. dynamic_linker="$host_os dld.sl"
  13025. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13026. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13028. soname_spec='${libname}${release}${shared_ext}$major'
  13029. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13030. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13031. ;;
  13032. *)
  13033. shrext_cmds='.sl'
  13034. dynamic_linker="$host_os dld.sl"
  13035. shlibpath_var=SHLIB_PATH
  13036. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13038. soname_spec='${libname}${release}${shared_ext}$major'
  13039. ;;
  13040. esac
  13041. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13042. postinstall_cmds='chmod 555 $lib'
  13043. # or fails outright, so override atomically:
  13044. install_override_mode=555
  13045. ;;
  13046. interix[3-9]*)
  13047. version_type=linux
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13051. soname_spec='${libname}${release}${shared_ext}$major'
  13052. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13053. shlibpath_var=LD_LIBRARY_PATH
  13054. shlibpath_overrides_runpath=no
  13055. hardcode_into_libs=yes
  13056. ;;
  13057. irix5* | irix6* | nonstopux*)
  13058. case $host_os in
  13059. nonstopux*) version_type=nonstopux ;;
  13060. *)
  13061. if test "$lt_cv_prog_gnu_ld" = yes; then
  13062. version_type=linux
  13063. else
  13064. version_type=irix
  13065. fi ;;
  13066. esac
  13067. need_lib_prefix=no
  13068. need_version=no
  13069. soname_spec='${libname}${release}${shared_ext}$major'
  13070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13071. case $host_os in
  13072. irix5* | nonstopux*)
  13073. libsuff= shlibsuff=
  13074. ;;
  13075. *)
  13076. case $LD in # libtool.m4 will add one of these switches to LD
  13077. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13078. libsuff= shlibsuff= libmagic=32-bit;;
  13079. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13080. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13081. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13082. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13083. *) libsuff= shlibsuff= libmagic=never-match;;
  13084. esac
  13085. ;;
  13086. esac
  13087. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13088. shlibpath_overrides_runpath=no
  13089. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13090. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13091. hardcode_into_libs=yes
  13092. ;;
  13093. # No shared lib support for Linux oldld, aout, or coff.
  13094. linux*oldld* | linux*aout* | linux*coff*)
  13095. dynamic_linker=no
  13096. ;;
  13097. # This must be Linux ELF.
  13098. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13099. version_type=linux
  13100. need_lib_prefix=no
  13101. need_version=no
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13103. soname_spec='${libname}${release}${shared_ext}$major'
  13104. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13105. shlibpath_var=LD_LIBRARY_PATH
  13106. shlibpath_overrides_runpath=no
  13107. # Some binutils ld are patched to set DT_RUNPATH
  13108. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13109. $as_echo_n "(cached) " >&6
  13110. else
  13111. lt_cv_shlibpath_overrides_runpath=no
  13112. save_LDFLAGS=$LDFLAGS
  13113. save_libdir=$libdir
  13114. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13115. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13117. /* end confdefs.h. */
  13118. int
  13119. main ()
  13120. {
  13121. ;
  13122. return 0;
  13123. }
  13124. _ACEOF
  13125. if ac_fn_cxx_try_link "$LINENO"; then :
  13126. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13127. lt_cv_shlibpath_overrides_runpath=yes
  13128. fi
  13129. fi
  13130. rm -f core conftest.err conftest.$ac_objext \
  13131. conftest$ac_exeext conftest.$ac_ext
  13132. LDFLAGS=$save_LDFLAGS
  13133. libdir=$save_libdir
  13134. fi
  13135. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13136. # This implies no fast_install, which is unacceptable.
  13137. # Some rework will be needed to allow for fast_install
  13138. # before this can be enabled.
  13139. hardcode_into_libs=yes
  13140. # Append ld.so.conf contents to the search path
  13141. if test -f /etc/ld.so.conf; then
  13142. 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' ' '`
  13143. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13144. fi
  13145. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13146. # powerpc, because MkLinux only supported shared libraries with the
  13147. # GNU dynamic linker. Since this was broken with cross compilers,
  13148. # most powerpc-linux boxes support dynamic linking these days and
  13149. # people can always --disable-shared, the test was removed, and we
  13150. # assume the GNU/Linux dynamic linker is in use.
  13151. dynamic_linker='GNU/Linux ld.so'
  13152. ;;
  13153. netbsd*)
  13154. version_type=sunos
  13155. need_lib_prefix=no
  13156. need_version=no
  13157. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13159. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13160. dynamic_linker='NetBSD (a.out) ld.so'
  13161. else
  13162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13163. soname_spec='${libname}${release}${shared_ext}$major'
  13164. dynamic_linker='NetBSD ld.elf_so'
  13165. fi
  13166. shlibpath_var=LD_LIBRARY_PATH
  13167. shlibpath_overrides_runpath=yes
  13168. hardcode_into_libs=yes
  13169. ;;
  13170. newsos6)
  13171. version_type=linux
  13172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13173. shlibpath_var=LD_LIBRARY_PATH
  13174. shlibpath_overrides_runpath=yes
  13175. ;;
  13176. *nto* | *qnx*)
  13177. version_type=qnx
  13178. need_lib_prefix=no
  13179. need_version=no
  13180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13181. soname_spec='${libname}${release}${shared_ext}$major'
  13182. shlibpath_var=LD_LIBRARY_PATH
  13183. shlibpath_overrides_runpath=no
  13184. hardcode_into_libs=yes
  13185. dynamic_linker='ldqnx.so'
  13186. ;;
  13187. openbsd*)
  13188. version_type=sunos
  13189. sys_lib_dlsearch_path_spec="/usr/lib"
  13190. need_lib_prefix=no
  13191. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13192. case $host_os in
  13193. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13194. *) need_version=no ;;
  13195. esac
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13197. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13198. shlibpath_var=LD_LIBRARY_PATH
  13199. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13200. case $host_os in
  13201. openbsd2.[89] | openbsd2.[89].*)
  13202. shlibpath_overrides_runpath=no
  13203. ;;
  13204. *)
  13205. shlibpath_overrides_runpath=yes
  13206. ;;
  13207. esac
  13208. else
  13209. shlibpath_overrides_runpath=yes
  13210. fi
  13211. ;;
  13212. os2*)
  13213. libname_spec='$name'
  13214. shrext_cmds=".dll"
  13215. need_lib_prefix=no
  13216. library_names_spec='$libname${shared_ext} $libname.a'
  13217. dynamic_linker='OS/2 ld.exe'
  13218. shlibpath_var=LIBPATH
  13219. ;;
  13220. osf3* | osf4* | osf5*)
  13221. version_type=osf
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. soname_spec='${libname}${release}${shared_ext}$major'
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13226. shlibpath_var=LD_LIBRARY_PATH
  13227. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13228. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13229. ;;
  13230. rdos*)
  13231. dynamic_linker=no
  13232. ;;
  13233. solaris*)
  13234. version_type=linux
  13235. need_lib_prefix=no
  13236. need_version=no
  13237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13238. soname_spec='${libname}${release}${shared_ext}$major'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. shlibpath_overrides_runpath=yes
  13241. hardcode_into_libs=yes
  13242. # ldd complains unless libraries are executable
  13243. postinstall_cmds='chmod +x $lib'
  13244. ;;
  13245. sunos4*)
  13246. version_type=sunos
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13248. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13249. shlibpath_var=LD_LIBRARY_PATH
  13250. shlibpath_overrides_runpath=yes
  13251. if test "$with_gnu_ld" = yes; then
  13252. need_lib_prefix=no
  13253. fi
  13254. need_version=yes
  13255. ;;
  13256. sysv4 | sysv4.3*)
  13257. version_type=linux
  13258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13259. soname_spec='${libname}${release}${shared_ext}$major'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. case $host_vendor in
  13262. sni)
  13263. shlibpath_overrides_runpath=no
  13264. need_lib_prefix=no
  13265. runpath_var=LD_RUN_PATH
  13266. ;;
  13267. siemens)
  13268. need_lib_prefix=no
  13269. ;;
  13270. motorola)
  13271. need_lib_prefix=no
  13272. need_version=no
  13273. shlibpath_overrides_runpath=no
  13274. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13275. ;;
  13276. esac
  13277. ;;
  13278. sysv4*MP*)
  13279. if test -d /usr/nec ;then
  13280. version_type=linux
  13281. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13282. soname_spec='$libname${shared_ext}.$major'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. fi
  13285. ;;
  13286. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13287. version_type=freebsd-elf
  13288. need_lib_prefix=no
  13289. need_version=no
  13290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13291. soname_spec='${libname}${release}${shared_ext}$major'
  13292. shlibpath_var=LD_LIBRARY_PATH
  13293. shlibpath_overrides_runpath=yes
  13294. hardcode_into_libs=yes
  13295. if test "$with_gnu_ld" = yes; then
  13296. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13297. else
  13298. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13299. case $host_os in
  13300. sco3.2v5*)
  13301. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13302. ;;
  13303. esac
  13304. fi
  13305. sys_lib_dlsearch_path_spec='/usr/lib'
  13306. ;;
  13307. tpf*)
  13308. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13309. version_type=linux
  13310. need_lib_prefix=no
  13311. need_version=no
  13312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13313. shlibpath_var=LD_LIBRARY_PATH
  13314. shlibpath_overrides_runpath=no
  13315. hardcode_into_libs=yes
  13316. ;;
  13317. uts4*)
  13318. version_type=linux
  13319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13320. soname_spec='${libname}${release}${shared_ext}$major'
  13321. shlibpath_var=LD_LIBRARY_PATH
  13322. ;;
  13323. *)
  13324. dynamic_linker=no
  13325. ;;
  13326. esac
  13327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13328. $as_echo "$dynamic_linker" >&6; }
  13329. test "$dynamic_linker" = no && can_build_shared=no
  13330. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13331. if test "$GCC" = yes; then
  13332. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13333. fi
  13334. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13335. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13336. fi
  13337. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13338. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13339. fi
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13341. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13342. hardcode_action_CXX=
  13343. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13344. test -n "$runpath_var_CXX" ||
  13345. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13346. # We can hardcode non-existent directories.
  13347. if test "$hardcode_direct_CXX" != no &&
  13348. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13349. # have to relink, otherwise we might link with an installed library
  13350. # when we should be linking with a yet-to-be-installed one
  13351. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13352. test "$hardcode_minus_L_CXX" != no; then
  13353. # Linking always hardcodes the temporary library directory.
  13354. hardcode_action_CXX=relink
  13355. else
  13356. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13357. hardcode_action_CXX=immediate
  13358. fi
  13359. else
  13360. # We cannot hardcode anything, or else we can only hardcode existing
  13361. # directories.
  13362. hardcode_action_CXX=unsupported
  13363. fi
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13365. $as_echo "$hardcode_action_CXX" >&6; }
  13366. if test "$hardcode_action_CXX" = relink ||
  13367. test "$inherit_rpath_CXX" = yes; then
  13368. # Fast installation is not supported
  13369. enable_fast_install=no
  13370. elif test "$shlibpath_overrides_runpath" = yes ||
  13371. test "$enable_shared" = no; then
  13372. # Fast installation is not necessary
  13373. enable_fast_install=needless
  13374. fi
  13375. fi # test -n "$compiler"
  13376. CC=$lt_save_CC
  13377. LDCXX=$LD
  13378. LD=$lt_save_LD
  13379. GCC=$lt_save_GCC
  13380. with_gnu_ld=$lt_save_with_gnu_ld
  13381. lt_cv_path_LDCXX=$lt_cv_path_LD
  13382. lt_cv_path_LD=$lt_save_path_LD
  13383. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13384. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13385. fi # test "$_lt_caught_CXX_error" != yes
  13386. ac_ext=c
  13387. ac_cpp='$CPP $CPPFLAGS'
  13388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13391. ac_config_commands="$ac_config_commands libtool"
  13392. # Only expand once:
  13393. GPROFNG_LIBADD="-L../../libiberty -liberty"
  13394. if test "$enable_shared" = "yes"; then
  13395. GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
  13396. fi
  13397. # Figure out what compiler warnings we can enable.
  13398. # See config/warnings.m4 for details.
  13399. ac_ext=c
  13400. ac_cpp='$CPP $CPPFLAGS'
  13401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13404. WERROR=
  13405. # Check whether --enable-werror-always was given.
  13406. if test "${enable_werror_always+set}" = set; then :
  13407. enableval=$enable_werror_always;
  13408. else
  13409. enable_werror_always=no
  13410. fi
  13411. if test $enable_werror_always = yes; then :
  13412. WERROR="$WERROR${WERROR:+ }-Werror"
  13413. fi
  13414. ac_ext=c
  13415. ac_cpp='$CPP $CPPFLAGS'
  13416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13419. ac_ext=c
  13420. ac_cpp='$CPP $CPPFLAGS'
  13421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13424. gprofng_cflags=
  13425. save_CFLAGS="$CFLAGS"
  13426. for real_option in -Wall; do
  13427. # Do the check with the no- prefix removed since gcc silently
  13428. # accepts any -Wno-* option on purpose
  13429. case $real_option in
  13430. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  13431. *) option=$real_option ;;
  13432. esac
  13433. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  13435. $as_echo_n "checking whether $CC supports $option... " >&6; }
  13436. if eval \${$as_acx_Woption+:} false; then :
  13437. $as_echo_n "(cached) " >&6
  13438. else
  13439. CFLAGS="$option"
  13440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13441. /* end confdefs.h. */
  13442. int
  13443. main ()
  13444. {
  13445. ;
  13446. return 0;
  13447. }
  13448. _ACEOF
  13449. if ac_fn_c_try_compile "$LINENO"; then :
  13450. eval "$as_acx_Woption=yes"
  13451. else
  13452. eval "$as_acx_Woption=no"
  13453. fi
  13454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13455. fi
  13456. eval ac_res=\$$as_acx_Woption
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13458. $as_echo "$ac_res" >&6; }
  13459. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  13460. gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
  13461. fi
  13462. done
  13463. CFLAGS="$save_CFLAGS"
  13464. ac_ext=c
  13465. ac_cpp='$CPP $CPPFLAGS'
  13466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13469. ac_ext=c
  13470. ac_cpp='$CPP $CPPFLAGS'
  13471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13474. GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS=
  13475. save_CFLAGS="$CFLAGS"
  13476. for real_option in -Wno-format-truncation; do
  13477. # Do the check with the no- prefix removed since gcc silently
  13478. # accepts any -Wno-* option on purpose
  13479. case $real_option in
  13480. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  13481. *) option=$real_option ;;
  13482. esac
  13483. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  13485. $as_echo_n "checking whether $CC supports $option... " >&6; }
  13486. if eval \${$as_acx_Woption+:} false; then :
  13487. $as_echo_n "(cached) " >&6
  13488. else
  13489. CFLAGS="$option"
  13490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13491. /* end confdefs.h. */
  13492. int
  13493. main ()
  13494. {
  13495. ;
  13496. return 0;
  13497. }
  13498. _ACEOF
  13499. if ac_fn_c_try_compile "$LINENO"; then :
  13500. eval "$as_acx_Woption=yes"
  13501. else
  13502. eval "$as_acx_Woption=no"
  13503. fi
  13504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13505. fi
  13506. eval ac_res=\$$as_acx_Woption
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13508. $as_echo "$ac_res" >&6; }
  13509. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  13510. GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
  13511. fi
  13512. done
  13513. CFLAGS="$save_CFLAGS"
  13514. ac_ext=c
  13515. ac_cpp='$CPP $CPPFLAGS'
  13516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13519. ac_ext=c
  13520. ac_cpp='$CPP $CPPFLAGS'
  13521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13524. GPROFNG_NO_SWITCH_CFLAGS=
  13525. save_CFLAGS="$CFLAGS"
  13526. for real_option in -Wno-switch; do
  13527. # Do the check with the no- prefix removed since gcc silently
  13528. # accepts any -Wno-* option on purpose
  13529. case $real_option in
  13530. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  13531. *) option=$real_option ;;
  13532. esac
  13533. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  13535. $as_echo_n "checking whether $CC supports $option... " >&6; }
  13536. if eval \${$as_acx_Woption+:} false; then :
  13537. $as_echo_n "(cached) " >&6
  13538. else
  13539. CFLAGS="$option"
  13540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13541. /* end confdefs.h. */
  13542. int
  13543. main ()
  13544. {
  13545. ;
  13546. return 0;
  13547. }
  13548. _ACEOF
  13549. if ac_fn_c_try_compile "$LINENO"; then :
  13550. eval "$as_acx_Woption=yes"
  13551. else
  13552. eval "$as_acx_Woption=no"
  13553. fi
  13554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13555. fi
  13556. eval ac_res=\$$as_acx_Woption
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13558. $as_echo "$ac_res" >&6; }
  13559. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  13560. GPROFNG_NO_SWITCH_CFLAGS="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
  13561. fi
  13562. done
  13563. CFLAGS="$save_CFLAGS"
  13564. ac_ext=c
  13565. ac_cpp='$CPP $CPPFLAGS'
  13566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13569. gprofng_cppflags="-U_ASM"
  13570. build_collector=
  13571. build_src=
  13572. # This is annoying: it means we have to pass --enable-shared explicitly to
  13573. # get gprofng, while the configure default is supposed to be that shared libs
  13574. # are on by default. But as long as libiberty has code like this, so must
  13575. # we...
  13576. case "${target}" in
  13577. x86_64-*-linux*)
  13578. build_src=true
  13579. build_collector=true
  13580. ;;
  13581. i?86-*-linux*)
  13582. build_collector=true
  13583. build_collector=true
  13584. ;;
  13585. aarch64-*-linux*)
  13586. build_src=true
  13587. build_collector=true
  13588. ;;
  13589. esac
  13590. # Check whether --enable-gprofng-tools was given.
  13591. if test "${enable_gprofng_tools+set}" = set; then :
  13592. enableval=$enable_gprofng_tools; build_src=$enableval
  13593. fi
  13594. if test x$build_collector = xtrue; then
  13595. BUILD_COLLECTOR_TRUE=
  13596. BUILD_COLLECTOR_FALSE='#'
  13597. else
  13598. BUILD_COLLECTOR_TRUE='#'
  13599. BUILD_COLLECTOR_FALSE=
  13600. fi
  13601. if test x$build_src = xtrue; then
  13602. BUILD_SRC_TRUE=
  13603. BUILD_SRC_FALSE='#'
  13604. else
  13605. BUILD_SRC_TRUE='#'
  13606. BUILD_SRC_FALSE=
  13607. fi
  13608. run_tests=false
  13609. if test x$build_collector = xtrue; then
  13610. subdirs="$subdirs libcollector"
  13611. if test x${host} = x${target}; then
  13612. run_tests=true
  13613. fi
  13614. fi
  13615. if test x$run_tests = xtrue; then
  13616. RUN_TESTS_TRUE=
  13617. RUN_TESTS_FALSE='#'
  13618. else
  13619. RUN_TESTS_TRUE='#'
  13620. RUN_TESTS_FALSE=
  13621. fi
  13622. ac_ext=c
  13623. ac_cpp='$CPP $CPPFLAGS'
  13624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13627. ax_pthread_ok=no
  13628. # We used to check for pthread.h first, but this fails if pthread.h
  13629. # requires special compiler flags (e.g. on Tru64 or Sequent).
  13630. # It gets checked for in the link test anyway.
  13631. # First of all, check if the user has set any of the PTHREAD_LIBS,
  13632. # etcetera environment variables, and if threads linking works using
  13633. # them:
  13634. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  13635. ax_pthread_save_CC="$CC"
  13636. ax_pthread_save_CFLAGS="$CFLAGS"
  13637. ax_pthread_save_LIBS="$LIBS"
  13638. if test "x$PTHREAD_CC" != "x"; then :
  13639. CC="$PTHREAD_CC"
  13640. fi
  13641. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13642. LIBS="$PTHREAD_LIBS $LIBS"
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  13644. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  13645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13646. /* end confdefs.h. */
  13647. /* Override any GCC internal prototype to avoid an error.
  13648. Use char because int might match the return type of a GCC
  13649. builtin and then its argument prototype would still apply. */
  13650. #ifdef __cplusplus
  13651. extern "C"
  13652. #endif
  13653. char pthread_join ();
  13654. int
  13655. main ()
  13656. {
  13657. return pthread_join ();
  13658. ;
  13659. return 0;
  13660. }
  13661. _ACEOF
  13662. if ac_fn_c_try_link "$LINENO"; then :
  13663. ax_pthread_ok=yes
  13664. fi
  13665. rm -f core conftest.err conftest.$ac_objext \
  13666. conftest$ac_exeext conftest.$ac_ext
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  13668. $as_echo "$ax_pthread_ok" >&6; }
  13669. if test "x$ax_pthread_ok" = "xno"; then
  13670. PTHREAD_LIBS=""
  13671. PTHREAD_CFLAGS=""
  13672. fi
  13673. CC="$ax_pthread_save_CC"
  13674. CFLAGS="$ax_pthread_save_CFLAGS"
  13675. LIBS="$ax_pthread_save_LIBS"
  13676. fi
  13677. # We must check for the threads library under a number of different
  13678. # names; the ordering is very important because some systems
  13679. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  13680. # libraries is broken (non-POSIX).
  13681. # Create a list of thread flags to try. Items starting with a "-" are
  13682. # C compiler flags, and other items are library names, except for "none"
  13683. # which indicates that we try without any flags at all, and "pthread-config"
  13684. # which is a program returning the flags for the Pth emulation library.
  13685. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  13686. # The ordering *is* (sometimes) important. Some notes on the
  13687. # individual items follow:
  13688. # pthreads: AIX (must check this before -lpthread)
  13689. # none: in case threads are in libc; should be tried before -Kthread and
  13690. # other compiler flags to prevent continual compiler warnings
  13691. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  13692. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  13693. # (Note: HP C rejects this with "bad form for `-t' option")
  13694. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  13695. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  13696. # doesn't hurt to check since this sometimes defines pthreads and
  13697. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  13698. # is present but should not be used directly; and before -mthreads,
  13699. # because the compiler interprets this as "-mt" + "-hreads")
  13700. # -mthreads: Mingw32/gcc, Lynx/gcc
  13701. # pthread: Linux, etcetera
  13702. # --thread-safe: KAI C++
  13703. # pthread-config: use pthread-config program (for GNU Pth library)
  13704. case $host_os in
  13705. freebsd*)
  13706. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  13707. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  13708. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  13709. ;;
  13710. hpux*)
  13711. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  13712. # multi-threading and also sets -lpthread."
  13713. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  13714. ;;
  13715. openedition*)
  13716. # IBM z/OS requires a feature-test macro to be defined in order to
  13717. # enable POSIX threads at all, so give the user a hint if this is
  13718. # not set. (We don't define these ourselves, as they can affect
  13719. # other portions of the system API in unpredictable ways.)
  13720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13721. /* end confdefs.h. */
  13722. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  13723. AX_PTHREAD_ZOS_MISSING
  13724. # endif
  13725. _ACEOF
  13726. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13727. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  13729. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  13730. fi
  13731. rm -f conftest*
  13732. ;;
  13733. solaris*)
  13734. # On Solaris (at least, for some versions), libc contains stubbed
  13735. # (non-functional) versions of the pthreads routines, so link-based
  13736. # tests will erroneously succeed. (N.B.: The stubs are missing
  13737. # pthread_cleanup_push, or rather a function called by this macro,
  13738. # so we could check for that, but who knows whether they'll stub
  13739. # that too in a future libc.) So we'll check first for the
  13740. # standard Solaris way of linking pthreads (-mt -lpthread).
  13741. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  13742. ;;
  13743. esac
  13744. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  13745. if test "x$GCC" = "xyes"; then :
  13746. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  13747. fi
  13748. # The presence of a feature test macro requesting re-entrant function
  13749. # definitions is, on some systems, a strong hint that pthreads support is
  13750. # correctly enabled
  13751. case $host_os in
  13752. darwin* | hpux* | linux* | osf* | solaris*)
  13753. ax_pthread_check_macro="_REENTRANT"
  13754. ;;
  13755. aix*)
  13756. ax_pthread_check_macro="_THREAD_SAFE"
  13757. ;;
  13758. *)
  13759. ax_pthread_check_macro="--"
  13760. ;;
  13761. esac
  13762. if test "x$ax_pthread_check_macro" = "x--"; then :
  13763. ax_pthread_check_cond=0
  13764. else
  13765. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  13766. fi
  13767. # Are we compiling with Clang?
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  13769. $as_echo_n "checking whether $CC is Clang... " >&6; }
  13770. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  13771. $as_echo_n "(cached) " >&6
  13772. else
  13773. ax_cv_PTHREAD_CLANG=no
  13774. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  13775. if test "x$GCC" = "xyes"; then
  13776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13777. /* end confdefs.h. */
  13778. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  13779. # if defined(__clang__) && defined(__llvm__)
  13780. AX_PTHREAD_CC_IS_CLANG
  13781. # endif
  13782. _ACEOF
  13783. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13784. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  13785. ax_cv_PTHREAD_CLANG=yes
  13786. fi
  13787. rm -f conftest*
  13788. fi
  13789. fi
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  13791. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  13792. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  13793. ax_pthread_clang_warning=no
  13794. # Clang needs special handling, because older versions handle the -pthread
  13795. # option in a rather... idiosyncratic way
  13796. if test "x$ax_pthread_clang" = "xyes"; then
  13797. # Clang takes -pthread; it has never supported any other flag
  13798. # (Note 1: This will need to be revisited if a system that Clang
  13799. # supports has POSIX threads in a separate library. This tends not
  13800. # to be the way of modern systems, but it's conceivable.)
  13801. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  13802. # to get POSIX threads support; the API is always present and
  13803. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  13804. # -pthread does define _REENTRANT, and while the Darwin headers
  13805. # ignore this macro, third-party headers might not.)
  13806. PTHREAD_CFLAGS="-pthread"
  13807. PTHREAD_LIBS=
  13808. ax_pthread_ok=yes
  13809. # However, older versions of Clang make a point of warning the user
  13810. # that, in an invocation where only linking and no compilation is
  13811. # taking place, the -pthread option has no effect ("argument unused
  13812. # during compilation"). They expect -pthread to be passed in only
  13813. # when source code is being compiled.
  13814. #
  13815. # Problem is, this is at odds with the way Automake and most other
  13816. # C build frameworks function, which is that the same flags used in
  13817. # compilation (CFLAGS) are also used in linking. Many systems
  13818. # supported by AX_PTHREAD require exactly this for POSIX threads
  13819. # support, and in fact it is often not straightforward to specify a
  13820. # flag that is used only in the compilation phase and not in
  13821. # linking. Such a scenario is extremely rare in practice.
  13822. #
  13823. # Even though use of the -pthread flag in linking would only print
  13824. # a warning, this can be a nuisance for well-run software projects
  13825. # that build with -Werror. So if the active version of Clang has
  13826. # this misfeature, we search for an option to squash it.
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  13828. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  13829. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  13830. $as_echo_n "(cached) " >&6
  13831. else
  13832. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  13833. # Create an alternate version of $ac_link that compiles and
  13834. # links in two steps (.c -> .o, .o -> exe) instead of one
  13835. # (.c -> exe), because the warning occurs only in the second
  13836. # step
  13837. ax_pthread_save_ac_link="$ac_link"
  13838. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  13839. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  13840. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  13841. ax_pthread_save_CFLAGS="$CFLAGS"
  13842. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  13843. if test "x$ax_pthread_try" = "xunknown"; then :
  13844. break
  13845. fi
  13846. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  13847. ac_link="$ax_pthread_save_ac_link"
  13848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13849. /* end confdefs.h. */
  13850. int main(void){return 0;}
  13851. _ACEOF
  13852. if ac_fn_c_try_link "$LINENO"; then :
  13853. ac_link="$ax_pthread_2step_ac_link"
  13854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13855. /* end confdefs.h. */
  13856. int main(void){return 0;}
  13857. _ACEOF
  13858. if ac_fn_c_try_link "$LINENO"; then :
  13859. break
  13860. fi
  13861. rm -f core conftest.err conftest.$ac_objext \
  13862. conftest$ac_exeext conftest.$ac_ext
  13863. fi
  13864. rm -f core conftest.err conftest.$ac_objext \
  13865. conftest$ac_exeext conftest.$ac_ext
  13866. done
  13867. ac_link="$ax_pthread_save_ac_link"
  13868. CFLAGS="$ax_pthread_save_CFLAGS"
  13869. if test "x$ax_pthread_try" = "x"; then :
  13870. ax_pthread_try=no
  13871. fi
  13872. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  13873. fi
  13874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  13875. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  13876. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  13877. no | unknown) ;;
  13878. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  13879. esac
  13880. fi # $ax_pthread_clang = yes
  13881. if test "x$ax_pthread_ok" = "xno"; then
  13882. for ax_pthread_try_flag in $ax_pthread_flags; do
  13883. case $ax_pthread_try_flag in
  13884. none)
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  13886. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  13887. ;;
  13888. -mt,pthread)
  13889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  13890. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  13891. PTHREAD_CFLAGS="-mt"
  13892. PTHREAD_LIBS="-lpthread"
  13893. ;;
  13894. -*)
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  13896. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  13897. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  13898. ;;
  13899. pthread-config)
  13900. # Extract the first word of "pthread-config", so it can be a program name with args.
  13901. set dummy pthread-config; ac_word=$2
  13902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13903. $as_echo_n "checking for $ac_word... " >&6; }
  13904. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  13905. $as_echo_n "(cached) " >&6
  13906. else
  13907. if test -n "$ax_pthread_config"; then
  13908. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  13909. else
  13910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13911. for as_dir in $PATH
  13912. do
  13913. IFS=$as_save_IFS
  13914. test -z "$as_dir" && as_dir=.
  13915. for ac_exec_ext in '' $ac_executable_extensions; do
  13916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13917. ac_cv_prog_ax_pthread_config="yes"
  13918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13919. break 2
  13920. fi
  13921. done
  13922. done
  13923. IFS=$as_save_IFS
  13924. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  13925. fi
  13926. fi
  13927. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  13928. if test -n "$ax_pthread_config"; then
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  13930. $as_echo "$ax_pthread_config" >&6; }
  13931. else
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13933. $as_echo "no" >&6; }
  13934. fi
  13935. if test "x$ax_pthread_config" = "xno"; then :
  13936. continue
  13937. fi
  13938. PTHREAD_CFLAGS="`pthread-config --cflags`"
  13939. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  13940. ;;
  13941. *)
  13942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  13943. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  13944. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  13945. ;;
  13946. esac
  13947. ax_pthread_save_CFLAGS="$CFLAGS"
  13948. ax_pthread_save_LIBS="$LIBS"
  13949. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13950. LIBS="$PTHREAD_LIBS $LIBS"
  13951. # Check for various functions. We must include pthread.h,
  13952. # since some functions may be macros. (On the Sequent, we
  13953. # need a special flag -Kthread to make this header compile.)
  13954. # We check for pthread_join because it is in -lpthread on IRIX
  13955. # while pthread_create is in libc. We check for pthread_attr_init
  13956. # due to DEC craziness with -lpthreads. We check for
  13957. # pthread_cleanup_push because it is one of the few pthread
  13958. # functions on Solaris that doesn't have a non-functional libc stub.
  13959. # We try pthread_create on general principles.
  13960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13961. /* end confdefs.h. */
  13962. #include <pthread.h>
  13963. # if $ax_pthread_check_cond
  13964. # error "$ax_pthread_check_macro must be defined"
  13965. # endif
  13966. static void routine(void *a) { a = 0; }
  13967. static void *start_routine(void *a) { return a; }
  13968. int
  13969. main ()
  13970. {
  13971. pthread_t th; pthread_attr_t attr;
  13972. pthread_create(&th, 0, start_routine, 0);
  13973. pthread_join(th, 0);
  13974. pthread_attr_init(&attr);
  13975. pthread_cleanup_push(routine, 0);
  13976. pthread_cleanup_pop(0) /* ; */
  13977. ;
  13978. return 0;
  13979. }
  13980. _ACEOF
  13981. if ac_fn_c_try_link "$LINENO"; then :
  13982. ax_pthread_ok=yes
  13983. fi
  13984. rm -f core conftest.err conftest.$ac_objext \
  13985. conftest$ac_exeext conftest.$ac_ext
  13986. CFLAGS="$ax_pthread_save_CFLAGS"
  13987. LIBS="$ax_pthread_save_LIBS"
  13988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  13989. $as_echo "$ax_pthread_ok" >&6; }
  13990. if test "x$ax_pthread_ok" = "xyes"; then :
  13991. break
  13992. fi
  13993. PTHREAD_LIBS=""
  13994. PTHREAD_CFLAGS=""
  13995. done
  13996. fi
  13997. # Various other checks:
  13998. if test "x$ax_pthread_ok" = "xyes"; then
  13999. ax_pthread_save_CFLAGS="$CFLAGS"
  14000. ax_pthread_save_LIBS="$LIBS"
  14001. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14002. LIBS="$PTHREAD_LIBS $LIBS"
  14003. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  14005. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  14006. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  14007. $as_echo_n "(cached) " >&6
  14008. else
  14009. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  14010. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  14011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14012. /* end confdefs.h. */
  14013. #include <pthread.h>
  14014. int
  14015. main ()
  14016. {
  14017. int attr = $ax_pthread_attr; return attr /* ; */
  14018. ;
  14019. return 0;
  14020. }
  14021. _ACEOF
  14022. if ac_fn_c_try_link "$LINENO"; then :
  14023. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  14024. fi
  14025. rm -f core conftest.err conftest.$ac_objext \
  14026. conftest$ac_exeext conftest.$ac_ext
  14027. done
  14028. fi
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  14030. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  14031. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  14032. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  14033. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  14034. cat >>confdefs.h <<_ACEOF
  14035. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  14036. _ACEOF
  14037. ax_pthread_joinable_attr_defined=yes
  14038. fi
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  14040. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  14041. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  14042. $as_echo_n "(cached) " >&6
  14043. else
  14044. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  14045. case $host_os in
  14046. solaris*)
  14047. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  14048. ;;
  14049. esac
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  14052. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  14053. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  14054. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  14055. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  14056. ax_pthread_special_flags_added=yes
  14057. fi
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  14059. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  14060. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  14061. $as_echo_n "(cached) " >&6
  14062. else
  14063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14064. /* end confdefs.h. */
  14065. #include <pthread.h>
  14066. int
  14067. main ()
  14068. {
  14069. int i = PTHREAD_PRIO_INHERIT;
  14070. ;
  14071. return 0;
  14072. }
  14073. _ACEOF
  14074. if ac_fn_c_try_link "$LINENO"; then :
  14075. ax_cv_PTHREAD_PRIO_INHERIT=yes
  14076. else
  14077. ax_cv_PTHREAD_PRIO_INHERIT=no
  14078. fi
  14079. rm -f core conftest.err conftest.$ac_objext \
  14080. conftest$ac_exeext conftest.$ac_ext
  14081. fi
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  14083. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  14084. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  14085. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  14086. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  14087. ax_pthread_prio_inherit_defined=yes
  14088. fi
  14089. CFLAGS="$ax_pthread_save_CFLAGS"
  14090. LIBS="$ax_pthread_save_LIBS"
  14091. # More AIX lossage: compile with *_r variant
  14092. if test "x$GCC" != "xyes"; then
  14093. case $host_os in
  14094. aix*)
  14095. case "x/$CC" in #(
  14096. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  14097. #handle absolute path differently from PATH based program lookup
  14098. case "x$CC" in #(
  14099. x/*) :
  14100. if as_fn_executable_p ${CC}_r; then :
  14101. PTHREAD_CC="${CC}_r"
  14102. fi ;; #(
  14103. *) :
  14104. for ac_prog in ${CC}_r
  14105. do
  14106. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14107. set dummy $ac_prog; ac_word=$2
  14108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14109. $as_echo_n "checking for $ac_word... " >&6; }
  14110. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. if test -n "$PTHREAD_CC"; then
  14114. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  14115. else
  14116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14117. for as_dir in $PATH
  14118. do
  14119. IFS=$as_save_IFS
  14120. test -z "$as_dir" && as_dir=.
  14121. for ac_exec_ext in '' $ac_executable_extensions; do
  14122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14123. ac_cv_prog_PTHREAD_CC="$ac_prog"
  14124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14125. break 2
  14126. fi
  14127. done
  14128. done
  14129. IFS=$as_save_IFS
  14130. fi
  14131. fi
  14132. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  14133. if test -n "$PTHREAD_CC"; then
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  14135. $as_echo "$PTHREAD_CC" >&6; }
  14136. else
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14138. $as_echo "no" >&6; }
  14139. fi
  14140. test -n "$PTHREAD_CC" && break
  14141. done
  14142. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  14143. ;;
  14144. esac ;; #(
  14145. *) :
  14146. ;;
  14147. esac
  14148. ;;
  14149. esac
  14150. fi
  14151. fi
  14152. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  14153. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  14154. if test "x$ax_pthread_ok" = "xyes"; then
  14155. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  14156. :
  14157. else
  14158. ax_pthread_ok=no
  14159. fi
  14160. ac_ext=c
  14161. ac_cpp='$CPP $CPPFLAGS'
  14162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14165. # Specify a location for JDK
  14166. enable_gprofng_jp=
  14167. jdk_inc=
  14168. # Check whether --with-jdk was given.
  14169. if test "${with_jdk+set}" = set; then :
  14170. withval=$with_jdk;
  14171. fi
  14172. if test "x$with_jdk" != x; then
  14173. jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
  14174. enable_gprofng_jp=yes
  14175. else
  14176. # Extract the first word of "javac", so it can be a program name with args.
  14177. set dummy javac; ac_word=$2
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14179. $as_echo_n "checking for $ac_word... " >&6; }
  14180. if ${ac_cv_path_JAVAC+:} false; then :
  14181. $as_echo_n "(cached) " >&6
  14182. else
  14183. case $JAVAC in
  14184. [\\/]* | ?:[\\/]*)
  14185. ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  14186. ;;
  14187. *)
  14188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14189. for as_dir in $PATH
  14190. do
  14191. IFS=$as_save_IFS
  14192. test -z "$as_dir" && as_dir=.
  14193. for ac_exec_ext in '' $ac_executable_extensions; do
  14194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14195. ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
  14196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14197. break 2
  14198. fi
  14199. done
  14200. done
  14201. IFS=$as_save_IFS
  14202. test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
  14203. ;;
  14204. esac
  14205. fi
  14206. JAVAC=$ac_cv_path_JAVAC
  14207. if test -n "$JAVAC"; then
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
  14209. $as_echo "$JAVAC" >&6; }
  14210. else
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14212. $as_echo "no" >&6; }
  14213. fi
  14214. if test -f $JAVAC; then
  14215. x=`readlink -f $JAVAC`
  14216. x=`dirname $x`
  14217. x=`dirname $x`
  14218. if ! test -f $x/include/jni.h; then
  14219. x=`dirname $x`
  14220. fi
  14221. if test -f $x/include/jni.h; then
  14222. jdk_inc="-I$x/include -I$x/include/linux"
  14223. enable_gprofng_jp=yes
  14224. fi
  14225. fi
  14226. fi
  14227. if test "x$enable_gprofng_jp" = x; then
  14228. # Extract the first word of "java", so it can be a program name with args.
  14229. set dummy java; ac_word=$2
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14231. $as_echo_n "checking for $ac_word... " >&6; }
  14232. if ${ac_cv_path_JAVA+:} false; then :
  14233. $as_echo_n "(cached) " >&6
  14234. else
  14235. case $JAVA in
  14236. [\\/]* | ?:[\\/]*)
  14237. ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
  14238. ;;
  14239. *)
  14240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14241. for as_dir in $PATH
  14242. do
  14243. IFS=$as_save_IFS
  14244. test -z "$as_dir" && as_dir=.
  14245. for ac_exec_ext in '' $ac_executable_extensions; do
  14246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14247. ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
  14248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14249. break 2
  14250. fi
  14251. done
  14252. done
  14253. IFS=$as_save_IFS
  14254. test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
  14255. ;;
  14256. esac
  14257. fi
  14258. JAVA=$ac_cv_path_JAVA
  14259. if test -n "$JAVA"; then
  14260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
  14261. $as_echo "$JAVA" >&6; }
  14262. else
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14264. $as_echo "no" >&6; }
  14265. fi
  14266. if test -f $JAVA; then
  14267. x=`readlink -f $JAVA`
  14268. x=`dirname $x`
  14269. x=`dirname $x`
  14270. if ! test -f $x/include/jni.h; then
  14271. x=`dirname $x`
  14272. fi
  14273. if test -f $x/include/jni.h; then
  14274. jdk_inc="-I$x/include -I$x/include/linux"
  14275. enable_gprofng_jp=yes
  14276. fi
  14277. fi
  14278. fi
  14279. if test "x$enable_gprofng_jp" = x; then
  14280. ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
  14281. "
  14282. if test "x$ac_cv_header_jni_h" = xyes; then :
  14283. enable_gprofng_jp=yes
  14284. fi
  14285. fi
  14286. GPROFNG_BROKEN_JAVAC=no
  14287. if test "x$enable_gprofng_jp" = x; then
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
  14289. gprofng will be build without support for profiling Java applications.
  14290. Use --with-jdk=PATH to specify directory for the installed JDK" >&5
  14291. $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
  14292. gprofng will be build without support for profiling Java applications.
  14293. Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
  14294. else
  14295. $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
  14296. if test "x$JAVAC" != x; then
  14297. cat > configtest.java << EOF
  14298. class Simple{
  14299. public static void main(String args){
  14300. System.out.println("Hello Java");
  14301. }
  14302. }
  14303. EOF
  14304. if { ac_try='$JAVAC conftest.java &5 2>&1'
  14305. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  14306. (eval $ac_try) 2>&5
  14307. ac_status=$?
  14308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14309. test $ac_status = 0; }; }; then
  14310. GPROFNG_BROKEN_JAVAC=no
  14311. else
  14312. GPROFNG_BROKEN_JAVAC=yes
  14313. fi
  14314. rm -f configtest.*
  14315. fi
  14316. fi
  14317. DEBUG=
  14318. # Check whether --enable-gprofng-debug was given.
  14319. if test "${enable_gprofng_debug+set}" = set; then :
  14320. enableval=$enable_gprofng_debug;
  14321. case "$enableval" in
  14322. yes|no) ;;
  14323. *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
  14324. esac
  14325. else
  14326. enable_gprofng_debug=no
  14327. fi
  14328. if test "${enable_gprofng_debug}" = yes; then
  14329. $as_echo "#define DEBUG 1" >>confdefs.h
  14330. fi
  14331. # Check if linker supports --as-needed and --no-as-needed options.
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
  14333. $as_echo_n "checking linker --as-needed support... " >&6; }
  14334. if ${bfd_cv_ld_as_needed+:} false; then :
  14335. $as_echo_n "(cached) " >&6
  14336. else
  14337. bfd_cv_ld_as_needed=no
  14338. if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
  14339. bfd_cv_ld_as_needed=yes
  14340. fi
  14341. fi
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
  14343. $as_echo "$bfd_cv_ld_as_needed" >&6; }
  14344. no_as_needed=
  14345. if test x"$bfd_cv_ld_as_needed" = xyes; then
  14346. no_as_needed='-Wl,--no-as-needed'
  14347. fi
  14348. # Extract the first word of "expect", so it can be a program name with args.
  14349. set dummy expect; ac_word=$2
  14350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14351. $as_echo_n "checking for $ac_word... " >&6; }
  14352. if ${ac_cv_path_EXPECT+:} false; then :
  14353. $as_echo_n "(cached) " >&6
  14354. else
  14355. case $EXPECT in
  14356. [\\/]* | ?:[\\/]*)
  14357. ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
  14358. ;;
  14359. *)
  14360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14361. for as_dir in $PATH
  14362. do
  14363. IFS=$as_save_IFS
  14364. test -z "$as_dir" && as_dir=.
  14365. for ac_exec_ext in '' $ac_executable_extensions; do
  14366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14367. ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
  14368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14369. break 2
  14370. fi
  14371. done
  14372. done
  14373. IFS=$as_save_IFS
  14374. ;;
  14375. esac
  14376. fi
  14377. EXPECT=$ac_cv_path_EXPECT
  14378. if test -n "$EXPECT"; then
  14379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  14380. $as_echo "$EXPECT" >&6; }
  14381. else
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14383. $as_echo "no" >&6; }
  14384. fi
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
  14386. $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
  14387. if ${ac_cv_libctf_tcl_try+:} false; then :
  14388. $as_echo_n "(cached) " >&6
  14389. else
  14390. ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
  14391. if [llength [info commands try]] then { puts yes } else { puts no }
  14392. EOF
  14393. fi`
  14394. fi
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
  14396. $as_echo "$ac_cv_libctf_tcl_try" >&6; }
  14397. if test "${ac_cv_libctf_tcl_try}" = yes; then
  14398. TCL_TRY_TRUE=
  14399. TCL_TRY_FALSE='#'
  14400. else
  14401. TCL_TRY_TRUE='#'
  14402. TCL_TRY_FALSE=
  14403. fi
  14404. # Use the system's zlib library.
  14405. zlibdir="-L\$(top_builddir)/../zlib"
  14406. zlibinc="-I\$(top_srcdir)/../zlib"
  14407. # Check whether --with-system-zlib was given.
  14408. if test "${with_system_zlib+set}" = set; then :
  14409. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  14410. zlibdir=
  14411. zlibinc=
  14412. fi
  14413. fi
  14414. # Generate manpages, if possible.
  14415. if test $cross_compiling = no; then
  14416. HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
  14417. build_man=true
  14418. else
  14419. build_man=false
  14420. fi
  14421. if test x$build_man = xtrue; then
  14422. BUILD_MAN_TRUE=
  14423. BUILD_MAN_FALSE='#'
  14424. else
  14425. BUILD_MAN_TRUE='#'
  14426. BUILD_MAN_FALSE=
  14427. fi
  14428. LD_NO_AS_NEEDED=${no_as_needed}
  14429. GPROFNG_CFLAGS=${gprofng_cflags}
  14430. GPROFNG_CPPFLAGS=${gprofng_cppflags}
  14431. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  14432. if test "x$ac_cv_have_decl_basename" = xyes; then :
  14433. ac_have_decl=1
  14434. else
  14435. ac_have_decl=0
  14436. fi
  14437. cat >>confdefs.h <<_ACEOF
  14438. #define HAVE_DECL_BASENAME $ac_have_decl
  14439. _ACEOF
  14440. for ac_func in clock_gettime strsignal
  14441. do :
  14442. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14443. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14444. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14445. cat >>confdefs.h <<_ACEOF
  14446. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14447. _ACEOF
  14448. fi
  14449. done
  14450. clock_gettime_link=
  14451. # At least for glibc, clock_gettime is in librt. But don't
  14452. # pull that in if it still doesn't give us the function we want. This
  14453. # test is copied from libgomp, and modified to not link in -lrt as
  14454. # we're using this for test timing only.
  14455. if test "$ac_cv_func_clock_gettime" = no; then
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  14457. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  14458. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  14459. $as_echo_n "(cached) " >&6
  14460. else
  14461. ac_check_lib_save_LIBS=$LIBS
  14462. LIBS="-lrt $LIBS"
  14463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14464. /* end confdefs.h. */
  14465. /* Override any GCC internal prototype to avoid an error.
  14466. Use char because int might match the return type of a GCC
  14467. builtin and then its argument prototype would still apply. */
  14468. #ifdef __cplusplus
  14469. extern "C"
  14470. #endif
  14471. char clock_gettime ();
  14472. int
  14473. main ()
  14474. {
  14475. return clock_gettime ();
  14476. ;
  14477. return 0;
  14478. }
  14479. _ACEOF
  14480. if ac_fn_c_try_link "$LINENO"; then :
  14481. ac_cv_lib_rt_clock_gettime=yes
  14482. else
  14483. ac_cv_lib_rt_clock_gettime=no
  14484. fi
  14485. rm -f core conftest.err conftest.$ac_objext \
  14486. conftest$ac_exeext conftest.$ac_ext
  14487. LIBS=$ac_check_lib_save_LIBS
  14488. fi
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  14490. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  14491. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  14492. CLOCK_GETTIME_LINK=-lrt
  14493. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  14494. fi
  14495. fi
  14496. ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
  14497. ac_config_headers="$ac_config_headers config.h:common/config.h.in"
  14498. cat >confcache <<\_ACEOF
  14499. # This file is a shell script that caches the results of configure
  14500. # tests run on this system so they can be shared between configure
  14501. # scripts and configure runs, see configure's option --config-cache.
  14502. # It is not useful on other systems. If it contains results you don't
  14503. # want to keep, you may remove or edit it.
  14504. #
  14505. # config.status only pays attention to the cache file if you give it
  14506. # the --recheck option to rerun configure.
  14507. #
  14508. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14509. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14510. # following values.
  14511. _ACEOF
  14512. # The following way of writing the cache mishandles newlines in values,
  14513. # but we know of no workaround that is simple, portable, and efficient.
  14514. # So, we kill variables containing newlines.
  14515. # Ultrix sh set writes to stderr and can't be redirected directly,
  14516. # and sets the high bit in the cache file unless we assign to the vars.
  14517. (
  14518. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14519. eval ac_val=\$$ac_var
  14520. case $ac_val in #(
  14521. *${as_nl}*)
  14522. case $ac_var in #(
  14523. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14524. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14525. esac
  14526. case $ac_var in #(
  14527. _ | IFS | as_nl) ;; #(
  14528. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14529. *) { eval $ac_var=; unset $ac_var;} ;;
  14530. esac ;;
  14531. esac
  14532. done
  14533. (set) 2>&1 |
  14534. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14535. *${as_nl}ac_space=\ *)
  14536. # `set' does not quote correctly, so add quotes: double-quote
  14537. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14538. sed -n \
  14539. "s/'/'\\\\''/g;
  14540. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14541. ;; #(
  14542. *)
  14543. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14544. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14545. ;;
  14546. esac |
  14547. sort
  14548. ) |
  14549. sed '
  14550. /^ac_cv_env_/b end
  14551. t clear
  14552. :clear
  14553. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14554. t end
  14555. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14556. :end' >>confcache
  14557. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14558. if test -w "$cache_file"; then
  14559. if test "x$cache_file" != "x/dev/null"; then
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14561. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14562. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14563. cat confcache >"$cache_file"
  14564. else
  14565. case $cache_file in #(
  14566. */* | ?:*)
  14567. mv -f confcache "$cache_file"$$ &&
  14568. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14569. *)
  14570. mv -f confcache "$cache_file" ;;
  14571. esac
  14572. fi
  14573. fi
  14574. else
  14575. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14576. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14577. fi
  14578. fi
  14579. rm -f confcache
  14580. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14581. # Let make expand exec_prefix.
  14582. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14583. DEFS=-DHAVE_CONFIG_H
  14584. ac_libobjs=
  14585. ac_ltlibobjs=
  14586. U=
  14587. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14588. # 1. Remove the extension, and $U if already installed.
  14589. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14590. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14591. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14592. # will be set to the directory where LIBOBJS objects are built.
  14593. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14594. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14595. done
  14596. LIBOBJS=$ac_libobjs
  14597. LTLIBOBJS=$ac_ltlibobjs
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14599. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14600. if test -n "$am_sleep_pid"; then
  14601. # Hide warnings about reused PIDs.
  14602. wait $am_sleep_pid 2>/dev/null
  14603. fi
  14604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14605. $as_echo "done" >&6; }
  14606. if test -n "$EXEEXT"; then
  14607. am__EXEEXT_TRUE=
  14608. am__EXEEXT_FALSE='#'
  14609. else
  14610. am__EXEEXT_TRUE='#'
  14611. am__EXEEXT_FALSE=
  14612. fi
  14613. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14614. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14615. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14616. fi
  14617. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14618. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14619. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14620. fi
  14621. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14622. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14623. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14624. fi
  14625. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14626. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14627. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14628. fi
  14629. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14630. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14631. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14632. fi
  14633. if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
  14634. as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
  14635. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14636. fi
  14637. if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
  14638. as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
  14639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14640. fi
  14641. if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
  14642. as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
  14643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14644. fi
  14645. if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
  14646. as_fn_error $? "conditional \"TCL_TRY\" was never defined.
  14647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14648. fi
  14649. if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
  14650. as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
  14651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14652. fi
  14653. : "${CONFIG_STATUS=./config.status}"
  14654. ac_write_fail=0
  14655. ac_clean_files_save=$ac_clean_files
  14656. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14657. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14658. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14659. as_write_fail=0
  14660. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14661. #! $SHELL
  14662. # Generated by $as_me.
  14663. # Run this file to recreate the current configuration.
  14664. # Compiler output produced by configure, useful for debugging
  14665. # configure, is in config.log if it exists.
  14666. debug=false
  14667. ac_cs_recheck=false
  14668. ac_cs_silent=false
  14669. SHELL=\${CONFIG_SHELL-$SHELL}
  14670. export SHELL
  14671. _ASEOF
  14672. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14673. ## -------------------- ##
  14674. ## M4sh Initialization. ##
  14675. ## -------------------- ##
  14676. # Be more Bourne compatible
  14677. DUALCASE=1; export DUALCASE # for MKS sh
  14678. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14679. emulate sh
  14680. NULLCMD=:
  14681. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14682. # is contrary to our usage. Disable this feature.
  14683. alias -g '${1+"$@"}'='"$@"'
  14684. setopt NO_GLOB_SUBST
  14685. else
  14686. case `(set -o) 2>/dev/null` in #(
  14687. *posix*) :
  14688. set -o posix ;; #(
  14689. *) :
  14690. ;;
  14691. esac
  14692. fi
  14693. as_nl='
  14694. '
  14695. export as_nl
  14696. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14697. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14698. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14699. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14700. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14701. # but without wasting forks for bash or zsh.
  14702. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14703. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14704. as_echo='print -r --'
  14705. as_echo_n='print -rn --'
  14706. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14707. as_echo='printf %s\n'
  14708. as_echo_n='printf %s'
  14709. else
  14710. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14711. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14712. as_echo_n='/usr/ucb/echo -n'
  14713. else
  14714. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14715. as_echo_n_body='eval
  14716. arg=$1;
  14717. case $arg in #(
  14718. *"$as_nl"*)
  14719. expr "X$arg" : "X\\(.*\\)$as_nl";
  14720. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14721. esac;
  14722. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14723. '
  14724. export as_echo_n_body
  14725. as_echo_n='sh -c $as_echo_n_body as_echo'
  14726. fi
  14727. export as_echo_body
  14728. as_echo='sh -c $as_echo_body as_echo'
  14729. fi
  14730. # The user is always right.
  14731. if test "${PATH_SEPARATOR+set}" != set; then
  14732. PATH_SEPARATOR=:
  14733. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14734. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14735. PATH_SEPARATOR=';'
  14736. }
  14737. fi
  14738. # IFS
  14739. # We need space, tab and new line, in precisely that order. Quoting is
  14740. # there to prevent editors from complaining about space-tab.
  14741. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14742. # splitting by setting IFS to empty value.)
  14743. IFS=" "" $as_nl"
  14744. # Find who we are. Look in the path if we contain no directory separator.
  14745. as_myself=
  14746. case $0 in #((
  14747. *[\\/]* ) as_myself=$0 ;;
  14748. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14749. for as_dir in $PATH
  14750. do
  14751. IFS=$as_save_IFS
  14752. test -z "$as_dir" && as_dir=.
  14753. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14754. done
  14755. IFS=$as_save_IFS
  14756. ;;
  14757. esac
  14758. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14759. # in which case we are not to be found in the path.
  14760. if test "x$as_myself" = x; then
  14761. as_myself=$0
  14762. fi
  14763. if test ! -f "$as_myself"; then
  14764. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14765. exit 1
  14766. fi
  14767. # Unset variables that we do not need and which cause bugs (e.g. in
  14768. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14769. # suppresses any "Segmentation fault" message there. '((' could
  14770. # trigger a bug in pdksh 5.2.14.
  14771. for as_var in BASH_ENV ENV MAIL MAILPATH
  14772. do eval test x\${$as_var+set} = xset \
  14773. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14774. done
  14775. PS1='$ '
  14776. PS2='> '
  14777. PS4='+ '
  14778. # NLS nuisances.
  14779. LC_ALL=C
  14780. export LC_ALL
  14781. LANGUAGE=C
  14782. export LANGUAGE
  14783. # CDPATH.
  14784. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14785. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14786. # ----------------------------------------
  14787. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14788. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14789. # script with STATUS, using 1 if that was 0.
  14790. as_fn_error ()
  14791. {
  14792. as_status=$1; test $as_status -eq 0 && as_status=1
  14793. if test "$4"; then
  14794. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14795. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14796. fi
  14797. $as_echo "$as_me: error: $2" >&2
  14798. as_fn_exit $as_status
  14799. } # as_fn_error
  14800. # as_fn_set_status STATUS
  14801. # -----------------------
  14802. # Set $? to STATUS, without forking.
  14803. as_fn_set_status ()
  14804. {
  14805. return $1
  14806. } # as_fn_set_status
  14807. # as_fn_exit STATUS
  14808. # -----------------
  14809. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14810. as_fn_exit ()
  14811. {
  14812. set +e
  14813. as_fn_set_status $1
  14814. exit $1
  14815. } # as_fn_exit
  14816. # as_fn_unset VAR
  14817. # ---------------
  14818. # Portably unset VAR.
  14819. as_fn_unset ()
  14820. {
  14821. { eval $1=; unset $1;}
  14822. }
  14823. as_unset=as_fn_unset
  14824. # as_fn_append VAR VALUE
  14825. # ----------------------
  14826. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14827. # advantage of any shell optimizations that allow amortized linear growth over
  14828. # repeated appends, instead of the typical quadratic growth present in naive
  14829. # implementations.
  14830. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14831. eval 'as_fn_append ()
  14832. {
  14833. eval $1+=\$2
  14834. }'
  14835. else
  14836. as_fn_append ()
  14837. {
  14838. eval $1=\$$1\$2
  14839. }
  14840. fi # as_fn_append
  14841. # as_fn_arith ARG...
  14842. # ------------------
  14843. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14844. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14845. # must be portable across $(()) and expr.
  14846. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14847. eval 'as_fn_arith ()
  14848. {
  14849. as_val=$(( $* ))
  14850. }'
  14851. else
  14852. as_fn_arith ()
  14853. {
  14854. as_val=`expr "$@" || test $? -eq 1`
  14855. }
  14856. fi # as_fn_arith
  14857. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14858. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14859. as_expr=expr
  14860. else
  14861. as_expr=false
  14862. fi
  14863. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14864. as_basename=basename
  14865. else
  14866. as_basename=false
  14867. fi
  14868. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14869. as_dirname=dirname
  14870. else
  14871. as_dirname=false
  14872. fi
  14873. as_me=`$as_basename -- "$0" ||
  14874. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14875. X"$0" : 'X\(//\)$' \| \
  14876. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14877. $as_echo X/"$0" |
  14878. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14879. s//\1/
  14880. q
  14881. }
  14882. /^X\/\(\/\/\)$/{
  14883. s//\1/
  14884. q
  14885. }
  14886. /^X\/\(\/\).*/{
  14887. s//\1/
  14888. q
  14889. }
  14890. s/.*/./; q'`
  14891. # Avoid depending upon Character Ranges.
  14892. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14893. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14894. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14895. as_cr_digits='0123456789'
  14896. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14897. ECHO_C= ECHO_N= ECHO_T=
  14898. case `echo -n x` in #(((((
  14899. -n*)
  14900. case `echo 'xy\c'` in
  14901. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14902. xy) ECHO_C='\c';;
  14903. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14904. ECHO_T=' ';;
  14905. esac;;
  14906. *)
  14907. ECHO_N='-n';;
  14908. esac
  14909. rm -f conf$$ conf$$.exe conf$$.file
  14910. if test -d conf$$.dir; then
  14911. rm -f conf$$.dir/conf$$.file
  14912. else
  14913. rm -f conf$$.dir
  14914. mkdir conf$$.dir 2>/dev/null
  14915. fi
  14916. if (echo >conf$$.file) 2>/dev/null; then
  14917. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14918. as_ln_s='ln -s'
  14919. # ... but there are two gotchas:
  14920. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14921. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14922. # In both cases, we have to default to `cp -pR'.
  14923. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14924. as_ln_s='cp -pR'
  14925. elif ln conf$$.file conf$$ 2>/dev/null; then
  14926. as_ln_s=ln
  14927. else
  14928. as_ln_s='cp -pR'
  14929. fi
  14930. else
  14931. as_ln_s='cp -pR'
  14932. fi
  14933. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14934. rmdir conf$$.dir 2>/dev/null
  14935. # as_fn_mkdir_p
  14936. # -------------
  14937. # Create "$as_dir" as a directory, including parents if necessary.
  14938. as_fn_mkdir_p ()
  14939. {
  14940. case $as_dir in #(
  14941. -*) as_dir=./$as_dir;;
  14942. esac
  14943. test -d "$as_dir" || eval $as_mkdir_p || {
  14944. as_dirs=
  14945. while :; do
  14946. case $as_dir in #(
  14947. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14948. *) as_qdir=$as_dir;;
  14949. esac
  14950. as_dirs="'$as_qdir' $as_dirs"
  14951. as_dir=`$as_dirname -- "$as_dir" ||
  14952. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14953. X"$as_dir" : 'X\(//\)[^/]' \| \
  14954. X"$as_dir" : 'X\(//\)$' \| \
  14955. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14956. $as_echo X"$as_dir" |
  14957. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14958. s//\1/
  14959. q
  14960. }
  14961. /^X\(\/\/\)[^/].*/{
  14962. s//\1/
  14963. q
  14964. }
  14965. /^X\(\/\/\)$/{
  14966. s//\1/
  14967. q
  14968. }
  14969. /^X\(\/\).*/{
  14970. s//\1/
  14971. q
  14972. }
  14973. s/.*/./; q'`
  14974. test -d "$as_dir" && break
  14975. done
  14976. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14977. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14978. } # as_fn_mkdir_p
  14979. if mkdir -p . 2>/dev/null; then
  14980. as_mkdir_p='mkdir -p "$as_dir"'
  14981. else
  14982. test -d ./-p && rmdir ./-p
  14983. as_mkdir_p=false
  14984. fi
  14985. # as_fn_executable_p FILE
  14986. # -----------------------
  14987. # Test if FILE is an executable regular file.
  14988. as_fn_executable_p ()
  14989. {
  14990. test -f "$1" && test -x "$1"
  14991. } # as_fn_executable_p
  14992. as_test_x='test -x'
  14993. as_executable_p=as_fn_executable_p
  14994. # Sed expression to map a string onto a valid CPP name.
  14995. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14996. # Sed expression to map a string onto a valid variable name.
  14997. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14998. exec 6>&1
  14999. ## ----------------------------------- ##
  15000. ## Main body of $CONFIG_STATUS script. ##
  15001. ## ----------------------------------- ##
  15002. _ASEOF
  15003. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15004. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15005. # Save the log message, to keep $0 and so on meaningful, and to
  15006. # report actual input values of CONFIG_FILES etc. instead of their
  15007. # values after options handling.
  15008. ac_log="
  15009. This file was extended by gprofng $as_me 2.38.50, which was
  15010. generated by GNU Autoconf 2.69. Invocation command line was
  15011. CONFIG_FILES = $CONFIG_FILES
  15012. CONFIG_HEADERS = $CONFIG_HEADERS
  15013. CONFIG_LINKS = $CONFIG_LINKS
  15014. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15015. $ $0 $@
  15016. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15017. "
  15018. _ACEOF
  15019. case $ac_config_files in *"
  15020. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15021. esac
  15022. case $ac_config_headers in *"
  15023. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15024. esac
  15025. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15026. # Files that config.status was made for.
  15027. config_files="$ac_config_files"
  15028. config_headers="$ac_config_headers"
  15029. config_commands="$ac_config_commands"
  15030. _ACEOF
  15031. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15032. ac_cs_usage="\
  15033. \`$as_me' instantiates files and other configuration actions
  15034. from templates according to the current configuration. Unless the files
  15035. and actions are specified as TAGs, all are instantiated by default.
  15036. Usage: $0 [OPTION]... [TAG]...
  15037. -h, --help print this help, then exit
  15038. -V, --version print version number and configuration settings, then exit
  15039. --config print configuration, then exit
  15040. -q, --quiet, --silent
  15041. do not print progress messages
  15042. -d, --debug don't remove temporary files
  15043. --recheck update $as_me by reconfiguring in the same conditions
  15044. --file=FILE[:TEMPLATE]
  15045. instantiate the configuration file FILE
  15046. --header=FILE[:TEMPLATE]
  15047. instantiate the configuration header FILE
  15048. Configuration files:
  15049. $config_files
  15050. Configuration headers:
  15051. $config_headers
  15052. Configuration commands:
  15053. $config_commands
  15054. Report bugs to the package provider."
  15055. _ACEOF
  15056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15057. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15058. ac_cs_version="\\
  15059. gprofng config.status 2.38.50
  15060. configured by $0, generated by GNU Autoconf 2.69,
  15061. with options \\"\$ac_cs_config\\"
  15062. Copyright (C) 2012 Free Software Foundation, Inc.
  15063. This config.status script is free software; the Free Software Foundation
  15064. gives unlimited permission to copy, distribute and modify it."
  15065. ac_pwd='$ac_pwd'
  15066. srcdir='$srcdir'
  15067. INSTALL='$INSTALL'
  15068. MKDIR_P='$MKDIR_P'
  15069. AWK='$AWK'
  15070. test -n "\$AWK" || AWK=awk
  15071. _ACEOF
  15072. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15073. # The default lists apply if the user does not specify any file.
  15074. ac_need_defaults=:
  15075. while test $# != 0
  15076. do
  15077. case $1 in
  15078. --*=?*)
  15079. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15080. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15081. ac_shift=:
  15082. ;;
  15083. --*=)
  15084. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15085. ac_optarg=
  15086. ac_shift=:
  15087. ;;
  15088. *)
  15089. ac_option=$1
  15090. ac_optarg=$2
  15091. ac_shift=shift
  15092. ;;
  15093. esac
  15094. case $ac_option in
  15095. # Handling of the options.
  15096. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15097. ac_cs_recheck=: ;;
  15098. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15099. $as_echo "$ac_cs_version"; exit ;;
  15100. --config | --confi | --conf | --con | --co | --c )
  15101. $as_echo "$ac_cs_config"; exit ;;
  15102. --debug | --debu | --deb | --de | --d | -d )
  15103. debug=: ;;
  15104. --file | --fil | --fi | --f )
  15105. $ac_shift
  15106. case $ac_optarg in
  15107. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15108. '') as_fn_error $? "missing file argument" ;;
  15109. esac
  15110. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15111. ac_need_defaults=false;;
  15112. --header | --heade | --head | --hea )
  15113. $ac_shift
  15114. case $ac_optarg in
  15115. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15116. esac
  15117. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15118. ac_need_defaults=false;;
  15119. --he | --h)
  15120. # Conflict between --help and --header
  15121. as_fn_error $? "ambiguous option: \`$1'
  15122. Try \`$0 --help' for more information.";;
  15123. --help | --hel | -h )
  15124. $as_echo "$ac_cs_usage"; exit ;;
  15125. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15126. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15127. ac_cs_silent=: ;;
  15128. # This is an error.
  15129. -*) as_fn_error $? "unrecognized option: \`$1'
  15130. Try \`$0 --help' for more information." ;;
  15131. *) as_fn_append ac_config_targets " $1"
  15132. ac_need_defaults=false ;;
  15133. esac
  15134. shift
  15135. done
  15136. ac_configure_extra_args=
  15137. if $ac_cs_silent; then
  15138. exec 6>/dev/null
  15139. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15140. fi
  15141. _ACEOF
  15142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15143. if \$ac_cs_recheck; then
  15144. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15145. shift
  15146. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15147. CONFIG_SHELL='$SHELL'
  15148. export CONFIG_SHELL
  15149. exec "\$@"
  15150. fi
  15151. _ACEOF
  15152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15153. exec 5>>config.log
  15154. {
  15155. echo
  15156. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15157. ## Running $as_me. ##
  15158. _ASBOX
  15159. $as_echo "$ac_log"
  15160. } >&5
  15161. _ACEOF
  15162. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15163. #
  15164. # INIT-COMMANDS
  15165. #
  15166. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15167. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15168. # if CDPATH is set.
  15169. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15170. sed_quote_subst='$sed_quote_subst'
  15171. double_quote_subst='$double_quote_subst'
  15172. delay_variable_subst='$delay_variable_subst'
  15173. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15174. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15175. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15176. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15177. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15178. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15179. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15180. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15181. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15182. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15183. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15184. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15185. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15186. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15187. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15188. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15189. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15190. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15191. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15192. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15193. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15194. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15195. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15196. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15197. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15198. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15199. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15200. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15201. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15202. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15203. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15204. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15205. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15206. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15207. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15208. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15209. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15210. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15211. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15212. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15213. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15214. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15215. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15216. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15217. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15218. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15219. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15220. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15221. 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"`'
  15222. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15223. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15224. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15225. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15226. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15227. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15228. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15229. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15230. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15231. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15232. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15233. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15234. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15235. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15236. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15237. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15238. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15239. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15240. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15241. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15242. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15243. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15244. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15245. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15246. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15247. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15248. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15249. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15250. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15251. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15252. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15253. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15254. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15255. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15256. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15257. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15258. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15259. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15260. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15261. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15262. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15263. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15264. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15265. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15266. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15267. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15268. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15269. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15270. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15271. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15272. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15273. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15274. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15275. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15276. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15277. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15278. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15279. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15280. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15281. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15282. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15283. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15284. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15285. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15286. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15287. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15288. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15289. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15290. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15291. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15292. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15293. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15294. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15295. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15296. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15297. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15298. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15299. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15300. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15301. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15302. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15303. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15304. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15305. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15306. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15307. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15308. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15309. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15310. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15311. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15312. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15313. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15314. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15315. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15316. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15317. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15318. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15319. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15320. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15321. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15322. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15323. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15324. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15325. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15326. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15327. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15328. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15329. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15330. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15331. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15332. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15333. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15334. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  15335. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15336. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15337. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15338. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15339. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15340. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15341. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15342. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15343. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15344. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15345. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15346. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15347. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15348. LTCC='$LTCC'
  15349. LTCFLAGS='$LTCFLAGS'
  15350. compiler='$compiler_DEFAULT'
  15351. # A function that is used when there is no print builtin or printf.
  15352. func_fallback_echo ()
  15353. {
  15354. eval 'cat <<_LTECHO_EOF
  15355. \$1
  15356. _LTECHO_EOF'
  15357. }
  15358. # Quote evaled strings.
  15359. for var in SHELL \
  15360. ECHO \
  15361. SED \
  15362. GREP \
  15363. EGREP \
  15364. FGREP \
  15365. LD \
  15366. NM \
  15367. LN_S \
  15368. lt_SP2NL \
  15369. lt_NL2SP \
  15370. reload_flag \
  15371. OBJDUMP \
  15372. deplibs_check_method \
  15373. file_magic_cmd \
  15374. AR \
  15375. AR_FLAGS \
  15376. STRIP \
  15377. RANLIB \
  15378. CC \
  15379. CFLAGS \
  15380. compiler \
  15381. lt_cv_sys_global_symbol_pipe \
  15382. lt_cv_sys_global_symbol_to_cdecl \
  15383. lt_cv_sys_global_symbol_to_c_name_address \
  15384. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15385. lt_prog_compiler_no_builtin_flag \
  15386. lt_prog_compiler_wl \
  15387. lt_prog_compiler_pic \
  15388. lt_prog_compiler_static \
  15389. lt_cv_prog_compiler_c_o \
  15390. need_locks \
  15391. DSYMUTIL \
  15392. NMEDIT \
  15393. LIPO \
  15394. OTOOL \
  15395. OTOOL64 \
  15396. shrext_cmds \
  15397. export_dynamic_flag_spec \
  15398. whole_archive_flag_spec \
  15399. compiler_needs_object \
  15400. with_gnu_ld \
  15401. allow_undefined_flag \
  15402. no_undefined_flag \
  15403. hardcode_libdir_flag_spec \
  15404. hardcode_libdir_flag_spec_ld \
  15405. hardcode_libdir_separator \
  15406. fix_srcfile_path \
  15407. exclude_expsyms \
  15408. include_expsyms \
  15409. file_list_spec \
  15410. variables_saved_for_relink \
  15411. libname_spec \
  15412. library_names_spec \
  15413. soname_spec \
  15414. install_override_mode \
  15415. finish_eval \
  15416. old_striplib \
  15417. striplib \
  15418. compiler_lib_search_dirs \
  15419. predep_objects \
  15420. postdep_objects \
  15421. predeps \
  15422. postdeps \
  15423. compiler_lib_search_path \
  15424. LD_CXX \
  15425. reload_flag_CXX \
  15426. compiler_CXX \
  15427. lt_prog_compiler_no_builtin_flag_CXX \
  15428. lt_prog_compiler_wl_CXX \
  15429. lt_prog_compiler_pic_CXX \
  15430. lt_prog_compiler_static_CXX \
  15431. lt_cv_prog_compiler_c_o_CXX \
  15432. export_dynamic_flag_spec_CXX \
  15433. whole_archive_flag_spec_CXX \
  15434. compiler_needs_object_CXX \
  15435. with_gnu_ld_CXX \
  15436. allow_undefined_flag_CXX \
  15437. no_undefined_flag_CXX \
  15438. hardcode_libdir_flag_spec_CXX \
  15439. hardcode_libdir_flag_spec_ld_CXX \
  15440. hardcode_libdir_separator_CXX \
  15441. fix_srcfile_path_CXX \
  15442. exclude_expsyms_CXX \
  15443. include_expsyms_CXX \
  15444. file_list_spec_CXX \
  15445. compiler_lib_search_dirs_CXX \
  15446. predep_objects_CXX \
  15447. postdep_objects_CXX \
  15448. predeps_CXX \
  15449. postdeps_CXX \
  15450. compiler_lib_search_path_CXX; do
  15451. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15452. *[\\\\\\\`\\"\\\$]*)
  15453. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15454. ;;
  15455. *)
  15456. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15457. ;;
  15458. esac
  15459. done
  15460. # Double-quote double-evaled strings.
  15461. for var in reload_cmds \
  15462. old_postinstall_cmds \
  15463. old_postuninstall_cmds \
  15464. old_archive_cmds \
  15465. extract_expsyms_cmds \
  15466. old_archive_from_new_cmds \
  15467. old_archive_from_expsyms_cmds \
  15468. archive_cmds \
  15469. archive_expsym_cmds \
  15470. module_cmds \
  15471. module_expsym_cmds \
  15472. export_symbols_cmds \
  15473. prelink_cmds \
  15474. postinstall_cmds \
  15475. postuninstall_cmds \
  15476. finish_cmds \
  15477. sys_lib_search_path_spec \
  15478. sys_lib_dlsearch_path_spec \
  15479. reload_cmds_CXX \
  15480. old_archive_cmds_CXX \
  15481. old_archive_from_new_cmds_CXX \
  15482. old_archive_from_expsyms_cmds_CXX \
  15483. archive_cmds_CXX \
  15484. archive_expsym_cmds_CXX \
  15485. module_cmds_CXX \
  15486. module_expsym_cmds_CXX \
  15487. export_symbols_cmds_CXX \
  15488. prelink_cmds_CXX; do
  15489. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15490. *[\\\\\\\`\\"\\\$]*)
  15491. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15492. ;;
  15493. *)
  15494. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15495. ;;
  15496. esac
  15497. done
  15498. ac_aux_dir='$ac_aux_dir'
  15499. xsi_shell='$xsi_shell'
  15500. lt_shell_append='$lt_shell_append'
  15501. # See if we are running on zsh, and set the options which allow our
  15502. # commands through without removal of \ escapes INIT.
  15503. if test -n "\${ZSH_VERSION+set}" ; then
  15504. setopt NO_GLOB_SUBST
  15505. fi
  15506. PACKAGE='$PACKAGE'
  15507. VERSION='$VERSION'
  15508. TIMESTAMP='$TIMESTAMP'
  15509. RM='$RM'
  15510. ofile='$ofile'
  15511. _ACEOF
  15512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15513. # Handling of arguments.
  15514. for ac_config_target in $ac_config_targets
  15515. do
  15516. case $ac_config_target in
  15517. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15518. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15519. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15520. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15521. "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
  15522. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  15523. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
  15524. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15525. esac
  15526. done
  15527. # If the user did not use the arguments to specify the items to instantiate,
  15528. # then the envvar interface is used. Set only those that are not.
  15529. # We use the long form for the default assignment because of an extremely
  15530. # bizarre bug on SunOS 4.1.3.
  15531. if $ac_need_defaults; then
  15532. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15533. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15534. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15535. fi
  15536. # Have a temporary directory for convenience. Make it in the build tree
  15537. # simply because there is no reason against having it here, and in addition,
  15538. # creating and moving files from /tmp can sometimes cause problems.
  15539. # Hook for its removal unless debugging.
  15540. # Note that there is a small window in which the directory will not be cleaned:
  15541. # after its creation but before its name has been assigned to `$tmp'.
  15542. $debug ||
  15543. {
  15544. tmp= ac_tmp=
  15545. trap 'exit_status=$?
  15546. : "${ac_tmp:=$tmp}"
  15547. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15548. ' 0
  15549. trap 'as_fn_exit 1' 1 2 13 15
  15550. }
  15551. # Create a (secure) tmp directory for tmp files.
  15552. {
  15553. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15554. test -d "$tmp"
  15555. } ||
  15556. {
  15557. tmp=./conf$$-$RANDOM
  15558. (umask 077 && mkdir "$tmp")
  15559. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15560. ac_tmp=$tmp
  15561. # Set up the scripts for CONFIG_FILES section.
  15562. # No need to generate them if there are no CONFIG_FILES.
  15563. # This happens for instance with `./config.status config.h'.
  15564. if test -n "$CONFIG_FILES"; then
  15565. ac_cr=`echo X | tr X '\015'`
  15566. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15567. # But we know of no other shell where ac_cr would be empty at this
  15568. # point, so we can use a bashism as a fallback.
  15569. if test "x$ac_cr" = x; then
  15570. eval ac_cr=\$\'\\r\'
  15571. fi
  15572. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15573. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15574. ac_cs_awk_cr='\\r'
  15575. else
  15576. ac_cs_awk_cr=$ac_cr
  15577. fi
  15578. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15579. _ACEOF
  15580. {
  15581. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15582. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15583. echo "_ACEOF"
  15584. } >conf$$subs.sh ||
  15585. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15586. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15587. ac_delim='%!_!# '
  15588. for ac_last_try in false false false false false :; do
  15589. . ./conf$$subs.sh ||
  15590. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15591. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15592. if test $ac_delim_n = $ac_delim_num; then
  15593. break
  15594. elif $ac_last_try; then
  15595. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15596. else
  15597. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15598. fi
  15599. done
  15600. rm -f conf$$subs.sh
  15601. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15602. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15603. _ACEOF
  15604. sed -n '
  15605. h
  15606. s/^/S["/; s/!.*/"]=/
  15607. p
  15608. g
  15609. s/^[^!]*!//
  15610. :repl
  15611. t repl
  15612. s/'"$ac_delim"'$//
  15613. t delim
  15614. :nl
  15615. h
  15616. s/\(.\{148\}\)..*/\1/
  15617. t more1
  15618. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15619. p
  15620. n
  15621. b repl
  15622. :more1
  15623. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15624. p
  15625. g
  15626. s/.\{148\}//
  15627. t nl
  15628. :delim
  15629. h
  15630. s/\(.\{148\}\)..*/\1/
  15631. t more2
  15632. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15633. p
  15634. b
  15635. :more2
  15636. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15637. p
  15638. g
  15639. s/.\{148\}//
  15640. t delim
  15641. ' <conf$$subs.awk | sed '
  15642. /^[^""]/{
  15643. N
  15644. s/\n//
  15645. }
  15646. ' >>$CONFIG_STATUS || ac_write_fail=1
  15647. rm -f conf$$subs.awk
  15648. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15649. _ACAWK
  15650. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15651. for (key in S) S_is_set[key] = 1
  15652. FS = ""
  15653. }
  15654. {
  15655. line = $ 0
  15656. nfields = split(line, field, "@")
  15657. substed = 0
  15658. len = length(field[1])
  15659. for (i = 2; i < nfields; i++) {
  15660. key = field[i]
  15661. keylen = length(key)
  15662. if (S_is_set[key]) {
  15663. value = S[key]
  15664. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15665. len += length(value) + length(field[++i])
  15666. substed = 1
  15667. } else
  15668. len += 1 + keylen
  15669. }
  15670. print line
  15671. }
  15672. _ACAWK
  15673. _ACEOF
  15674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15675. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15676. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15677. else
  15678. cat
  15679. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15680. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15681. _ACEOF
  15682. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15683. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15684. # trailing colons and then remove the whole line if VPATH becomes empty
  15685. # (actually we leave an empty line to preserve line numbers).
  15686. if test "x$srcdir" = x.; then
  15687. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15688. h
  15689. s///
  15690. s/^/:/
  15691. s/[ ]*$/:/
  15692. s/:\$(srcdir):/:/g
  15693. s/:\${srcdir}:/:/g
  15694. s/:@srcdir@:/:/g
  15695. s/^:*//
  15696. s/:*$//
  15697. x
  15698. s/\(=[ ]*\).*/\1/
  15699. G
  15700. s/\n//
  15701. s/^[^=]*=[ ]*$//
  15702. }'
  15703. fi
  15704. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15705. fi # test -n "$CONFIG_FILES"
  15706. # Set up the scripts for CONFIG_HEADERS section.
  15707. # No need to generate them if there are no CONFIG_HEADERS.
  15708. # This happens for instance with `./config.status Makefile'.
  15709. if test -n "$CONFIG_HEADERS"; then
  15710. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15711. BEGIN {
  15712. _ACEOF
  15713. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15714. # here-document in config.status, that substitutes the proper values into
  15715. # config.h.in to produce config.h.
  15716. # Create a delimiter string that does not exist in confdefs.h, to ease
  15717. # handling of long lines.
  15718. ac_delim='%!_!# '
  15719. for ac_last_try in false false :; do
  15720. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15721. if test -z "$ac_tt"; then
  15722. break
  15723. elif $ac_last_try; then
  15724. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15725. else
  15726. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15727. fi
  15728. done
  15729. # For the awk script, D is an array of macro values keyed by name,
  15730. # likewise P contains macro parameters if any. Preserve backslash
  15731. # newline sequences.
  15732. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15733. sed -n '
  15734. s/.\{148\}/&'"$ac_delim"'/g
  15735. t rset
  15736. :rset
  15737. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15738. t def
  15739. d
  15740. :def
  15741. s/\\$//
  15742. t bsnl
  15743. s/["\\]/\\&/g
  15744. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15745. D["\1"]=" \3"/p
  15746. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15747. d
  15748. :bsnl
  15749. s/["\\]/\\&/g
  15750. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15751. D["\1"]=" \3\\\\\\n"\\/p
  15752. t cont
  15753. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15754. t cont
  15755. d
  15756. :cont
  15757. n
  15758. s/.\{148\}/&'"$ac_delim"'/g
  15759. t clear
  15760. :clear
  15761. s/\\$//
  15762. t bsnlc
  15763. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15764. d
  15765. :bsnlc
  15766. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15767. b cont
  15768. ' <confdefs.h | sed '
  15769. s/'"$ac_delim"'/"\\\
  15770. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15772. for (key in D) D_is_set[key] = 1
  15773. FS = ""
  15774. }
  15775. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15776. line = \$ 0
  15777. split(line, arg, " ")
  15778. if (arg[1] == "#") {
  15779. defundef = arg[2]
  15780. mac1 = arg[3]
  15781. } else {
  15782. defundef = substr(arg[1], 2)
  15783. mac1 = arg[2]
  15784. }
  15785. split(mac1, mac2, "(") #)
  15786. macro = mac2[1]
  15787. prefix = substr(line, 1, index(line, defundef) - 1)
  15788. if (D_is_set[macro]) {
  15789. # Preserve the white space surrounding the "#".
  15790. print prefix "define", macro P[macro] D[macro]
  15791. next
  15792. } else {
  15793. # Replace #undef with comments. This is necessary, for example,
  15794. # in the case of _POSIX_SOURCE, which is predefined and required
  15795. # on some systems where configure will not decide to define it.
  15796. if (defundef == "undef") {
  15797. print "/*", prefix defundef, macro, "*/"
  15798. next
  15799. }
  15800. }
  15801. }
  15802. { print }
  15803. _ACAWK
  15804. _ACEOF
  15805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15806. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15807. fi # test -n "$CONFIG_HEADERS"
  15808. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15809. shift
  15810. for ac_tag
  15811. do
  15812. case $ac_tag in
  15813. :[FHLC]) ac_mode=$ac_tag; continue;;
  15814. esac
  15815. case $ac_mode$ac_tag in
  15816. :[FHL]*:*);;
  15817. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15818. :[FH]-) ac_tag=-:-;;
  15819. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15820. esac
  15821. ac_save_IFS=$IFS
  15822. IFS=:
  15823. set x $ac_tag
  15824. IFS=$ac_save_IFS
  15825. shift
  15826. ac_file=$1
  15827. shift
  15828. case $ac_mode in
  15829. :L) ac_source=$1;;
  15830. :[FH])
  15831. ac_file_inputs=
  15832. for ac_f
  15833. do
  15834. case $ac_f in
  15835. -) ac_f="$ac_tmp/stdin";;
  15836. *) # Look for the file first in the build tree, then in the source tree
  15837. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15838. # because $ac_f cannot contain `:'.
  15839. test -f "$ac_f" ||
  15840. case $ac_f in
  15841. [\\/$]*) false;;
  15842. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15843. esac ||
  15844. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15845. esac
  15846. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15847. as_fn_append ac_file_inputs " '$ac_f'"
  15848. done
  15849. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15850. # use $as_me), people would be surprised to read:
  15851. # /* config.h. Generated by config.status. */
  15852. configure_input='Generated from '`
  15853. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15854. `' by configure.'
  15855. if test x"$ac_file" != x-; then
  15856. configure_input="$ac_file. $configure_input"
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15858. $as_echo "$as_me: creating $ac_file" >&6;}
  15859. fi
  15860. # Neutralize special characters interpreted by sed in replacement strings.
  15861. case $configure_input in #(
  15862. *\&* | *\|* | *\\* )
  15863. ac_sed_conf_input=`$as_echo "$configure_input" |
  15864. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15865. *) ac_sed_conf_input=$configure_input;;
  15866. esac
  15867. case $ac_tag in
  15868. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15869. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15870. esac
  15871. ;;
  15872. esac
  15873. ac_dir=`$as_dirname -- "$ac_file" ||
  15874. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15875. X"$ac_file" : 'X\(//\)[^/]' \| \
  15876. X"$ac_file" : 'X\(//\)$' \| \
  15877. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15878. $as_echo X"$ac_file" |
  15879. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15880. s//\1/
  15881. q
  15882. }
  15883. /^X\(\/\/\)[^/].*/{
  15884. s//\1/
  15885. q
  15886. }
  15887. /^X\(\/\/\)$/{
  15888. s//\1/
  15889. q
  15890. }
  15891. /^X\(\/\).*/{
  15892. s//\1/
  15893. q
  15894. }
  15895. s/.*/./; q'`
  15896. as_dir="$ac_dir"; as_fn_mkdir_p
  15897. ac_builddir=.
  15898. case "$ac_dir" in
  15899. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15900. *)
  15901. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15902. # A ".." for each directory in $ac_dir_suffix.
  15903. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15904. case $ac_top_builddir_sub in
  15905. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15906. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15907. esac ;;
  15908. esac
  15909. ac_abs_top_builddir=$ac_pwd
  15910. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15911. # for backward compatibility:
  15912. ac_top_builddir=$ac_top_build_prefix
  15913. case $srcdir in
  15914. .) # We are building in place.
  15915. ac_srcdir=.
  15916. ac_top_srcdir=$ac_top_builddir_sub
  15917. ac_abs_top_srcdir=$ac_pwd ;;
  15918. [\\/]* | ?:[\\/]* ) # Absolute name.
  15919. ac_srcdir=$srcdir$ac_dir_suffix;
  15920. ac_top_srcdir=$srcdir
  15921. ac_abs_top_srcdir=$srcdir ;;
  15922. *) # Relative name.
  15923. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15924. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15925. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15926. esac
  15927. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15928. case $ac_mode in
  15929. :F)
  15930. #
  15931. # CONFIG_FILE
  15932. #
  15933. case $INSTALL in
  15934. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15935. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15936. esac
  15937. ac_MKDIR_P=$MKDIR_P
  15938. case $MKDIR_P in
  15939. [\\/$]* | ?:[\\/]* ) ;;
  15940. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15941. esac
  15942. _ACEOF
  15943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15944. # If the template does not know about datarootdir, expand it.
  15945. # FIXME: This hack should be removed a few years after 2.60.
  15946. ac_datarootdir_hack=; ac_datarootdir_seen=
  15947. ac_sed_dataroot='
  15948. /datarootdir/ {
  15949. p
  15950. q
  15951. }
  15952. /@datadir@/p
  15953. /@docdir@/p
  15954. /@infodir@/p
  15955. /@localedir@/p
  15956. /@mandir@/p'
  15957. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15958. *datarootdir*) ac_datarootdir_seen=yes;;
  15959. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15961. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15962. _ACEOF
  15963. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15964. ac_datarootdir_hack='
  15965. s&@datadir@&$datadir&g
  15966. s&@docdir@&$docdir&g
  15967. s&@infodir@&$infodir&g
  15968. s&@localedir@&$localedir&g
  15969. s&@mandir@&$mandir&g
  15970. s&\\\${datarootdir}&$datarootdir&g' ;;
  15971. esac
  15972. _ACEOF
  15973. # Neutralize VPATH when `$srcdir' = `.'.
  15974. # Shell code in configure.ac might set extrasub.
  15975. # FIXME: do we really want to maintain this feature?
  15976. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15977. ac_sed_extra="$ac_vpsub
  15978. $extrasub
  15979. _ACEOF
  15980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15981. :t
  15982. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15983. s|@configure_input@|$ac_sed_conf_input|;t t
  15984. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15985. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15986. s&@srcdir@&$ac_srcdir&;t t
  15987. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15988. s&@top_srcdir@&$ac_top_srcdir&;t t
  15989. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15990. s&@builddir@&$ac_builddir&;t t
  15991. s&@abs_builddir@&$ac_abs_builddir&;t t
  15992. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15993. s&@INSTALL@&$ac_INSTALL&;t t
  15994. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15995. $ac_datarootdir_hack
  15996. "
  15997. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15998. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15999. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16000. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16001. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16002. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16004. which seems to be undefined. Please make sure it is defined" >&5
  16005. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16006. which seems to be undefined. Please make sure it is defined" >&2;}
  16007. rm -f "$ac_tmp/stdin"
  16008. case $ac_file in
  16009. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16010. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16011. esac \
  16012. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16013. ;;
  16014. :H)
  16015. #
  16016. # CONFIG_HEADER
  16017. #
  16018. if test x"$ac_file" != x-; then
  16019. {
  16020. $as_echo "/* $configure_input */" \
  16021. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16022. } >"$ac_tmp/config.h" \
  16023. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16024. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16025. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16026. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16027. else
  16028. rm -f "$ac_file"
  16029. mv "$ac_tmp/config.h" "$ac_file" \
  16030. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16031. fi
  16032. else
  16033. $as_echo "/* $configure_input */" \
  16034. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16035. || as_fn_error $? "could not create -" "$LINENO" 5
  16036. fi
  16037. # Compute "$ac_file"'s index in $config_headers.
  16038. _am_arg="$ac_file"
  16039. _am_stamp_count=1
  16040. for _am_header in $config_headers :; do
  16041. case $_am_header in
  16042. $_am_arg | $_am_arg:* )
  16043. break ;;
  16044. * )
  16045. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16046. esac
  16047. done
  16048. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16049. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16050. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16051. X"$_am_arg" : 'X\(//\)$' \| \
  16052. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16053. $as_echo X"$_am_arg" |
  16054. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16055. s//\1/
  16056. q
  16057. }
  16058. /^X\(\/\/\)[^/].*/{
  16059. s//\1/
  16060. q
  16061. }
  16062. /^X\(\/\/\)$/{
  16063. s//\1/
  16064. q
  16065. }
  16066. /^X\(\/\).*/{
  16067. s//\1/
  16068. q
  16069. }
  16070. s/.*/./; q'`/stamp-h$_am_stamp_count
  16071. ;;
  16072. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16073. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16074. ;;
  16075. esac
  16076. case $ac_file$ac_mode in
  16077. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16078. # Older Autoconf quotes --file arguments for eval, but not when files
  16079. # are listed without --file. Let's play safe and only enable the eval
  16080. # if we detect the quoting.
  16081. case $CONFIG_FILES in
  16082. *\'*) eval set x "$CONFIG_FILES" ;;
  16083. *) set x $CONFIG_FILES ;;
  16084. esac
  16085. shift
  16086. for mf
  16087. do
  16088. # Strip MF so we end up with the name of the file.
  16089. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16090. # Check whether this is an Automake generated Makefile or not.
  16091. # We used to match only the files named 'Makefile.in', but
  16092. # some people rename them; so instead we look at the file content.
  16093. # Grep'ing the first line is not enough: some people post-process
  16094. # each Makefile.in and add a new line on top of each file to say so.
  16095. # Grep'ing the whole file is not good either: AIX grep has a line
  16096. # limit of 2048, but all sed's we know have understand at least 4000.
  16097. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16098. dirpart=`$as_dirname -- "$mf" ||
  16099. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16100. X"$mf" : 'X\(//\)[^/]' \| \
  16101. X"$mf" : 'X\(//\)$' \| \
  16102. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16103. $as_echo X"$mf" |
  16104. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16105. s//\1/
  16106. q
  16107. }
  16108. /^X\(\/\/\)[^/].*/{
  16109. s//\1/
  16110. q
  16111. }
  16112. /^X\(\/\/\)$/{
  16113. s//\1/
  16114. q
  16115. }
  16116. /^X\(\/\).*/{
  16117. s//\1/
  16118. q
  16119. }
  16120. s/.*/./; q'`
  16121. else
  16122. continue
  16123. fi
  16124. # Extract the definition of DEPDIR, am__include, and am__quote
  16125. # from the Makefile without running 'make'.
  16126. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16127. test -z "$DEPDIR" && continue
  16128. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16129. test -z "$am__include" && continue
  16130. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16131. # Find all dependency output files, they are included files with
  16132. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16133. # simplest approach to changing $(DEPDIR) to its actual value in the
  16134. # expansion.
  16135. for file in `sed -n "
  16136. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16137. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16138. # Make sure the directory exists.
  16139. test -f "$dirpart/$file" && continue
  16140. fdir=`$as_dirname -- "$file" ||
  16141. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16142. X"$file" : 'X\(//\)[^/]' \| \
  16143. X"$file" : 'X\(//\)$' \| \
  16144. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16145. $as_echo X"$file" |
  16146. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16147. s//\1/
  16148. q
  16149. }
  16150. /^X\(\/\/\)[^/].*/{
  16151. s//\1/
  16152. q
  16153. }
  16154. /^X\(\/\/\)$/{
  16155. s//\1/
  16156. q
  16157. }
  16158. /^X\(\/\).*/{
  16159. s//\1/
  16160. q
  16161. }
  16162. s/.*/./; q'`
  16163. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16164. # echo "creating $dirpart/$file"
  16165. echo '# dummy' > "$dirpart/$file"
  16166. done
  16167. done
  16168. }
  16169. ;;
  16170. "libtool":C)
  16171. # See if we are running on zsh, and set the options which allow our
  16172. # commands through without removal of \ escapes.
  16173. if test -n "${ZSH_VERSION+set}" ; then
  16174. setopt NO_GLOB_SUBST
  16175. fi
  16176. cfgfile="${ofile}T"
  16177. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16178. $RM "$cfgfile"
  16179. cat <<_LT_EOF >> "$cfgfile"
  16180. #! $SHELL
  16181. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16182. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16183. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16184. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16185. #
  16186. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16187. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16188. # Written by Gordon Matzigkeit, 1996
  16189. #
  16190. # This file is part of GNU Libtool.
  16191. #
  16192. # GNU Libtool is free software; you can redistribute it and/or
  16193. # modify it under the terms of the GNU General Public License as
  16194. # published by the Free Software Foundation; either version 2 of
  16195. # the License, or (at your option) any later version.
  16196. #
  16197. # As a special exception to the GNU General Public License,
  16198. # if you distribute this file as part of a program or library that
  16199. # is built using GNU Libtool, you may include this file under the
  16200. # same distribution terms that you use for the rest of that program.
  16201. #
  16202. # GNU Libtool is distributed in the hope that it will be useful,
  16203. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16204. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16205. # GNU General Public License for more details.
  16206. #
  16207. # You should have received a copy of the GNU General Public License
  16208. # along with GNU Libtool; see the file COPYING. If not, a copy
  16209. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16210. # obtained by writing to the Free Software Foundation, Inc.,
  16211. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16212. # The names of the tagged configurations supported by this script.
  16213. available_tags="CXX "
  16214. # ### BEGIN LIBTOOL CONFIG
  16215. # Whether or not to build shared libraries.
  16216. build_libtool_libs=$enable_shared
  16217. # Which release of libtool.m4 was used?
  16218. macro_version=$macro_version
  16219. macro_revision=$macro_revision
  16220. # Whether or not to build static libraries.
  16221. build_old_libs=$enable_static
  16222. # What type of objects to build.
  16223. pic_mode=$pic_mode
  16224. # Whether or not to optimize for fast installation.
  16225. fast_install=$enable_fast_install
  16226. # Shell to use when invoking shell scripts.
  16227. SHELL=$lt_SHELL
  16228. # An echo program that protects backslashes.
  16229. ECHO=$lt_ECHO
  16230. # The host system.
  16231. host_alias=$host_alias
  16232. host=$host
  16233. host_os=$host_os
  16234. # The build system.
  16235. build_alias=$build_alias
  16236. build=$build
  16237. build_os=$build_os
  16238. # A sed program that does not truncate output.
  16239. SED=$lt_SED
  16240. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16241. Xsed="\$SED -e 1s/^X//"
  16242. # A grep program that handles long lines.
  16243. GREP=$lt_GREP
  16244. # An ERE matcher.
  16245. EGREP=$lt_EGREP
  16246. # A literal string matcher.
  16247. FGREP=$lt_FGREP
  16248. # A BSD- or MS-compatible name lister.
  16249. NM=$lt_NM
  16250. # Whether we need soft or hard links.
  16251. LN_S=$lt_LN_S
  16252. # What is the maximum length of a command?
  16253. max_cmd_len=$max_cmd_len
  16254. # Object file suffix (normally "o").
  16255. objext=$ac_objext
  16256. # Executable file suffix (normally "").
  16257. exeext=$exeext
  16258. # whether the shell understands "unset".
  16259. lt_unset=$lt_unset
  16260. # turn spaces into newlines.
  16261. SP2NL=$lt_lt_SP2NL
  16262. # turn newlines into spaces.
  16263. NL2SP=$lt_lt_NL2SP
  16264. # An object symbol dumper.
  16265. OBJDUMP=$lt_OBJDUMP
  16266. # Method to check whether dependent libraries are shared objects.
  16267. deplibs_check_method=$lt_deplibs_check_method
  16268. # Command to use when deplibs_check_method == "file_magic".
  16269. file_magic_cmd=$lt_file_magic_cmd
  16270. # The archiver.
  16271. AR=$lt_AR
  16272. AR_FLAGS=$lt_AR_FLAGS
  16273. # A symbol stripping program.
  16274. STRIP=$lt_STRIP
  16275. # Commands used to install an old-style archive.
  16276. RANLIB=$lt_RANLIB
  16277. old_postinstall_cmds=$lt_old_postinstall_cmds
  16278. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16279. # Whether to use a lock for old archive extraction.
  16280. lock_old_archive_extraction=$lock_old_archive_extraction
  16281. # A C compiler.
  16282. LTCC=$lt_CC
  16283. # LTCC compiler flags.
  16284. LTCFLAGS=$lt_CFLAGS
  16285. # Take the output of nm and produce a listing of raw symbols and C names.
  16286. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16287. # Transform the output of nm in a proper C declaration.
  16288. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16289. # Transform the output of nm in a C name address pair.
  16290. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16291. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16292. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16293. # The name of the directory that contains temporary libtool files.
  16294. objdir=$objdir
  16295. # Used to examine libraries when file_magic_cmd begins with "file".
  16296. MAGIC_CMD=$MAGIC_CMD
  16297. # Must we lock files when doing compilation?
  16298. need_locks=$lt_need_locks
  16299. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16300. DSYMUTIL=$lt_DSYMUTIL
  16301. # Tool to change global to local symbols on Mac OS X.
  16302. NMEDIT=$lt_NMEDIT
  16303. # Tool to manipulate fat objects and archives on Mac OS X.
  16304. LIPO=$lt_LIPO
  16305. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16306. OTOOL=$lt_OTOOL
  16307. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16308. OTOOL64=$lt_OTOOL64
  16309. # Old archive suffix (normally "a").
  16310. libext=$libext
  16311. # Shared library suffix (normally ".so").
  16312. shrext_cmds=$lt_shrext_cmds
  16313. # The commands to extract the exported symbol list from a shared archive.
  16314. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16315. # Variables whose values should be saved in libtool wrapper scripts and
  16316. # restored at link time.
  16317. variables_saved_for_relink=$lt_variables_saved_for_relink
  16318. # Do we need the "lib" prefix for modules?
  16319. need_lib_prefix=$need_lib_prefix
  16320. # Do we need a version for libraries?
  16321. need_version=$need_version
  16322. # Library versioning type.
  16323. version_type=$version_type
  16324. # Shared library runtime path variable.
  16325. runpath_var=$runpath_var
  16326. # Shared library path variable.
  16327. shlibpath_var=$shlibpath_var
  16328. # Is shlibpath searched before the hard-coded library search path?
  16329. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16330. # Format of library name prefix.
  16331. libname_spec=$lt_libname_spec
  16332. # List of archive names. First name is the real one, the rest are links.
  16333. # The last name is the one that the linker finds with -lNAME
  16334. library_names_spec=$lt_library_names_spec
  16335. # The coded name of the library, if different from the real name.
  16336. soname_spec=$lt_soname_spec
  16337. # Permission mode override for installation of shared libraries.
  16338. install_override_mode=$lt_install_override_mode
  16339. # Command to use after installation of a shared archive.
  16340. postinstall_cmds=$lt_postinstall_cmds
  16341. # Command to use after uninstallation of a shared archive.
  16342. postuninstall_cmds=$lt_postuninstall_cmds
  16343. # Commands used to finish a libtool library installation in a directory.
  16344. finish_cmds=$lt_finish_cmds
  16345. # As "finish_cmds", except a single script fragment to be evaled but
  16346. # not shown.
  16347. finish_eval=$lt_finish_eval
  16348. # Whether we should hardcode library paths into libraries.
  16349. hardcode_into_libs=$hardcode_into_libs
  16350. # Compile-time system search path for libraries.
  16351. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16352. # Run-time system search path for libraries.
  16353. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16354. # Whether dlopen is supported.
  16355. dlopen_support=$enable_dlopen
  16356. # Whether dlopen of programs is supported.
  16357. dlopen_self=$enable_dlopen_self
  16358. # Whether dlopen of statically linked programs is supported.
  16359. dlopen_self_static=$enable_dlopen_self_static
  16360. # Commands to strip libraries.
  16361. old_striplib=$lt_old_striplib
  16362. striplib=$lt_striplib
  16363. # The linker used to build libraries.
  16364. LD=$lt_LD
  16365. # How to create reloadable object files.
  16366. reload_flag=$lt_reload_flag
  16367. reload_cmds=$lt_reload_cmds
  16368. # Commands used to build an old-style archive.
  16369. old_archive_cmds=$lt_old_archive_cmds
  16370. # A language specific compiler.
  16371. CC=$lt_compiler
  16372. # Is the compiler the GNU compiler?
  16373. with_gcc=$GCC
  16374. # Compiler flag to turn off builtin functions.
  16375. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16376. # How to pass a linker flag through the compiler.
  16377. wl=$lt_lt_prog_compiler_wl
  16378. # Additional compiler flags for building library objects.
  16379. pic_flag=$lt_lt_prog_compiler_pic
  16380. # Compiler flag to prevent dynamic linking.
  16381. link_static_flag=$lt_lt_prog_compiler_static
  16382. # Does compiler simultaneously support -c and -o options?
  16383. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16384. # Whether or not to add -lc for building shared libraries.
  16385. build_libtool_need_lc=$archive_cmds_need_lc
  16386. # Whether or not to disallow shared libs when runtime libs are static.
  16387. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16388. # Compiler flag to allow reflexive dlopens.
  16389. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16390. # Compiler flag to generate shared objects directly from archives.
  16391. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16392. # Whether the compiler copes with passing no objects directly.
  16393. compiler_needs_object=$lt_compiler_needs_object
  16394. # Create an old-style archive from a shared archive.
  16395. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16396. # Create a temporary old-style archive to link instead of a shared archive.
  16397. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16398. # Commands used to build a shared archive.
  16399. archive_cmds=$lt_archive_cmds
  16400. archive_expsym_cmds=$lt_archive_expsym_cmds
  16401. # Commands used to build a loadable module if different from building
  16402. # a shared archive.
  16403. module_cmds=$lt_module_cmds
  16404. module_expsym_cmds=$lt_module_expsym_cmds
  16405. # Whether we are building with GNU ld or not.
  16406. with_gnu_ld=$lt_with_gnu_ld
  16407. # Flag that allows shared libraries with undefined symbols to be built.
  16408. allow_undefined_flag=$lt_allow_undefined_flag
  16409. # Flag that enforces no undefined symbols.
  16410. no_undefined_flag=$lt_no_undefined_flag
  16411. # Flag to hardcode \$libdir into a binary during linking.
  16412. # This must work even if \$libdir does not exist
  16413. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16414. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16415. # during linking. This must work even if \$libdir does not exist.
  16416. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16417. # Whether we need a single "-rpath" flag with a separated argument.
  16418. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16419. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16420. # DIR into the resulting binary.
  16421. hardcode_direct=$hardcode_direct
  16422. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16423. # DIR into the resulting binary and the resulting library dependency is
  16424. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16425. # library is relocated.
  16426. hardcode_direct_absolute=$hardcode_direct_absolute
  16427. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16428. # into the resulting binary.
  16429. hardcode_minus_L=$hardcode_minus_L
  16430. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16431. # into the resulting binary.
  16432. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16433. # Set to "yes" if building a shared library automatically hardcodes DIR
  16434. # into the library and all subsequent libraries and executables linked
  16435. # against it.
  16436. hardcode_automatic=$hardcode_automatic
  16437. # Set to yes if linker adds runtime paths of dependent libraries
  16438. # to runtime path list.
  16439. inherit_rpath=$inherit_rpath
  16440. # Whether libtool must link a program against all its dependency libraries.
  16441. link_all_deplibs=$link_all_deplibs
  16442. # Fix the shell variable \$srcfile for the compiler.
  16443. fix_srcfile_path=$lt_fix_srcfile_path
  16444. # Set to "yes" if exported symbols are required.
  16445. always_export_symbols=$always_export_symbols
  16446. # The commands to list exported symbols.
  16447. export_symbols_cmds=$lt_export_symbols_cmds
  16448. # Symbols that should not be listed in the preloaded symbols.
  16449. exclude_expsyms=$lt_exclude_expsyms
  16450. # Symbols that must always be exported.
  16451. include_expsyms=$lt_include_expsyms
  16452. # Commands necessary for linking programs (against libraries) with templates.
  16453. prelink_cmds=$lt_prelink_cmds
  16454. # Specify filename containing input files.
  16455. file_list_spec=$lt_file_list_spec
  16456. # How to hardcode a shared library path into an executable.
  16457. hardcode_action=$hardcode_action
  16458. # The directories searched by this compiler when creating a shared library.
  16459. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16460. # Dependencies to place before and after the objects being linked to
  16461. # create a shared library.
  16462. predep_objects=$lt_predep_objects
  16463. postdep_objects=$lt_postdep_objects
  16464. predeps=$lt_predeps
  16465. postdeps=$lt_postdeps
  16466. # The library search path used internally by the compiler when linking
  16467. # a shared library.
  16468. compiler_lib_search_path=$lt_compiler_lib_search_path
  16469. # ### END LIBTOOL CONFIG
  16470. _LT_EOF
  16471. case $host_os in
  16472. aix3*)
  16473. cat <<\_LT_EOF >> "$cfgfile"
  16474. # AIX sometimes has problems with the GCC collect2 program. For some
  16475. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16476. # vanish in a puff of smoke.
  16477. if test "X${COLLECT_NAMES+set}" != Xset; then
  16478. COLLECT_NAMES=
  16479. export COLLECT_NAMES
  16480. fi
  16481. _LT_EOF
  16482. ;;
  16483. esac
  16484. ltmain="$ac_aux_dir/ltmain.sh"
  16485. # We use sed instead of cat because bash on DJGPP gets confused if
  16486. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16487. # text mode, it properly converts lines to CR/LF. This bash problem
  16488. # is reportedly fixed, but why not run on old versions too?
  16489. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16490. || (rm -f "$cfgfile"; exit 1)
  16491. case $xsi_shell in
  16492. yes)
  16493. cat << \_LT_EOF >> "$cfgfile"
  16494. # func_dirname file append nondir_replacement
  16495. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16496. # otherwise set result to NONDIR_REPLACEMENT.
  16497. func_dirname ()
  16498. {
  16499. case ${1} in
  16500. */*) func_dirname_result="${1%/*}${2}" ;;
  16501. * ) func_dirname_result="${3}" ;;
  16502. esac
  16503. }
  16504. # func_basename file
  16505. func_basename ()
  16506. {
  16507. func_basename_result="${1##*/}"
  16508. }
  16509. # func_dirname_and_basename file append nondir_replacement
  16510. # perform func_basename and func_dirname in a single function
  16511. # call:
  16512. # dirname: Compute the dirname of FILE. If nonempty,
  16513. # add APPEND to the result, otherwise set result
  16514. # to NONDIR_REPLACEMENT.
  16515. # value returned in "$func_dirname_result"
  16516. # basename: Compute filename of FILE.
  16517. # value retuned in "$func_basename_result"
  16518. # Implementation must be kept synchronized with func_dirname
  16519. # and func_basename. For efficiency, we do not delegate to
  16520. # those functions but instead duplicate the functionality here.
  16521. func_dirname_and_basename ()
  16522. {
  16523. case ${1} in
  16524. */*) func_dirname_result="${1%/*}${2}" ;;
  16525. * ) func_dirname_result="${3}" ;;
  16526. esac
  16527. func_basename_result="${1##*/}"
  16528. }
  16529. # func_stripname prefix suffix name
  16530. # strip PREFIX and SUFFIX off of NAME.
  16531. # PREFIX and SUFFIX must not contain globbing or regex special
  16532. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16533. # dot (in which case that matches only a dot).
  16534. func_stripname ()
  16535. {
  16536. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16537. # positional parameters, so assign one to ordinary parameter first.
  16538. func_stripname_result=${3}
  16539. func_stripname_result=${func_stripname_result#"${1}"}
  16540. func_stripname_result=${func_stripname_result%"${2}"}
  16541. }
  16542. # func_opt_split
  16543. func_opt_split ()
  16544. {
  16545. func_opt_split_opt=${1%%=*}
  16546. func_opt_split_arg=${1#*=}
  16547. }
  16548. # func_lo2o object
  16549. func_lo2o ()
  16550. {
  16551. case ${1} in
  16552. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16553. *) func_lo2o_result=${1} ;;
  16554. esac
  16555. }
  16556. # func_xform libobj-or-source
  16557. func_xform ()
  16558. {
  16559. func_xform_result=${1%.*}.lo
  16560. }
  16561. # func_arith arithmetic-term...
  16562. func_arith ()
  16563. {
  16564. func_arith_result=$(( $* ))
  16565. }
  16566. # func_len string
  16567. # STRING may not start with a hyphen.
  16568. func_len ()
  16569. {
  16570. func_len_result=${#1}
  16571. }
  16572. _LT_EOF
  16573. ;;
  16574. *) # Bourne compatible functions.
  16575. cat << \_LT_EOF >> "$cfgfile"
  16576. # func_dirname file append nondir_replacement
  16577. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16578. # otherwise set result to NONDIR_REPLACEMENT.
  16579. func_dirname ()
  16580. {
  16581. # Extract subdirectory from the argument.
  16582. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16583. if test "X$func_dirname_result" = "X${1}"; then
  16584. func_dirname_result="${3}"
  16585. else
  16586. func_dirname_result="$func_dirname_result${2}"
  16587. fi
  16588. }
  16589. # func_basename file
  16590. func_basename ()
  16591. {
  16592. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16593. }
  16594. # func_stripname prefix suffix name
  16595. # strip PREFIX and SUFFIX off of NAME.
  16596. # PREFIX and SUFFIX must not contain globbing or regex special
  16597. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16598. # dot (in which case that matches only a dot).
  16599. # func_strip_suffix prefix name
  16600. func_stripname ()
  16601. {
  16602. case ${2} in
  16603. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16604. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16605. esac
  16606. }
  16607. # sed scripts:
  16608. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16609. my_sed_long_arg='1s/^-[^=]*=//'
  16610. # func_opt_split
  16611. func_opt_split ()
  16612. {
  16613. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16614. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16615. }
  16616. # func_lo2o object
  16617. func_lo2o ()
  16618. {
  16619. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16620. }
  16621. # func_xform libobj-or-source
  16622. func_xform ()
  16623. {
  16624. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16625. }
  16626. # func_arith arithmetic-term...
  16627. func_arith ()
  16628. {
  16629. func_arith_result=`expr "$@"`
  16630. }
  16631. # func_len string
  16632. # STRING may not start with a hyphen.
  16633. func_len ()
  16634. {
  16635. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16636. }
  16637. _LT_EOF
  16638. esac
  16639. case $lt_shell_append in
  16640. yes)
  16641. cat << \_LT_EOF >> "$cfgfile"
  16642. # func_append var value
  16643. # Append VALUE to the end of shell variable VAR.
  16644. func_append ()
  16645. {
  16646. eval "$1+=\$2"
  16647. }
  16648. _LT_EOF
  16649. ;;
  16650. *)
  16651. cat << \_LT_EOF >> "$cfgfile"
  16652. # func_append var value
  16653. # Append VALUE to the end of shell variable VAR.
  16654. func_append ()
  16655. {
  16656. eval "$1=\$$1\$2"
  16657. }
  16658. _LT_EOF
  16659. ;;
  16660. esac
  16661. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16662. || (rm -f "$cfgfile"; exit 1)
  16663. mv -f "$cfgfile" "$ofile" ||
  16664. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16665. chmod +x "$ofile"
  16666. cat <<_LT_EOF >> "$ofile"
  16667. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16668. # The linker used to build libraries.
  16669. LD=$lt_LD_CXX
  16670. # How to create reloadable object files.
  16671. reload_flag=$lt_reload_flag_CXX
  16672. reload_cmds=$lt_reload_cmds_CXX
  16673. # Commands used to build an old-style archive.
  16674. old_archive_cmds=$lt_old_archive_cmds_CXX
  16675. # A language specific compiler.
  16676. CC=$lt_compiler_CXX
  16677. # Is the compiler the GNU compiler?
  16678. with_gcc=$GCC_CXX
  16679. # Compiler flag to turn off builtin functions.
  16680. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16681. # How to pass a linker flag through the compiler.
  16682. wl=$lt_lt_prog_compiler_wl_CXX
  16683. # Additional compiler flags for building library objects.
  16684. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16685. # Compiler flag to prevent dynamic linking.
  16686. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16687. # Does compiler simultaneously support -c and -o options?
  16688. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16689. # Whether or not to add -lc for building shared libraries.
  16690. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16691. # Whether or not to disallow shared libs when runtime libs are static.
  16692. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16693. # Compiler flag to allow reflexive dlopens.
  16694. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16695. # Compiler flag to generate shared objects directly from archives.
  16696. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16697. # Whether the compiler copes with passing no objects directly.
  16698. compiler_needs_object=$lt_compiler_needs_object_CXX
  16699. # Create an old-style archive from a shared archive.
  16700. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16701. # Create a temporary old-style archive to link instead of a shared archive.
  16702. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16703. # Commands used to build a shared archive.
  16704. archive_cmds=$lt_archive_cmds_CXX
  16705. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16706. # Commands used to build a loadable module if different from building
  16707. # a shared archive.
  16708. module_cmds=$lt_module_cmds_CXX
  16709. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16710. # Whether we are building with GNU ld or not.
  16711. with_gnu_ld=$lt_with_gnu_ld_CXX
  16712. # Flag that allows shared libraries with undefined symbols to be built.
  16713. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16714. # Flag that enforces no undefined symbols.
  16715. no_undefined_flag=$lt_no_undefined_flag_CXX
  16716. # Flag to hardcode \$libdir into a binary during linking.
  16717. # This must work even if \$libdir does not exist
  16718. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16719. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16720. # during linking. This must work even if \$libdir does not exist.
  16721. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16722. # Whether we need a single "-rpath" flag with a separated argument.
  16723. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16724. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16725. # DIR into the resulting binary.
  16726. hardcode_direct=$hardcode_direct_CXX
  16727. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16728. # DIR into the resulting binary and the resulting library dependency is
  16729. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16730. # library is relocated.
  16731. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16732. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16733. # into the resulting binary.
  16734. hardcode_minus_L=$hardcode_minus_L_CXX
  16735. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16736. # into the resulting binary.
  16737. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16738. # Set to "yes" if building a shared library automatically hardcodes DIR
  16739. # into the library and all subsequent libraries and executables linked
  16740. # against it.
  16741. hardcode_automatic=$hardcode_automatic_CXX
  16742. # Set to yes if linker adds runtime paths of dependent libraries
  16743. # to runtime path list.
  16744. inherit_rpath=$inherit_rpath_CXX
  16745. # Whether libtool must link a program against all its dependency libraries.
  16746. link_all_deplibs=$link_all_deplibs_CXX
  16747. # Fix the shell variable \$srcfile for the compiler.
  16748. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16749. # Set to "yes" if exported symbols are required.
  16750. always_export_symbols=$always_export_symbols_CXX
  16751. # The commands to list exported symbols.
  16752. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16753. # Symbols that should not be listed in the preloaded symbols.
  16754. exclude_expsyms=$lt_exclude_expsyms_CXX
  16755. # Symbols that must always be exported.
  16756. include_expsyms=$lt_include_expsyms_CXX
  16757. # Commands necessary for linking programs (against libraries) with templates.
  16758. prelink_cmds=$lt_prelink_cmds_CXX
  16759. # Specify filename containing input files.
  16760. file_list_spec=$lt_file_list_spec_CXX
  16761. # How to hardcode a shared library path into an executable.
  16762. hardcode_action=$hardcode_action_CXX
  16763. # The directories searched by this compiler when creating a shared library.
  16764. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16765. # Dependencies to place before and after the objects being linked to
  16766. # create a shared library.
  16767. predep_objects=$lt_predep_objects_CXX
  16768. postdep_objects=$lt_postdep_objects_CXX
  16769. predeps=$lt_predeps_CXX
  16770. postdeps=$lt_postdeps_CXX
  16771. # The library search path used internally by the compiler when linking
  16772. # a shared library.
  16773. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16774. # ### END LIBTOOL TAG CONFIG: CXX
  16775. _LT_EOF
  16776. ;;
  16777. esac
  16778. done # for ac_tag
  16779. as_fn_exit 0
  16780. _ACEOF
  16781. ac_clean_files=$ac_clean_files_save
  16782. test $ac_write_fail = 0 ||
  16783. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16784. # configure is writing to config.log, and then calls config.status.
  16785. # config.status does its own redirection, appending to config.log.
  16786. # Unfortunately, on DOS this fails, as config.log is still kept open
  16787. # by configure, so config.status won't be able to write to it; its
  16788. # output is simply discarded. So we exec the FD to /dev/null,
  16789. # effectively closing config.log, so it can be properly (re)opened and
  16790. # appended to by config.status. When coming back to configure, we
  16791. # need to make the FD available again.
  16792. if test "$no_create" != yes; then
  16793. ac_cs_success=:
  16794. ac_config_status_args=
  16795. test "$silent" = yes &&
  16796. ac_config_status_args="$ac_config_status_args --quiet"
  16797. exec 5>/dev/null
  16798. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16799. exec 5>>config.log
  16800. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16801. # would make configure fail if this is the last instruction.
  16802. $ac_cs_success || as_fn_exit 1
  16803. fi
  16804. #
  16805. # CONFIG_SUBDIRS section.
  16806. #
  16807. if test "$no_recursion" != yes; then
  16808. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  16809. # so they do not pile up.
  16810. ac_sub_configure_args=
  16811. ac_prev=
  16812. eval "set x $ac_configure_args"
  16813. shift
  16814. for ac_arg
  16815. do
  16816. if test -n "$ac_prev"; then
  16817. ac_prev=
  16818. continue
  16819. fi
  16820. case $ac_arg in
  16821. -cache-file | --cache-file | --cache-fil | --cache-fi \
  16822. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16823. ac_prev=cache_file ;;
  16824. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16825. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  16826. | --c=*)
  16827. ;;
  16828. --config-cache | -C)
  16829. ;;
  16830. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16831. ac_prev=srcdir ;;
  16832. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16833. ;;
  16834. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16835. ac_prev=prefix ;;
  16836. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16837. ;;
  16838. --disable-option-checking)
  16839. ;;
  16840. *)
  16841. case $ac_arg in
  16842. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16843. esac
  16844. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  16845. esac
  16846. done
  16847. # Always prepend --prefix to ensure using the same prefix
  16848. # in subdir configurations.
  16849. ac_arg="--prefix=$prefix"
  16850. case $ac_arg in
  16851. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16852. esac
  16853. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  16854. # Pass --silent
  16855. if test "$silent" = yes; then
  16856. ac_sub_configure_args="--silent $ac_sub_configure_args"
  16857. fi
  16858. # Always prepend --disable-option-checking to silence warnings, since
  16859. # different subdirs can have different --enable and --with options.
  16860. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  16861. ac_popdir=`pwd`
  16862. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  16863. # Do not complain, so a configure script can configure whichever
  16864. # parts of a large source tree are present.
  16865. test -d "$srcdir/$ac_dir" || continue
  16866. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  16867. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  16868. $as_echo "$ac_msg" >&6
  16869. as_dir="$ac_dir"; as_fn_mkdir_p
  16870. ac_builddir=.
  16871. case "$ac_dir" in
  16872. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16873. *)
  16874. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16875. # A ".." for each directory in $ac_dir_suffix.
  16876. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16877. case $ac_top_builddir_sub in
  16878. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16879. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16880. esac ;;
  16881. esac
  16882. ac_abs_top_builddir=$ac_pwd
  16883. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16884. # for backward compatibility:
  16885. ac_top_builddir=$ac_top_build_prefix
  16886. case $srcdir in
  16887. .) # We are building in place.
  16888. ac_srcdir=.
  16889. ac_top_srcdir=$ac_top_builddir_sub
  16890. ac_abs_top_srcdir=$ac_pwd ;;
  16891. [\\/]* | ?:[\\/]* ) # Absolute name.
  16892. ac_srcdir=$srcdir$ac_dir_suffix;
  16893. ac_top_srcdir=$srcdir
  16894. ac_abs_top_srcdir=$srcdir ;;
  16895. *) # Relative name.
  16896. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16897. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16898. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16899. esac
  16900. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16901. cd "$ac_dir"
  16902. # Check for guested configure; otherwise get Cygnus style configure.
  16903. if test -f "$ac_srcdir/configure.gnu"; then
  16904. ac_sub_configure=$ac_srcdir/configure.gnu
  16905. elif test -f "$ac_srcdir/configure"; then
  16906. ac_sub_configure=$ac_srcdir/configure
  16907. elif test -f "$ac_srcdir/configure.in"; then
  16908. # This should be Cygnus configure.
  16909. ac_sub_configure=$ac_aux_dir/configure
  16910. else
  16911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  16912. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  16913. ac_sub_configure=
  16914. fi
  16915. # The recursion is here.
  16916. if test -n "$ac_sub_configure"; then
  16917. # Make the cache file name correct relative to the subdirectory.
  16918. case $cache_file in
  16919. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  16920. *) # Relative name.
  16921. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  16922. esac
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  16924. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  16925. # The eval makes quoting arguments work.
  16926. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  16927. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  16928. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  16929. fi
  16930. cd "$ac_popdir"
  16931. done
  16932. fi
  16933. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16935. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16936. fi