configure 542 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185
  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. ac_unique_file="libcol_util.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. GPROFNG_NO_NONNULL_COMPARE_CFLAGS
  585. GPROFNG_VARIANT
  586. CXXCPP
  587. OTOOL64
  588. OTOOL
  589. LIPO
  590. NMEDIT
  591. DSYMUTIL
  592. OBJDUMP
  593. LN_S
  594. NM
  595. ac_ct_DUMPBIN
  596. DUMPBIN
  597. LD
  598. FGREP
  599. SED
  600. LIBTOOL
  601. ac_ct_AR
  602. AR
  603. RANLIB
  604. am__fastdepCXX_FALSE
  605. am__fastdepCXX_TRUE
  606. CXXDEPMODE
  607. ac_ct_CXX
  608. CXXFLAGS
  609. CXX
  610. EGREP
  611. GREP
  612. CPP
  613. am__fastdepCC_FALSE
  614. am__fastdepCC_TRUE
  615. CCDEPMODE
  616. am__nodep
  617. AMDEPBACKSLASH
  618. AMDEP_FALSE
  619. AMDEP_TRUE
  620. am__quote
  621. am__include
  622. DEPDIR
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. MAINT
  631. MAINTAINER_MODE_FALSE
  632. MAINTAINER_MODE_TRUE
  633. AM_BACKSLASH
  634. AM_DEFAULT_VERBOSITY
  635. AM_DEFAULT_V
  636. AM_V
  637. am__untar
  638. am__tar
  639. AMTAR
  640. am__leading_dot
  641. SET_MAKE
  642. AWK
  643. mkdir_p
  644. MKDIR_P
  645. INSTALL_STRIP_PROGRAM
  646. STRIP
  647. install_sh
  648. MAKEINFO
  649. AUTOHEADER
  650. AUTOMAKE
  651. AUTOCONF
  652. ACLOCAL
  653. VERSION
  654. PACKAGE
  655. CYGPATH_W
  656. am__isrc
  657. INSTALL_DATA
  658. INSTALL_SCRIPT
  659. INSTALL_PROGRAM
  660. target_os
  661. target_vendor
  662. target_cpu
  663. target
  664. host_os
  665. host_vendor
  666. host_cpu
  667. host
  668. build_os
  669. build_vendor
  670. build_cpu
  671. build
  672. target_alias
  673. host_alias
  674. build_alias
  675. LIBS
  676. ECHO_T
  677. ECHO_N
  678. ECHO_C
  679. DEFS
  680. mandir
  681. localedir
  682. libdir
  683. psdir
  684. pdfdir
  685. dvidir
  686. htmldir
  687. infodir
  688. docdir
  689. oldincludedir
  690. includedir
  691. localstatedir
  692. sharedstatedir
  693. sysconfdir
  694. datadir
  695. datarootdir
  696. libexecdir
  697. sbindir
  698. bindir
  699. program_transform_name
  700. prefix
  701. exec_prefix
  702. PACKAGE_URL
  703. PACKAGE_BUGREPORT
  704. PACKAGE_STRING
  705. PACKAGE_VERSION
  706. PACKAGE_TARNAME
  707. PACKAGE_NAME
  708. PATH_SEPARATOR
  709. SHELL'
  710. ac_subst_files=''
  711. ac_user_opts='
  712. enable_option_checking
  713. enable_silent_rules
  714. enable_maintainer_mode
  715. enable_dependency_tracking
  716. enable_shared
  717. enable_static
  718. with_pic
  719. enable_fast_install
  720. with_gnu_ld
  721. enable_libtool_lock
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. CPP
  732. CXX
  733. CXXFLAGS
  734. CCC
  735. CXXCPP'
  736. # Initialize some variables set by options.
  737. ac_init_help=
  738. ac_init_version=false
  739. ac_unrecognized_opts=
  740. ac_unrecognized_sep=
  741. # The variables have the same names as the options, with
  742. # dashes changed to underlines.
  743. cache_file=/dev/null
  744. exec_prefix=NONE
  745. no_create=
  746. no_recursion=
  747. prefix=NONE
  748. program_prefix=NONE
  749. program_suffix=NONE
  750. program_transform_name=s,x,x,
  751. silent=
  752. site=
  753. srcdir=
  754. verbose=
  755. x_includes=NONE
  756. x_libraries=NONE
  757. # Installation directory options.
  758. # These are left unexpanded so users can "make install exec_prefix=/foo"
  759. # and all the variables that are supposed to be based on exec_prefix
  760. # by default will actually change.
  761. # Use braces instead of parens because sh, perl, etc. also accept them.
  762. # (The list follows the same order as the GNU Coding Standards.)
  763. bindir='${exec_prefix}/bin'
  764. sbindir='${exec_prefix}/sbin'
  765. libexecdir='${exec_prefix}/libexec'
  766. datarootdir='${prefix}/share'
  767. datadir='${datarootdir}'
  768. sysconfdir='${prefix}/etc'
  769. sharedstatedir='${prefix}/com'
  770. localstatedir='${prefix}/var'
  771. includedir='${prefix}/include'
  772. oldincludedir='/usr/include'
  773. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  774. infodir='${datarootdir}/info'
  775. htmldir='${docdir}'
  776. dvidir='${docdir}'
  777. pdfdir='${docdir}'
  778. psdir='${docdir}'
  779. libdir='${exec_prefix}/lib'
  780. localedir='${datarootdir}/locale'
  781. mandir='${datarootdir}/man'
  782. ac_prev=
  783. ac_dashdash=
  784. for ac_option
  785. do
  786. # If the previous option needs an argument, assign it.
  787. if test -n "$ac_prev"; then
  788. eval $ac_prev=\$ac_option
  789. ac_prev=
  790. continue
  791. fi
  792. case $ac_option in
  793. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  794. *=) ac_optarg= ;;
  795. *) ac_optarg=yes ;;
  796. esac
  797. # Accept the important Cygnus configure options, so we can diagnose typos.
  798. case $ac_dashdash$ac_option in
  799. --)
  800. ac_dashdash=yes ;;
  801. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  802. ac_prev=bindir ;;
  803. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  804. bindir=$ac_optarg ;;
  805. -build | --build | --buil | --bui | --bu)
  806. ac_prev=build_alias ;;
  807. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  808. build_alias=$ac_optarg ;;
  809. -cache-file | --cache-file | --cache-fil | --cache-fi \
  810. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  811. ac_prev=cache_file ;;
  812. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  813. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  814. cache_file=$ac_optarg ;;
  815. --config-cache | -C)
  816. cache_file=config.cache ;;
  817. -datadir | --datadir | --datadi | --datad)
  818. ac_prev=datadir ;;
  819. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  820. datadir=$ac_optarg ;;
  821. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  822. | --dataroo | --dataro | --datar)
  823. ac_prev=datarootdir ;;
  824. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  825. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  826. datarootdir=$ac_optarg ;;
  827. -disable-* | --disable-*)
  828. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  829. # Reject names that are not valid shell variable names.
  830. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  831. as_fn_error $? "invalid feature name: $ac_useropt"
  832. ac_useropt_orig=$ac_useropt
  833. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  834. case $ac_user_opts in
  835. *"
  836. "enable_$ac_useropt"
  837. "*) ;;
  838. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  839. ac_unrecognized_sep=', ';;
  840. esac
  841. eval enable_$ac_useropt=no ;;
  842. -docdir | --docdir | --docdi | --doc | --do)
  843. ac_prev=docdir ;;
  844. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  845. docdir=$ac_optarg ;;
  846. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  847. ac_prev=dvidir ;;
  848. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  849. dvidir=$ac_optarg ;;
  850. -enable-* | --enable-*)
  851. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  852. # Reject names that are not valid shell variable names.
  853. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  854. as_fn_error $? "invalid feature name: $ac_useropt"
  855. ac_useropt_orig=$ac_useropt
  856. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  857. case $ac_user_opts in
  858. *"
  859. "enable_$ac_useropt"
  860. "*) ;;
  861. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  862. ac_unrecognized_sep=', ';;
  863. esac
  864. eval enable_$ac_useropt=\$ac_optarg ;;
  865. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  866. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  867. | --exec | --exe | --ex)
  868. ac_prev=exec_prefix ;;
  869. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  870. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  871. | --exec=* | --exe=* | --ex=*)
  872. exec_prefix=$ac_optarg ;;
  873. -gas | --gas | --ga | --g)
  874. # Obsolete; use --with-gas.
  875. with_gas=yes ;;
  876. -help | --help | --hel | --he | -h)
  877. ac_init_help=long ;;
  878. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  879. ac_init_help=recursive ;;
  880. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  881. ac_init_help=short ;;
  882. -host | --host | --hos | --ho)
  883. ac_prev=host_alias ;;
  884. -host=* | --host=* | --hos=* | --ho=*)
  885. host_alias=$ac_optarg ;;
  886. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  887. ac_prev=htmldir ;;
  888. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  889. | --ht=*)
  890. htmldir=$ac_optarg ;;
  891. -includedir | --includedir | --includedi | --included | --include \
  892. | --includ | --inclu | --incl | --inc)
  893. ac_prev=includedir ;;
  894. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  895. | --includ=* | --inclu=* | --incl=* | --inc=*)
  896. includedir=$ac_optarg ;;
  897. -infodir | --infodir | --infodi | --infod | --info | --inf)
  898. ac_prev=infodir ;;
  899. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  900. infodir=$ac_optarg ;;
  901. -libdir | --libdir | --libdi | --libd)
  902. ac_prev=libdir ;;
  903. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  904. libdir=$ac_optarg ;;
  905. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  906. | --libexe | --libex | --libe)
  907. ac_prev=libexecdir ;;
  908. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  909. | --libexe=* | --libex=* | --libe=*)
  910. libexecdir=$ac_optarg ;;
  911. -localedir | --localedir | --localedi | --localed | --locale)
  912. ac_prev=localedir ;;
  913. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  914. localedir=$ac_optarg ;;
  915. -localstatedir | --localstatedir | --localstatedi | --localstated \
  916. | --localstate | --localstat | --localsta | --localst | --locals)
  917. ac_prev=localstatedir ;;
  918. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  919. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  920. localstatedir=$ac_optarg ;;
  921. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  922. ac_prev=mandir ;;
  923. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  924. mandir=$ac_optarg ;;
  925. -nfp | --nfp | --nf)
  926. # Obsolete; use --without-fp.
  927. with_fp=no ;;
  928. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  929. | --no-cr | --no-c | -n)
  930. no_create=yes ;;
  931. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  932. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  933. no_recursion=yes ;;
  934. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  935. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  936. | --oldin | --oldi | --old | --ol | --o)
  937. ac_prev=oldincludedir ;;
  938. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  939. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  940. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  941. oldincludedir=$ac_optarg ;;
  942. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  943. ac_prev=prefix ;;
  944. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  945. prefix=$ac_optarg ;;
  946. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  947. | --program-pre | --program-pr | --program-p)
  948. ac_prev=program_prefix ;;
  949. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  950. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  951. program_prefix=$ac_optarg ;;
  952. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  953. | --program-suf | --program-su | --program-s)
  954. ac_prev=program_suffix ;;
  955. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  956. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  957. program_suffix=$ac_optarg ;;
  958. -program-transform-name | --program-transform-name \
  959. | --program-transform-nam | --program-transform-na \
  960. | --program-transform-n | --program-transform- \
  961. | --program-transform | --program-transfor \
  962. | --program-transfo | --program-transf \
  963. | --program-trans | --program-tran \
  964. | --progr-tra | --program-tr | --program-t)
  965. ac_prev=program_transform_name ;;
  966. -program-transform-name=* | --program-transform-name=* \
  967. | --program-transform-nam=* | --program-transform-na=* \
  968. | --program-transform-n=* | --program-transform-=* \
  969. | --program-transform=* | --program-transfor=* \
  970. | --program-transfo=* | --program-transf=* \
  971. | --program-trans=* | --program-tran=* \
  972. | --progr-tra=* | --program-tr=* | --program-t=*)
  973. program_transform_name=$ac_optarg ;;
  974. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  975. ac_prev=pdfdir ;;
  976. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  977. pdfdir=$ac_optarg ;;
  978. -psdir | --psdir | --psdi | --psd | --ps)
  979. ac_prev=psdir ;;
  980. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  981. psdir=$ac_optarg ;;
  982. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  983. | -silent | --silent | --silen | --sile | --sil)
  984. silent=yes ;;
  985. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  986. ac_prev=sbindir ;;
  987. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  988. | --sbi=* | --sb=*)
  989. sbindir=$ac_optarg ;;
  990. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  991. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  992. | --sharedst | --shareds | --shared | --share | --shar \
  993. | --sha | --sh)
  994. ac_prev=sharedstatedir ;;
  995. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  996. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  997. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  998. | --sha=* | --sh=*)
  999. sharedstatedir=$ac_optarg ;;
  1000. -site | --site | --sit)
  1001. ac_prev=site ;;
  1002. -site=* | --site=* | --sit=*)
  1003. site=$ac_optarg ;;
  1004. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1005. ac_prev=srcdir ;;
  1006. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1007. srcdir=$ac_optarg ;;
  1008. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1009. | --syscon | --sysco | --sysc | --sys | --sy)
  1010. ac_prev=sysconfdir ;;
  1011. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1012. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1013. sysconfdir=$ac_optarg ;;
  1014. -target | --target | --targe | --targ | --tar | --ta | --t)
  1015. ac_prev=target_alias ;;
  1016. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1017. target_alias=$ac_optarg ;;
  1018. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1019. verbose=yes ;;
  1020. -version | --version | --versio | --versi | --vers | -V)
  1021. ac_init_version=: ;;
  1022. -with-* | --with-*)
  1023. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1024. # Reject names that are not valid shell variable names.
  1025. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1026. as_fn_error $? "invalid package name: $ac_useropt"
  1027. ac_useropt_orig=$ac_useropt
  1028. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1029. case $ac_user_opts in
  1030. *"
  1031. "with_$ac_useropt"
  1032. "*) ;;
  1033. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1034. ac_unrecognized_sep=', ';;
  1035. esac
  1036. eval with_$ac_useropt=\$ac_optarg ;;
  1037. -without-* | --without-*)
  1038. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1039. # Reject names that are not valid shell variable names.
  1040. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1041. as_fn_error $? "invalid package name: $ac_useropt"
  1042. ac_useropt_orig=$ac_useropt
  1043. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1044. case $ac_user_opts in
  1045. *"
  1046. "with_$ac_useropt"
  1047. "*) ;;
  1048. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1049. ac_unrecognized_sep=', ';;
  1050. esac
  1051. eval with_$ac_useropt=no ;;
  1052. --x)
  1053. # Obsolete; use --with-x.
  1054. with_x=yes ;;
  1055. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1056. | --x-incl | --x-inc | --x-in | --x-i)
  1057. ac_prev=x_includes ;;
  1058. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1059. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1060. x_includes=$ac_optarg ;;
  1061. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1062. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1063. ac_prev=x_libraries ;;
  1064. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1065. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1066. x_libraries=$ac_optarg ;;
  1067. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1068. Try \`$0 --help' for more information"
  1069. ;;
  1070. *=*)
  1071. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1072. # Reject names that are not valid shell variable names.
  1073. case $ac_envvar in #(
  1074. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1075. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1076. esac
  1077. eval $ac_envvar=\$ac_optarg
  1078. export $ac_envvar ;;
  1079. *)
  1080. # FIXME: should be removed in autoconf 3.0.
  1081. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1082. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1083. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1084. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1085. ;;
  1086. esac
  1087. done
  1088. if test -n "$ac_prev"; then
  1089. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1090. as_fn_error $? "missing argument to $ac_option"
  1091. fi
  1092. if test -n "$ac_unrecognized_opts"; then
  1093. case $enable_option_checking in
  1094. no) ;;
  1095. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1096. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1097. esac
  1098. fi
  1099. # Check all directory arguments for consistency.
  1100. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1101. datadir sysconfdir sharedstatedir localstatedir includedir \
  1102. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1103. libdir localedir mandir
  1104. do
  1105. eval ac_val=\$$ac_var
  1106. # Remove trailing slashes.
  1107. case $ac_val in
  1108. */ )
  1109. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1110. eval $ac_var=\$ac_val;;
  1111. esac
  1112. # Be sure to have absolute directory names.
  1113. case $ac_val in
  1114. [\\/$]* | ?:[\\/]* ) continue;;
  1115. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1116. esac
  1117. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1118. done
  1119. # There might be people who depend on the old broken behavior: `$host'
  1120. # used to hold the argument of --host etc.
  1121. # FIXME: To remove some day.
  1122. build=$build_alias
  1123. host=$host_alias
  1124. target=$target_alias
  1125. # FIXME: To remove some day.
  1126. if test "x$host_alias" != x; then
  1127. if test "x$build_alias" = x; then
  1128. cross_compiling=maybe
  1129. elif test "x$build_alias" != "x$host_alias"; then
  1130. cross_compiling=yes
  1131. fi
  1132. fi
  1133. ac_tool_prefix=
  1134. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1135. test "$silent" = yes && exec 6>/dev/null
  1136. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1137. ac_ls_di=`ls -di .` &&
  1138. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1139. as_fn_error $? "working directory cannot be determined"
  1140. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1141. as_fn_error $? "pwd does not report name of working directory"
  1142. # Find the source files, if location was not specified.
  1143. if test -z "$srcdir"; then
  1144. ac_srcdir_defaulted=yes
  1145. # Try the directory containing this script, then the parent directory.
  1146. ac_confdir=`$as_dirname -- "$as_myself" ||
  1147. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1148. X"$as_myself" : 'X\(//\)[^/]' \| \
  1149. X"$as_myself" : 'X\(//\)$' \| \
  1150. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1151. $as_echo X"$as_myself" |
  1152. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\/\)[^/].*/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)$/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\).*/{
  1165. s//\1/
  1166. q
  1167. }
  1168. s/.*/./; q'`
  1169. srcdir=$ac_confdir
  1170. if test ! -r "$srcdir/$ac_unique_file"; then
  1171. srcdir=..
  1172. fi
  1173. else
  1174. ac_srcdir_defaulted=no
  1175. fi
  1176. if test ! -r "$srcdir/$ac_unique_file"; then
  1177. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1178. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1179. fi
  1180. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1181. ac_abs_confdir=`(
  1182. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1183. pwd)`
  1184. # When building in place, set srcdir=.
  1185. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1186. srcdir=.
  1187. fi
  1188. # Remove unnecessary trailing slashes from srcdir.
  1189. # Double slashes in file names in object file debugging info
  1190. # mess up M-x gdb in Emacs.
  1191. case $srcdir in
  1192. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1193. esac
  1194. for ac_var in $ac_precious_vars; do
  1195. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_env_${ac_var}_value=\$${ac_var}
  1197. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1199. done
  1200. #
  1201. # Report the --help message.
  1202. #
  1203. if test "$ac_init_help" = "long"; then
  1204. # Omit some internal or obsolete options to make the list less imposing.
  1205. # This message is too long to be a string in the A/UX 3.1 sh.
  1206. cat <<_ACEOF
  1207. \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
  1208. Usage: $0 [OPTION]... [VAR=VALUE]...
  1209. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1210. VAR=VALUE. See below for descriptions of some of the useful variables.
  1211. Defaults for the options are specified in brackets.
  1212. Configuration:
  1213. -h, --help display this help and exit
  1214. --help=short display options specific to this package
  1215. --help=recursive display the short help of all the included packages
  1216. -V, --version display version information and exit
  1217. -q, --quiet, --silent do not print \`checking ...' messages
  1218. --cache-file=FILE cache test results in FILE [disabled]
  1219. -C, --config-cache alias for \`--cache-file=config.cache'
  1220. -n, --no-create do not create output files
  1221. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1222. Installation directories:
  1223. --prefix=PREFIX install architecture-independent files in PREFIX
  1224. [$ac_default_prefix]
  1225. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1226. [PREFIX]
  1227. By default, \`make install' will install all the files in
  1228. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1229. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1230. for instance \`--prefix=\$HOME'.
  1231. For better control, use the options below.
  1232. Fine tuning of the installation directories:
  1233. --bindir=DIR user executables [EPREFIX/bin]
  1234. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1235. --libexecdir=DIR program executables [EPREFIX/libexec]
  1236. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1237. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1238. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1239. --libdir=DIR object code libraries [EPREFIX/lib]
  1240. --includedir=DIR C header files [PREFIX/include]
  1241. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1242. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1243. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1244. --infodir=DIR info documentation [DATAROOTDIR/info]
  1245. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1246. --mandir=DIR man documentation [DATAROOTDIR/man]
  1247. --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
  1248. --htmldir=DIR html documentation [DOCDIR]
  1249. --dvidir=DIR dvi documentation [DOCDIR]
  1250. --pdfdir=DIR pdf documentation [DOCDIR]
  1251. --psdir=DIR ps documentation [DOCDIR]
  1252. _ACEOF
  1253. cat <<\_ACEOF
  1254. Program names:
  1255. --program-prefix=PREFIX prepend PREFIX to installed program names
  1256. --program-suffix=SUFFIX append SUFFIX to installed program names
  1257. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1258. System types:
  1259. --build=BUILD configure for building on BUILD [guessed]
  1260. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1261. --target=TARGET configure for building compilers for TARGET [HOST]
  1262. _ACEOF
  1263. fi
  1264. if test -n "$ac_init_help"; then
  1265. case $ac_init_help in
  1266. short | recursive ) echo "Configuration of gprofng 2.38.50:";;
  1267. esac
  1268. cat <<\_ACEOF
  1269. Optional Features:
  1270. --disable-option-checking ignore unrecognized --enable/--with options
  1271. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1272. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1273. --enable-silent-rules less verbose build output (undo: "make V=1")
  1274. --disable-silent-rules verbose build output (undo: "make V=0")
  1275. --enable-maintainer-mode
  1276. enable make rules and dependencies not useful (and
  1277. sometimes confusing) to the casual installer
  1278. --enable-dependency-tracking
  1279. do not reject slow dependency extractors
  1280. --disable-dependency-tracking
  1281. speeds up one-time build
  1282. --enable-shared[=PKGS] build shared libraries [default=yes]
  1283. --enable-static[=PKGS] build static libraries [default=yes]
  1284. --enable-fast-install[=PKGS]
  1285. optimize for fast installation [default=yes]
  1286. --disable-libtool-lock avoid locking (might break parallel builds)
  1287. Optional Packages:
  1288. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1289. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1290. --with-pic try to use only PIC/non-PIC objects [default=use
  1291. both]
  1292. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1293. Some influential environment variables:
  1294. CC C compiler command
  1295. CFLAGS C compiler flags
  1296. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1297. nonstandard directory <lib dir>
  1298. LIBS libraries to pass to the linker, e.g. -l<library>
  1299. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1300. you have headers in a nonstandard directory <include dir>
  1301. CPP C preprocessor
  1302. CXX C++ compiler command
  1303. CXXFLAGS C++ compiler flags
  1304. CXXCPP C++ preprocessor
  1305. Use these variables to override the choices made by `configure' or to help
  1306. it to find libraries and programs with nonstandard names/locations.
  1307. Report bugs to the package provider.
  1308. _ACEOF
  1309. ac_status=$?
  1310. fi
  1311. if test "$ac_init_help" = "recursive"; then
  1312. # If there are subdirs, report their specific --help.
  1313. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1314. test -d "$ac_dir" ||
  1315. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1316. continue
  1317. ac_builddir=.
  1318. case "$ac_dir" in
  1319. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1320. *)
  1321. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1322. # A ".." for each directory in $ac_dir_suffix.
  1323. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1324. case $ac_top_builddir_sub in
  1325. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1327. esac ;;
  1328. esac
  1329. ac_abs_top_builddir=$ac_pwd
  1330. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1331. # for backward compatibility:
  1332. ac_top_builddir=$ac_top_build_prefix
  1333. case $srcdir in
  1334. .) # We are building in place.
  1335. ac_srcdir=.
  1336. ac_top_srcdir=$ac_top_builddir_sub
  1337. ac_abs_top_srcdir=$ac_pwd ;;
  1338. [\\/]* | ?:[\\/]* ) # Absolute name.
  1339. ac_srcdir=$srcdir$ac_dir_suffix;
  1340. ac_top_srcdir=$srcdir
  1341. ac_abs_top_srcdir=$srcdir ;;
  1342. *) # Relative name.
  1343. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1344. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1345. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1346. esac
  1347. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1348. cd "$ac_dir" || { ac_status=$?; continue; }
  1349. # Check for guested configure.
  1350. if test -f "$ac_srcdir/configure.gnu"; then
  1351. echo &&
  1352. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1353. elif test -f "$ac_srcdir/configure"; then
  1354. echo &&
  1355. $SHELL "$ac_srcdir/configure" --help=recursive
  1356. else
  1357. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1358. fi || ac_status=$?
  1359. cd "$ac_pwd" || { ac_status=$?; break; }
  1360. done
  1361. fi
  1362. test -n "$ac_init_help" && exit $ac_status
  1363. if $ac_init_version; then
  1364. cat <<\_ACEOF
  1365. gprofng configure 2.38.50
  1366. generated by GNU Autoconf 2.69
  1367. Copyright (C) 2012 Free Software Foundation, Inc.
  1368. This configure script is free software; the Free Software Foundation
  1369. gives unlimited permission to copy, distribute and modify it.
  1370. _ACEOF
  1371. exit
  1372. fi
  1373. ## ------------------------ ##
  1374. ## Autoconf initialization. ##
  1375. ## ------------------------ ##
  1376. # ac_fn_c_try_compile LINENO
  1377. # --------------------------
  1378. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1379. ac_fn_c_try_compile ()
  1380. {
  1381. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1382. rm -f conftest.$ac_objext
  1383. if { { ac_try="$ac_compile"
  1384. case "(($ac_try" in
  1385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1386. *) ac_try_echo=$ac_try;;
  1387. esac
  1388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1389. $as_echo "$ac_try_echo"; } >&5
  1390. (eval "$ac_compile") 2>conftest.err
  1391. ac_status=$?
  1392. if test -s conftest.err; then
  1393. grep -v '^ *+' conftest.err >conftest.er1
  1394. cat conftest.er1 >&5
  1395. mv -f conftest.er1 conftest.err
  1396. fi
  1397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1398. test $ac_status = 0; } && {
  1399. test -z "$ac_c_werror_flag" ||
  1400. test ! -s conftest.err
  1401. } && test -s conftest.$ac_objext; then :
  1402. ac_retval=0
  1403. else
  1404. $as_echo "$as_me: failed program was:" >&5
  1405. sed 's/^/| /' conftest.$ac_ext >&5
  1406. ac_retval=1
  1407. fi
  1408. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1409. as_fn_set_status $ac_retval
  1410. } # ac_fn_c_try_compile
  1411. # ac_fn_c_try_cpp LINENO
  1412. # ----------------------
  1413. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1414. ac_fn_c_try_cpp ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1418. case "(($ac_try" in
  1419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1420. *) ac_try_echo=$ac_try;;
  1421. esac
  1422. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1423. $as_echo "$ac_try_echo"; } >&5
  1424. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1425. ac_status=$?
  1426. if test -s conftest.err; then
  1427. grep -v '^ *+' conftest.err >conftest.er1
  1428. cat conftest.er1 >&5
  1429. mv -f conftest.er1 conftest.err
  1430. fi
  1431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1432. test $ac_status = 0; } > conftest.i && {
  1433. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1434. test ! -s conftest.err
  1435. }; then :
  1436. ac_retval=0
  1437. else
  1438. $as_echo "$as_me: failed program was:" >&5
  1439. sed 's/^/| /' conftest.$ac_ext >&5
  1440. ac_retval=1
  1441. fi
  1442. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1443. as_fn_set_status $ac_retval
  1444. } # ac_fn_c_try_cpp
  1445. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1446. # -------------------------------------------------------
  1447. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1448. # the include files in INCLUDES and setting the cache variable VAR
  1449. # accordingly.
  1450. ac_fn_c_check_header_mongrel ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. if eval \${$3+:} false; then :
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1455. $as_echo_n "checking for $2... " >&6; }
  1456. if eval \${$3+:} false; then :
  1457. $as_echo_n "(cached) " >&6
  1458. fi
  1459. eval ac_res=\$$3
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1461. $as_echo "$ac_res" >&6; }
  1462. else
  1463. # Is the header compilable?
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1465. $as_echo_n "checking $2 usability... " >&6; }
  1466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1467. /* end confdefs.h. */
  1468. $4
  1469. #include <$2>
  1470. _ACEOF
  1471. if ac_fn_c_try_compile "$LINENO"; then :
  1472. ac_header_compiler=yes
  1473. else
  1474. ac_header_compiler=no
  1475. fi
  1476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1478. $as_echo "$ac_header_compiler" >&6; }
  1479. # Is the header present?
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1481. $as_echo_n "checking $2 presence... " >&6; }
  1482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1483. /* end confdefs.h. */
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_c_try_cpp "$LINENO"; then :
  1487. ac_header_preproc=yes
  1488. else
  1489. ac_header_preproc=no
  1490. fi
  1491. rm -f conftest.err conftest.i conftest.$ac_ext
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1493. $as_echo "$ac_header_preproc" >&6; }
  1494. # So? What about this header?
  1495. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1496. yes:no: )
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1498. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1500. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1501. ;;
  1502. no:yes:* )
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1504. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1506. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1508. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1510. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1512. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1513. ;;
  1514. esac
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1516. $as_echo_n "checking for $2... " >&6; }
  1517. if eval \${$3+:} false; then :
  1518. $as_echo_n "(cached) " >&6
  1519. else
  1520. eval "$3=\$ac_header_compiler"
  1521. fi
  1522. eval ac_res=\$$3
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1524. $as_echo "$ac_res" >&6; }
  1525. fi
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. } # ac_fn_c_check_header_mongrel
  1528. # ac_fn_c_try_run LINENO
  1529. # ----------------------
  1530. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1531. # that executables *can* be run.
  1532. ac_fn_c_try_run ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. if { { ac_try="$ac_link"
  1536. case "(($ac_try" in
  1537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1538. *) ac_try_echo=$ac_try;;
  1539. esac
  1540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1541. $as_echo "$ac_try_echo"; } >&5
  1542. (eval "$ac_link") 2>&5
  1543. ac_status=$?
  1544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1545. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1546. { { case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_try") 2>&5
  1553. ac_status=$?
  1554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; }; }; then :
  1556. ac_retval=0
  1557. else
  1558. $as_echo "$as_me: program exited with status $ac_status" >&5
  1559. $as_echo "$as_me: failed program was:" >&5
  1560. sed 's/^/| /' conftest.$ac_ext >&5
  1561. ac_retval=$ac_status
  1562. fi
  1563. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1564. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1565. as_fn_set_status $ac_retval
  1566. } # ac_fn_c_try_run
  1567. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1568. # -------------------------------------------------------
  1569. # Tests whether HEADER exists and can be compiled using the include files in
  1570. # INCLUDES, setting the cache variable VAR accordingly.
  1571. ac_fn_c_check_header_compile ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1575. $as_echo_n "checking for $2... " >&6; }
  1576. if eval \${$3+:} false; then :
  1577. $as_echo_n "(cached) " >&6
  1578. else
  1579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1580. /* end confdefs.h. */
  1581. $4
  1582. #include <$2>
  1583. _ACEOF
  1584. if ac_fn_c_try_compile "$LINENO"; then :
  1585. eval "$3=yes"
  1586. else
  1587. eval "$3=no"
  1588. fi
  1589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1590. fi
  1591. eval ac_res=\$$3
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1593. $as_echo "$ac_res" >&6; }
  1594. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1595. } # ac_fn_c_check_header_compile
  1596. # ac_fn_cxx_try_compile LINENO
  1597. # ----------------------------
  1598. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1599. ac_fn_cxx_try_compile ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. rm -f conftest.$ac_objext
  1603. if { { ac_try="$ac_compile"
  1604. case "(($ac_try" in
  1605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1606. *) ac_try_echo=$ac_try;;
  1607. esac
  1608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1609. $as_echo "$ac_try_echo"; } >&5
  1610. (eval "$ac_compile") 2>conftest.err
  1611. ac_status=$?
  1612. if test -s conftest.err; then
  1613. grep -v '^ *+' conftest.err >conftest.er1
  1614. cat conftest.er1 >&5
  1615. mv -f conftest.er1 conftest.err
  1616. fi
  1617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1618. test $ac_status = 0; } && {
  1619. test -z "$ac_cxx_werror_flag" ||
  1620. test ! -s conftest.err
  1621. } && test -s conftest.$ac_objext; then :
  1622. ac_retval=0
  1623. else
  1624. $as_echo "$as_me: failed program was:" >&5
  1625. sed 's/^/| /' conftest.$ac_ext >&5
  1626. ac_retval=1
  1627. fi
  1628. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1629. as_fn_set_status $ac_retval
  1630. } # ac_fn_cxx_try_compile
  1631. # ac_fn_c_try_link LINENO
  1632. # -----------------------
  1633. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1634. ac_fn_c_try_link ()
  1635. {
  1636. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637. rm -f conftest.$ac_objext conftest$ac_exeext
  1638. if { { ac_try="$ac_link"
  1639. case "(($ac_try" in
  1640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1641. *) ac_try_echo=$ac_try;;
  1642. esac
  1643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1644. $as_echo "$ac_try_echo"; } >&5
  1645. (eval "$ac_link") 2>conftest.err
  1646. ac_status=$?
  1647. if test -s conftest.err; then
  1648. grep -v '^ *+' conftest.err >conftest.er1
  1649. cat conftest.er1 >&5
  1650. mv -f conftest.er1 conftest.err
  1651. fi
  1652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1653. test $ac_status = 0; } && {
  1654. test -z "$ac_c_werror_flag" ||
  1655. test ! -s conftest.err
  1656. } && test -s conftest$ac_exeext && {
  1657. test "$cross_compiling" = yes ||
  1658. test -x conftest$ac_exeext
  1659. }; then :
  1660. ac_retval=0
  1661. else
  1662. $as_echo "$as_me: failed program was:" >&5
  1663. sed 's/^/| /' conftest.$ac_ext >&5
  1664. ac_retval=1
  1665. fi
  1666. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1667. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1668. # interfere with the next link command; also delete a directory that is
  1669. # left behind by Apple's compiler. We do this before executing the actions.
  1670. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. as_fn_set_status $ac_retval
  1673. } # ac_fn_c_try_link
  1674. # ac_fn_c_check_func LINENO FUNC VAR
  1675. # ----------------------------------
  1676. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1677. ac_fn_c_check_func ()
  1678. {
  1679. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1681. $as_echo_n "checking for $2... " >&6; }
  1682. if eval \${$3+:} false; then :
  1683. $as_echo_n "(cached) " >&6
  1684. else
  1685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1686. /* end confdefs.h. */
  1687. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1688. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1689. #define $2 innocuous_$2
  1690. /* System header to define __stub macros and hopefully few prototypes,
  1691. which can conflict with char $2 (); below.
  1692. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1693. <limits.h> exists even on freestanding compilers. */
  1694. #ifdef __STDC__
  1695. # include <limits.h>
  1696. #else
  1697. # include <assert.h>
  1698. #endif
  1699. #undef $2
  1700. /* Override any GCC internal prototype to avoid an error.
  1701. Use char because int might match the return type of a GCC
  1702. builtin and then its argument prototype would still apply. */
  1703. #ifdef __cplusplus
  1704. extern "C"
  1705. #endif
  1706. char $2 ();
  1707. /* The GNU C library defines this for functions which it implements
  1708. to always fail with ENOSYS. Some functions are actually named
  1709. something starting with __ and the normal name is an alias. */
  1710. #if defined __stub_$2 || defined __stub___$2
  1711. choke me
  1712. #endif
  1713. int
  1714. main ()
  1715. {
  1716. return $2 ();
  1717. ;
  1718. return 0;
  1719. }
  1720. _ACEOF
  1721. if ac_fn_c_try_link "$LINENO"; then :
  1722. eval "$3=yes"
  1723. else
  1724. eval "$3=no"
  1725. fi
  1726. rm -f core conftest.err conftest.$ac_objext \
  1727. conftest$ac_exeext conftest.$ac_ext
  1728. fi
  1729. eval ac_res=\$$3
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1731. $as_echo "$ac_res" >&6; }
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. } # ac_fn_c_check_func
  1734. # ac_fn_cxx_try_cpp LINENO
  1735. # ------------------------
  1736. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1737. ac_fn_cxx_try_cpp ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1741. case "(($ac_try" in
  1742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1743. *) ac_try_echo=$ac_try;;
  1744. esac
  1745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1746. $as_echo "$ac_try_echo"; } >&5
  1747. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1748. ac_status=$?
  1749. if test -s conftest.err; then
  1750. grep -v '^ *+' conftest.err >conftest.er1
  1751. cat conftest.er1 >&5
  1752. mv -f conftest.er1 conftest.err
  1753. fi
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } > conftest.i && {
  1756. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1757. test ! -s conftest.err
  1758. }; then :
  1759. ac_retval=0
  1760. else
  1761. $as_echo "$as_me: failed program was:" >&5
  1762. sed 's/^/| /' conftest.$ac_ext >&5
  1763. ac_retval=1
  1764. fi
  1765. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1766. as_fn_set_status $ac_retval
  1767. } # ac_fn_cxx_try_cpp
  1768. # ac_fn_cxx_try_link LINENO
  1769. # -------------------------
  1770. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1771. ac_fn_cxx_try_link ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. rm -f conftest.$ac_objext conftest$ac_exeext
  1775. if { { ac_try="$ac_link"
  1776. case "(($ac_try" in
  1777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1778. *) ac_try_echo=$ac_try;;
  1779. esac
  1780. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1781. $as_echo "$ac_try_echo"; } >&5
  1782. (eval "$ac_link") 2>conftest.err
  1783. ac_status=$?
  1784. if test -s conftest.err; then
  1785. grep -v '^ *+' conftest.err >conftest.er1
  1786. cat conftest.er1 >&5
  1787. mv -f conftest.er1 conftest.err
  1788. fi
  1789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1790. test $ac_status = 0; } && {
  1791. test -z "$ac_cxx_werror_flag" ||
  1792. test ! -s conftest.err
  1793. } && test -s conftest$ac_exeext && {
  1794. test "$cross_compiling" = yes ||
  1795. test -x conftest$ac_exeext
  1796. }; then :
  1797. ac_retval=0
  1798. else
  1799. $as_echo "$as_me: failed program was:" >&5
  1800. sed 's/^/| /' conftest.$ac_ext >&5
  1801. ac_retval=1
  1802. fi
  1803. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1804. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1805. # interfere with the next link command; also delete a directory that is
  1806. # left behind by Apple's compiler. We do this before executing the actions.
  1807. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1808. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1809. as_fn_set_status $ac_retval
  1810. } # ac_fn_cxx_try_link
  1811. cat >config.log <<_ACEOF
  1812. This file contains any messages produced by compilers while
  1813. running configure, to aid debugging if configure makes a mistake.
  1814. It was created by gprofng $as_me 2.38.50, which was
  1815. generated by GNU Autoconf 2.69. Invocation command line was
  1816. $ $0 $@
  1817. _ACEOF
  1818. exec 5>>config.log
  1819. {
  1820. cat <<_ASUNAME
  1821. ## --------- ##
  1822. ## Platform. ##
  1823. ## --------- ##
  1824. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1825. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1826. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1827. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1828. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1829. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1830. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1831. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1832. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1833. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1834. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1835. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1836. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1837. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1838. _ASUNAME
  1839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1840. for as_dir in $PATH
  1841. do
  1842. IFS=$as_save_IFS
  1843. test -z "$as_dir" && as_dir=.
  1844. $as_echo "PATH: $as_dir"
  1845. done
  1846. IFS=$as_save_IFS
  1847. } >&5
  1848. cat >&5 <<_ACEOF
  1849. ## ----------- ##
  1850. ## Core tests. ##
  1851. ## ----------- ##
  1852. _ACEOF
  1853. # Keep a trace of the command line.
  1854. # Strip out --no-create and --no-recursion so they do not pile up.
  1855. # Strip out --silent because we don't want to record it for future runs.
  1856. # Also quote any args containing shell meta-characters.
  1857. # Make two passes to allow for proper duplicate-argument suppression.
  1858. ac_configure_args=
  1859. ac_configure_args0=
  1860. ac_configure_args1=
  1861. ac_must_keep_next=false
  1862. for ac_pass in 1 2
  1863. do
  1864. for ac_arg
  1865. do
  1866. case $ac_arg in
  1867. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1868. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1869. | -silent | --silent | --silen | --sile | --sil)
  1870. continue ;;
  1871. *\'*)
  1872. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1873. esac
  1874. case $ac_pass in
  1875. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1876. 2)
  1877. as_fn_append ac_configure_args1 " '$ac_arg'"
  1878. if test $ac_must_keep_next = true; then
  1879. ac_must_keep_next=false # Got value, back to normal.
  1880. else
  1881. case $ac_arg in
  1882. *=* | --config-cache | -C | -disable-* | --disable-* \
  1883. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1884. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1885. | -with-* | --with-* | -without-* | --without-* | --x)
  1886. case "$ac_configure_args0 " in
  1887. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1888. esac
  1889. ;;
  1890. -* ) ac_must_keep_next=true ;;
  1891. esac
  1892. fi
  1893. as_fn_append ac_configure_args " '$ac_arg'"
  1894. ;;
  1895. esac
  1896. done
  1897. done
  1898. { ac_configure_args0=; unset ac_configure_args0;}
  1899. { ac_configure_args1=; unset ac_configure_args1;}
  1900. # When interrupted or exit'd, cleanup temporary files, and complete
  1901. # config.log. We remove comments because anyway the quotes in there
  1902. # would cause problems or look ugly.
  1903. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1904. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1905. trap 'exit_status=$?
  1906. # Save into config.log some information that might help in debugging.
  1907. {
  1908. echo
  1909. $as_echo "## ---------------- ##
  1910. ## Cache variables. ##
  1911. ## ---------------- ##"
  1912. echo
  1913. # The following way of writing the cache mishandles newlines in values,
  1914. (
  1915. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1916. eval ac_val=\$$ac_var
  1917. case $ac_val in #(
  1918. *${as_nl}*)
  1919. case $ac_var in #(
  1920. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1921. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1922. esac
  1923. case $ac_var in #(
  1924. _ | IFS | as_nl) ;; #(
  1925. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1926. *) { eval $ac_var=; unset $ac_var;} ;;
  1927. esac ;;
  1928. esac
  1929. done
  1930. (set) 2>&1 |
  1931. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1932. *${as_nl}ac_space=\ *)
  1933. sed -n \
  1934. "s/'\''/'\''\\\\'\'''\''/g;
  1935. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1936. ;; #(
  1937. *)
  1938. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1939. ;;
  1940. esac |
  1941. sort
  1942. )
  1943. echo
  1944. $as_echo "## ----------------- ##
  1945. ## Output variables. ##
  1946. ## ----------------- ##"
  1947. echo
  1948. for ac_var in $ac_subst_vars
  1949. do
  1950. eval ac_val=\$$ac_var
  1951. case $ac_val in
  1952. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1953. esac
  1954. $as_echo "$ac_var='\''$ac_val'\''"
  1955. done | sort
  1956. echo
  1957. if test -n "$ac_subst_files"; then
  1958. $as_echo "## ------------------- ##
  1959. ## File substitutions. ##
  1960. ## ------------------- ##"
  1961. echo
  1962. for ac_var in $ac_subst_files
  1963. do
  1964. eval ac_val=\$$ac_var
  1965. case $ac_val in
  1966. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1967. esac
  1968. $as_echo "$ac_var='\''$ac_val'\''"
  1969. done | sort
  1970. echo
  1971. fi
  1972. if test -s confdefs.h; then
  1973. $as_echo "## ----------- ##
  1974. ## confdefs.h. ##
  1975. ## ----------- ##"
  1976. echo
  1977. cat confdefs.h
  1978. echo
  1979. fi
  1980. test "$ac_signal" != 0 &&
  1981. $as_echo "$as_me: caught signal $ac_signal"
  1982. $as_echo "$as_me: exit $exit_status"
  1983. } >&5
  1984. rm -f core *.core core.conftest.* &&
  1985. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1986. exit $exit_status
  1987. ' 0
  1988. for ac_signal in 1 2 13 15; do
  1989. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1990. done
  1991. ac_signal=0
  1992. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1993. rm -f -r conftest* confdefs.h
  1994. $as_echo "/* confdefs.h */" > confdefs.h
  1995. # Predefined preprocessor variables.
  1996. cat >>confdefs.h <<_ACEOF
  1997. #define PACKAGE_NAME "$PACKAGE_NAME"
  1998. _ACEOF
  1999. cat >>confdefs.h <<_ACEOF
  2000. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2001. _ACEOF
  2002. cat >>confdefs.h <<_ACEOF
  2003. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2004. _ACEOF
  2005. cat >>confdefs.h <<_ACEOF
  2006. #define PACKAGE_STRING "$PACKAGE_STRING"
  2007. _ACEOF
  2008. cat >>confdefs.h <<_ACEOF
  2009. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2010. _ACEOF
  2011. cat >>confdefs.h <<_ACEOF
  2012. #define PACKAGE_URL "$PACKAGE_URL"
  2013. _ACEOF
  2014. # Let the site file select an alternate cache file if it wants to.
  2015. # Prefer an explicitly selected file to automatically selected ones.
  2016. ac_site_file1=NONE
  2017. ac_site_file2=NONE
  2018. if test -n "$CONFIG_SITE"; then
  2019. # We do not want a PATH search for config.site.
  2020. case $CONFIG_SITE in #((
  2021. -*) ac_site_file1=./$CONFIG_SITE;;
  2022. */*) ac_site_file1=$CONFIG_SITE;;
  2023. *) ac_site_file1=./$CONFIG_SITE;;
  2024. esac
  2025. elif test "x$prefix" != xNONE; then
  2026. ac_site_file1=$prefix/share/config.site
  2027. ac_site_file2=$prefix/etc/config.site
  2028. else
  2029. ac_site_file1=$ac_default_prefix/share/config.site
  2030. ac_site_file2=$ac_default_prefix/etc/config.site
  2031. fi
  2032. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2033. do
  2034. test "x$ac_site_file" = xNONE && continue
  2035. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2037. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2038. sed 's/^/| /' "$ac_site_file" >&5
  2039. . "$ac_site_file" \
  2040. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2042. as_fn_error $? "failed to load site script $ac_site_file
  2043. See \`config.log' for more details" "$LINENO" 5; }
  2044. fi
  2045. done
  2046. if test -r "$cache_file"; then
  2047. # Some versions of bash will fail to source /dev/null (special files
  2048. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2049. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2051. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2052. case $cache_file in
  2053. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2054. *) . "./$cache_file";;
  2055. esac
  2056. fi
  2057. else
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2059. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2060. >$cache_file
  2061. fi
  2062. # Check that the precious variables saved in the cache have kept the same
  2063. # value.
  2064. ac_cache_corrupted=false
  2065. for ac_var in $ac_precious_vars; do
  2066. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2067. eval ac_new_set=\$ac_env_${ac_var}_set
  2068. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2069. eval ac_new_val=\$ac_env_${ac_var}_value
  2070. case $ac_old_set,$ac_new_set in
  2071. set,)
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2073. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2074. ac_cache_corrupted=: ;;
  2075. ,set)
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2077. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2078. ac_cache_corrupted=: ;;
  2079. ,);;
  2080. *)
  2081. if test "x$ac_old_val" != "x$ac_new_val"; then
  2082. # differences in whitespace do not lead to failure.
  2083. ac_old_val_w=`echo x $ac_old_val`
  2084. ac_new_val_w=`echo x $ac_new_val`
  2085. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2087. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2088. ac_cache_corrupted=:
  2089. else
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2091. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2092. eval $ac_var=\$ac_old_val
  2093. fi
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2095. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2097. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2098. fi;;
  2099. esac
  2100. # Pass precious variables to config.status.
  2101. if test "$ac_new_set" = set; then
  2102. case $ac_new_val in
  2103. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2104. *) ac_arg=$ac_var=$ac_new_val ;;
  2105. esac
  2106. case " $ac_configure_args " in
  2107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2108. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2109. esac
  2110. fi
  2111. done
  2112. if $ac_cache_corrupted; then
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2114. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2116. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2117. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2118. fi
  2119. ## -------------------- ##
  2120. ## Main body of script. ##
  2121. ## -------------------- ##
  2122. ac_ext=c
  2123. ac_cpp='$CPP $CPPFLAGS'
  2124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2127. ac_aux_dir=
  2128. for ac_dir in ../.. "$srcdir"/../..; do
  2129. if test -f "$ac_dir/install-sh"; then
  2130. ac_aux_dir=$ac_dir
  2131. ac_install_sh="$ac_aux_dir/install-sh -c"
  2132. break
  2133. elif test -f "$ac_dir/install.sh"; then
  2134. ac_aux_dir=$ac_dir
  2135. ac_install_sh="$ac_aux_dir/install.sh -c"
  2136. break
  2137. elif test -f "$ac_dir/shtool"; then
  2138. ac_aux_dir=$ac_dir
  2139. ac_install_sh="$ac_aux_dir/shtool install -c"
  2140. break
  2141. fi
  2142. done
  2143. if test -z "$ac_aux_dir"; then
  2144. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
  2145. fi
  2146. # These three variables are undocumented and unsupported,
  2147. # and are intended to be withdrawn in a future Autoconf release.
  2148. # They can cause serious problems if a builder's source tree is in a directory
  2149. # whose full name contains unusual characters.
  2150. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2151. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2152. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2153. # Make sure we can run config.sub.
  2154. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2155. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2157. $as_echo_n "checking build system type... " >&6; }
  2158. if ${ac_cv_build+:} false; then :
  2159. $as_echo_n "(cached) " >&6
  2160. else
  2161. ac_build_alias=$build_alias
  2162. test "x$ac_build_alias" = x &&
  2163. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2164. test "x$ac_build_alias" = x &&
  2165. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2166. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2167. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2168. fi
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2170. $as_echo "$ac_cv_build" >&6; }
  2171. case $ac_cv_build in
  2172. *-*-*) ;;
  2173. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2174. esac
  2175. build=$ac_cv_build
  2176. ac_save_IFS=$IFS; IFS='-'
  2177. set x $ac_cv_build
  2178. shift
  2179. build_cpu=$1
  2180. build_vendor=$2
  2181. shift; shift
  2182. # Remember, the first character of IFS is used to create $*,
  2183. # except with old shells:
  2184. build_os=$*
  2185. IFS=$ac_save_IFS
  2186. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2188. $as_echo_n "checking host system type... " >&6; }
  2189. if ${ac_cv_host+:} false; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. if test "x$host_alias" = x; then
  2193. ac_cv_host=$ac_cv_build
  2194. else
  2195. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2196. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2197. fi
  2198. fi
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2200. $as_echo "$ac_cv_host" >&6; }
  2201. case $ac_cv_host in
  2202. *-*-*) ;;
  2203. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2204. esac
  2205. host=$ac_cv_host
  2206. ac_save_IFS=$IFS; IFS='-'
  2207. set x $ac_cv_host
  2208. shift
  2209. host_cpu=$1
  2210. host_vendor=$2
  2211. shift; shift
  2212. # Remember, the first character of IFS is used to create $*,
  2213. # except with old shells:
  2214. host_os=$*
  2215. IFS=$ac_save_IFS
  2216. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2218. $as_echo_n "checking target system type... " >&6; }
  2219. if ${ac_cv_target+:} false; then :
  2220. $as_echo_n "(cached) " >&6
  2221. else
  2222. if test "x$target_alias" = x; then
  2223. ac_cv_target=$ac_cv_host
  2224. else
  2225. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2226. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2227. fi
  2228. fi
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2230. $as_echo "$ac_cv_target" >&6; }
  2231. case $ac_cv_target in
  2232. *-*-*) ;;
  2233. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2234. esac
  2235. target=$ac_cv_target
  2236. ac_save_IFS=$IFS; IFS='-'
  2237. set x $ac_cv_target
  2238. shift
  2239. target_cpu=$1
  2240. target_vendor=$2
  2241. shift; shift
  2242. # Remember, the first character of IFS is used to create $*,
  2243. # except with old shells:
  2244. target_os=$*
  2245. IFS=$ac_save_IFS
  2246. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2247. # The aliases save the names the user supplied, while $host etc.
  2248. # will get canonicalized.
  2249. test -n "$target_alias" &&
  2250. test "$program_prefix$program_suffix$program_transform_name" = \
  2251. NONENONEs,x,x, &&
  2252. program_prefix=${target_alias}-
  2253. am__api_version='1.15'
  2254. # Find a good install program. We prefer a C program (faster),
  2255. # so one script is as good as another. But avoid the broken or
  2256. # incompatible versions:
  2257. # SysV /etc/install, /usr/sbin/install
  2258. # SunOS /usr/etc/install
  2259. # IRIX /sbin/install
  2260. # AIX /bin/install
  2261. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2262. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2263. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2264. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2265. # OS/2's system install, which has a completely different semantic
  2266. # ./install, which can be erroneously created by make from ./install.sh.
  2267. # Reject install programs that cannot install multiple files.
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2269. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2270. if test -z "$INSTALL"; then
  2271. if ${ac_cv_path_install+:} false; then :
  2272. $as_echo_n "(cached) " >&6
  2273. else
  2274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2275. for as_dir in $PATH
  2276. do
  2277. IFS=$as_save_IFS
  2278. test -z "$as_dir" && as_dir=.
  2279. # Account for people who put trailing slashes in PATH elements.
  2280. case $as_dir/ in #((
  2281. ./ | .// | /[cC]/* | \
  2282. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2283. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2284. /usr/ucb/* ) ;;
  2285. *)
  2286. # OSF1 and SCO ODT 3.0 have their own names for install.
  2287. # Don't use installbsd from OSF since it installs stuff as root
  2288. # by default.
  2289. for ac_prog in ginstall scoinst install; do
  2290. for ac_exec_ext in '' $ac_executable_extensions; do
  2291. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2292. if test $ac_prog = install &&
  2293. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2294. # AIX install. It has an incompatible calling convention.
  2295. :
  2296. elif test $ac_prog = install &&
  2297. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2298. # program-specific install script used by HP pwplus--don't use.
  2299. :
  2300. else
  2301. rm -rf conftest.one conftest.two conftest.dir
  2302. echo one > conftest.one
  2303. echo two > conftest.two
  2304. mkdir conftest.dir
  2305. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2306. test -s conftest.one && test -s conftest.two &&
  2307. test -s conftest.dir/conftest.one &&
  2308. test -s conftest.dir/conftest.two
  2309. then
  2310. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2311. break 3
  2312. fi
  2313. fi
  2314. fi
  2315. done
  2316. done
  2317. ;;
  2318. esac
  2319. done
  2320. IFS=$as_save_IFS
  2321. rm -rf conftest.one conftest.two conftest.dir
  2322. fi
  2323. if test "${ac_cv_path_install+set}" = set; then
  2324. INSTALL=$ac_cv_path_install
  2325. else
  2326. # As a last resort, use the slow shell script. Don't cache a
  2327. # value for INSTALL within a source directory, because that will
  2328. # break other packages using the cache if that directory is
  2329. # removed, or if the value is a relative name.
  2330. INSTALL=$ac_install_sh
  2331. fi
  2332. fi
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2334. $as_echo "$INSTALL" >&6; }
  2335. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2336. # It thinks the first close brace ends the variable substitution.
  2337. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2338. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2339. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2341. $as_echo_n "checking whether build environment is sane... " >&6; }
  2342. # Reject unsafe characters in $srcdir or the absolute working directory
  2343. # name. Accept space and tab only in the latter.
  2344. am_lf='
  2345. '
  2346. case `pwd` in
  2347. *[\\\"\#\$\&\'\`$am_lf]*)
  2348. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2349. esac
  2350. case $srcdir in
  2351. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2352. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2353. esac
  2354. # Do 'set' in a subshell so we don't clobber the current shell's
  2355. # arguments. Must try -L first in case configure is actually a
  2356. # symlink; some systems play weird games with the mod time of symlinks
  2357. # (eg FreeBSD returns the mod time of the symlink's containing
  2358. # directory).
  2359. if (
  2360. am_has_slept=no
  2361. for am_try in 1 2; do
  2362. echo "timestamp, slept: $am_has_slept" > conftest.file
  2363. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2364. if test "$*" = "X"; then
  2365. # -L didn't work.
  2366. set X `ls -t "$srcdir/configure" conftest.file`
  2367. fi
  2368. if test "$*" != "X $srcdir/configure conftest.file" \
  2369. && test "$*" != "X conftest.file $srcdir/configure"; then
  2370. # If neither matched, then we have a broken ls. This can happen
  2371. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2372. # broken ls alias from the environment. This has actually
  2373. # happened. Such a system could not be considered "sane".
  2374. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2375. alias in your environment" "$LINENO" 5
  2376. fi
  2377. if test "$2" = conftest.file || test $am_try -eq 2; then
  2378. break
  2379. fi
  2380. # Just in case.
  2381. sleep 1
  2382. am_has_slept=yes
  2383. done
  2384. test "$2" = conftest.file
  2385. )
  2386. then
  2387. # Ok.
  2388. :
  2389. else
  2390. as_fn_error $? "newly created file is older than distributed files!
  2391. Check your system clock" "$LINENO" 5
  2392. fi
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2394. $as_echo "yes" >&6; }
  2395. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2396. # generated files are strictly newer.
  2397. am_sleep_pid=
  2398. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2399. ( sleep 1 ) &
  2400. am_sleep_pid=$!
  2401. fi
  2402. rm -f conftest.file
  2403. test "$program_prefix" != NONE &&
  2404. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2405. # Use a double $ so make ignores it.
  2406. test "$program_suffix" != NONE &&
  2407. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2408. # Double any \ or $.
  2409. # By default was `s,x,x', remove it if useless.
  2410. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2411. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2412. # Expand $ac_aux_dir to an absolute path.
  2413. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2414. if test x"${MISSING+set}" != xset; then
  2415. case $am_aux_dir in
  2416. *\ * | *\ *)
  2417. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2418. *)
  2419. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2420. esac
  2421. fi
  2422. # Use eval to expand $SHELL
  2423. if eval "$MISSING --is-lightweight"; then
  2424. am_missing_run="$MISSING "
  2425. else
  2426. am_missing_run=
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2428. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2429. fi
  2430. if test x"${install_sh+set}" != xset; then
  2431. case $am_aux_dir in
  2432. *\ * | *\ *)
  2433. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2434. *)
  2435. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2436. esac
  2437. fi
  2438. # Installed binaries are usually stripped using 'strip' when the user
  2439. # run "make install-strip". However 'strip' might not be the right
  2440. # tool to use in cross-compilation environments, therefore Automake
  2441. # will honor the 'STRIP' environment variable to overrule this program.
  2442. if test "$cross_compiling" != no; then
  2443. if test -n "$ac_tool_prefix"; then
  2444. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2445. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2447. $as_echo_n "checking for $ac_word... " >&6; }
  2448. if ${ac_cv_prog_STRIP+:} false; then :
  2449. $as_echo_n "(cached) " >&6
  2450. else
  2451. if test -n "$STRIP"; then
  2452. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2453. else
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2461. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2463. break 2
  2464. fi
  2465. done
  2466. done
  2467. IFS=$as_save_IFS
  2468. fi
  2469. fi
  2470. STRIP=$ac_cv_prog_STRIP
  2471. if test -n "$STRIP"; then
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2473. $as_echo "$STRIP" >&6; }
  2474. else
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2476. $as_echo "no" >&6; }
  2477. fi
  2478. fi
  2479. if test -z "$ac_cv_prog_STRIP"; then
  2480. ac_ct_STRIP=$STRIP
  2481. # Extract the first word of "strip", so it can be a program name with args.
  2482. set dummy strip; ac_word=$2
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2484. $as_echo_n "checking for $ac_word... " >&6; }
  2485. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2486. $as_echo_n "(cached) " >&6
  2487. else
  2488. if test -n "$ac_ct_STRIP"; then
  2489. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2490. else
  2491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2492. for as_dir in $PATH
  2493. do
  2494. IFS=$as_save_IFS
  2495. test -z "$as_dir" && as_dir=.
  2496. for ac_exec_ext in '' $ac_executable_extensions; do
  2497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2498. ac_cv_prog_ac_ct_STRIP="strip"
  2499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2500. break 2
  2501. fi
  2502. done
  2503. done
  2504. IFS=$as_save_IFS
  2505. fi
  2506. fi
  2507. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2508. if test -n "$ac_ct_STRIP"; then
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2510. $as_echo "$ac_ct_STRIP" >&6; }
  2511. else
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2513. $as_echo "no" >&6; }
  2514. fi
  2515. if test "x$ac_ct_STRIP" = x; then
  2516. STRIP=":"
  2517. else
  2518. case $cross_compiling:$ac_tool_warned in
  2519. yes:)
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2522. ac_tool_warned=yes ;;
  2523. esac
  2524. STRIP=$ac_ct_STRIP
  2525. fi
  2526. else
  2527. STRIP="$ac_cv_prog_STRIP"
  2528. fi
  2529. fi
  2530. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2532. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2533. if test -z "$MKDIR_P"; then
  2534. if ${ac_cv_path_mkdir+:} false; then :
  2535. $as_echo_n "(cached) " >&6
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_prog in mkdir gmkdir; do
  2543. for ac_exec_ext in '' $ac_executable_extensions; do
  2544. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2545. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2546. 'mkdir (GNU coreutils) '* | \
  2547. 'mkdir (coreutils) '* | \
  2548. 'mkdir (fileutils) '4.1*)
  2549. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2550. break 3;;
  2551. esac
  2552. done
  2553. done
  2554. done
  2555. IFS=$as_save_IFS
  2556. fi
  2557. test -d ./--version && rmdir ./--version
  2558. if test "${ac_cv_path_mkdir+set}" = set; then
  2559. MKDIR_P="$ac_cv_path_mkdir -p"
  2560. else
  2561. # As a last resort, use the slow shell script. Don't cache a
  2562. # value for MKDIR_P within a source directory, because that will
  2563. # break other packages using the cache if that directory is
  2564. # removed, or if the value is a relative name.
  2565. MKDIR_P="$ac_install_sh -d"
  2566. fi
  2567. fi
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2569. $as_echo "$MKDIR_P" >&6; }
  2570. for ac_prog in gawk mawk nawk awk
  2571. do
  2572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2573. set dummy $ac_prog; ac_word=$2
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2575. $as_echo_n "checking for $ac_word... " >&6; }
  2576. if ${ac_cv_prog_AWK+:} false; then :
  2577. $as_echo_n "(cached) " >&6
  2578. else
  2579. if test -n "$AWK"; then
  2580. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2581. else
  2582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2583. for as_dir in $PATH
  2584. do
  2585. IFS=$as_save_IFS
  2586. test -z "$as_dir" && as_dir=.
  2587. for ac_exec_ext in '' $ac_executable_extensions; do
  2588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2589. ac_cv_prog_AWK="$ac_prog"
  2590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2591. break 2
  2592. fi
  2593. done
  2594. done
  2595. IFS=$as_save_IFS
  2596. fi
  2597. fi
  2598. AWK=$ac_cv_prog_AWK
  2599. if test -n "$AWK"; then
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2601. $as_echo "$AWK" >&6; }
  2602. else
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2604. $as_echo "no" >&6; }
  2605. fi
  2606. test -n "$AWK" && break
  2607. done
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2609. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2610. set x ${MAKE-make}
  2611. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2612. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. cat >conftest.make <<\_ACEOF
  2616. SHELL = /bin/sh
  2617. all:
  2618. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2619. _ACEOF
  2620. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2621. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2622. *@@@%%%=?*=@@@%%%*)
  2623. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2624. *)
  2625. eval ac_cv_prog_make_${ac_make}_set=no;;
  2626. esac
  2627. rm -f conftest.make
  2628. fi
  2629. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2631. $as_echo "yes" >&6; }
  2632. SET_MAKE=
  2633. else
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2635. $as_echo "no" >&6; }
  2636. SET_MAKE="MAKE=${MAKE-make}"
  2637. fi
  2638. rm -rf .tst 2>/dev/null
  2639. mkdir .tst 2>/dev/null
  2640. if test -d .tst; then
  2641. am__leading_dot=.
  2642. else
  2643. am__leading_dot=_
  2644. fi
  2645. rmdir .tst 2>/dev/null
  2646. # Check whether --enable-silent-rules was given.
  2647. if test "${enable_silent_rules+set}" = set; then :
  2648. enableval=$enable_silent_rules;
  2649. fi
  2650. case $enable_silent_rules in # (((
  2651. yes) AM_DEFAULT_VERBOSITY=0;;
  2652. no) AM_DEFAULT_VERBOSITY=1;;
  2653. *) AM_DEFAULT_VERBOSITY=1;;
  2654. esac
  2655. am_make=${MAKE-make}
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2657. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2658. if ${am_cv_make_support_nested_variables+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if $as_echo 'TRUE=$(BAR$(V))
  2662. BAR0=false
  2663. BAR1=true
  2664. V=1
  2665. am__doit:
  2666. @$(TRUE)
  2667. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2668. am_cv_make_support_nested_variables=yes
  2669. else
  2670. am_cv_make_support_nested_variables=no
  2671. fi
  2672. fi
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2674. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2675. if test $am_cv_make_support_nested_variables = yes; then
  2676. AM_V='$(V)'
  2677. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2678. else
  2679. AM_V=$AM_DEFAULT_VERBOSITY
  2680. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2681. fi
  2682. AM_BACKSLASH='\'
  2683. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2684. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2685. # is not polluted with repeated "-I."
  2686. am__isrc=' -I$(srcdir)'
  2687. # test to see if srcdir already configured
  2688. if test -f $srcdir/config.status; then
  2689. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2690. fi
  2691. fi
  2692. # test whether we have cygpath
  2693. if test -z "$CYGPATH_W"; then
  2694. if (cygpath --version) >/dev/null 2>/dev/null; then
  2695. CYGPATH_W='cygpath -w'
  2696. else
  2697. CYGPATH_W=echo
  2698. fi
  2699. fi
  2700. # Define the identity of the package.
  2701. PACKAGE='gprofng'
  2702. VERSION='2.38.50'
  2703. cat >>confdefs.h <<_ACEOF
  2704. #define PACKAGE "$PACKAGE"
  2705. _ACEOF
  2706. cat >>confdefs.h <<_ACEOF
  2707. #define VERSION "$VERSION"
  2708. _ACEOF
  2709. # Some tools Automake needs.
  2710. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2711. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2712. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2713. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2714. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2715. # For better backward compatibility. To be removed once Automake 1.9.x
  2716. # dies out for good. For more background, see:
  2717. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2718. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2719. mkdir_p='$(MKDIR_P)'
  2720. # We need awk for the "check" target (and possibly the TAP driver). The
  2721. # system "awk" is bad on some platforms.
  2722. # Always define AMTAR for backward compatibility. Yes, it's still used
  2723. # in the wild :-( We should find a proper way to deprecate it ...
  2724. AMTAR='$${TAR-tar}'
  2725. # We'll loop over all known methods to create a tar archive until one works.
  2726. _am_tools='gnutar pax cpio none'
  2727. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2728. # POSIX will say in a future version that running "rm -f" with no argument
  2729. # is OK; and we want to be able to make that assumption in our Makefile
  2730. # recipes. So use an aggressive probe to check that the usage we want is
  2731. # actually supported "in the wild" to an acceptable degree.
  2732. # See automake bug#10828.
  2733. # To make any issue more visible, cause the running configure to be aborted
  2734. # by default if the 'rm' program in use doesn't match our expectations; the
  2735. # user can still override this though.
  2736. if rm -f && rm -fr && rm -rf; then : OK; else
  2737. cat >&2 <<'END'
  2738. Oops!
  2739. Your 'rm' program seems unable to run without file operands specified
  2740. on the command line, even when the '-f' option is present. This is contrary
  2741. to the behaviour of most rm programs out there, and not conforming with
  2742. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2743. Please tell bug-automake@gnu.org about your system, including the value
  2744. of your $PATH and any error possibly output before this message. This
  2745. can help us improve future automake versions.
  2746. END
  2747. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2748. echo 'Configuration will proceed anyway, since you have set the' >&2
  2749. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2750. echo >&2
  2751. else
  2752. cat >&2 <<'END'
  2753. Aborting the configuration process, to ensure you take notice of the issue.
  2754. You can download and install GNU coreutils to get an 'rm' implementation
  2755. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2756. If you want to complete the configuration process using your problematic
  2757. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2758. to "yes", and re-run configure.
  2759. END
  2760. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2761. fi
  2762. fi
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2764. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2765. # Check whether --enable-maintainer-mode was given.
  2766. if test "${enable_maintainer_mode+set}" = set; then :
  2767. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2768. else
  2769. USE_MAINTAINER_MODE=no
  2770. fi
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2772. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2773. if test $USE_MAINTAINER_MODE = yes; then
  2774. MAINTAINER_MODE_TRUE=
  2775. MAINTAINER_MODE_FALSE='#'
  2776. else
  2777. MAINTAINER_MODE_TRUE='#'
  2778. MAINTAINER_MODE_FALSE=
  2779. fi
  2780. MAINT=$MAINTAINER_MODE_TRUE
  2781. DEPDIR="${am__leading_dot}deps"
  2782. ac_config_commands="$ac_config_commands depfiles"
  2783. am_make=${MAKE-make}
  2784. cat > confinc << 'END'
  2785. am__doit:
  2786. @echo this is the am__doit target
  2787. .PHONY: am__doit
  2788. END
  2789. # If we don't find an include directive, just comment out the code.
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2791. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2792. am__include="#"
  2793. am__quote=
  2794. _am_result=none
  2795. # First try GNU make style include.
  2796. echo "include confinc" > confmf
  2797. # Ignore all kinds of additional output from 'make'.
  2798. case `$am_make -s -f confmf 2> /dev/null` in #(
  2799. *the\ am__doit\ target*)
  2800. am__include=include
  2801. am__quote=
  2802. _am_result=GNU
  2803. ;;
  2804. esac
  2805. # Now try BSD make style include.
  2806. if test "$am__include" = "#"; then
  2807. echo '.include "confinc"' > confmf
  2808. case `$am_make -s -f confmf 2> /dev/null` in #(
  2809. *the\ am__doit\ target*)
  2810. am__include=.include
  2811. am__quote="\""
  2812. _am_result=BSD
  2813. ;;
  2814. esac
  2815. fi
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2817. $as_echo "$_am_result" >&6; }
  2818. rm -f confinc confmf
  2819. # Check whether --enable-dependency-tracking was given.
  2820. if test "${enable_dependency_tracking+set}" = set; then :
  2821. enableval=$enable_dependency_tracking;
  2822. fi
  2823. if test "x$enable_dependency_tracking" != xno; then
  2824. am_depcomp="$ac_aux_dir/depcomp"
  2825. AMDEPBACKSLASH='\'
  2826. am__nodep='_no'
  2827. fi
  2828. if test "x$enable_dependency_tracking" != xno; then
  2829. AMDEP_TRUE=
  2830. AMDEP_FALSE='#'
  2831. else
  2832. AMDEP_TRUE='#'
  2833. AMDEP_FALSE=
  2834. fi
  2835. ac_ext=c
  2836. ac_cpp='$CPP $CPPFLAGS'
  2837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2840. if test -n "$ac_tool_prefix"; then
  2841. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2842. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2844. $as_echo_n "checking for $ac_word... " >&6; }
  2845. if ${ac_cv_prog_CC+:} false; then :
  2846. $as_echo_n "(cached) " >&6
  2847. else
  2848. if test -n "$CC"; then
  2849. ac_cv_prog_CC="$CC" # Let the user override the test.
  2850. else
  2851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2852. for as_dir in $PATH
  2853. do
  2854. IFS=$as_save_IFS
  2855. test -z "$as_dir" && as_dir=.
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2858. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2860. break 2
  2861. fi
  2862. done
  2863. done
  2864. IFS=$as_save_IFS
  2865. fi
  2866. fi
  2867. CC=$ac_cv_prog_CC
  2868. if test -n "$CC"; then
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2870. $as_echo "$CC" >&6; }
  2871. else
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2873. $as_echo "no" >&6; }
  2874. fi
  2875. fi
  2876. if test -z "$ac_cv_prog_CC"; then
  2877. ac_ct_CC=$CC
  2878. # Extract the first word of "gcc", so it can be a program name with args.
  2879. set dummy gcc; ac_word=$2
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2881. $as_echo_n "checking for $ac_word... " >&6; }
  2882. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. if test -n "$ac_ct_CC"; then
  2886. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2887. else
  2888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2889. for as_dir in $PATH
  2890. do
  2891. IFS=$as_save_IFS
  2892. test -z "$as_dir" && as_dir=.
  2893. for ac_exec_ext in '' $ac_executable_extensions; do
  2894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2895. ac_cv_prog_ac_ct_CC="gcc"
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2897. break 2
  2898. fi
  2899. done
  2900. done
  2901. IFS=$as_save_IFS
  2902. fi
  2903. fi
  2904. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2905. if test -n "$ac_ct_CC"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2907. $as_echo "$ac_ct_CC" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. fi
  2912. if test "x$ac_ct_CC" = x; then
  2913. CC=""
  2914. else
  2915. case $cross_compiling:$ac_tool_warned in
  2916. yes:)
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2918. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2919. ac_tool_warned=yes ;;
  2920. esac
  2921. CC=$ac_ct_CC
  2922. fi
  2923. else
  2924. CC="$ac_cv_prog_CC"
  2925. fi
  2926. if test -z "$CC"; then
  2927. if test -n "$ac_tool_prefix"; then
  2928. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2929. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2931. $as_echo_n "checking for $ac_word... " >&6; }
  2932. if ${ac_cv_prog_CC+:} false; then :
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. if test -n "$CC"; then
  2936. ac_cv_prog_CC="$CC" # Let the user override the test.
  2937. else
  2938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2939. for as_dir in $PATH
  2940. do
  2941. IFS=$as_save_IFS
  2942. test -z "$as_dir" && as_dir=.
  2943. for ac_exec_ext in '' $ac_executable_extensions; do
  2944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2945. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2947. break 2
  2948. fi
  2949. done
  2950. done
  2951. IFS=$as_save_IFS
  2952. fi
  2953. fi
  2954. CC=$ac_cv_prog_CC
  2955. if test -n "$CC"; then
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2957. $as_echo "$CC" >&6; }
  2958. else
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. fi
  2962. fi
  2963. fi
  2964. if test -z "$CC"; then
  2965. # Extract the first word of "cc", so it can be a program name with args.
  2966. set dummy cc; ac_word=$2
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2968. $as_echo_n "checking for $ac_word... " >&6; }
  2969. if ${ac_cv_prog_CC+:} false; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. if test -n "$CC"; then
  2973. ac_cv_prog_CC="$CC" # Let the user override the test.
  2974. else
  2975. ac_prog_rejected=no
  2976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2977. for as_dir in $PATH
  2978. do
  2979. IFS=$as_save_IFS
  2980. test -z "$as_dir" && as_dir=.
  2981. for ac_exec_ext in '' $ac_executable_extensions; do
  2982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2983. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2984. ac_prog_rejected=yes
  2985. continue
  2986. fi
  2987. ac_cv_prog_CC="cc"
  2988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2989. break 2
  2990. fi
  2991. done
  2992. done
  2993. IFS=$as_save_IFS
  2994. if test $ac_prog_rejected = yes; then
  2995. # We found a bogon in the path, so make sure we never use it.
  2996. set dummy $ac_cv_prog_CC
  2997. shift
  2998. if test $# != 0; then
  2999. # We chose a different compiler from the bogus one.
  3000. # However, it has the same basename, so the bogon will be chosen
  3001. # first if we set CC to just the basename; use the full file name.
  3002. shift
  3003. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3004. fi
  3005. fi
  3006. fi
  3007. fi
  3008. CC=$ac_cv_prog_CC
  3009. if test -n "$CC"; then
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3011. $as_echo "$CC" >&6; }
  3012. else
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. fi
  3016. fi
  3017. if test -z "$CC"; then
  3018. if test -n "$ac_tool_prefix"; then
  3019. for ac_prog in cl.exe
  3020. do
  3021. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3022. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3024. $as_echo_n "checking for $ac_word... " >&6; }
  3025. if ${ac_cv_prog_CC+:} false; then :
  3026. $as_echo_n "(cached) " >&6
  3027. else
  3028. if test -n "$CC"; then
  3029. ac_cv_prog_CC="$CC" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3038. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. IFS=$as_save_IFS
  3045. fi
  3046. fi
  3047. CC=$ac_cv_prog_CC
  3048. if test -n "$CC"; then
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3050. $as_echo "$CC" >&6; }
  3051. else
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3053. $as_echo "no" >&6; }
  3054. fi
  3055. test -n "$CC" && break
  3056. done
  3057. fi
  3058. if test -z "$CC"; then
  3059. ac_ct_CC=$CC
  3060. for ac_prog in cl.exe
  3061. do
  3062. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3063. set dummy $ac_prog; ac_word=$2
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3065. $as_echo_n "checking for $ac_word... " >&6; }
  3066. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. if test -n "$ac_ct_CC"; then
  3070. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3071. else
  3072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3073. for as_dir in $PATH
  3074. do
  3075. IFS=$as_save_IFS
  3076. test -z "$as_dir" && as_dir=.
  3077. for ac_exec_ext in '' $ac_executable_extensions; do
  3078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3079. ac_cv_prog_ac_ct_CC="$ac_prog"
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3081. break 2
  3082. fi
  3083. done
  3084. done
  3085. IFS=$as_save_IFS
  3086. fi
  3087. fi
  3088. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3089. if test -n "$ac_ct_CC"; then
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3091. $as_echo "$ac_ct_CC" >&6; }
  3092. else
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. $as_echo "no" >&6; }
  3095. fi
  3096. test -n "$ac_ct_CC" && break
  3097. done
  3098. if test "x$ac_ct_CC" = x; then
  3099. CC=""
  3100. else
  3101. case $cross_compiling:$ac_tool_warned in
  3102. yes:)
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3105. ac_tool_warned=yes ;;
  3106. esac
  3107. CC=$ac_ct_CC
  3108. fi
  3109. fi
  3110. fi
  3111. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error $? "no acceptable C compiler found in \$PATH
  3114. See \`config.log' for more details" "$LINENO" 5; }
  3115. # Provide some information about the compiler.
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3117. set X $ac_compile
  3118. ac_compiler=$2
  3119. for ac_option in --version -v -V -qversion; do
  3120. { { ac_try="$ac_compiler $ac_option >&5"
  3121. case "(($ac_try" in
  3122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3123. *) ac_try_echo=$ac_try;;
  3124. esac
  3125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3126. $as_echo "$ac_try_echo"; } >&5
  3127. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3128. ac_status=$?
  3129. if test -s conftest.err; then
  3130. sed '10a\
  3131. ... rest of stderr output deleted ...
  3132. 10q' conftest.err >conftest.er1
  3133. cat conftest.er1 >&5
  3134. fi
  3135. rm -f conftest.er1 conftest.err
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3137. test $ac_status = 0; }
  3138. done
  3139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3140. /* end confdefs.h. */
  3141. int
  3142. main ()
  3143. {
  3144. ;
  3145. return 0;
  3146. }
  3147. _ACEOF
  3148. ac_clean_files_save=$ac_clean_files
  3149. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3150. # Try to create an executable without -o first, disregard a.out.
  3151. # It will help us diagnose broken compilers, and finding out an intuition
  3152. # of exeext.
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3154. $as_echo_n "checking whether the C compiler works... " >&6; }
  3155. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3156. # The possible output files:
  3157. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3158. ac_rmfiles=
  3159. for ac_file in $ac_files
  3160. do
  3161. case $ac_file in
  3162. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3163. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3164. esac
  3165. done
  3166. rm -f $ac_rmfiles
  3167. if { { ac_try="$ac_link_default"
  3168. case "(($ac_try" in
  3169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3170. *) ac_try_echo=$ac_try;;
  3171. esac
  3172. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3173. $as_echo "$ac_try_echo"; } >&5
  3174. (eval "$ac_link_default") 2>&5
  3175. ac_status=$?
  3176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3177. test $ac_status = 0; }; then :
  3178. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3179. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3180. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3181. # so that the user can short-circuit this test for compilers unknown to
  3182. # Autoconf.
  3183. for ac_file in $ac_files ''
  3184. do
  3185. test -f "$ac_file" || continue
  3186. case $ac_file in
  3187. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3188. ;;
  3189. [ab].out )
  3190. # We found the default executable, but exeext='' is most
  3191. # certainly right.
  3192. break;;
  3193. *.* )
  3194. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3195. then :; else
  3196. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3197. fi
  3198. # We set ac_cv_exeext here because the later test for it is not
  3199. # safe: cross compilers may not add the suffix if given an `-o'
  3200. # argument, so we may need to know it at that point already.
  3201. # Even if this section looks crufty: it has the advantage of
  3202. # actually working.
  3203. break;;
  3204. * )
  3205. break;;
  3206. esac
  3207. done
  3208. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3209. else
  3210. ac_file=''
  3211. fi
  3212. if test -z "$ac_file"; then :
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3214. $as_echo "no" >&6; }
  3215. $as_echo "$as_me: failed program was:" >&5
  3216. sed 's/^/| /' conftest.$ac_ext >&5
  3217. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3219. as_fn_error 77 "C compiler cannot create executables
  3220. See \`config.log' for more details" "$LINENO" 5; }
  3221. else
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3223. $as_echo "yes" >&6; }
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3226. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3228. $as_echo "$ac_file" >&6; }
  3229. ac_exeext=$ac_cv_exeext
  3230. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3231. ac_clean_files=$ac_clean_files_save
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3233. $as_echo_n "checking for suffix of executables... " >&6; }
  3234. if { { ac_try="$ac_link"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3240. $as_echo "$ac_try_echo"; } >&5
  3241. (eval "$ac_link") 2>&5
  3242. ac_status=$?
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3244. test $ac_status = 0; }; then :
  3245. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3246. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3247. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3248. # `rm'.
  3249. for ac_file in conftest.exe conftest conftest.*; do
  3250. test -f "$ac_file" || continue
  3251. case $ac_file in
  3252. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3253. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3254. break;;
  3255. * ) break;;
  3256. esac
  3257. done
  3258. else
  3259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3261. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3262. See \`config.log' for more details" "$LINENO" 5; }
  3263. fi
  3264. rm -f conftest conftest$ac_cv_exeext
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3266. $as_echo "$ac_cv_exeext" >&6; }
  3267. rm -f conftest.$ac_ext
  3268. EXEEXT=$ac_cv_exeext
  3269. ac_exeext=$EXEEXT
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. #include <stdio.h>
  3273. int
  3274. main ()
  3275. {
  3276. FILE *f = fopen ("conftest.out", "w");
  3277. return ferror (f) || fclose (f) != 0;
  3278. ;
  3279. return 0;
  3280. }
  3281. _ACEOF
  3282. ac_clean_files="$ac_clean_files conftest.out"
  3283. # Check that the compiler produces executables we can run. If not, either
  3284. # the compiler is broken, or we cross compile.
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3286. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3287. if test "$cross_compiling" != yes; then
  3288. { { ac_try="$ac_link"
  3289. case "(($ac_try" in
  3290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3291. *) ac_try_echo=$ac_try;;
  3292. esac
  3293. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3294. $as_echo "$ac_try_echo"; } >&5
  3295. (eval "$ac_link") 2>&5
  3296. ac_status=$?
  3297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3298. test $ac_status = 0; }
  3299. if { ac_try='./conftest$ac_cv_exeext'
  3300. { { case "(($ac_try" in
  3301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3302. *) ac_try_echo=$ac_try;;
  3303. esac
  3304. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3305. $as_echo "$ac_try_echo"; } >&5
  3306. (eval "$ac_try") 2>&5
  3307. ac_status=$?
  3308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3309. test $ac_status = 0; }; }; then
  3310. cross_compiling=no
  3311. else
  3312. if test "$cross_compiling" = maybe; then
  3313. cross_compiling=yes
  3314. else
  3315. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3317. as_fn_error $? "cannot run C compiled programs.
  3318. If you meant to cross compile, use \`--host'.
  3319. See \`config.log' for more details" "$LINENO" 5; }
  3320. fi
  3321. fi
  3322. fi
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3324. $as_echo "$cross_compiling" >&6; }
  3325. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3326. ac_clean_files=$ac_clean_files_save
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3328. $as_echo_n "checking for suffix of object files... " >&6; }
  3329. if ${ac_cv_objext+:} false; then :
  3330. $as_echo_n "(cached) " >&6
  3331. else
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. rm -f conftest.o conftest.obj
  3342. if { { ac_try="$ac_compile"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3348. $as_echo "$ac_try_echo"; } >&5
  3349. (eval "$ac_compile") 2>&5
  3350. ac_status=$?
  3351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3352. test $ac_status = 0; }; then :
  3353. for ac_file in conftest.o conftest.obj conftest.*; do
  3354. test -f "$ac_file" || continue;
  3355. case $ac_file in
  3356. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3357. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3358. break;;
  3359. esac
  3360. done
  3361. else
  3362. $as_echo "$as_me: failed program was:" >&5
  3363. sed 's/^/| /' conftest.$ac_ext >&5
  3364. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3365. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3366. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3367. See \`config.log' for more details" "$LINENO" 5; }
  3368. fi
  3369. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3370. fi
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3372. $as_echo "$ac_cv_objext" >&6; }
  3373. OBJEXT=$ac_cv_objext
  3374. ac_objext=$OBJEXT
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3376. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3377. if ${ac_cv_c_compiler_gnu+:} false; then :
  3378. $as_echo_n "(cached) " >&6
  3379. else
  3380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3381. /* end confdefs.h. */
  3382. int
  3383. main ()
  3384. {
  3385. #ifndef __GNUC__
  3386. choke me
  3387. #endif
  3388. ;
  3389. return 0;
  3390. }
  3391. _ACEOF
  3392. if ac_fn_c_try_compile "$LINENO"; then :
  3393. ac_compiler_gnu=yes
  3394. else
  3395. ac_compiler_gnu=no
  3396. fi
  3397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3401. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3402. if test $ac_compiler_gnu = yes; then
  3403. GCC=yes
  3404. else
  3405. GCC=
  3406. fi
  3407. ac_test_CFLAGS=${CFLAGS+set}
  3408. ac_save_CFLAGS=$CFLAGS
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3410. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3411. if ${ac_cv_prog_cc_g+:} false; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. ac_save_c_werror_flag=$ac_c_werror_flag
  3415. ac_c_werror_flag=yes
  3416. ac_cv_prog_cc_g=no
  3417. CFLAGS="-g"
  3418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3419. /* end confdefs.h. */
  3420. int
  3421. main ()
  3422. {
  3423. ;
  3424. return 0;
  3425. }
  3426. _ACEOF
  3427. if ac_fn_c_try_compile "$LINENO"; then :
  3428. ac_cv_prog_cc_g=yes
  3429. else
  3430. CFLAGS=""
  3431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3432. /* end confdefs.h. */
  3433. int
  3434. main ()
  3435. {
  3436. ;
  3437. return 0;
  3438. }
  3439. _ACEOF
  3440. if ac_fn_c_try_compile "$LINENO"; then :
  3441. else
  3442. ac_c_werror_flag=$ac_save_c_werror_flag
  3443. CFLAGS="-g"
  3444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3445. /* end confdefs.h. */
  3446. int
  3447. main ()
  3448. {
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. if ac_fn_c_try_compile "$LINENO"; then :
  3454. ac_cv_prog_cc_g=yes
  3455. fi
  3456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3457. fi
  3458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. ac_c_werror_flag=$ac_save_c_werror_flag
  3462. fi
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3464. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3465. if test "$ac_test_CFLAGS" = set; then
  3466. CFLAGS=$ac_save_CFLAGS
  3467. elif test $ac_cv_prog_cc_g = yes; then
  3468. if test "$GCC" = yes; then
  3469. CFLAGS="-g -O2"
  3470. else
  3471. CFLAGS="-g"
  3472. fi
  3473. else
  3474. if test "$GCC" = yes; then
  3475. CFLAGS="-O2"
  3476. else
  3477. CFLAGS=
  3478. fi
  3479. fi
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3481. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3482. if ${ac_cv_prog_cc_c89+:} false; then :
  3483. $as_echo_n "(cached) " >&6
  3484. else
  3485. ac_cv_prog_cc_c89=no
  3486. ac_save_CC=$CC
  3487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3488. /* end confdefs.h. */
  3489. #include <stdarg.h>
  3490. #include <stdio.h>
  3491. struct stat;
  3492. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3493. struct buf { int x; };
  3494. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3495. static char *e (p, i)
  3496. char **p;
  3497. int i;
  3498. {
  3499. return p[i];
  3500. }
  3501. static char *f (char * (*g) (char **, int), char **p, ...)
  3502. {
  3503. char *s;
  3504. va_list v;
  3505. va_start (v,p);
  3506. s = g (p, va_arg (v,int));
  3507. va_end (v);
  3508. return s;
  3509. }
  3510. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3511. function prototypes and stuff, but not '\xHH' hex character constants.
  3512. These don't provoke an error unfortunately, instead are silently treated
  3513. as 'x'. The following induces an error, until -std is added to get
  3514. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3515. array size at least. It's necessary to write '\x00'==0 to get something
  3516. that's true only with -std. */
  3517. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3518. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3519. inside strings and character constants. */
  3520. #define FOO(x) 'x'
  3521. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3522. int test (int i, double x);
  3523. struct s1 {int (*f) (int a);};
  3524. struct s2 {int (*f) (double a);};
  3525. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3526. int argc;
  3527. char **argv;
  3528. int
  3529. main ()
  3530. {
  3531. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3532. ;
  3533. return 0;
  3534. }
  3535. _ACEOF
  3536. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3537. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3538. do
  3539. CC="$ac_save_CC $ac_arg"
  3540. if ac_fn_c_try_compile "$LINENO"; then :
  3541. ac_cv_prog_cc_c89=$ac_arg
  3542. fi
  3543. rm -f core conftest.err conftest.$ac_objext
  3544. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3545. done
  3546. rm -f conftest.$ac_ext
  3547. CC=$ac_save_CC
  3548. fi
  3549. # AC_CACHE_VAL
  3550. case "x$ac_cv_prog_cc_c89" in
  3551. x)
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3553. $as_echo "none needed" >&6; } ;;
  3554. xno)
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3556. $as_echo "unsupported" >&6; } ;;
  3557. *)
  3558. CC="$CC $ac_cv_prog_cc_c89"
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3560. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3561. esac
  3562. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3563. fi
  3564. ac_ext=c
  3565. ac_cpp='$CPP $CPPFLAGS'
  3566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3569. ac_ext=c
  3570. ac_cpp='$CPP $CPPFLAGS'
  3571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3575. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3576. if ${am_cv_prog_cc_c_o+:} false; then :
  3577. $as_echo_n "(cached) " >&6
  3578. else
  3579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3580. /* end confdefs.h. */
  3581. int
  3582. main ()
  3583. {
  3584. ;
  3585. return 0;
  3586. }
  3587. _ACEOF
  3588. # Make sure it works both with $CC and with simple cc.
  3589. # Following AC_PROG_CC_C_O, we do the test twice because some
  3590. # compilers refuse to overwrite an existing .o file with -o,
  3591. # though they will create one.
  3592. am_cv_prog_cc_c_o=yes
  3593. for am_i in 1 2; do
  3594. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3595. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3596. ac_status=$?
  3597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); } \
  3599. && test -f conftest2.$ac_objext; then
  3600. : OK
  3601. else
  3602. am_cv_prog_cc_c_o=no
  3603. break
  3604. fi
  3605. done
  3606. rm -f core conftest*
  3607. unset am_i
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3610. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3611. if test "$am_cv_prog_cc_c_o" != yes; then
  3612. # Losing compiler, so override with the script.
  3613. # FIXME: It is wrong to rewrite CC.
  3614. # But if we don't then we get into trouble of one sort or another.
  3615. # A longer-term fix would be to have automake use am__CC in this case,
  3616. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3617. CC="$am_aux_dir/compile $CC"
  3618. fi
  3619. ac_ext=c
  3620. ac_cpp='$CPP $CPPFLAGS'
  3621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3624. depcc="$CC" am_compiler_list=
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3626. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3627. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3628. $as_echo_n "(cached) " >&6
  3629. else
  3630. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3631. # We make a subdir and do the tests there. Otherwise we can end up
  3632. # making bogus files that we don't know about and never remove. For
  3633. # instance it was reported that on HP-UX the gcc test will end up
  3634. # making a dummy file named 'D' -- because '-MD' means "put the output
  3635. # in D".
  3636. rm -rf conftest.dir
  3637. mkdir conftest.dir
  3638. # Copy depcomp to subdir because otherwise we won't find it if we're
  3639. # using a relative directory.
  3640. cp "$am_depcomp" conftest.dir
  3641. cd conftest.dir
  3642. # We will build objects and dependencies in a subdirectory because
  3643. # it helps to detect inapplicable dependency modes. For instance
  3644. # both Tru64's cc and ICC support -MD to output dependencies as a
  3645. # side effect of compilation, but ICC will put the dependencies in
  3646. # the current directory while Tru64 will put them in the object
  3647. # directory.
  3648. mkdir sub
  3649. am_cv_CC_dependencies_compiler_type=none
  3650. if test "$am_compiler_list" = ""; then
  3651. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3652. fi
  3653. am__universal=false
  3654. case " $depcc " in #(
  3655. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3656. esac
  3657. for depmode in $am_compiler_list; do
  3658. # Setup a source with many dependencies, because some compilers
  3659. # like to wrap large dependency lists on column 80 (with \), and
  3660. # we should not choose a depcomp mode which is confused by this.
  3661. #
  3662. # We need to recreate these files for each test, as the compiler may
  3663. # overwrite some of them when testing with obscure command lines.
  3664. # This happens at least with the AIX C compiler.
  3665. : > sub/conftest.c
  3666. for i in 1 2 3 4 5 6; do
  3667. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3668. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3669. # Solaris 10 /bin/sh.
  3670. echo '/* dummy */' > sub/conftst$i.h
  3671. done
  3672. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3673. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3674. # mode. It turns out that the SunPro C++ compiler does not properly
  3675. # handle '-M -o', and we need to detect this. Also, some Intel
  3676. # versions had trouble with output in subdirs.
  3677. am__obj=sub/conftest.${OBJEXT-o}
  3678. am__minus_obj="-o $am__obj"
  3679. case $depmode in
  3680. gcc)
  3681. # This depmode causes a compiler race in universal mode.
  3682. test "$am__universal" = false || continue
  3683. ;;
  3684. nosideeffect)
  3685. # After this tag, mechanisms are not by side-effect, so they'll
  3686. # only be used when explicitly requested.
  3687. if test "x$enable_dependency_tracking" = xyes; then
  3688. continue
  3689. else
  3690. break
  3691. fi
  3692. ;;
  3693. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3694. # This compiler won't grok '-c -o', but also, the minuso test has
  3695. # not run yet. These depmodes are late enough in the game, and
  3696. # so weak that their functioning should not be impacted.
  3697. am__obj=conftest.${OBJEXT-o}
  3698. am__minus_obj=
  3699. ;;
  3700. none) break ;;
  3701. esac
  3702. if depmode=$depmode \
  3703. source=sub/conftest.c object=$am__obj \
  3704. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3705. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3706. >/dev/null 2>conftest.err &&
  3707. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3708. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3709. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3710. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3711. # icc doesn't choke on unknown options, it will just issue warnings
  3712. # or remarks (even with -Werror). So we grep stderr for any message
  3713. # that says an option was ignored or not supported.
  3714. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3715. # icc: Command line warning: ignoring option '-M'; no argument required
  3716. # The diagnosis changed in icc 8.0:
  3717. # icc: Command line remark: option '-MP' not supported
  3718. if (grep 'ignoring option' conftest.err ||
  3719. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3720. am_cv_CC_dependencies_compiler_type=$depmode
  3721. break
  3722. fi
  3723. fi
  3724. done
  3725. cd ..
  3726. rm -rf conftest.dir
  3727. else
  3728. am_cv_CC_dependencies_compiler_type=none
  3729. fi
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3732. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3733. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3734. if
  3735. test "x$enable_dependency_tracking" != xno \
  3736. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3737. am__fastdepCC_TRUE=
  3738. am__fastdepCC_FALSE='#'
  3739. else
  3740. am__fastdepCC_TRUE='#'
  3741. am__fastdepCC_FALSE=
  3742. fi
  3743. ac_ext=c
  3744. ac_cpp='$CPP $CPPFLAGS'
  3745. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3746. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3747. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3749. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3750. # On Suns, sometimes $CPP names a directory.
  3751. if test -n "$CPP" && test -d "$CPP"; then
  3752. CPP=
  3753. fi
  3754. if test -z "$CPP"; then
  3755. if ${ac_cv_prog_CPP+:} false; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. # Double quotes because CPP needs to be expanded
  3759. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3760. do
  3761. ac_preproc_ok=false
  3762. for ac_c_preproc_warn_flag in '' yes
  3763. do
  3764. # Use a header file that comes with gcc, so configuring glibc
  3765. # with a fresh cross-compiler works.
  3766. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3767. # <limits.h> exists even on freestanding compilers.
  3768. # On the NeXT, cc -E runs the code through the compiler's parser,
  3769. # not just through cpp. "Syntax error" is here to catch this case.
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. #ifdef __STDC__
  3773. # include <limits.h>
  3774. #else
  3775. # include <assert.h>
  3776. #endif
  3777. Syntax error
  3778. _ACEOF
  3779. if ac_fn_c_try_cpp "$LINENO"; then :
  3780. else
  3781. # Broken: fails on valid input.
  3782. continue
  3783. fi
  3784. rm -f conftest.err conftest.i conftest.$ac_ext
  3785. # OK, works on sane cases. Now check whether nonexistent headers
  3786. # can be detected and how.
  3787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3788. /* end confdefs.h. */
  3789. #include <ac_nonexistent.h>
  3790. _ACEOF
  3791. if ac_fn_c_try_cpp "$LINENO"; then :
  3792. # Broken: success on invalid input.
  3793. continue
  3794. else
  3795. # Passes both tests.
  3796. ac_preproc_ok=:
  3797. break
  3798. fi
  3799. rm -f conftest.err conftest.i conftest.$ac_ext
  3800. done
  3801. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3802. rm -f conftest.i conftest.err conftest.$ac_ext
  3803. if $ac_preproc_ok; then :
  3804. break
  3805. fi
  3806. done
  3807. ac_cv_prog_CPP=$CPP
  3808. fi
  3809. CPP=$ac_cv_prog_CPP
  3810. else
  3811. ac_cv_prog_CPP=$CPP
  3812. fi
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3814. $as_echo "$CPP" >&6; }
  3815. ac_preproc_ok=false
  3816. for ac_c_preproc_warn_flag in '' yes
  3817. do
  3818. # Use a header file that comes with gcc, so configuring glibc
  3819. # with a fresh cross-compiler works.
  3820. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3821. # <limits.h> exists even on freestanding compilers.
  3822. # On the NeXT, cc -E runs the code through the compiler's parser,
  3823. # not just through cpp. "Syntax error" is here to catch this case.
  3824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3825. /* end confdefs.h. */
  3826. #ifdef __STDC__
  3827. # include <limits.h>
  3828. #else
  3829. # include <assert.h>
  3830. #endif
  3831. Syntax error
  3832. _ACEOF
  3833. if ac_fn_c_try_cpp "$LINENO"; then :
  3834. else
  3835. # Broken: fails on valid input.
  3836. continue
  3837. fi
  3838. rm -f conftest.err conftest.i conftest.$ac_ext
  3839. # OK, works on sane cases. Now check whether nonexistent headers
  3840. # can be detected and how.
  3841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3842. /* end confdefs.h. */
  3843. #include <ac_nonexistent.h>
  3844. _ACEOF
  3845. if ac_fn_c_try_cpp "$LINENO"; then :
  3846. # Broken: success on invalid input.
  3847. continue
  3848. else
  3849. # Passes both tests.
  3850. ac_preproc_ok=:
  3851. break
  3852. fi
  3853. rm -f conftest.err conftest.i conftest.$ac_ext
  3854. done
  3855. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3856. rm -f conftest.i conftest.err conftest.$ac_ext
  3857. if $ac_preproc_ok; then :
  3858. else
  3859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3861. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3862. See \`config.log' for more details" "$LINENO" 5; }
  3863. fi
  3864. ac_ext=c
  3865. ac_cpp='$CPP $CPPFLAGS'
  3866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3870. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3871. if ${ac_cv_path_GREP+:} false; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -z "$GREP"; then
  3875. ac_path_GREP_found=false
  3876. # Loop through the user's path and test for each of PROGNAME-LIST
  3877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3878. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3879. do
  3880. IFS=$as_save_IFS
  3881. test -z "$as_dir" && as_dir=.
  3882. for ac_prog in grep ggrep; do
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3885. as_fn_executable_p "$ac_path_GREP" || continue
  3886. # Check for GNU ac_path_GREP and select it if it is found.
  3887. # Check for GNU $ac_path_GREP
  3888. case `"$ac_path_GREP" --version 2>&1` in
  3889. *GNU*)
  3890. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3891. *)
  3892. ac_count=0
  3893. $as_echo_n 0123456789 >"conftest.in"
  3894. while :
  3895. do
  3896. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3897. mv "conftest.tmp" "conftest.in"
  3898. cp "conftest.in" "conftest.nl"
  3899. $as_echo 'GREP' >> "conftest.nl"
  3900. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3901. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3902. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3903. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3904. # Best one so far, save it but keep looking for a better one
  3905. ac_cv_path_GREP="$ac_path_GREP"
  3906. ac_path_GREP_max=$ac_count
  3907. fi
  3908. # 10*(2^10) chars as input seems more than enough
  3909. test $ac_count -gt 10 && break
  3910. done
  3911. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3912. esac
  3913. $ac_path_GREP_found && break 3
  3914. done
  3915. done
  3916. done
  3917. IFS=$as_save_IFS
  3918. if test -z "$ac_cv_path_GREP"; then
  3919. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3920. fi
  3921. else
  3922. ac_cv_path_GREP=$GREP
  3923. fi
  3924. fi
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3926. $as_echo "$ac_cv_path_GREP" >&6; }
  3927. GREP="$ac_cv_path_GREP"
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3929. $as_echo_n "checking for egrep... " >&6; }
  3930. if ${ac_cv_path_EGREP+:} false; then :
  3931. $as_echo_n "(cached) " >&6
  3932. else
  3933. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3934. then ac_cv_path_EGREP="$GREP -E"
  3935. else
  3936. if test -z "$EGREP"; then
  3937. ac_path_EGREP_found=false
  3938. # Loop through the user's path and test for each of PROGNAME-LIST
  3939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3940. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3941. do
  3942. IFS=$as_save_IFS
  3943. test -z "$as_dir" && as_dir=.
  3944. for ac_prog in egrep; do
  3945. for ac_exec_ext in '' $ac_executable_extensions; do
  3946. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3947. as_fn_executable_p "$ac_path_EGREP" || continue
  3948. # Check for GNU ac_path_EGREP and select it if it is found.
  3949. # Check for GNU $ac_path_EGREP
  3950. case `"$ac_path_EGREP" --version 2>&1` in
  3951. *GNU*)
  3952. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3953. *)
  3954. ac_count=0
  3955. $as_echo_n 0123456789 >"conftest.in"
  3956. while :
  3957. do
  3958. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3959. mv "conftest.tmp" "conftest.in"
  3960. cp "conftest.in" "conftest.nl"
  3961. $as_echo 'EGREP' >> "conftest.nl"
  3962. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3963. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3964. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3965. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3966. # Best one so far, save it but keep looking for a better one
  3967. ac_cv_path_EGREP="$ac_path_EGREP"
  3968. ac_path_EGREP_max=$ac_count
  3969. fi
  3970. # 10*(2^10) chars as input seems more than enough
  3971. test $ac_count -gt 10 && break
  3972. done
  3973. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3974. esac
  3975. $ac_path_EGREP_found && break 3
  3976. done
  3977. done
  3978. done
  3979. IFS=$as_save_IFS
  3980. if test -z "$ac_cv_path_EGREP"; then
  3981. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3982. fi
  3983. else
  3984. ac_cv_path_EGREP=$EGREP
  3985. fi
  3986. fi
  3987. fi
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3989. $as_echo "$ac_cv_path_EGREP" >&6; }
  3990. EGREP="$ac_cv_path_EGREP"
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3992. $as_echo_n "checking for ANSI C header files... " >&6; }
  3993. if ${ac_cv_header_stdc+:} false; then :
  3994. $as_echo_n "(cached) " >&6
  3995. else
  3996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3997. /* end confdefs.h. */
  3998. #include <stdlib.h>
  3999. #include <stdarg.h>
  4000. #include <string.h>
  4001. #include <float.h>
  4002. int
  4003. main ()
  4004. {
  4005. ;
  4006. return 0;
  4007. }
  4008. _ACEOF
  4009. if ac_fn_c_try_compile "$LINENO"; then :
  4010. ac_cv_header_stdc=yes
  4011. else
  4012. ac_cv_header_stdc=no
  4013. fi
  4014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4015. if test $ac_cv_header_stdc = yes; then
  4016. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #include <string.h>
  4020. _ACEOF
  4021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4022. $EGREP "memchr" >/dev/null 2>&1; then :
  4023. else
  4024. ac_cv_header_stdc=no
  4025. fi
  4026. rm -f conftest*
  4027. fi
  4028. if test $ac_cv_header_stdc = yes; then
  4029. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4031. /* end confdefs.h. */
  4032. #include <stdlib.h>
  4033. _ACEOF
  4034. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4035. $EGREP "free" >/dev/null 2>&1; then :
  4036. else
  4037. ac_cv_header_stdc=no
  4038. fi
  4039. rm -f conftest*
  4040. fi
  4041. if test $ac_cv_header_stdc = yes; then
  4042. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4043. if test "$cross_compiling" = yes; then :
  4044. :
  4045. else
  4046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4047. /* end confdefs.h. */
  4048. #include <ctype.h>
  4049. #include <stdlib.h>
  4050. #if ((' ' & 0x0FF) == 0x020)
  4051. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4052. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4053. #else
  4054. # define ISLOWER(c) \
  4055. (('a' <= (c) && (c) <= 'i') \
  4056. || ('j' <= (c) && (c) <= 'r') \
  4057. || ('s' <= (c) && (c) <= 'z'))
  4058. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4059. #endif
  4060. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4061. int
  4062. main ()
  4063. {
  4064. int i;
  4065. for (i = 0; i < 256; i++)
  4066. if (XOR (islower (i), ISLOWER (i))
  4067. || toupper (i) != TOUPPER (i))
  4068. return 2;
  4069. return 0;
  4070. }
  4071. _ACEOF
  4072. if ac_fn_c_try_run "$LINENO"; then :
  4073. else
  4074. ac_cv_header_stdc=no
  4075. fi
  4076. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4077. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4078. fi
  4079. fi
  4080. fi
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4082. $as_echo "$ac_cv_header_stdc" >&6; }
  4083. if test $ac_cv_header_stdc = yes; then
  4084. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4085. fi
  4086. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4087. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4088. inttypes.h stdint.h unistd.h
  4089. do :
  4090. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4091. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4092. "
  4093. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4094. cat >>confdefs.h <<_ACEOF
  4095. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4096. _ACEOF
  4097. fi
  4098. done
  4099. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4100. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4101. MINIX=yes
  4102. else
  4103. MINIX=
  4104. fi
  4105. if test "$MINIX" = yes; then
  4106. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4107. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4108. $as_echo "#define _MINIX 1" >>confdefs.h
  4109. fi
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4111. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4112. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. # define __EXTENSIONS__ 1
  4118. $ac_includes_default
  4119. int
  4120. main ()
  4121. {
  4122. ;
  4123. return 0;
  4124. }
  4125. _ACEOF
  4126. if ac_fn_c_try_compile "$LINENO"; then :
  4127. ac_cv_safe_to_define___extensions__=yes
  4128. else
  4129. ac_cv_safe_to_define___extensions__=no
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4132. fi
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4134. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4135. test $ac_cv_safe_to_define___extensions__ = yes &&
  4136. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4137. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4138. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4139. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4140. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4141. ac_ext=c
  4142. ac_cpp='$CPP $CPPFLAGS'
  4143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4146. if test -n "$ac_tool_prefix"; then
  4147. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4148. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4150. $as_echo_n "checking for $ac_word... " >&6; }
  4151. if ${ac_cv_prog_CC+:} false; then :
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. if test -n "$CC"; then
  4155. ac_cv_prog_CC="$CC" # Let the user override the test.
  4156. else
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. for as_dir in $PATH
  4159. do
  4160. IFS=$as_save_IFS
  4161. test -z "$as_dir" && as_dir=.
  4162. for ac_exec_ext in '' $ac_executable_extensions; do
  4163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4164. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4166. break 2
  4167. fi
  4168. done
  4169. done
  4170. IFS=$as_save_IFS
  4171. fi
  4172. fi
  4173. CC=$ac_cv_prog_CC
  4174. if test -n "$CC"; then
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4176. $as_echo "$CC" >&6; }
  4177. else
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4179. $as_echo "no" >&6; }
  4180. fi
  4181. fi
  4182. if test -z "$ac_cv_prog_CC"; then
  4183. ac_ct_CC=$CC
  4184. # Extract the first word of "gcc", so it can be a program name with args.
  4185. set dummy gcc; ac_word=$2
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4187. $as_echo_n "checking for $ac_word... " >&6; }
  4188. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. if test -n "$ac_ct_CC"; then
  4192. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4193. else
  4194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4195. for as_dir in $PATH
  4196. do
  4197. IFS=$as_save_IFS
  4198. test -z "$as_dir" && as_dir=.
  4199. for ac_exec_ext in '' $ac_executable_extensions; do
  4200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4201. ac_cv_prog_ac_ct_CC="gcc"
  4202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4203. break 2
  4204. fi
  4205. done
  4206. done
  4207. IFS=$as_save_IFS
  4208. fi
  4209. fi
  4210. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4211. if test -n "$ac_ct_CC"; then
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4213. $as_echo "$ac_ct_CC" >&6; }
  4214. else
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4216. $as_echo "no" >&6; }
  4217. fi
  4218. if test "x$ac_ct_CC" = x; then
  4219. CC=""
  4220. else
  4221. case $cross_compiling:$ac_tool_warned in
  4222. yes:)
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4225. ac_tool_warned=yes ;;
  4226. esac
  4227. CC=$ac_ct_CC
  4228. fi
  4229. else
  4230. CC="$ac_cv_prog_CC"
  4231. fi
  4232. if test -z "$CC"; then
  4233. if test -n "$ac_tool_prefix"; then
  4234. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4235. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4237. $as_echo_n "checking for $ac_word... " >&6; }
  4238. if ${ac_cv_prog_CC+:} false; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. if test -n "$CC"; then
  4242. ac_cv_prog_CC="$CC" # Let the user override the test.
  4243. else
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH
  4246. do
  4247. IFS=$as_save_IFS
  4248. test -z "$as_dir" && as_dir=.
  4249. for ac_exec_ext in '' $ac_executable_extensions; do
  4250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4251. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4253. break 2
  4254. fi
  4255. done
  4256. done
  4257. IFS=$as_save_IFS
  4258. fi
  4259. fi
  4260. CC=$ac_cv_prog_CC
  4261. if test -n "$CC"; then
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4263. $as_echo "$CC" >&6; }
  4264. else
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4266. $as_echo "no" >&6; }
  4267. fi
  4268. fi
  4269. fi
  4270. if test -z "$CC"; then
  4271. # Extract the first word of "cc", so it can be a program name with args.
  4272. set dummy cc; ac_word=$2
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4274. $as_echo_n "checking for $ac_word... " >&6; }
  4275. if ${ac_cv_prog_CC+:} false; then :
  4276. $as_echo_n "(cached) " >&6
  4277. else
  4278. if test -n "$CC"; then
  4279. ac_cv_prog_CC="$CC" # Let the user override the test.
  4280. else
  4281. ac_prog_rejected=no
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH
  4284. do
  4285. IFS=$as_save_IFS
  4286. test -z "$as_dir" && as_dir=.
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4289. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4290. ac_prog_rejected=yes
  4291. continue
  4292. fi
  4293. ac_cv_prog_CC="cc"
  4294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4295. break 2
  4296. fi
  4297. done
  4298. done
  4299. IFS=$as_save_IFS
  4300. if test $ac_prog_rejected = yes; then
  4301. # We found a bogon in the path, so make sure we never use it.
  4302. set dummy $ac_cv_prog_CC
  4303. shift
  4304. if test $# != 0; then
  4305. # We chose a different compiler from the bogus one.
  4306. # However, it has the same basename, so the bogon will be chosen
  4307. # first if we set CC to just the basename; use the full file name.
  4308. shift
  4309. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4310. fi
  4311. fi
  4312. fi
  4313. fi
  4314. CC=$ac_cv_prog_CC
  4315. if test -n "$CC"; then
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4317. $as_echo "$CC" >&6; }
  4318. else
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4320. $as_echo "no" >&6; }
  4321. fi
  4322. fi
  4323. if test -z "$CC"; then
  4324. if test -n "$ac_tool_prefix"; then
  4325. for ac_prog in cl.exe
  4326. do
  4327. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4328. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4330. $as_echo_n "checking for $ac_word... " >&6; }
  4331. if ${ac_cv_prog_CC+:} false; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. if test -n "$CC"; then
  4335. ac_cv_prog_CC="$CC" # Let the user override the test.
  4336. else
  4337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4338. for as_dir in $PATH
  4339. do
  4340. IFS=$as_save_IFS
  4341. test -z "$as_dir" && as_dir=.
  4342. for ac_exec_ext in '' $ac_executable_extensions; do
  4343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4344. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4346. break 2
  4347. fi
  4348. done
  4349. done
  4350. IFS=$as_save_IFS
  4351. fi
  4352. fi
  4353. CC=$ac_cv_prog_CC
  4354. if test -n "$CC"; then
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4356. $as_echo "$CC" >&6; }
  4357. else
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4359. $as_echo "no" >&6; }
  4360. fi
  4361. test -n "$CC" && break
  4362. done
  4363. fi
  4364. if test -z "$CC"; then
  4365. ac_ct_CC=$CC
  4366. for ac_prog in cl.exe
  4367. do
  4368. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4369. set dummy $ac_prog; ac_word=$2
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4371. $as_echo_n "checking for $ac_word... " >&6; }
  4372. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. if test -n "$ac_ct_CC"; then
  4376. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4377. else
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. for ac_exec_ext in '' $ac_executable_extensions; do
  4384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4385. ac_cv_prog_ac_ct_CC="$ac_prog"
  4386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4387. break 2
  4388. fi
  4389. done
  4390. done
  4391. IFS=$as_save_IFS
  4392. fi
  4393. fi
  4394. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4395. if test -n "$ac_ct_CC"; then
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4397. $as_echo "$ac_ct_CC" >&6; }
  4398. else
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4400. $as_echo "no" >&6; }
  4401. fi
  4402. test -n "$ac_ct_CC" && break
  4403. done
  4404. if test "x$ac_ct_CC" = x; then
  4405. CC=""
  4406. else
  4407. case $cross_compiling:$ac_tool_warned in
  4408. yes:)
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4411. ac_tool_warned=yes ;;
  4412. esac
  4413. CC=$ac_ct_CC
  4414. fi
  4415. fi
  4416. fi
  4417. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4418. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4419. as_fn_error $? "no acceptable C compiler found in \$PATH
  4420. See \`config.log' for more details" "$LINENO" 5; }
  4421. # Provide some information about the compiler.
  4422. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4423. set X $ac_compile
  4424. ac_compiler=$2
  4425. for ac_option in --version -v -V -qversion; do
  4426. { { ac_try="$ac_compiler $ac_option >&5"
  4427. case "(($ac_try" in
  4428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4429. *) ac_try_echo=$ac_try;;
  4430. esac
  4431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4432. $as_echo "$ac_try_echo"; } >&5
  4433. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4434. ac_status=$?
  4435. if test -s conftest.err; then
  4436. sed '10a\
  4437. ... rest of stderr output deleted ...
  4438. 10q' conftest.err >conftest.er1
  4439. cat conftest.er1 >&5
  4440. fi
  4441. rm -f conftest.er1 conftest.err
  4442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4443. test $ac_status = 0; }
  4444. done
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4446. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4447. if ${ac_cv_c_compiler_gnu+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4451. /* end confdefs.h. */
  4452. int
  4453. main ()
  4454. {
  4455. #ifndef __GNUC__
  4456. choke me
  4457. #endif
  4458. ;
  4459. return 0;
  4460. }
  4461. _ACEOF
  4462. if ac_fn_c_try_compile "$LINENO"; then :
  4463. ac_compiler_gnu=yes
  4464. else
  4465. ac_compiler_gnu=no
  4466. fi
  4467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4468. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4469. fi
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4471. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4472. if test $ac_compiler_gnu = yes; then
  4473. GCC=yes
  4474. else
  4475. GCC=
  4476. fi
  4477. ac_test_CFLAGS=${CFLAGS+set}
  4478. ac_save_CFLAGS=$CFLAGS
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4480. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4481. if ${ac_cv_prog_cc_g+:} false; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. ac_save_c_werror_flag=$ac_c_werror_flag
  4485. ac_c_werror_flag=yes
  4486. ac_cv_prog_cc_g=no
  4487. CFLAGS="-g"
  4488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4489. /* end confdefs.h. */
  4490. int
  4491. main ()
  4492. {
  4493. ;
  4494. return 0;
  4495. }
  4496. _ACEOF
  4497. if ac_fn_c_try_compile "$LINENO"; then :
  4498. ac_cv_prog_cc_g=yes
  4499. else
  4500. CFLAGS=""
  4501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4502. /* end confdefs.h. */
  4503. int
  4504. main ()
  4505. {
  4506. ;
  4507. return 0;
  4508. }
  4509. _ACEOF
  4510. if ac_fn_c_try_compile "$LINENO"; then :
  4511. else
  4512. ac_c_werror_flag=$ac_save_c_werror_flag
  4513. CFLAGS="-g"
  4514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4515. /* end confdefs.h. */
  4516. int
  4517. main ()
  4518. {
  4519. ;
  4520. return 0;
  4521. }
  4522. _ACEOF
  4523. if ac_fn_c_try_compile "$LINENO"; then :
  4524. ac_cv_prog_cc_g=yes
  4525. fi
  4526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4527. fi
  4528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4529. fi
  4530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4531. ac_c_werror_flag=$ac_save_c_werror_flag
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4534. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4535. if test "$ac_test_CFLAGS" = set; then
  4536. CFLAGS=$ac_save_CFLAGS
  4537. elif test $ac_cv_prog_cc_g = yes; then
  4538. if test "$GCC" = yes; then
  4539. CFLAGS="-g -O2"
  4540. else
  4541. CFLAGS="-g"
  4542. fi
  4543. else
  4544. if test "$GCC" = yes; then
  4545. CFLAGS="-O2"
  4546. else
  4547. CFLAGS=
  4548. fi
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4551. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4552. if ${ac_cv_prog_cc_c89+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. ac_cv_prog_cc_c89=no
  4556. ac_save_CC=$CC
  4557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4558. /* end confdefs.h. */
  4559. #include <stdarg.h>
  4560. #include <stdio.h>
  4561. struct stat;
  4562. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4563. struct buf { int x; };
  4564. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4565. static char *e (p, i)
  4566. char **p;
  4567. int i;
  4568. {
  4569. return p[i];
  4570. }
  4571. static char *f (char * (*g) (char **, int), char **p, ...)
  4572. {
  4573. char *s;
  4574. va_list v;
  4575. va_start (v,p);
  4576. s = g (p, va_arg (v,int));
  4577. va_end (v);
  4578. return s;
  4579. }
  4580. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4581. function prototypes and stuff, but not '\xHH' hex character constants.
  4582. These don't provoke an error unfortunately, instead are silently treated
  4583. as 'x'. The following induces an error, until -std is added to get
  4584. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4585. array size at least. It's necessary to write '\x00'==0 to get something
  4586. that's true only with -std. */
  4587. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4588. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4589. inside strings and character constants. */
  4590. #define FOO(x) 'x'
  4591. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4592. int test (int i, double x);
  4593. struct s1 {int (*f) (int a);};
  4594. struct s2 {int (*f) (double a);};
  4595. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4596. int argc;
  4597. char **argv;
  4598. int
  4599. main ()
  4600. {
  4601. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4602. ;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4607. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4608. do
  4609. CC="$ac_save_CC $ac_arg"
  4610. if ac_fn_c_try_compile "$LINENO"; then :
  4611. ac_cv_prog_cc_c89=$ac_arg
  4612. fi
  4613. rm -f core conftest.err conftest.$ac_objext
  4614. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4615. done
  4616. rm -f conftest.$ac_ext
  4617. CC=$ac_save_CC
  4618. fi
  4619. # AC_CACHE_VAL
  4620. case "x$ac_cv_prog_cc_c89" in
  4621. x)
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4623. $as_echo "none needed" >&6; } ;;
  4624. xno)
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4626. $as_echo "unsupported" >&6; } ;;
  4627. *)
  4628. CC="$CC $ac_cv_prog_cc_c89"
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4630. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4631. esac
  4632. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4633. fi
  4634. ac_ext=c
  4635. ac_cpp='$CPP $CPPFLAGS'
  4636. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4637. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4638. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4639. ac_ext=c
  4640. ac_cpp='$CPP $CPPFLAGS'
  4641. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4642. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4643. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4645. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4646. if ${am_cv_prog_cc_c_o+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4650. /* end confdefs.h. */
  4651. int
  4652. main ()
  4653. {
  4654. ;
  4655. return 0;
  4656. }
  4657. _ACEOF
  4658. # Make sure it works both with $CC and with simple cc.
  4659. # Following AC_PROG_CC_C_O, we do the test twice because some
  4660. # compilers refuse to overwrite an existing .o file with -o,
  4661. # though they will create one.
  4662. am_cv_prog_cc_c_o=yes
  4663. for am_i in 1 2; do
  4664. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4665. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4666. ac_status=$?
  4667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4668. (exit $ac_status); } \
  4669. && test -f conftest2.$ac_objext; then
  4670. : OK
  4671. else
  4672. am_cv_prog_cc_c_o=no
  4673. break
  4674. fi
  4675. done
  4676. rm -f core conftest*
  4677. unset am_i
  4678. fi
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4680. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4681. if test "$am_cv_prog_cc_c_o" != yes; then
  4682. # Losing compiler, so override with the script.
  4683. # FIXME: It is wrong to rewrite CC.
  4684. # But if we don't then we get into trouble of one sort or another.
  4685. # A longer-term fix would be to have automake use am__CC in this case,
  4686. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4687. CC="$am_aux_dir/compile $CC"
  4688. fi
  4689. ac_ext=c
  4690. ac_cpp='$CPP $CPPFLAGS'
  4691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4694. depcc="$CC" am_compiler_list=
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4696. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4697. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4701. # We make a subdir and do the tests there. Otherwise we can end up
  4702. # making bogus files that we don't know about and never remove. For
  4703. # instance it was reported that on HP-UX the gcc test will end up
  4704. # making a dummy file named 'D' -- because '-MD' means "put the output
  4705. # in D".
  4706. rm -rf conftest.dir
  4707. mkdir conftest.dir
  4708. # Copy depcomp to subdir because otherwise we won't find it if we're
  4709. # using a relative directory.
  4710. cp "$am_depcomp" conftest.dir
  4711. cd conftest.dir
  4712. # We will build objects and dependencies in a subdirectory because
  4713. # it helps to detect inapplicable dependency modes. For instance
  4714. # both Tru64's cc and ICC support -MD to output dependencies as a
  4715. # side effect of compilation, but ICC will put the dependencies in
  4716. # the current directory while Tru64 will put them in the object
  4717. # directory.
  4718. mkdir sub
  4719. am_cv_CC_dependencies_compiler_type=none
  4720. if test "$am_compiler_list" = ""; then
  4721. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4722. fi
  4723. am__universal=false
  4724. case " $depcc " in #(
  4725. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4726. esac
  4727. for depmode in $am_compiler_list; do
  4728. # Setup a source with many dependencies, because some compilers
  4729. # like to wrap large dependency lists on column 80 (with \), and
  4730. # we should not choose a depcomp mode which is confused by this.
  4731. #
  4732. # We need to recreate these files for each test, as the compiler may
  4733. # overwrite some of them when testing with obscure command lines.
  4734. # This happens at least with the AIX C compiler.
  4735. : > sub/conftest.c
  4736. for i in 1 2 3 4 5 6; do
  4737. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4738. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4739. # Solaris 10 /bin/sh.
  4740. echo '/* dummy */' > sub/conftst$i.h
  4741. done
  4742. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4743. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4744. # mode. It turns out that the SunPro C++ compiler does not properly
  4745. # handle '-M -o', and we need to detect this. Also, some Intel
  4746. # versions had trouble with output in subdirs.
  4747. am__obj=sub/conftest.${OBJEXT-o}
  4748. am__minus_obj="-o $am__obj"
  4749. case $depmode in
  4750. gcc)
  4751. # This depmode causes a compiler race in universal mode.
  4752. test "$am__universal" = false || continue
  4753. ;;
  4754. nosideeffect)
  4755. # After this tag, mechanisms are not by side-effect, so they'll
  4756. # only be used when explicitly requested.
  4757. if test "x$enable_dependency_tracking" = xyes; then
  4758. continue
  4759. else
  4760. break
  4761. fi
  4762. ;;
  4763. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4764. # This compiler won't grok '-c -o', but also, the minuso test has
  4765. # not run yet. These depmodes are late enough in the game, and
  4766. # so weak that their functioning should not be impacted.
  4767. am__obj=conftest.${OBJEXT-o}
  4768. am__minus_obj=
  4769. ;;
  4770. none) break ;;
  4771. esac
  4772. if depmode=$depmode \
  4773. source=sub/conftest.c object=$am__obj \
  4774. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4775. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4776. >/dev/null 2>conftest.err &&
  4777. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4778. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4779. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4780. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4781. # icc doesn't choke on unknown options, it will just issue warnings
  4782. # or remarks (even with -Werror). So we grep stderr for any message
  4783. # that says an option was ignored or not supported.
  4784. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4785. # icc: Command line warning: ignoring option '-M'; no argument required
  4786. # The diagnosis changed in icc 8.0:
  4787. # icc: Command line remark: option '-MP' not supported
  4788. if (grep 'ignoring option' conftest.err ||
  4789. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4790. am_cv_CC_dependencies_compiler_type=$depmode
  4791. break
  4792. fi
  4793. fi
  4794. done
  4795. cd ..
  4796. rm -rf conftest.dir
  4797. else
  4798. am_cv_CC_dependencies_compiler_type=none
  4799. fi
  4800. fi
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4802. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4803. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4804. if
  4805. test "x$enable_dependency_tracking" != xno \
  4806. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4807. am__fastdepCC_TRUE=
  4808. am__fastdepCC_FALSE='#'
  4809. else
  4810. am__fastdepCC_TRUE='#'
  4811. am__fastdepCC_FALSE=
  4812. fi
  4813. ac_ext=cpp
  4814. ac_cpp='$CXXCPP $CPPFLAGS'
  4815. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4816. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4817. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4818. if test -z "$CXX"; then
  4819. if test -n "$CCC"; then
  4820. CXX=$CCC
  4821. else
  4822. if test -n "$ac_tool_prefix"; then
  4823. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4824. do
  4825. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4826. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4828. $as_echo_n "checking for $ac_word... " >&6; }
  4829. if ${ac_cv_prog_CXX+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if test -n "$CXX"; then
  4833. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4834. else
  4835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4842. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4844. break 2
  4845. fi
  4846. done
  4847. done
  4848. IFS=$as_save_IFS
  4849. fi
  4850. fi
  4851. CXX=$ac_cv_prog_CXX
  4852. if test -n "$CXX"; then
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4854. $as_echo "$CXX" >&6; }
  4855. else
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4857. $as_echo "no" >&6; }
  4858. fi
  4859. test -n "$CXX" && break
  4860. done
  4861. fi
  4862. if test -z "$CXX"; then
  4863. ac_ct_CXX=$CXX
  4864. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4865. do
  4866. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4867. set dummy $ac_prog; ac_word=$2
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4869. $as_echo_n "checking for $ac_word... " >&6; }
  4870. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -n "$ac_ct_CXX"; then
  4874. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4875. else
  4876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4877. for as_dir in $PATH
  4878. do
  4879. IFS=$as_save_IFS
  4880. test -z "$as_dir" && as_dir=.
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4883. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4885. break 2
  4886. fi
  4887. done
  4888. done
  4889. IFS=$as_save_IFS
  4890. fi
  4891. fi
  4892. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4893. if test -n "$ac_ct_CXX"; then
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4895. $as_echo "$ac_ct_CXX" >&6; }
  4896. else
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4898. $as_echo "no" >&6; }
  4899. fi
  4900. test -n "$ac_ct_CXX" && break
  4901. done
  4902. if test "x$ac_ct_CXX" = x; then
  4903. CXX="g++"
  4904. else
  4905. case $cross_compiling:$ac_tool_warned in
  4906. yes:)
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4909. ac_tool_warned=yes ;;
  4910. esac
  4911. CXX=$ac_ct_CXX
  4912. fi
  4913. fi
  4914. fi
  4915. fi
  4916. # Provide some information about the compiler.
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4918. set X $ac_compile
  4919. ac_compiler=$2
  4920. for ac_option in --version -v -V -qversion; do
  4921. { { ac_try="$ac_compiler $ac_option >&5"
  4922. case "(($ac_try" in
  4923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4924. *) ac_try_echo=$ac_try;;
  4925. esac
  4926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4927. $as_echo "$ac_try_echo"; } >&5
  4928. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4929. ac_status=$?
  4930. if test -s conftest.err; then
  4931. sed '10a\
  4932. ... rest of stderr output deleted ...
  4933. 10q' conftest.err >conftest.er1
  4934. cat conftest.er1 >&5
  4935. fi
  4936. rm -f conftest.er1 conftest.err
  4937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4938. test $ac_status = 0; }
  4939. done
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4941. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4942. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4946. /* end confdefs.h. */
  4947. int
  4948. main ()
  4949. {
  4950. #ifndef __GNUC__
  4951. choke me
  4952. #endif
  4953. ;
  4954. return 0;
  4955. }
  4956. _ACEOF
  4957. if ac_fn_cxx_try_compile "$LINENO"; then :
  4958. ac_compiler_gnu=yes
  4959. else
  4960. ac_compiler_gnu=no
  4961. fi
  4962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4963. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4964. fi
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4966. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4967. if test $ac_compiler_gnu = yes; then
  4968. GXX=yes
  4969. else
  4970. GXX=
  4971. fi
  4972. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4973. ac_save_CXXFLAGS=$CXXFLAGS
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4975. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4976. if ${ac_cv_prog_cxx_g+:} false; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4980. ac_cxx_werror_flag=yes
  4981. ac_cv_prog_cxx_g=no
  4982. CXXFLAGS="-g"
  4983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4984. /* end confdefs.h. */
  4985. int
  4986. main ()
  4987. {
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. if ac_fn_cxx_try_compile "$LINENO"; then :
  4993. ac_cv_prog_cxx_g=yes
  4994. else
  4995. CXXFLAGS=""
  4996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4997. /* end confdefs.h. */
  4998. int
  4999. main ()
  5000. {
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. if ac_fn_cxx_try_compile "$LINENO"; then :
  5006. else
  5007. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5008. CXXFLAGS="-g"
  5009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5010. /* end confdefs.h. */
  5011. int
  5012. main ()
  5013. {
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. if ac_fn_cxx_try_compile "$LINENO"; then :
  5019. ac_cv_prog_cxx_g=yes
  5020. fi
  5021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5022. fi
  5023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5024. fi
  5025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5026. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5027. fi
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5029. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5030. if test "$ac_test_CXXFLAGS" = set; then
  5031. CXXFLAGS=$ac_save_CXXFLAGS
  5032. elif test $ac_cv_prog_cxx_g = yes; then
  5033. if test "$GXX" = yes; then
  5034. CXXFLAGS="-g -O2"
  5035. else
  5036. CXXFLAGS="-g"
  5037. fi
  5038. else
  5039. if test "$GXX" = yes; then
  5040. CXXFLAGS="-O2"
  5041. else
  5042. CXXFLAGS=
  5043. fi
  5044. fi
  5045. ac_ext=c
  5046. ac_cpp='$CPP $CPPFLAGS'
  5047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5050. depcc="$CXX" am_compiler_list=
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5052. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5053. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5057. # We make a subdir and do the tests there. Otherwise we can end up
  5058. # making bogus files that we don't know about and never remove. For
  5059. # instance it was reported that on HP-UX the gcc test will end up
  5060. # making a dummy file named 'D' -- because '-MD' means "put the output
  5061. # in D".
  5062. rm -rf conftest.dir
  5063. mkdir conftest.dir
  5064. # Copy depcomp to subdir because otherwise we won't find it if we're
  5065. # using a relative directory.
  5066. cp "$am_depcomp" conftest.dir
  5067. cd conftest.dir
  5068. # We will build objects and dependencies in a subdirectory because
  5069. # it helps to detect inapplicable dependency modes. For instance
  5070. # both Tru64's cc and ICC support -MD to output dependencies as a
  5071. # side effect of compilation, but ICC will put the dependencies in
  5072. # the current directory while Tru64 will put them in the object
  5073. # directory.
  5074. mkdir sub
  5075. am_cv_CXX_dependencies_compiler_type=none
  5076. if test "$am_compiler_list" = ""; then
  5077. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5078. fi
  5079. am__universal=false
  5080. case " $depcc " in #(
  5081. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5082. esac
  5083. for depmode in $am_compiler_list; do
  5084. # Setup a source with many dependencies, because some compilers
  5085. # like to wrap large dependency lists on column 80 (with \), and
  5086. # we should not choose a depcomp mode which is confused by this.
  5087. #
  5088. # We need to recreate these files for each test, as the compiler may
  5089. # overwrite some of them when testing with obscure command lines.
  5090. # This happens at least with the AIX C compiler.
  5091. : > sub/conftest.c
  5092. for i in 1 2 3 4 5 6; do
  5093. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5094. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5095. # Solaris 10 /bin/sh.
  5096. echo '/* dummy */' > sub/conftst$i.h
  5097. done
  5098. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5099. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5100. # mode. It turns out that the SunPro C++ compiler does not properly
  5101. # handle '-M -o', and we need to detect this. Also, some Intel
  5102. # versions had trouble with output in subdirs.
  5103. am__obj=sub/conftest.${OBJEXT-o}
  5104. am__minus_obj="-o $am__obj"
  5105. case $depmode in
  5106. gcc)
  5107. # This depmode causes a compiler race in universal mode.
  5108. test "$am__universal" = false || continue
  5109. ;;
  5110. nosideeffect)
  5111. # After this tag, mechanisms are not by side-effect, so they'll
  5112. # only be used when explicitly requested.
  5113. if test "x$enable_dependency_tracking" = xyes; then
  5114. continue
  5115. else
  5116. break
  5117. fi
  5118. ;;
  5119. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5120. # This compiler won't grok '-c -o', but also, the minuso test has
  5121. # not run yet. These depmodes are late enough in the game, and
  5122. # so weak that their functioning should not be impacted.
  5123. am__obj=conftest.${OBJEXT-o}
  5124. am__minus_obj=
  5125. ;;
  5126. none) break ;;
  5127. esac
  5128. if depmode=$depmode \
  5129. source=sub/conftest.c object=$am__obj \
  5130. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5131. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5132. >/dev/null 2>conftest.err &&
  5133. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5134. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5135. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5136. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5137. # icc doesn't choke on unknown options, it will just issue warnings
  5138. # or remarks (even with -Werror). So we grep stderr for any message
  5139. # that says an option was ignored or not supported.
  5140. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5141. # icc: Command line warning: ignoring option '-M'; no argument required
  5142. # The diagnosis changed in icc 8.0:
  5143. # icc: Command line remark: option '-MP' not supported
  5144. if (grep 'ignoring option' conftest.err ||
  5145. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5146. am_cv_CXX_dependencies_compiler_type=$depmode
  5147. break
  5148. fi
  5149. fi
  5150. done
  5151. cd ..
  5152. rm -rf conftest.dir
  5153. else
  5154. am_cv_CXX_dependencies_compiler_type=none
  5155. fi
  5156. fi
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5158. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5159. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5160. if
  5161. test "x$enable_dependency_tracking" != xno \
  5162. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5163. am__fastdepCXX_TRUE=
  5164. am__fastdepCXX_FALSE='#'
  5165. else
  5166. am__fastdepCXX_TRUE='#'
  5167. am__fastdepCXX_FALSE=
  5168. fi
  5169. if test -n "$ac_tool_prefix"; then
  5170. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5171. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. $as_echo_n "checking for $ac_word... " >&6; }
  5174. if ${ac_cv_prog_RANLIB+:} false; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. if test -n "$RANLIB"; then
  5178. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5179. else
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183. IFS=$as_save_IFS
  5184. test -z "$as_dir" && as_dir=.
  5185. for ac_exec_ext in '' $ac_executable_extensions; do
  5186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5187. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5189. break 2
  5190. fi
  5191. done
  5192. done
  5193. IFS=$as_save_IFS
  5194. fi
  5195. fi
  5196. RANLIB=$ac_cv_prog_RANLIB
  5197. if test -n "$RANLIB"; then
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5199. $as_echo "$RANLIB" >&6; }
  5200. else
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5202. $as_echo "no" >&6; }
  5203. fi
  5204. fi
  5205. if test -z "$ac_cv_prog_RANLIB"; then
  5206. ac_ct_RANLIB=$RANLIB
  5207. # Extract the first word of "ranlib", so it can be a program name with args.
  5208. set dummy ranlib; ac_word=$2
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5210. $as_echo_n "checking for $ac_word... " >&6; }
  5211. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5212. $as_echo_n "(cached) " >&6
  5213. else
  5214. if test -n "$ac_ct_RANLIB"; then
  5215. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5216. else
  5217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5218. for as_dir in $PATH
  5219. do
  5220. IFS=$as_save_IFS
  5221. test -z "$as_dir" && as_dir=.
  5222. for ac_exec_ext in '' $ac_executable_extensions; do
  5223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5224. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5226. break 2
  5227. fi
  5228. done
  5229. done
  5230. IFS=$as_save_IFS
  5231. fi
  5232. fi
  5233. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5234. if test -n "$ac_ct_RANLIB"; then
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5236. $as_echo "$ac_ct_RANLIB" >&6; }
  5237. else
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5239. $as_echo "no" >&6; }
  5240. fi
  5241. if test "x$ac_ct_RANLIB" = x; then
  5242. RANLIB=":"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. RANLIB=$ac_ct_RANLIB
  5251. fi
  5252. else
  5253. RANLIB="$ac_cv_prog_RANLIB"
  5254. fi
  5255. if test -n "$ac_tool_prefix"; then
  5256. for ac_prog in ar lib "link -lib"
  5257. do
  5258. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5259. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if ${ac_cv_prog_AR+:} false; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. if test -n "$AR"; then
  5266. ac_cv_prog_AR="$AR" # Let the user override the test.
  5267. else
  5268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5269. for as_dir in $PATH
  5270. do
  5271. IFS=$as_save_IFS
  5272. test -z "$as_dir" && as_dir=.
  5273. for ac_exec_ext in '' $ac_executable_extensions; do
  5274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5275. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5277. break 2
  5278. fi
  5279. done
  5280. done
  5281. IFS=$as_save_IFS
  5282. fi
  5283. fi
  5284. AR=$ac_cv_prog_AR
  5285. if test -n "$AR"; then
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5287. $as_echo "$AR" >&6; }
  5288. else
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5290. $as_echo "no" >&6; }
  5291. fi
  5292. test -n "$AR" && break
  5293. done
  5294. fi
  5295. if test -z "$AR"; then
  5296. ac_ct_AR=$AR
  5297. for ac_prog in ar lib "link -lib"
  5298. do
  5299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5300. set dummy $ac_prog; ac_word=$2
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5302. $as_echo_n "checking for $ac_word... " >&6; }
  5303. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. if test -n "$ac_ct_AR"; then
  5307. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5308. else
  5309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5310. for as_dir in $PATH
  5311. do
  5312. IFS=$as_save_IFS
  5313. test -z "$as_dir" && as_dir=.
  5314. for ac_exec_ext in '' $ac_executable_extensions; do
  5315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5316. ac_cv_prog_ac_ct_AR="$ac_prog"
  5317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5318. break 2
  5319. fi
  5320. done
  5321. done
  5322. IFS=$as_save_IFS
  5323. fi
  5324. fi
  5325. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5326. if test -n "$ac_ct_AR"; then
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5328. $as_echo "$ac_ct_AR" >&6; }
  5329. else
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5331. $as_echo "no" >&6; }
  5332. fi
  5333. test -n "$ac_ct_AR" && break
  5334. done
  5335. if test "x$ac_ct_AR" = x; then
  5336. AR="false"
  5337. else
  5338. case $cross_compiling:$ac_tool_warned in
  5339. yes:)
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5342. ac_tool_warned=yes ;;
  5343. esac
  5344. AR=$ac_ct_AR
  5345. fi
  5346. fi
  5347. : ${AR=ar}
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5349. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  5350. if ${am_cv_ar_interface+:} false; then :
  5351. $as_echo_n "(cached) " >&6
  5352. else
  5353. ac_ext=c
  5354. ac_cpp='$CPP $CPPFLAGS'
  5355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5358. am_cv_ar_interface=ar
  5359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5360. /* end confdefs.h. */
  5361. int some_variable = 0;
  5362. _ACEOF
  5363. if ac_fn_c_try_compile "$LINENO"; then :
  5364. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  5365. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5366. (eval $am_ar_try) 2>&5
  5367. ac_status=$?
  5368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5369. test $ac_status = 0; }
  5370. if test "$ac_status" -eq 0; then
  5371. am_cv_ar_interface=ar
  5372. else
  5373. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5374. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5375. (eval $am_ar_try) 2>&5
  5376. ac_status=$?
  5377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5378. test $ac_status = 0; }
  5379. if test "$ac_status" -eq 0; then
  5380. am_cv_ar_interface=lib
  5381. else
  5382. am_cv_ar_interface=unknown
  5383. fi
  5384. fi
  5385. rm -f conftest.lib libconftest.a
  5386. fi
  5387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5388. ac_ext=c
  5389. ac_cpp='$CPP $CPPFLAGS'
  5390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5393. fi
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5395. $as_echo "$am_cv_ar_interface" >&6; }
  5396. case $am_cv_ar_interface in
  5397. ar)
  5398. ;;
  5399. lib)
  5400. # Microsoft lib, so override with the ar-lib wrapper script.
  5401. # FIXME: It is wrong to rewrite AR.
  5402. # But if we don't then we get into trouble of one sort or another.
  5403. # A longer-term fix would be to have automake use am__AR in this case,
  5404. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5405. # similar.
  5406. AR="$am_aux_dir/ar-lib $AR"
  5407. ;;
  5408. unknown)
  5409. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5410. ;;
  5411. esac
  5412. case `pwd` in
  5413. *\ * | *\ *)
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5415. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5416. esac
  5417. macro_version='2.2.7a'
  5418. macro_revision='1.3134'
  5419. ltmain="$ac_aux_dir/ltmain.sh"
  5420. # Backslashify metacharacters that are still active within
  5421. # double-quoted strings.
  5422. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5423. # Same as above, but do not quote variable references.
  5424. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5425. # Sed substitution to delay expansion of an escaped shell variable in a
  5426. # double_quote_subst'ed string.
  5427. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5428. # Sed substitution to delay expansion of an escaped single quote.
  5429. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5430. # Sed substitution to avoid accidental globbing in evaled expressions
  5431. no_glob_subst='s/\*/\\\*/g'
  5432. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5433. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5434. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5436. $as_echo_n "checking how to print strings... " >&6; }
  5437. # Test print first, because it will be a builtin if present.
  5438. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5439. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5440. ECHO='print -r --'
  5441. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5442. ECHO='printf %s\n'
  5443. else
  5444. # Use this function as a fallback that always works.
  5445. func_fallback_echo ()
  5446. {
  5447. eval 'cat <<_LTECHO_EOF
  5448. $1
  5449. _LTECHO_EOF'
  5450. }
  5451. ECHO='func_fallback_echo'
  5452. fi
  5453. # func_echo_all arg...
  5454. # Invoke $ECHO with all args, space-separated.
  5455. func_echo_all ()
  5456. {
  5457. $ECHO ""
  5458. }
  5459. case "$ECHO" in
  5460. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5461. $as_echo "printf" >&6; } ;;
  5462. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5463. $as_echo "print -r" >&6; } ;;
  5464. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5465. $as_echo "cat" >&6; } ;;
  5466. esac
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5468. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5469. if ${ac_cv_path_SED+:} false; then :
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5473. for ac_i in 1 2 3 4 5 6 7; do
  5474. ac_script="$ac_script$as_nl$ac_script"
  5475. done
  5476. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5477. { ac_script=; unset ac_script;}
  5478. if test -z "$SED"; then
  5479. ac_path_SED_found=false
  5480. # Loop through the user's path and test for each of PROGNAME-LIST
  5481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5482. for as_dir in $PATH
  5483. do
  5484. IFS=$as_save_IFS
  5485. test -z "$as_dir" && as_dir=.
  5486. for ac_prog in sed gsed; do
  5487. for ac_exec_ext in '' $ac_executable_extensions; do
  5488. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5489. as_fn_executable_p "$ac_path_SED" || continue
  5490. # Check for GNU ac_path_SED and select it if it is found.
  5491. # Check for GNU $ac_path_SED
  5492. case `"$ac_path_SED" --version 2>&1` in
  5493. *GNU*)
  5494. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5495. *)
  5496. ac_count=0
  5497. $as_echo_n 0123456789 >"conftest.in"
  5498. while :
  5499. do
  5500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5501. mv "conftest.tmp" "conftest.in"
  5502. cp "conftest.in" "conftest.nl"
  5503. $as_echo '' >> "conftest.nl"
  5504. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5506. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5507. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5508. # Best one so far, save it but keep looking for a better one
  5509. ac_cv_path_SED="$ac_path_SED"
  5510. ac_path_SED_max=$ac_count
  5511. fi
  5512. # 10*(2^10) chars as input seems more than enough
  5513. test $ac_count -gt 10 && break
  5514. done
  5515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5516. esac
  5517. $ac_path_SED_found && break 3
  5518. done
  5519. done
  5520. done
  5521. IFS=$as_save_IFS
  5522. if test -z "$ac_cv_path_SED"; then
  5523. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5524. fi
  5525. else
  5526. ac_cv_path_SED=$SED
  5527. fi
  5528. fi
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5530. $as_echo "$ac_cv_path_SED" >&6; }
  5531. SED="$ac_cv_path_SED"
  5532. rm -f conftest.sed
  5533. test -z "$SED" && SED=sed
  5534. Xsed="$SED -e 1s/^X//"
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5536. $as_echo_n "checking for fgrep... " >&6; }
  5537. if ${ac_cv_path_FGREP+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5541. then ac_cv_path_FGREP="$GREP -F"
  5542. else
  5543. if test -z "$FGREP"; then
  5544. ac_path_FGREP_found=false
  5545. # Loop through the user's path and test for each of PROGNAME-LIST
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. for ac_prog in fgrep; do
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5554. as_fn_executable_p "$ac_path_FGREP" || continue
  5555. # Check for GNU ac_path_FGREP and select it if it is found.
  5556. # Check for GNU $ac_path_FGREP
  5557. case `"$ac_path_FGREP" --version 2>&1` in
  5558. *GNU*)
  5559. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5560. *)
  5561. ac_count=0
  5562. $as_echo_n 0123456789 >"conftest.in"
  5563. while :
  5564. do
  5565. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5566. mv "conftest.tmp" "conftest.in"
  5567. cp "conftest.in" "conftest.nl"
  5568. $as_echo 'FGREP' >> "conftest.nl"
  5569. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5570. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5571. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5572. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5573. # Best one so far, save it but keep looking for a better one
  5574. ac_cv_path_FGREP="$ac_path_FGREP"
  5575. ac_path_FGREP_max=$ac_count
  5576. fi
  5577. # 10*(2^10) chars as input seems more than enough
  5578. test $ac_count -gt 10 && break
  5579. done
  5580. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5581. esac
  5582. $ac_path_FGREP_found && break 3
  5583. done
  5584. done
  5585. done
  5586. IFS=$as_save_IFS
  5587. if test -z "$ac_cv_path_FGREP"; then
  5588. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5589. fi
  5590. else
  5591. ac_cv_path_FGREP=$FGREP
  5592. fi
  5593. fi
  5594. fi
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5596. $as_echo "$ac_cv_path_FGREP" >&6; }
  5597. FGREP="$ac_cv_path_FGREP"
  5598. test -z "$GREP" && GREP=grep
  5599. # Check whether --with-gnu-ld was given.
  5600. if test "${with_gnu_ld+set}" = set; then :
  5601. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5602. else
  5603. with_gnu_ld=no
  5604. fi
  5605. ac_prog=ld
  5606. if test "$GCC" = yes; then
  5607. # Check if gcc -print-prog-name=ld gives a path.
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5609. $as_echo_n "checking for ld used by $CC... " >&6; }
  5610. case $host in
  5611. *-*-mingw*)
  5612. # gcc leaves a trailing carriage return which upsets mingw
  5613. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5614. *)
  5615. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5616. esac
  5617. case $ac_prog in
  5618. # Accept absolute paths.
  5619. [\\/]* | ?:[\\/]*)
  5620. re_direlt='/[^/][^/]*/\.\./'
  5621. # Canonicalize the pathname of ld
  5622. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5623. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5624. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5625. done
  5626. test -z "$LD" && LD="$ac_prog"
  5627. ;;
  5628. "")
  5629. # If it fails, then pretend we aren't using GCC.
  5630. ac_prog=ld
  5631. ;;
  5632. *)
  5633. # If it is relative, then search for the first ld in PATH.
  5634. with_gnu_ld=unknown
  5635. ;;
  5636. esac
  5637. elif test "$with_gnu_ld" = yes; then
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5639. $as_echo_n "checking for GNU ld... " >&6; }
  5640. else
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5642. $as_echo_n "checking for non-GNU ld... " >&6; }
  5643. fi
  5644. if ${lt_cv_path_LD+:} false; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. if test -z "$LD"; then
  5648. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5649. for ac_dir in $PATH; do
  5650. IFS="$lt_save_ifs"
  5651. test -z "$ac_dir" && ac_dir=.
  5652. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5653. lt_cv_path_LD="$ac_dir/$ac_prog"
  5654. # Check to see if the program is GNU ld. I'd rather use --version,
  5655. # but apparently some variants of GNU ld only accept -v.
  5656. # Break only if it was the GNU/non-GNU ld that we prefer.
  5657. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5658. *GNU* | *'with BFD'*)
  5659. test "$with_gnu_ld" != no && break
  5660. ;;
  5661. *)
  5662. test "$with_gnu_ld" != yes && break
  5663. ;;
  5664. esac
  5665. fi
  5666. done
  5667. IFS="$lt_save_ifs"
  5668. else
  5669. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5670. fi
  5671. fi
  5672. LD="$lt_cv_path_LD"
  5673. if test -n "$LD"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5675. $as_echo "$LD" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5682. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5683. if ${lt_cv_prog_gnu_ld+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5687. case `$LD -v 2>&1 </dev/null` in
  5688. *GNU* | *'with BFD'*)
  5689. lt_cv_prog_gnu_ld=yes
  5690. ;;
  5691. *)
  5692. lt_cv_prog_gnu_ld=no
  5693. ;;
  5694. esac
  5695. fi
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5697. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5698. with_gnu_ld=$lt_cv_prog_gnu_ld
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5700. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5701. if ${lt_cv_path_NM+:} false; then :
  5702. $as_echo_n "(cached) " >&6
  5703. else
  5704. if test -n "$NM"; then
  5705. # Let the user override the nm to test.
  5706. lt_nm_to_check="$NM"
  5707. else
  5708. lt_nm_to_check="${ac_tool_prefix}nm"
  5709. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5710. lt_nm_to_check="$lt_nm_to_check nm"
  5711. fi
  5712. fi
  5713. for lt_tmp_nm in $lt_nm_to_check; do
  5714. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5715. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5716. IFS="$lt_save_ifs"
  5717. test -z "$ac_dir" && ac_dir=.
  5718. case "$lt_tmp_nm" in
  5719. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  5720. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  5721. esac
  5722. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5723. # Check to see if the nm accepts a BSD-compat flag.
  5724. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5725. # nm: unknown option "B" ignored
  5726. case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5727. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  5728. break
  5729. ;;
  5730. *)
  5731. case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5732. *$tmp_nm*)
  5733. lt_cv_path_NM="$tmp_nm -p"
  5734. break
  5735. ;;
  5736. *)
  5737. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5738. continue # so that we can try to find one that supports BSD flags
  5739. ;;
  5740. esac
  5741. ;;
  5742. esac
  5743. fi
  5744. done
  5745. IFS="$lt_save_ifs"
  5746. done
  5747. : ${lt_cv_path_NM=no}
  5748. fi
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5750. $as_echo "$lt_cv_path_NM" >&6; }
  5751. if test "$lt_cv_path_NM" != "no"; then
  5752. NM="$lt_cv_path_NM"
  5753. else
  5754. # Didn't find any BSD compatible name lister, look for dumpbin.
  5755. if test -n "$DUMPBIN"; then :
  5756. # Let the user override the test.
  5757. else
  5758. if test -n "$ac_tool_prefix"; then
  5759. for ac_prog in dumpbin "link -dump"
  5760. do
  5761. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5762. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5764. $as_echo_n "checking for $ac_word... " >&6; }
  5765. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. if test -n "$DUMPBIN"; then
  5769. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5770. else
  5771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5772. for as_dir in $PATH
  5773. do
  5774. IFS=$as_save_IFS
  5775. test -z "$as_dir" && as_dir=.
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5778. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5780. break 2
  5781. fi
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. fi
  5786. fi
  5787. DUMPBIN=$ac_cv_prog_DUMPBIN
  5788. if test -n "$DUMPBIN"; then
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5790. $as_echo "$DUMPBIN" >&6; }
  5791. else
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. $as_echo "no" >&6; }
  5794. fi
  5795. test -n "$DUMPBIN" && break
  5796. done
  5797. fi
  5798. if test -z "$DUMPBIN"; then
  5799. ac_ct_DUMPBIN=$DUMPBIN
  5800. for ac_prog in dumpbin "link -dump"
  5801. do
  5802. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5803. set dummy $ac_prog; ac_word=$2
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5805. $as_echo_n "checking for $ac_word... " >&6; }
  5806. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. if test -n "$ac_ct_DUMPBIN"; then
  5810. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5811. else
  5812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5813. for as_dir in $PATH
  5814. do
  5815. IFS=$as_save_IFS
  5816. test -z "$as_dir" && as_dir=.
  5817. for ac_exec_ext in '' $ac_executable_extensions; do
  5818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5819. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5821. break 2
  5822. fi
  5823. done
  5824. done
  5825. IFS=$as_save_IFS
  5826. fi
  5827. fi
  5828. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5829. if test -n "$ac_ct_DUMPBIN"; then
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5831. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5832. else
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5834. $as_echo "no" >&6; }
  5835. fi
  5836. test -n "$ac_ct_DUMPBIN" && break
  5837. done
  5838. if test "x$ac_ct_DUMPBIN" = x; then
  5839. DUMPBIN=":"
  5840. else
  5841. case $cross_compiling:$ac_tool_warned in
  5842. yes:)
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5845. ac_tool_warned=yes ;;
  5846. esac
  5847. DUMPBIN=$ac_ct_DUMPBIN
  5848. fi
  5849. fi
  5850. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5851. *COFF*)
  5852. DUMPBIN="$DUMPBIN -symbols"
  5853. ;;
  5854. *)
  5855. DUMPBIN=:
  5856. ;;
  5857. esac
  5858. fi
  5859. if test "$DUMPBIN" != ":"; then
  5860. NM="$DUMPBIN"
  5861. fi
  5862. fi
  5863. test -z "$NM" && NM=nm
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5865. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5866. if ${lt_cv_nm_interface+:} false; then :
  5867. $as_echo_n "(cached) " >&6
  5868. else
  5869. lt_cv_nm_interface="BSD nm"
  5870. echo "int some_variable = 0;" > conftest.$ac_ext
  5871. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5872. (eval "$ac_compile" 2>conftest.err)
  5873. cat conftest.err >&5
  5874. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5875. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5876. cat conftest.err >&5
  5877. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5878. cat conftest.out >&5
  5879. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5880. lt_cv_nm_interface="MS dumpbin"
  5881. fi
  5882. rm -f conftest*
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5885. $as_echo "$lt_cv_nm_interface" >&6; }
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5887. $as_echo_n "checking whether ln -s works... " >&6; }
  5888. LN_S=$as_ln_s
  5889. if test "$LN_S" = "ln -s"; then
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5891. $as_echo "yes" >&6; }
  5892. else
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5894. $as_echo "no, using $LN_S" >&6; }
  5895. fi
  5896. # find the maximum length of command line arguments
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5898. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5899. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5900. $as_echo_n "(cached) " >&6
  5901. else
  5902. i=0
  5903. teststring="ABCD"
  5904. case $build_os in
  5905. msdosdjgpp*)
  5906. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5907. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5908. # during glob expansion). Even if it were fixed, the result of this
  5909. # check would be larger than it should be.
  5910. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5911. ;;
  5912. gnu*)
  5913. # Under GNU Hurd, this test is not required because there is
  5914. # no limit to the length of command line arguments.
  5915. # Libtool will interpret -1 as no limit whatsoever
  5916. lt_cv_sys_max_cmd_len=-1;
  5917. ;;
  5918. cygwin* | mingw* | cegcc*)
  5919. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5920. # about 5 minutes as the teststring grows exponentially.
  5921. # Worse, since 9x/ME are not pre-emptively multitasking,
  5922. # you end up with a "frozen" computer, even though with patience
  5923. # the test eventually succeeds (with a max line length of 256k).
  5924. # Instead, let's just punt: use the minimum linelength reported by
  5925. # all of the supported platforms: 8192 (on NT/2K/XP).
  5926. lt_cv_sys_max_cmd_len=8192;
  5927. ;;
  5928. mint*)
  5929. # On MiNT this can take a long time and run out of memory.
  5930. lt_cv_sys_max_cmd_len=8192;
  5931. ;;
  5932. amigaos*)
  5933. # On AmigaOS with pdksh, this test takes hours, literally.
  5934. # So we just punt and use a minimum line length of 8192.
  5935. lt_cv_sys_max_cmd_len=8192;
  5936. ;;
  5937. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5938. # This has been around since 386BSD, at least. Likely further.
  5939. if test -x /sbin/sysctl; then
  5940. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5941. elif test -x /usr/sbin/sysctl; then
  5942. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5943. else
  5944. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5945. fi
  5946. # And add a safety zone
  5947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5948. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5949. ;;
  5950. interix*)
  5951. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5952. lt_cv_sys_max_cmd_len=196608
  5953. ;;
  5954. osf*)
  5955. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5956. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5957. # nice to cause kernel panics so lets avoid the loop below.
  5958. # First set a reasonable default.
  5959. lt_cv_sys_max_cmd_len=16384
  5960. #
  5961. if test -x /sbin/sysconfig; then
  5962. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5963. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5964. esac
  5965. fi
  5966. ;;
  5967. sco3.2v5*)
  5968. lt_cv_sys_max_cmd_len=102400
  5969. ;;
  5970. sysv5* | sco5v6* | sysv4.2uw2*)
  5971. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5972. if test -n "$kargmax"; then
  5973. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5974. else
  5975. lt_cv_sys_max_cmd_len=32768
  5976. fi
  5977. ;;
  5978. *)
  5979. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5980. if test -n "$lt_cv_sys_max_cmd_len"; then
  5981. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5983. else
  5984. # Make teststring a little bigger before we do anything with it.
  5985. # a 1K string should be a reasonable start.
  5986. for i in 1 2 3 4 5 6 7 8 ; do
  5987. teststring=$teststring$teststring
  5988. done
  5989. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5990. # If test is not a shell built-in, we'll probably end up computing a
  5991. # maximum length that is only half of the actual maximum length, but
  5992. # we can't tell.
  5993. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5994. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5995. test $i != 17 # 1/2 MB should be enough
  5996. do
  5997. i=`expr $i + 1`
  5998. teststring=$teststring$teststring
  5999. done
  6000. # Only check the string length outside the loop.
  6001. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6002. teststring=
  6003. # Add a significant safety factor because C++ compilers can tack on
  6004. # massive amounts of additional arguments before passing them to the
  6005. # linker. It appears as though 1/2 is a usable value.
  6006. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6007. fi
  6008. ;;
  6009. esac
  6010. fi
  6011. if test -n $lt_cv_sys_max_cmd_len ; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6013. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6016. $as_echo "none" >&6; }
  6017. fi
  6018. max_cmd_len=$lt_cv_sys_max_cmd_len
  6019. : ${CP="cp -f"}
  6020. : ${MV="mv -f"}
  6021. : ${RM="rm -f"}
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6023. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6024. # Try some XSI features
  6025. xsi_shell=no
  6026. ( _lt_dummy="a/b/c"
  6027. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6028. = c,a/b,, \
  6029. && eval 'test $(( 1 + 1 )) -eq 2 \
  6030. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6031. && xsi_shell=yes
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6033. $as_echo "$xsi_shell" >&6; }
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6035. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6036. lt_shell_append=no
  6037. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6038. >/dev/null 2>&1 \
  6039. && lt_shell_append=yes
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6041. $as_echo "$lt_shell_append" >&6; }
  6042. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6043. lt_unset=unset
  6044. else
  6045. lt_unset=false
  6046. fi
  6047. # test EBCDIC or ASCII
  6048. case `echo X|tr X '\101'` in
  6049. A) # ASCII based system
  6050. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6051. lt_SP2NL='tr \040 \012'
  6052. lt_NL2SP='tr \015\012 \040\040'
  6053. ;;
  6054. *) # EBCDIC based system
  6055. lt_SP2NL='tr \100 \n'
  6056. lt_NL2SP='tr \r\n \100\100'
  6057. ;;
  6058. esac
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6060. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6061. if ${lt_cv_ld_reload_flag+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. lt_cv_ld_reload_flag='-r'
  6065. fi
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6067. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6068. reload_flag=$lt_cv_ld_reload_flag
  6069. case $reload_flag in
  6070. "" | " "*) ;;
  6071. *) reload_flag=" $reload_flag" ;;
  6072. esac
  6073. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6074. case $host_os in
  6075. darwin*)
  6076. if test "$GCC" = yes; then
  6077. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6078. else
  6079. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6080. fi
  6081. ;;
  6082. esac
  6083. if test -n "$ac_tool_prefix"; then
  6084. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6085. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6087. $as_echo_n "checking for $ac_word... " >&6; }
  6088. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. if test -n "$OBJDUMP"; then
  6092. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6101. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. OBJDUMP=$ac_cv_prog_OBJDUMP
  6111. if test -n "$OBJDUMP"; then
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6113. $as_echo "$OBJDUMP" >&6; }
  6114. else
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6116. $as_echo "no" >&6; }
  6117. fi
  6118. fi
  6119. if test -z "$ac_cv_prog_OBJDUMP"; then
  6120. ac_ct_OBJDUMP=$OBJDUMP
  6121. # Extract the first word of "objdump", so it can be a program name with args.
  6122. set dummy objdump; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$ac_ct_OBJDUMP"; then
  6129. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6138. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6148. if test -n "$ac_ct_OBJDUMP"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6150. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. if test "x$ac_ct_OBJDUMP" = x; then
  6156. OBJDUMP="false"
  6157. else
  6158. case $cross_compiling:$ac_tool_warned in
  6159. yes:)
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6162. ac_tool_warned=yes ;;
  6163. esac
  6164. OBJDUMP=$ac_ct_OBJDUMP
  6165. fi
  6166. else
  6167. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6168. fi
  6169. test -z "$OBJDUMP" && OBJDUMP=objdump
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6171. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6172. if ${lt_cv_deplibs_check_method+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6176. lt_cv_file_magic_test_file=
  6177. lt_cv_deplibs_check_method='unknown'
  6178. # Need to set the preceding variable on all platforms that support
  6179. # interlibrary dependencies.
  6180. # 'none' -- dependencies not supported.
  6181. # `unknown' -- same as none, but documents that we really don't know.
  6182. # 'pass_all' -- all dependencies passed with no checks.
  6183. # 'test_compile' -- check by making test program.
  6184. # 'file_magic [[regex]]' -- check by looking for files in library path
  6185. # which responds to the $file_magic_cmd with a given extended regex.
  6186. # If you have `file' or equivalent on your system and you're not sure
  6187. # whether `pass_all' will *always* work, you probably want this one.
  6188. case $host_os in
  6189. aix[4-9]*)
  6190. lt_cv_deplibs_check_method=pass_all
  6191. ;;
  6192. beos*)
  6193. lt_cv_deplibs_check_method=pass_all
  6194. ;;
  6195. bsdi[45]*)
  6196. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6197. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6198. lt_cv_file_magic_test_file=/shlib/libc.so
  6199. ;;
  6200. cygwin*)
  6201. # func_win32_libid is a shell function defined in ltmain.sh
  6202. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6203. lt_cv_file_magic_cmd='func_win32_libid'
  6204. ;;
  6205. mingw* | pw32*)
  6206. # Base MSYS/MinGW do not provide the 'file' command needed by
  6207. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6208. # unless we find 'file', for example because we are cross-compiling.
  6209. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6210. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6211. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6212. lt_cv_file_magic_cmd='func_win32_libid'
  6213. else
  6214. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6215. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6216. fi
  6217. ;;
  6218. cegcc*)
  6219. # use the weaker test based on 'objdump'. See mingw*.
  6220. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6221. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6222. ;;
  6223. darwin* | rhapsody*)
  6224. lt_cv_deplibs_check_method=pass_all
  6225. ;;
  6226. freebsd* | dragonfly*)
  6227. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6228. case $host_cpu in
  6229. i*86 )
  6230. # Not sure whether the presence of OpenBSD here was a mistake.
  6231. # Let's accept both of them until this is cleared up.
  6232. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6233. lt_cv_file_magic_cmd=/usr/bin/file
  6234. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6235. ;;
  6236. esac
  6237. else
  6238. lt_cv_deplibs_check_method=pass_all
  6239. fi
  6240. ;;
  6241. gnu*)
  6242. lt_cv_deplibs_check_method=pass_all
  6243. ;;
  6244. haiku*)
  6245. lt_cv_deplibs_check_method=pass_all
  6246. ;;
  6247. hpux10.20* | hpux11*)
  6248. lt_cv_file_magic_cmd=/usr/bin/file
  6249. case $host_cpu in
  6250. ia64*)
  6251. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6252. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6253. ;;
  6254. hppa*64*)
  6255. 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]'
  6256. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6257. ;;
  6258. *)
  6259. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6260. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6261. ;;
  6262. esac
  6263. ;;
  6264. interix[3-9]*)
  6265. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6266. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6267. ;;
  6268. irix5* | irix6* | nonstopux*)
  6269. case $LD in
  6270. *-32|*"-32 ") libmagic=32-bit;;
  6271. *-n32|*"-n32 ") libmagic=N32;;
  6272. *-64|*"-64 ") libmagic=64-bit;;
  6273. *) libmagic=never-match;;
  6274. esac
  6275. lt_cv_deplibs_check_method=pass_all
  6276. ;;
  6277. # This must be Linux ELF.
  6278. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6279. lt_cv_deplibs_check_method=pass_all
  6280. ;;
  6281. netbsd*)
  6282. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6283. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6284. else
  6285. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6286. fi
  6287. ;;
  6288. newos6*)
  6289. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6290. lt_cv_file_magic_cmd=/usr/bin/file
  6291. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6292. ;;
  6293. *nto* | *qnx*)
  6294. lt_cv_deplibs_check_method=pass_all
  6295. ;;
  6296. openbsd*)
  6297. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6298. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6299. else
  6300. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6301. fi
  6302. ;;
  6303. osf3* | osf4* | osf5*)
  6304. lt_cv_deplibs_check_method=pass_all
  6305. ;;
  6306. rdos*)
  6307. lt_cv_deplibs_check_method=pass_all
  6308. ;;
  6309. solaris*)
  6310. lt_cv_deplibs_check_method=pass_all
  6311. ;;
  6312. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6313. lt_cv_deplibs_check_method=pass_all
  6314. ;;
  6315. sysv4 | sysv4.3*)
  6316. case $host_vendor in
  6317. motorola)
  6318. 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]'
  6319. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6320. ;;
  6321. ncr)
  6322. lt_cv_deplibs_check_method=pass_all
  6323. ;;
  6324. sequent)
  6325. lt_cv_file_magic_cmd='/bin/file'
  6326. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6327. ;;
  6328. sni)
  6329. lt_cv_file_magic_cmd='/bin/file'
  6330. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6331. lt_cv_file_magic_test_file=/lib/libc.so
  6332. ;;
  6333. siemens)
  6334. lt_cv_deplibs_check_method=pass_all
  6335. ;;
  6336. pc)
  6337. lt_cv_deplibs_check_method=pass_all
  6338. ;;
  6339. esac
  6340. ;;
  6341. tpf*)
  6342. lt_cv_deplibs_check_method=pass_all
  6343. ;;
  6344. esac
  6345. fi
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6347. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6348. file_magic_cmd=$lt_cv_file_magic_cmd
  6349. deplibs_check_method=$lt_cv_deplibs_check_method
  6350. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6351. plugin_option=
  6352. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  6353. for plugin in $plugin_names; do
  6354. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  6355. if test x$plugin_so = x$plugin; then
  6356. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  6357. fi
  6358. if test x$plugin_so != x$plugin; then
  6359. plugin_option="--plugin $plugin_so"
  6360. break
  6361. fi
  6362. done
  6363. if test -n "$ac_tool_prefix"; then
  6364. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6365. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if ${ac_cv_prog_AR+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. if test -n "$AR"; then
  6372. ac_cv_prog_AR="$AR" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. test -z "$as_dir" && as_dir=.
  6379. for ac_exec_ext in '' $ac_executable_extensions; do
  6380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6381. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6383. break 2
  6384. fi
  6385. done
  6386. done
  6387. IFS=$as_save_IFS
  6388. fi
  6389. fi
  6390. AR=$ac_cv_prog_AR
  6391. if test -n "$AR"; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6393. $as_echo "$AR" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. fi
  6399. if test -z "$ac_cv_prog_AR"; then
  6400. ac_ct_AR=$AR
  6401. # Extract the first word of "ar", so it can be a program name with args.
  6402. set dummy ar; ac_word=$2
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6404. $as_echo_n "checking for $ac_word... " >&6; }
  6405. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. if test -n "$ac_ct_AR"; then
  6409. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6410. else
  6411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6412. for as_dir in $PATH
  6413. do
  6414. IFS=$as_save_IFS
  6415. test -z "$as_dir" && as_dir=.
  6416. for ac_exec_ext in '' $ac_executable_extensions; do
  6417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6418. ac_cv_prog_ac_ct_AR="ar"
  6419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6420. break 2
  6421. fi
  6422. done
  6423. done
  6424. IFS=$as_save_IFS
  6425. fi
  6426. fi
  6427. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6428. if test -n "$ac_ct_AR"; then
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6430. $as_echo "$ac_ct_AR" >&6; }
  6431. else
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6433. $as_echo "no" >&6; }
  6434. fi
  6435. if test "x$ac_ct_AR" = x; then
  6436. AR="false"
  6437. else
  6438. case $cross_compiling:$ac_tool_warned in
  6439. yes:)
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6441. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6442. ac_tool_warned=yes ;;
  6443. esac
  6444. AR=$ac_ct_AR
  6445. fi
  6446. else
  6447. AR="$ac_cv_prog_AR"
  6448. fi
  6449. test -z "$AR" && AR=ar
  6450. if test -n "$plugin_option"; then
  6451. if $AR --help 2>&1 | grep -q "\--plugin"; then
  6452. touch conftest.c
  6453. $AR $plugin_option rc conftest.a conftest.c
  6454. if test "$?" != 0; then
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  6456. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  6457. else
  6458. AR="$AR $plugin_option"
  6459. fi
  6460. rm -f conftest.*
  6461. fi
  6462. fi
  6463. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6464. if test -n "$ac_tool_prefix"; then
  6465. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6466. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6468. $as_echo_n "checking for $ac_word... " >&6; }
  6469. if ${ac_cv_prog_STRIP+:} false; then :
  6470. $as_echo_n "(cached) " >&6
  6471. else
  6472. if test -n "$STRIP"; then
  6473. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6474. else
  6475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6476. for as_dir in $PATH
  6477. do
  6478. IFS=$as_save_IFS
  6479. test -z "$as_dir" && as_dir=.
  6480. for ac_exec_ext in '' $ac_executable_extensions; do
  6481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6482. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6484. break 2
  6485. fi
  6486. done
  6487. done
  6488. IFS=$as_save_IFS
  6489. fi
  6490. fi
  6491. STRIP=$ac_cv_prog_STRIP
  6492. if test -n "$STRIP"; then
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6494. $as_echo "$STRIP" >&6; }
  6495. else
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6497. $as_echo "no" >&6; }
  6498. fi
  6499. fi
  6500. if test -z "$ac_cv_prog_STRIP"; then
  6501. ac_ct_STRIP=$STRIP
  6502. # Extract the first word of "strip", so it can be a program name with args.
  6503. set dummy strip; ac_word=$2
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6505. $as_echo_n "checking for $ac_word... " >&6; }
  6506. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6507. $as_echo_n "(cached) " >&6
  6508. else
  6509. if test -n "$ac_ct_STRIP"; then
  6510. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6511. else
  6512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6513. for as_dir in $PATH
  6514. do
  6515. IFS=$as_save_IFS
  6516. test -z "$as_dir" && as_dir=.
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6519. ac_cv_prog_ac_ct_STRIP="strip"
  6520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6529. if test -n "$ac_ct_STRIP"; then
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6531. $as_echo "$ac_ct_STRIP" >&6; }
  6532. else
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. $as_echo "no" >&6; }
  6535. fi
  6536. if test "x$ac_ct_STRIP" = x; then
  6537. STRIP=":"
  6538. else
  6539. case $cross_compiling:$ac_tool_warned in
  6540. yes:)
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6543. ac_tool_warned=yes ;;
  6544. esac
  6545. STRIP=$ac_ct_STRIP
  6546. fi
  6547. else
  6548. STRIP="$ac_cv_prog_STRIP"
  6549. fi
  6550. test -z "$STRIP" && STRIP=:
  6551. if test -n "$ac_tool_prefix"; then
  6552. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6553. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6555. $as_echo_n "checking for $ac_word... " >&6; }
  6556. if ${ac_cv_prog_RANLIB+:} false; then :
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. if test -n "$RANLIB"; then
  6560. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6561. else
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_exec_ext in '' $ac_executable_extensions; do
  6568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6569. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6571. break 2
  6572. fi
  6573. done
  6574. done
  6575. IFS=$as_save_IFS
  6576. fi
  6577. fi
  6578. RANLIB=$ac_cv_prog_RANLIB
  6579. if test -n "$RANLIB"; then
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6581. $as_echo "$RANLIB" >&6; }
  6582. else
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. fi
  6587. if test -z "$ac_cv_prog_RANLIB"; then
  6588. ac_ct_RANLIB=$RANLIB
  6589. # Extract the first word of "ranlib", so it can be a program name with args.
  6590. set dummy ranlib; ac_word=$2
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. if test -n "$ac_ct_RANLIB"; then
  6597. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. test -z "$as_dir" && as_dir=.
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6606. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6616. if test -n "$ac_ct_RANLIB"; then
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6618. $as_echo "$ac_ct_RANLIB" >&6; }
  6619. else
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6621. $as_echo "no" >&6; }
  6622. fi
  6623. if test "x$ac_ct_RANLIB" = x; then
  6624. RANLIB=":"
  6625. else
  6626. case $cross_compiling:$ac_tool_warned in
  6627. yes:)
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6630. ac_tool_warned=yes ;;
  6631. esac
  6632. RANLIB=$ac_ct_RANLIB
  6633. fi
  6634. else
  6635. RANLIB="$ac_cv_prog_RANLIB"
  6636. fi
  6637. test -z "$RANLIB" && RANLIB=:
  6638. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  6639. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  6640. RANLIB="$RANLIB $plugin_option"
  6641. fi
  6642. fi
  6643. # Determine commands to create old-style static archives.
  6644. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6645. old_postinstall_cmds='chmod 644 $oldlib'
  6646. old_postuninstall_cmds=
  6647. if test -n "$RANLIB"; then
  6648. case $host_os in
  6649. openbsd*)
  6650. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6651. ;;
  6652. *)
  6653. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6654. ;;
  6655. esac
  6656. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6657. fi
  6658. case $host_os in
  6659. darwin*)
  6660. lock_old_archive_extraction=yes ;;
  6661. *)
  6662. lock_old_archive_extraction=no ;;
  6663. esac
  6664. # If no C compiler was specified, use CC.
  6665. LTCC=${LTCC-"$CC"}
  6666. # If no C compiler flags were specified, use CFLAGS.
  6667. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6668. # Allow CC to be a program name with arguments.
  6669. compiler=$CC
  6670. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6672. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6673. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. # These are sane defaults that work on at least a few old systems.
  6677. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6678. # Character class describing NM global symbol codes.
  6679. symcode='[BCDEGRST]'
  6680. # Regexp to match symbols that can be accessed directly from C.
  6681. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6682. # Define system-specific variables.
  6683. case $host_os in
  6684. aix*)
  6685. symcode='[BCDT]'
  6686. ;;
  6687. cygwin* | mingw* | pw32* | cegcc*)
  6688. symcode='[ABCDGISTW]'
  6689. ;;
  6690. hpux*)
  6691. if test "$host_cpu" = ia64; then
  6692. symcode='[ABCDEGRST]'
  6693. fi
  6694. ;;
  6695. irix* | nonstopux*)
  6696. symcode='[BCDEGRST]'
  6697. ;;
  6698. osf*)
  6699. symcode='[BCDEGQRST]'
  6700. ;;
  6701. solaris*)
  6702. symcode='[BCDRT]'
  6703. ;;
  6704. sco3.2v5*)
  6705. symcode='[DT]'
  6706. ;;
  6707. sysv4.2uw2*)
  6708. symcode='[DT]'
  6709. ;;
  6710. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6711. symcode='[ABDT]'
  6712. ;;
  6713. sysv4)
  6714. symcode='[DFNSTU]'
  6715. ;;
  6716. esac
  6717. # If we're using GNU nm, then use its standard symbol codes.
  6718. case `$NM -V 2>&1` in
  6719. *GNU* | *'with BFD'*)
  6720. symcode='[ABCDGIRSTW]' ;;
  6721. esac
  6722. # Transform an extracted symbol line into a proper C declaration.
  6723. # Some systems (esp. on ia64) link data and code symbols differently,
  6724. # so use this general approach.
  6725. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6726. # Transform an extracted symbol line into symbol name and symbol address
  6727. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6728. 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'"
  6729. # Handle CRLF in mingw tool chain
  6730. opt_cr=
  6731. case $build_os in
  6732. mingw*)
  6733. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6734. ;;
  6735. esac
  6736. # Try without a prefix underscore, then with it.
  6737. for ac_symprfx in "" "_"; do
  6738. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6739. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6740. # Write the raw and C identifiers.
  6741. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6742. # Fake it for dumpbin and say T for any non-static function
  6743. # and D for any global variable.
  6744. # Also find C++ and __fastcall symbols from MSVC++,
  6745. # which start with @ or ?.
  6746. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6747. " {last_section=section; section=\$ 3};"\
  6748. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6749. " \$ 0!~/External *\|/{next};"\
  6750. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6751. " {if(hide[section]) next};"\
  6752. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6753. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6754. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6755. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6756. " ' prfx=^$ac_symprfx"
  6757. else
  6758. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6759. fi
  6760. # Check to see that the pipe works correctly.
  6761. pipe_works=no
  6762. rm -f conftest*
  6763. cat > conftest.$ac_ext <<_LT_EOF
  6764. #ifdef __cplusplus
  6765. extern "C" {
  6766. #endif
  6767. char nm_test_var;
  6768. void nm_test_func(void);
  6769. void nm_test_func(void){}
  6770. #ifdef __cplusplus
  6771. }
  6772. #endif
  6773. int main(){nm_test_var='a';nm_test_func();return(0);}
  6774. _LT_EOF
  6775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6776. (eval $ac_compile) 2>&5
  6777. ac_status=$?
  6778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6779. test $ac_status = 0; }; then
  6780. # Now try to grab the symbols.
  6781. nlist=conftest.nm
  6782. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6783. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6784. ac_status=$?
  6785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6786. test $ac_status = 0; } && test -s "$nlist"; then
  6787. # Try sorting and uniquifying the output.
  6788. if sort "$nlist" | uniq > "$nlist"T; then
  6789. mv -f "$nlist"T "$nlist"
  6790. else
  6791. rm -f "$nlist"T
  6792. fi
  6793. # Make sure that we snagged all the symbols we need.
  6794. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6795. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6796. cat <<_LT_EOF > conftest.$ac_ext
  6797. #ifdef __cplusplus
  6798. extern "C" {
  6799. #endif
  6800. _LT_EOF
  6801. # Now generate the symbol file.
  6802. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6803. cat <<_LT_EOF >> conftest.$ac_ext
  6804. /* The mapping between symbol names and symbols. */
  6805. const struct {
  6806. const char *name;
  6807. void *address;
  6808. }
  6809. lt__PROGRAM__LTX_preloaded_symbols[] =
  6810. {
  6811. { "@PROGRAM@", (void *) 0 },
  6812. _LT_EOF
  6813. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6814. cat <<\_LT_EOF >> conftest.$ac_ext
  6815. {0, (void *) 0}
  6816. };
  6817. /* This works around a problem in FreeBSD linker */
  6818. #ifdef FREEBSD_WORKAROUND
  6819. static const void *lt_preloaded_setup() {
  6820. return lt__PROGRAM__LTX_preloaded_symbols;
  6821. }
  6822. #endif
  6823. #ifdef __cplusplus
  6824. }
  6825. #endif
  6826. _LT_EOF
  6827. # Now try linking the two files.
  6828. mv conftest.$ac_objext conftstm.$ac_objext
  6829. lt_save_LIBS="$LIBS"
  6830. lt_save_CFLAGS="$CFLAGS"
  6831. LIBS="conftstm.$ac_objext"
  6832. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6833. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6834. (eval $ac_link) 2>&5
  6835. ac_status=$?
  6836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6837. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6838. pipe_works=yes
  6839. fi
  6840. LIBS="$lt_save_LIBS"
  6841. CFLAGS="$lt_save_CFLAGS"
  6842. else
  6843. echo "cannot find nm_test_func in $nlist" >&5
  6844. fi
  6845. else
  6846. echo "cannot find nm_test_var in $nlist" >&5
  6847. fi
  6848. else
  6849. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6850. fi
  6851. else
  6852. echo "$progname: failed program was:" >&5
  6853. cat conftest.$ac_ext >&5
  6854. fi
  6855. rm -rf conftest* conftst*
  6856. # Do not use the global_symbol_pipe unless it works.
  6857. if test "$pipe_works" = yes; then
  6858. break
  6859. else
  6860. lt_cv_sys_global_symbol_pipe=
  6861. fi
  6862. done
  6863. fi
  6864. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6865. lt_cv_sys_global_symbol_to_cdecl=
  6866. fi
  6867. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6869. $as_echo "failed" >&6; }
  6870. else
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6872. $as_echo "ok" >&6; }
  6873. fi
  6874. # Check whether --enable-libtool-lock was given.
  6875. if test "${enable_libtool_lock+set}" = set; then :
  6876. enableval=$enable_libtool_lock;
  6877. fi
  6878. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6879. # Some flags need to be propagated to the compiler or linker for good
  6880. # libtool support.
  6881. case $host in
  6882. ia64-*-hpux*)
  6883. # Find out which ABI we are using.
  6884. echo 'int i;' > conftest.$ac_ext
  6885. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6886. (eval $ac_compile) 2>&5
  6887. ac_status=$?
  6888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6889. test $ac_status = 0; }; then
  6890. case `/usr/bin/file conftest.$ac_objext` in
  6891. *ELF-32*)
  6892. HPUX_IA64_MODE="32"
  6893. ;;
  6894. *ELF-64*)
  6895. HPUX_IA64_MODE="64"
  6896. ;;
  6897. esac
  6898. fi
  6899. rm -rf conftest*
  6900. ;;
  6901. *-*-irix6*)
  6902. # Find out which ABI we are using.
  6903. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6904. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6905. (eval $ac_compile) 2>&5
  6906. ac_status=$?
  6907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6908. test $ac_status = 0; }; then
  6909. if test "$lt_cv_prog_gnu_ld" = yes; then
  6910. case `/usr/bin/file conftest.$ac_objext` in
  6911. *32-bit*)
  6912. LD="${LD-ld} -melf32bsmip"
  6913. ;;
  6914. *N32*)
  6915. LD="${LD-ld} -melf32bmipn32"
  6916. ;;
  6917. *64-bit*)
  6918. LD="${LD-ld} -melf64bmip"
  6919. ;;
  6920. esac
  6921. else
  6922. case `/usr/bin/file conftest.$ac_objext` in
  6923. *32-bit*)
  6924. LD="${LD-ld} -32"
  6925. ;;
  6926. *N32*)
  6927. LD="${LD-ld} -n32"
  6928. ;;
  6929. *64-bit*)
  6930. LD="${LD-ld} -64"
  6931. ;;
  6932. esac
  6933. fi
  6934. fi
  6935. rm -rf conftest*
  6936. ;;
  6937. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6938. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6939. # Find out which ABI we are using.
  6940. echo 'int i;' > conftest.$ac_ext
  6941. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6942. (eval $ac_compile) 2>&5
  6943. ac_status=$?
  6944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6945. test $ac_status = 0; }; then
  6946. case `/usr/bin/file conftest.o` in
  6947. *32-bit*)
  6948. case $host in
  6949. x86_64-*kfreebsd*-gnu)
  6950. LD="${LD-ld} -m elf_i386_fbsd"
  6951. ;;
  6952. x86_64-*linux*)
  6953. case `/usr/bin/file conftest.o` in
  6954. *x86-64*)
  6955. LD="${LD-ld} -m elf32_x86_64"
  6956. ;;
  6957. *)
  6958. LD="${LD-ld} -m elf_i386"
  6959. ;;
  6960. esac
  6961. ;;
  6962. powerpc64le-*linux*)
  6963. LD="${LD-ld} -m elf32lppclinux"
  6964. ;;
  6965. powerpc64-*linux*)
  6966. LD="${LD-ld} -m elf32ppclinux"
  6967. ;;
  6968. s390x-*linux*)
  6969. LD="${LD-ld} -m elf_s390"
  6970. ;;
  6971. sparc64-*linux*)
  6972. LD="${LD-ld} -m elf32_sparc"
  6973. ;;
  6974. esac
  6975. ;;
  6976. *64-bit*)
  6977. case $host in
  6978. x86_64-*kfreebsd*-gnu)
  6979. LD="${LD-ld} -m elf_x86_64_fbsd"
  6980. ;;
  6981. x86_64-*linux*)
  6982. LD="${LD-ld} -m elf_x86_64"
  6983. ;;
  6984. powerpcle-*linux*)
  6985. LD="${LD-ld} -m elf64lppc"
  6986. ;;
  6987. powerpc-*linux*)
  6988. LD="${LD-ld} -m elf64ppc"
  6989. ;;
  6990. s390*-*linux*|s390*-*tpf*)
  6991. LD="${LD-ld} -m elf64_s390"
  6992. ;;
  6993. sparc*-*linux*)
  6994. LD="${LD-ld} -m elf64_sparc"
  6995. ;;
  6996. esac
  6997. ;;
  6998. esac
  6999. fi
  7000. rm -rf conftest*
  7001. ;;
  7002. *-*-sco3.2v5*)
  7003. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7004. SAVE_CFLAGS="$CFLAGS"
  7005. CFLAGS="$CFLAGS -belf"
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7007. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7008. if ${lt_cv_cc_needs_belf+:} false; then :
  7009. $as_echo_n "(cached) " >&6
  7010. else
  7011. ac_ext=c
  7012. ac_cpp='$CPP $CPPFLAGS'
  7013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7017. /* end confdefs.h. */
  7018. int
  7019. main ()
  7020. {
  7021. ;
  7022. return 0;
  7023. }
  7024. _ACEOF
  7025. if ac_fn_c_try_link "$LINENO"; then :
  7026. lt_cv_cc_needs_belf=yes
  7027. else
  7028. lt_cv_cc_needs_belf=no
  7029. fi
  7030. rm -f core conftest.err conftest.$ac_objext \
  7031. conftest$ac_exeext conftest.$ac_ext
  7032. ac_ext=c
  7033. ac_cpp='$CPP $CPPFLAGS'
  7034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7037. fi
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7039. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7040. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7041. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7042. CFLAGS="$SAVE_CFLAGS"
  7043. fi
  7044. ;;
  7045. sparc*-*solaris*)
  7046. # Find out which ABI we are using.
  7047. echo 'int i;' > conftest.$ac_ext
  7048. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7049. (eval $ac_compile) 2>&5
  7050. ac_status=$?
  7051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7052. test $ac_status = 0; }; then
  7053. case `/usr/bin/file conftest.o` in
  7054. *64-bit*)
  7055. case $lt_cv_prog_gnu_ld in
  7056. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7057. *)
  7058. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7059. LD="${LD-ld} -64"
  7060. fi
  7061. ;;
  7062. esac
  7063. ;;
  7064. esac
  7065. fi
  7066. rm -rf conftest*
  7067. ;;
  7068. esac
  7069. need_locks="$enable_libtool_lock"
  7070. case $host_os in
  7071. rhapsody* | darwin*)
  7072. if test -n "$ac_tool_prefix"; then
  7073. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7074. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7076. $as_echo_n "checking for $ac_word... " >&6; }
  7077. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7078. $as_echo_n "(cached) " >&6
  7079. else
  7080. if test -n "$DSYMUTIL"; then
  7081. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7082. else
  7083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7084. for as_dir in $PATH
  7085. do
  7086. IFS=$as_save_IFS
  7087. test -z "$as_dir" && as_dir=.
  7088. for ac_exec_ext in '' $ac_executable_extensions; do
  7089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7090. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7092. break 2
  7093. fi
  7094. done
  7095. done
  7096. IFS=$as_save_IFS
  7097. fi
  7098. fi
  7099. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7100. if test -n "$DSYMUTIL"; then
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7102. $as_echo "$DSYMUTIL" >&6; }
  7103. else
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7105. $as_echo "no" >&6; }
  7106. fi
  7107. fi
  7108. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7109. ac_ct_DSYMUTIL=$DSYMUTIL
  7110. # Extract the first word of "dsymutil", so it can be a program name with args.
  7111. set dummy dsymutil; ac_word=$2
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7113. $as_echo_n "checking for $ac_word... " >&6; }
  7114. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. if test -n "$ac_ct_DSYMUTIL"; then
  7118. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7119. else
  7120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7121. for as_dir in $PATH
  7122. do
  7123. IFS=$as_save_IFS
  7124. test -z "$as_dir" && as_dir=.
  7125. for ac_exec_ext in '' $ac_executable_extensions; do
  7126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7127. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7129. break 2
  7130. fi
  7131. done
  7132. done
  7133. IFS=$as_save_IFS
  7134. fi
  7135. fi
  7136. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7137. if test -n "$ac_ct_DSYMUTIL"; then
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7139. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7140. else
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7142. $as_echo "no" >&6; }
  7143. fi
  7144. if test "x$ac_ct_DSYMUTIL" = x; then
  7145. DSYMUTIL=":"
  7146. else
  7147. case $cross_compiling:$ac_tool_warned in
  7148. yes:)
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7151. ac_tool_warned=yes ;;
  7152. esac
  7153. DSYMUTIL=$ac_ct_DSYMUTIL
  7154. fi
  7155. else
  7156. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7157. fi
  7158. if test -n "$ac_tool_prefix"; then
  7159. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7160. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7162. $as_echo_n "checking for $ac_word... " >&6; }
  7163. if ${ac_cv_prog_NMEDIT+:} false; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. if test -n "$NMEDIT"; then
  7167. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7168. else
  7169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7170. for as_dir in $PATH
  7171. do
  7172. IFS=$as_save_IFS
  7173. test -z "$as_dir" && as_dir=.
  7174. for ac_exec_ext in '' $ac_executable_extensions; do
  7175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7176. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7178. break 2
  7179. fi
  7180. done
  7181. done
  7182. IFS=$as_save_IFS
  7183. fi
  7184. fi
  7185. NMEDIT=$ac_cv_prog_NMEDIT
  7186. if test -n "$NMEDIT"; then
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7188. $as_echo "$NMEDIT" >&6; }
  7189. else
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7191. $as_echo "no" >&6; }
  7192. fi
  7193. fi
  7194. if test -z "$ac_cv_prog_NMEDIT"; then
  7195. ac_ct_NMEDIT=$NMEDIT
  7196. # Extract the first word of "nmedit", so it can be a program name with args.
  7197. set dummy nmedit; ac_word=$2
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7199. $as_echo_n "checking for $ac_word... " >&6; }
  7200. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7201. $as_echo_n "(cached) " >&6
  7202. else
  7203. if test -n "$ac_ct_NMEDIT"; then
  7204. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7205. else
  7206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7207. for as_dir in $PATH
  7208. do
  7209. IFS=$as_save_IFS
  7210. test -z "$as_dir" && as_dir=.
  7211. for ac_exec_ext in '' $ac_executable_extensions; do
  7212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7213. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7215. break 2
  7216. fi
  7217. done
  7218. done
  7219. IFS=$as_save_IFS
  7220. fi
  7221. fi
  7222. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7223. if test -n "$ac_ct_NMEDIT"; then
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7225. $as_echo "$ac_ct_NMEDIT" >&6; }
  7226. else
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7228. $as_echo "no" >&6; }
  7229. fi
  7230. if test "x$ac_ct_NMEDIT" = x; then
  7231. NMEDIT=":"
  7232. else
  7233. case $cross_compiling:$ac_tool_warned in
  7234. yes:)
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7237. ac_tool_warned=yes ;;
  7238. esac
  7239. NMEDIT=$ac_ct_NMEDIT
  7240. fi
  7241. else
  7242. NMEDIT="$ac_cv_prog_NMEDIT"
  7243. fi
  7244. if test -n "$ac_tool_prefix"; then
  7245. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7246. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7248. $as_echo_n "checking for $ac_word... " >&6; }
  7249. if ${ac_cv_prog_LIPO+:} false; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. if test -n "$LIPO"; then
  7253. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7254. else
  7255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7256. for as_dir in $PATH
  7257. do
  7258. IFS=$as_save_IFS
  7259. test -z "$as_dir" && as_dir=.
  7260. for ac_exec_ext in '' $ac_executable_extensions; do
  7261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7262. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7264. break 2
  7265. fi
  7266. done
  7267. done
  7268. IFS=$as_save_IFS
  7269. fi
  7270. fi
  7271. LIPO=$ac_cv_prog_LIPO
  7272. if test -n "$LIPO"; then
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7274. $as_echo "$LIPO" >&6; }
  7275. else
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7277. $as_echo "no" >&6; }
  7278. fi
  7279. fi
  7280. if test -z "$ac_cv_prog_LIPO"; then
  7281. ac_ct_LIPO=$LIPO
  7282. # Extract the first word of "lipo", so it can be a program name with args.
  7283. set dummy lipo; ac_word=$2
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7285. $as_echo_n "checking for $ac_word... " >&6; }
  7286. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7287. $as_echo_n "(cached) " >&6
  7288. else
  7289. if test -n "$ac_ct_LIPO"; then
  7290. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7291. else
  7292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7293. for as_dir in $PATH
  7294. do
  7295. IFS=$as_save_IFS
  7296. test -z "$as_dir" && as_dir=.
  7297. for ac_exec_ext in '' $ac_executable_extensions; do
  7298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7299. ac_cv_prog_ac_ct_LIPO="lipo"
  7300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7301. break 2
  7302. fi
  7303. done
  7304. done
  7305. IFS=$as_save_IFS
  7306. fi
  7307. fi
  7308. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7309. if test -n "$ac_ct_LIPO"; then
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7311. $as_echo "$ac_ct_LIPO" >&6; }
  7312. else
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315. fi
  7316. if test "x$ac_ct_LIPO" = x; then
  7317. LIPO=":"
  7318. else
  7319. case $cross_compiling:$ac_tool_warned in
  7320. yes:)
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7323. ac_tool_warned=yes ;;
  7324. esac
  7325. LIPO=$ac_ct_LIPO
  7326. fi
  7327. else
  7328. LIPO="$ac_cv_prog_LIPO"
  7329. fi
  7330. if test -n "$ac_tool_prefix"; then
  7331. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7332. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. $as_echo_n "checking for $ac_word... " >&6; }
  7335. if ${ac_cv_prog_OTOOL+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. if test -n "$OTOOL"; then
  7339. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7340. else
  7341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7342. for as_dir in $PATH
  7343. do
  7344. IFS=$as_save_IFS
  7345. test -z "$as_dir" && as_dir=.
  7346. for ac_exec_ext in '' $ac_executable_extensions; do
  7347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7348. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7350. break 2
  7351. fi
  7352. done
  7353. done
  7354. IFS=$as_save_IFS
  7355. fi
  7356. fi
  7357. OTOOL=$ac_cv_prog_OTOOL
  7358. if test -n "$OTOOL"; then
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7360. $as_echo "$OTOOL" >&6; }
  7361. else
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7363. $as_echo "no" >&6; }
  7364. fi
  7365. fi
  7366. if test -z "$ac_cv_prog_OTOOL"; then
  7367. ac_ct_OTOOL=$OTOOL
  7368. # Extract the first word of "otool", so it can be a program name with args.
  7369. set dummy otool; ac_word=$2
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7371. $as_echo_n "checking for $ac_word... " >&6; }
  7372. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7373. $as_echo_n "(cached) " >&6
  7374. else
  7375. if test -n "$ac_ct_OTOOL"; then
  7376. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7377. else
  7378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7379. for as_dir in $PATH
  7380. do
  7381. IFS=$as_save_IFS
  7382. test -z "$as_dir" && as_dir=.
  7383. for ac_exec_ext in '' $ac_executable_extensions; do
  7384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7385. ac_cv_prog_ac_ct_OTOOL="otool"
  7386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7387. break 2
  7388. fi
  7389. done
  7390. done
  7391. IFS=$as_save_IFS
  7392. fi
  7393. fi
  7394. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7395. if test -n "$ac_ct_OTOOL"; then
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7397. $as_echo "$ac_ct_OTOOL" >&6; }
  7398. else
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7400. $as_echo "no" >&6; }
  7401. fi
  7402. if test "x$ac_ct_OTOOL" = x; then
  7403. OTOOL=":"
  7404. else
  7405. case $cross_compiling:$ac_tool_warned in
  7406. yes:)
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7409. ac_tool_warned=yes ;;
  7410. esac
  7411. OTOOL=$ac_ct_OTOOL
  7412. fi
  7413. else
  7414. OTOOL="$ac_cv_prog_OTOOL"
  7415. fi
  7416. if test -n "$ac_tool_prefix"; then
  7417. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7418. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7420. $as_echo_n "checking for $ac_word... " >&6; }
  7421. if ${ac_cv_prog_OTOOL64+:} false; then :
  7422. $as_echo_n "(cached) " >&6
  7423. else
  7424. if test -n "$OTOOL64"; then
  7425. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7426. else
  7427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7428. for as_dir in $PATH
  7429. do
  7430. IFS=$as_save_IFS
  7431. test -z "$as_dir" && as_dir=.
  7432. for ac_exec_ext in '' $ac_executable_extensions; do
  7433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7434. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7436. break 2
  7437. fi
  7438. done
  7439. done
  7440. IFS=$as_save_IFS
  7441. fi
  7442. fi
  7443. OTOOL64=$ac_cv_prog_OTOOL64
  7444. if test -n "$OTOOL64"; then
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7446. $as_echo "$OTOOL64" >&6; }
  7447. else
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7449. $as_echo "no" >&6; }
  7450. fi
  7451. fi
  7452. if test -z "$ac_cv_prog_OTOOL64"; then
  7453. ac_ct_OTOOL64=$OTOOL64
  7454. # Extract the first word of "otool64", so it can be a program name with args.
  7455. set dummy otool64; ac_word=$2
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7457. $as_echo_n "checking for $ac_word... " >&6; }
  7458. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7459. $as_echo_n "(cached) " >&6
  7460. else
  7461. if test -n "$ac_ct_OTOOL64"; then
  7462. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7463. else
  7464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7465. for as_dir in $PATH
  7466. do
  7467. IFS=$as_save_IFS
  7468. test -z "$as_dir" && as_dir=.
  7469. for ac_exec_ext in '' $ac_executable_extensions; do
  7470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7471. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7473. break 2
  7474. fi
  7475. done
  7476. done
  7477. IFS=$as_save_IFS
  7478. fi
  7479. fi
  7480. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7481. if test -n "$ac_ct_OTOOL64"; then
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7483. $as_echo "$ac_ct_OTOOL64" >&6; }
  7484. else
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7486. $as_echo "no" >&6; }
  7487. fi
  7488. if test "x$ac_ct_OTOOL64" = x; then
  7489. OTOOL64=":"
  7490. else
  7491. case $cross_compiling:$ac_tool_warned in
  7492. yes:)
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7495. ac_tool_warned=yes ;;
  7496. esac
  7497. OTOOL64=$ac_ct_OTOOL64
  7498. fi
  7499. else
  7500. OTOOL64="$ac_cv_prog_OTOOL64"
  7501. fi
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7503. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7504. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7505. $as_echo_n "(cached) " >&6
  7506. else
  7507. lt_cv_apple_cc_single_mod=no
  7508. if test -z "${LT_MULTI_MODULE}"; then
  7509. # By default we will add the -single_module flag. You can override
  7510. # by either setting the environment variable LT_MULTI_MODULE
  7511. # non-empty at configure time, or by adding -multi_module to the
  7512. # link flags.
  7513. rm -rf libconftest.dylib*
  7514. echo "int foo(void){return 1;}" > conftest.c
  7515. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7516. -dynamiclib -Wl,-single_module conftest.c" >&5
  7517. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7518. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7519. _lt_result=$?
  7520. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7521. lt_cv_apple_cc_single_mod=yes
  7522. else
  7523. cat conftest.err >&5
  7524. fi
  7525. rm -rf libconftest.dylib*
  7526. rm -f conftest.*
  7527. fi
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7530. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7532. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7533. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7534. $as_echo_n "(cached) " >&6
  7535. else
  7536. lt_cv_ld_exported_symbols_list=no
  7537. save_LDFLAGS=$LDFLAGS
  7538. echo "_main" > conftest.sym
  7539. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7541. /* end confdefs.h. */
  7542. int
  7543. main ()
  7544. {
  7545. ;
  7546. return 0;
  7547. }
  7548. _ACEOF
  7549. if ac_fn_c_try_link "$LINENO"; then :
  7550. lt_cv_ld_exported_symbols_list=yes
  7551. else
  7552. lt_cv_ld_exported_symbols_list=no
  7553. fi
  7554. rm -f core conftest.err conftest.$ac_objext \
  7555. conftest$ac_exeext conftest.$ac_ext
  7556. LDFLAGS="$save_LDFLAGS"
  7557. fi
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7559. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7561. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7562. if ${lt_cv_ld_force_load+:} false; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. lt_cv_ld_force_load=no
  7566. cat > conftest.c << _LT_EOF
  7567. int forced_loaded() { return 2;}
  7568. _LT_EOF
  7569. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7570. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7571. echo "$AR cru libconftest.a conftest.o" >&5
  7572. $AR cru libconftest.a conftest.o 2>&5
  7573. cat > conftest.c << _LT_EOF
  7574. int main() { return 0;}
  7575. _LT_EOF
  7576. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7577. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7578. _lt_result=$?
  7579. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7580. lt_cv_ld_force_load=yes
  7581. else
  7582. cat conftest.err >&5
  7583. fi
  7584. rm -f conftest.err libconftest.a conftest conftest.c
  7585. rm -rf conftest.dSYM
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7588. $as_echo "$lt_cv_ld_force_load" >&6; }
  7589. case $host_os in
  7590. rhapsody* | darwin1.[012])
  7591. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7592. darwin1.*)
  7593. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7594. darwin*) # darwin 5.x on
  7595. # if running on 10.5 or later, the deployment target defaults
  7596. # to the OS version, if on x86, and 10.4, the deployment
  7597. # target defaults to 10.4. Don't you love it?
  7598. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7599. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7600. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7601. 10.[012][,.]*)
  7602. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7603. 10.*)
  7604. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7605. esac
  7606. ;;
  7607. esac
  7608. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7609. _lt_dar_single_mod='$single_module'
  7610. fi
  7611. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7612. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7613. else
  7614. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7615. fi
  7616. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7617. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7618. else
  7619. _lt_dsymutil=
  7620. fi
  7621. ;;
  7622. esac
  7623. for ac_header in dlfcn.h
  7624. do :
  7625. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7626. "
  7627. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7628. cat >>confdefs.h <<_ACEOF
  7629. #define HAVE_DLFCN_H 1
  7630. _ACEOF
  7631. fi
  7632. done
  7633. # Set options
  7634. enable_dlopen=no
  7635. enable_win32_dll=no
  7636. # Check whether --enable-shared was given.
  7637. if test "${enable_shared+set}" = set; then :
  7638. enableval=$enable_shared; p=${PACKAGE-default}
  7639. case $enableval in
  7640. yes) enable_shared=yes ;;
  7641. no) enable_shared=no ;;
  7642. *)
  7643. enable_shared=no
  7644. # Look at the argument we got. We use all the common list separators.
  7645. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7646. for pkg in $enableval; do
  7647. IFS="$lt_save_ifs"
  7648. if test "X$pkg" = "X$p"; then
  7649. enable_shared=yes
  7650. fi
  7651. done
  7652. IFS="$lt_save_ifs"
  7653. ;;
  7654. esac
  7655. else
  7656. enable_shared=yes
  7657. fi
  7658. # Check whether --enable-static was given.
  7659. if test "${enable_static+set}" = set; then :
  7660. enableval=$enable_static; p=${PACKAGE-default}
  7661. case $enableval in
  7662. yes) enable_static=yes ;;
  7663. no) enable_static=no ;;
  7664. *)
  7665. enable_static=no
  7666. # Look at the argument we got. We use all the common list separators.
  7667. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7668. for pkg in $enableval; do
  7669. IFS="$lt_save_ifs"
  7670. if test "X$pkg" = "X$p"; then
  7671. enable_static=yes
  7672. fi
  7673. done
  7674. IFS="$lt_save_ifs"
  7675. ;;
  7676. esac
  7677. else
  7678. enable_static=yes
  7679. fi
  7680. # Check whether --with-pic was given.
  7681. if test "${with_pic+set}" = set; then :
  7682. withval=$with_pic; pic_mode="$withval"
  7683. else
  7684. pic_mode=default
  7685. fi
  7686. test -z "$pic_mode" && pic_mode=default
  7687. # Check whether --enable-fast-install was given.
  7688. if test "${enable_fast_install+set}" = set; then :
  7689. enableval=$enable_fast_install; p=${PACKAGE-default}
  7690. case $enableval in
  7691. yes) enable_fast_install=yes ;;
  7692. no) enable_fast_install=no ;;
  7693. *)
  7694. enable_fast_install=no
  7695. # Look at the argument we got. We use all the common list separators.
  7696. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7697. for pkg in $enableval; do
  7698. IFS="$lt_save_ifs"
  7699. if test "X$pkg" = "X$p"; then
  7700. enable_fast_install=yes
  7701. fi
  7702. done
  7703. IFS="$lt_save_ifs"
  7704. ;;
  7705. esac
  7706. else
  7707. enable_fast_install=yes
  7708. fi
  7709. # This can be used to rebuild libtool when needed
  7710. LIBTOOL_DEPS="$ltmain"
  7711. # Always use our own libtool.
  7712. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7713. test -z "$LN_S" && LN_S="ln -s"
  7714. if test -n "${ZSH_VERSION+set}" ; then
  7715. setopt NO_GLOB_SUBST
  7716. fi
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7718. $as_echo_n "checking for objdir... " >&6; }
  7719. if ${lt_cv_objdir+:} false; then :
  7720. $as_echo_n "(cached) " >&6
  7721. else
  7722. rm -f .libs 2>/dev/null
  7723. mkdir .libs 2>/dev/null
  7724. if test -d .libs; then
  7725. lt_cv_objdir=.libs
  7726. else
  7727. # MS-DOS does not allow filenames that begin with a dot.
  7728. lt_cv_objdir=_libs
  7729. fi
  7730. rmdir .libs 2>/dev/null
  7731. fi
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7733. $as_echo "$lt_cv_objdir" >&6; }
  7734. objdir=$lt_cv_objdir
  7735. cat >>confdefs.h <<_ACEOF
  7736. #define LT_OBJDIR "$lt_cv_objdir/"
  7737. _ACEOF
  7738. case $host_os in
  7739. aix3*)
  7740. # AIX sometimes has problems with the GCC collect2 program. For some
  7741. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7742. # vanish in a puff of smoke.
  7743. if test "X${COLLECT_NAMES+set}" != Xset; then
  7744. COLLECT_NAMES=
  7745. export COLLECT_NAMES
  7746. fi
  7747. ;;
  7748. esac
  7749. # Global variables:
  7750. ofile=libtool
  7751. can_build_shared=yes
  7752. # All known linkers require a `.a' archive for static linking (except MSVC,
  7753. # which needs '.lib').
  7754. libext=a
  7755. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7756. old_CC="$CC"
  7757. old_CFLAGS="$CFLAGS"
  7758. # Set sane defaults for various variables
  7759. test -z "$CC" && CC=cc
  7760. test -z "$LTCC" && LTCC=$CC
  7761. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7762. test -z "$LD" && LD=ld
  7763. test -z "$ac_objext" && ac_objext=o
  7764. for cc_temp in $compiler""; do
  7765. case $cc_temp in
  7766. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7767. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7768. \-*) ;;
  7769. *) break;;
  7770. esac
  7771. done
  7772. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7773. # Only perform the check for file, if the check method requires it
  7774. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7775. case $deplibs_check_method in
  7776. file_magic*)
  7777. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7779. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7780. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7781. $as_echo_n "(cached) " >&6
  7782. else
  7783. case $MAGIC_CMD in
  7784. [\\/*] | ?:[\\/]*)
  7785. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7786. ;;
  7787. *)
  7788. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7789. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7790. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7791. for ac_dir in $ac_dummy; do
  7792. IFS="$lt_save_ifs"
  7793. test -z "$ac_dir" && ac_dir=.
  7794. if test -f $ac_dir/${ac_tool_prefix}file; then
  7795. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7796. if test -n "$file_magic_test_file"; then
  7797. case $deplibs_check_method in
  7798. "file_magic "*)
  7799. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7800. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7801. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7802. $EGREP "$file_magic_regex" > /dev/null; then
  7803. :
  7804. else
  7805. cat <<_LT_EOF 1>&2
  7806. *** Warning: the command libtool uses to detect shared libraries,
  7807. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7808. *** The result is that libtool may fail to recognize shared libraries
  7809. *** as such. This will affect the creation of libtool libraries that
  7810. *** depend on shared libraries, but programs linked with such libtool
  7811. *** libraries will work regardless of this problem. Nevertheless, you
  7812. *** may want to report the problem to your system manager and/or to
  7813. *** bug-libtool@gnu.org
  7814. _LT_EOF
  7815. fi ;;
  7816. esac
  7817. fi
  7818. break
  7819. fi
  7820. done
  7821. IFS="$lt_save_ifs"
  7822. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7823. ;;
  7824. esac
  7825. fi
  7826. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7827. if test -n "$MAGIC_CMD"; then
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7829. $as_echo "$MAGIC_CMD" >&6; }
  7830. else
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7832. $as_echo "no" >&6; }
  7833. fi
  7834. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7835. if test -n "$ac_tool_prefix"; then
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7837. $as_echo_n "checking for file... " >&6; }
  7838. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7839. $as_echo_n "(cached) " >&6
  7840. else
  7841. case $MAGIC_CMD in
  7842. [\\/*] | ?:[\\/]*)
  7843. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7844. ;;
  7845. *)
  7846. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7847. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7848. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7849. for ac_dir in $ac_dummy; do
  7850. IFS="$lt_save_ifs"
  7851. test -z "$ac_dir" && ac_dir=.
  7852. if test -f $ac_dir/file; then
  7853. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7854. if test -n "$file_magic_test_file"; then
  7855. case $deplibs_check_method in
  7856. "file_magic "*)
  7857. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7858. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7859. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7860. $EGREP "$file_magic_regex" > /dev/null; then
  7861. :
  7862. else
  7863. cat <<_LT_EOF 1>&2
  7864. *** Warning: the command libtool uses to detect shared libraries,
  7865. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7866. *** The result is that libtool may fail to recognize shared libraries
  7867. *** as such. This will affect the creation of libtool libraries that
  7868. *** depend on shared libraries, but programs linked with such libtool
  7869. *** libraries will work regardless of this problem. Nevertheless, you
  7870. *** may want to report the problem to your system manager and/or to
  7871. *** bug-libtool@gnu.org
  7872. _LT_EOF
  7873. fi ;;
  7874. esac
  7875. fi
  7876. break
  7877. fi
  7878. done
  7879. IFS="$lt_save_ifs"
  7880. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7881. ;;
  7882. esac
  7883. fi
  7884. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7885. if test -n "$MAGIC_CMD"; then
  7886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7887. $as_echo "$MAGIC_CMD" >&6; }
  7888. else
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7890. $as_echo "no" >&6; }
  7891. fi
  7892. else
  7893. MAGIC_CMD=:
  7894. fi
  7895. fi
  7896. fi
  7897. ;;
  7898. esac
  7899. # Use C for the default configuration in the libtool script
  7900. lt_save_CC="$CC"
  7901. ac_ext=c
  7902. ac_cpp='$CPP $CPPFLAGS'
  7903. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7904. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7905. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7906. # Source file extension for C test sources.
  7907. ac_ext=c
  7908. # Object file extension for compiled C test sources.
  7909. objext=o
  7910. objext=$objext
  7911. # Code to be used in simple compile tests
  7912. lt_simple_compile_test_code="int some_variable = 0;"
  7913. # Code to be used in simple link tests
  7914. lt_simple_link_test_code='int main(){return(0);}'
  7915. # If no C compiler was specified, use CC.
  7916. LTCC=${LTCC-"$CC"}
  7917. # If no C compiler flags were specified, use CFLAGS.
  7918. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7919. # Allow CC to be a program name with arguments.
  7920. compiler=$CC
  7921. # Save the default compiler, since it gets overwritten when the other
  7922. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7923. compiler_DEFAULT=$CC
  7924. # save warnings/boilerplate of simple test code
  7925. ac_outfile=conftest.$ac_objext
  7926. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7927. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7928. _lt_compiler_boilerplate=`cat conftest.err`
  7929. $RM conftest*
  7930. ac_outfile=conftest.$ac_objext
  7931. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7932. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7933. _lt_linker_boilerplate=`cat conftest.err`
  7934. $RM -r conftest*
  7935. ## CAVEAT EMPTOR:
  7936. ## There is no encapsulation within the following macros, do not change
  7937. ## the running order or otherwise move them around unless you know exactly
  7938. ## what you are doing...
  7939. if test -n "$compiler"; then
  7940. lt_prog_compiler_no_builtin_flag=
  7941. if test "$GCC" = yes; then
  7942. case $cc_basename in
  7943. nvcc*)
  7944. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7945. *)
  7946. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7947. esac
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7949. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7950. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7951. $as_echo_n "(cached) " >&6
  7952. else
  7953. lt_cv_prog_compiler_rtti_exceptions=no
  7954. ac_outfile=conftest.$ac_objext
  7955. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7956. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7957. # Insert the option either (1) after the last *FLAGS variable, or
  7958. # (2) before a word containing "conftest.", or (3) at the end.
  7959. # Note that $ac_compile itself does not contain backslashes and begins
  7960. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7961. # The option is referenced via a variable to avoid confusing sed.
  7962. lt_compile=`echo "$ac_compile" | $SED \
  7963. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7964. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7965. -e 's:$: $lt_compiler_flag:'`
  7966. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7967. (eval "$lt_compile" 2>conftest.err)
  7968. ac_status=$?
  7969. cat conftest.err >&5
  7970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7971. if (exit $ac_status) && test -s "$ac_outfile"; then
  7972. # The compiler can only warn and ignore the option if not recognized
  7973. # So say no if there are warnings other than the usual output.
  7974. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7975. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7976. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7977. lt_cv_prog_compiler_rtti_exceptions=yes
  7978. fi
  7979. fi
  7980. $RM conftest*
  7981. fi
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7983. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7984. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7985. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7986. else
  7987. :
  7988. fi
  7989. fi
  7990. lt_prog_compiler_wl=
  7991. lt_prog_compiler_pic=
  7992. lt_prog_compiler_static=
  7993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7994. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7995. if test "$GCC" = yes; then
  7996. lt_prog_compiler_wl='-Wl,'
  7997. lt_prog_compiler_static='-static'
  7998. case $host_os in
  7999. aix*)
  8000. # All AIX code is PIC.
  8001. if test "$host_cpu" = ia64; then
  8002. # AIX 5 now supports IA64 processor
  8003. lt_prog_compiler_static='-Bstatic'
  8004. fi
  8005. lt_prog_compiler_pic='-fPIC'
  8006. ;;
  8007. amigaos*)
  8008. case $host_cpu in
  8009. powerpc)
  8010. # see comment about AmigaOS4 .so support
  8011. lt_prog_compiler_pic='-fPIC'
  8012. ;;
  8013. m68k)
  8014. # FIXME: we need at least 68020 code to build shared libraries, but
  8015. # adding the `-m68020' flag to GCC prevents building anything better,
  8016. # like `-m68040'.
  8017. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8018. ;;
  8019. esac
  8020. ;;
  8021. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8022. # PIC is the default for these OSes.
  8023. ;;
  8024. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8025. # This hack is so that the source file can tell whether it is being
  8026. # built for inclusion in a dll (and should export symbols for example).
  8027. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8028. # (--disable-auto-import) libraries
  8029. lt_prog_compiler_pic='-DDLL_EXPORT'
  8030. ;;
  8031. darwin* | rhapsody*)
  8032. # PIC is the default on this platform
  8033. # Common symbols not allowed in MH_DYLIB files
  8034. lt_prog_compiler_pic='-fno-common'
  8035. ;;
  8036. haiku*)
  8037. # PIC is the default for Haiku.
  8038. # The "-static" flag exists, but is broken.
  8039. lt_prog_compiler_static=
  8040. ;;
  8041. hpux*)
  8042. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8043. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8044. # sets the default TLS model and affects inlining.
  8045. case $host_cpu in
  8046. hppa*64*)
  8047. # +Z the default
  8048. ;;
  8049. *)
  8050. lt_prog_compiler_pic='-fPIC'
  8051. ;;
  8052. esac
  8053. ;;
  8054. interix[3-9]*)
  8055. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8056. # Instead, we relocate shared libraries at runtime.
  8057. ;;
  8058. msdosdjgpp*)
  8059. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8060. # on systems that don't support them.
  8061. lt_prog_compiler_can_build_shared=no
  8062. enable_shared=no
  8063. ;;
  8064. *nto* | *qnx*)
  8065. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8066. # it will coredump.
  8067. lt_prog_compiler_pic='-fPIC -shared'
  8068. ;;
  8069. sysv4*MP*)
  8070. if test -d /usr/nec; then
  8071. lt_prog_compiler_pic=-Kconform_pic
  8072. fi
  8073. ;;
  8074. *)
  8075. lt_prog_compiler_pic='-fPIC'
  8076. ;;
  8077. esac
  8078. case $cc_basename in
  8079. nvcc*) # Cuda Compiler Driver 2.2
  8080. lt_prog_compiler_wl='-Xlinker '
  8081. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8082. ;;
  8083. esac
  8084. else
  8085. # PORTME Check for flag to pass linker flags through the system compiler.
  8086. case $host_os in
  8087. aix*)
  8088. lt_prog_compiler_wl='-Wl,'
  8089. if test "$host_cpu" = ia64; then
  8090. # AIX 5 now supports IA64 processor
  8091. lt_prog_compiler_static='-Bstatic'
  8092. else
  8093. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8094. fi
  8095. ;;
  8096. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8097. # This hack is so that the source file can tell whether it is being
  8098. # built for inclusion in a dll (and should export symbols for example).
  8099. lt_prog_compiler_pic='-DDLL_EXPORT'
  8100. ;;
  8101. hpux9* | hpux10* | hpux11*)
  8102. lt_prog_compiler_wl='-Wl,'
  8103. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8104. # not for PA HP-UX.
  8105. case $host_cpu in
  8106. hppa*64*|ia64*)
  8107. # +Z the default
  8108. ;;
  8109. *)
  8110. lt_prog_compiler_pic='+Z'
  8111. ;;
  8112. esac
  8113. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8114. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8115. ;;
  8116. irix5* | irix6* | nonstopux*)
  8117. lt_prog_compiler_wl='-Wl,'
  8118. # PIC (with -KPIC) is the default.
  8119. lt_prog_compiler_static='-non_shared'
  8120. ;;
  8121. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8122. case $cc_basename in
  8123. # old Intel for x86_64 which still supported -KPIC.
  8124. ecc*)
  8125. lt_prog_compiler_wl='-Wl,'
  8126. lt_prog_compiler_pic='-KPIC'
  8127. lt_prog_compiler_static='-static'
  8128. ;;
  8129. # icc used to be incompatible with GCC.
  8130. # ICC 10 doesn't accept -KPIC any more.
  8131. icc* | ifort*)
  8132. lt_prog_compiler_wl='-Wl,'
  8133. lt_prog_compiler_pic='-fPIC'
  8134. lt_prog_compiler_static='-static'
  8135. ;;
  8136. # Lahey Fortran 8.1.
  8137. lf95*)
  8138. lt_prog_compiler_wl='-Wl,'
  8139. lt_prog_compiler_pic='--shared'
  8140. lt_prog_compiler_static='--static'
  8141. ;;
  8142. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8143. # Portland Group compilers (*not* the Pentium gcc compiler,
  8144. # which looks to be a dead project)
  8145. lt_prog_compiler_wl='-Wl,'
  8146. lt_prog_compiler_pic='-fpic'
  8147. lt_prog_compiler_static='-Bstatic'
  8148. ;;
  8149. ccc*)
  8150. lt_prog_compiler_wl='-Wl,'
  8151. # All Alpha code is PIC.
  8152. lt_prog_compiler_static='-non_shared'
  8153. ;;
  8154. xl* | bgxl* | bgf* | mpixl*)
  8155. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8156. lt_prog_compiler_wl='-Wl,'
  8157. lt_prog_compiler_pic='-qpic'
  8158. lt_prog_compiler_static='-qstaticlink'
  8159. ;;
  8160. *)
  8161. case `$CC -V 2>&1 | sed 5q` in
  8162. *Sun\ F* | *Sun*Fortran*)
  8163. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8164. lt_prog_compiler_pic='-KPIC'
  8165. lt_prog_compiler_static='-Bstatic'
  8166. lt_prog_compiler_wl=''
  8167. ;;
  8168. *Sun\ C*)
  8169. # Sun C 5.9
  8170. lt_prog_compiler_pic='-KPIC'
  8171. lt_prog_compiler_static='-Bstatic'
  8172. lt_prog_compiler_wl='-Wl,'
  8173. ;;
  8174. esac
  8175. ;;
  8176. esac
  8177. ;;
  8178. newsos6)
  8179. lt_prog_compiler_pic='-KPIC'
  8180. lt_prog_compiler_static='-Bstatic'
  8181. ;;
  8182. *nto* | *qnx*)
  8183. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8184. # it will coredump.
  8185. lt_prog_compiler_pic='-fPIC -shared'
  8186. ;;
  8187. osf3* | osf4* | osf5*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. # All OSF/1 code is PIC.
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. rdos*)
  8193. lt_prog_compiler_static='-non_shared'
  8194. ;;
  8195. solaris*)
  8196. lt_prog_compiler_pic='-KPIC'
  8197. lt_prog_compiler_static='-Bstatic'
  8198. case $cc_basename in
  8199. f77* | f90* | f95*)
  8200. lt_prog_compiler_wl='-Qoption ld ';;
  8201. *)
  8202. lt_prog_compiler_wl='-Wl,';;
  8203. esac
  8204. ;;
  8205. sunos4*)
  8206. lt_prog_compiler_wl='-Qoption ld '
  8207. lt_prog_compiler_pic='-PIC'
  8208. lt_prog_compiler_static='-Bstatic'
  8209. ;;
  8210. sysv4 | sysv4.2uw2* | sysv4.3*)
  8211. lt_prog_compiler_wl='-Wl,'
  8212. lt_prog_compiler_pic='-KPIC'
  8213. lt_prog_compiler_static='-Bstatic'
  8214. ;;
  8215. sysv4*MP*)
  8216. if test -d /usr/nec ;then
  8217. lt_prog_compiler_pic='-Kconform_pic'
  8218. lt_prog_compiler_static='-Bstatic'
  8219. fi
  8220. ;;
  8221. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. lt_prog_compiler_pic='-KPIC'
  8224. lt_prog_compiler_static='-Bstatic'
  8225. ;;
  8226. unicos*)
  8227. lt_prog_compiler_wl='-Wl,'
  8228. lt_prog_compiler_can_build_shared=no
  8229. ;;
  8230. uts4*)
  8231. lt_prog_compiler_pic='-pic'
  8232. lt_prog_compiler_static='-Bstatic'
  8233. ;;
  8234. *)
  8235. lt_prog_compiler_can_build_shared=no
  8236. ;;
  8237. esac
  8238. fi
  8239. case $host_os in
  8240. # For platforms which do not support PIC, -DPIC is meaningless:
  8241. *djgpp*)
  8242. lt_prog_compiler_pic=
  8243. ;;
  8244. *)
  8245. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8246. ;;
  8247. esac
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8249. $as_echo "$lt_prog_compiler_pic" >&6; }
  8250. #
  8251. # Check to make sure the PIC flag actually works.
  8252. #
  8253. if test -n "$lt_prog_compiler_pic"; then
  8254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8255. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8256. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8257. $as_echo_n "(cached) " >&6
  8258. else
  8259. lt_cv_prog_compiler_pic_works=no
  8260. ac_outfile=conftest.$ac_objext
  8261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8262. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8263. # Insert the option either (1) after the last *FLAGS variable, or
  8264. # (2) before a word containing "conftest.", or (3) at the end.
  8265. # Note that $ac_compile itself does not contain backslashes and begins
  8266. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8267. # The option is referenced via a variable to avoid confusing sed.
  8268. lt_compile=`echo "$ac_compile" | $SED \
  8269. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8270. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8271. -e 's:$: $lt_compiler_flag:'`
  8272. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8273. (eval "$lt_compile" 2>conftest.err)
  8274. ac_status=$?
  8275. cat conftest.err >&5
  8276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8277. if (exit $ac_status) && test -s "$ac_outfile"; then
  8278. # The compiler can only warn and ignore the option if not recognized
  8279. # So say no if there are warnings other than the usual output.
  8280. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8281. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8282. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8283. lt_cv_prog_compiler_pic_works=yes
  8284. fi
  8285. fi
  8286. $RM conftest*
  8287. fi
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8289. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8290. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8291. case $lt_prog_compiler_pic in
  8292. "" | " "*) ;;
  8293. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8294. esac
  8295. else
  8296. lt_prog_compiler_pic=
  8297. lt_prog_compiler_can_build_shared=no
  8298. fi
  8299. fi
  8300. #
  8301. # Check to make sure the static flag actually works.
  8302. #
  8303. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8305. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8306. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8307. $as_echo_n "(cached) " >&6
  8308. else
  8309. lt_cv_prog_compiler_static_works=no
  8310. save_LDFLAGS="$LDFLAGS"
  8311. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8312. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8313. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8314. # The linker can only warn and ignore the option if not recognized
  8315. # So say no if there are warnings
  8316. if test -s conftest.err; then
  8317. # Append any errors to the config.log.
  8318. cat conftest.err 1>&5
  8319. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8321. if diff conftest.exp conftest.er2 >/dev/null; then
  8322. lt_cv_prog_compiler_static_works=yes
  8323. fi
  8324. else
  8325. lt_cv_prog_compiler_static_works=yes
  8326. fi
  8327. fi
  8328. $RM -r conftest*
  8329. LDFLAGS="$save_LDFLAGS"
  8330. fi
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8332. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8333. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8334. :
  8335. else
  8336. lt_prog_compiler_static=
  8337. fi
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8339. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8340. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8341. $as_echo_n "(cached) " >&6
  8342. else
  8343. lt_cv_prog_compiler_c_o=no
  8344. $RM -r conftest 2>/dev/null
  8345. mkdir conftest
  8346. cd conftest
  8347. mkdir out
  8348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8349. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8350. # Insert the option either (1) after the last *FLAGS variable, or
  8351. # (2) before a word containing "conftest.", or (3) at the end.
  8352. # Note that $ac_compile itself does not contain backslashes and begins
  8353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8354. lt_compile=`echo "$ac_compile" | $SED \
  8355. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8356. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8357. -e 's:$: $lt_compiler_flag:'`
  8358. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8359. (eval "$lt_compile" 2>out/conftest.err)
  8360. ac_status=$?
  8361. cat out/conftest.err >&5
  8362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8363. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8364. then
  8365. # The compiler can only warn and ignore the option if not recognized
  8366. # So say no if there are warnings
  8367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8368. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8369. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8370. lt_cv_prog_compiler_c_o=yes
  8371. fi
  8372. fi
  8373. chmod u+w . 2>&5
  8374. $RM conftest*
  8375. # SGI C++ compiler will create directory out/ii_files/ for
  8376. # template instantiation
  8377. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8378. $RM out/* && rmdir out
  8379. cd ..
  8380. $RM -r conftest
  8381. $RM conftest*
  8382. fi
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8384. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8386. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8387. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8388. $as_echo_n "(cached) " >&6
  8389. else
  8390. lt_cv_prog_compiler_c_o=no
  8391. $RM -r conftest 2>/dev/null
  8392. mkdir conftest
  8393. cd conftest
  8394. mkdir out
  8395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8396. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8397. # Insert the option either (1) after the last *FLAGS variable, or
  8398. # (2) before a word containing "conftest.", or (3) at the end.
  8399. # Note that $ac_compile itself does not contain backslashes and begins
  8400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8401. lt_compile=`echo "$ac_compile" | $SED \
  8402. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8403. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8404. -e 's:$: $lt_compiler_flag:'`
  8405. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8406. (eval "$lt_compile" 2>out/conftest.err)
  8407. ac_status=$?
  8408. cat out/conftest.err >&5
  8409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8410. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8411. then
  8412. # The compiler can only warn and ignore the option if not recognized
  8413. # So say no if there are warnings
  8414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8415. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8416. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8417. lt_cv_prog_compiler_c_o=yes
  8418. fi
  8419. fi
  8420. chmod u+w . 2>&5
  8421. $RM conftest*
  8422. # SGI C++ compiler will create directory out/ii_files/ for
  8423. # template instantiation
  8424. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8425. $RM out/* && rmdir out
  8426. cd ..
  8427. $RM -r conftest
  8428. $RM conftest*
  8429. fi
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8431. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8432. hard_links="nottested"
  8433. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8434. # do not overwrite the value of need_locks provided by the user
  8435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8436. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8437. hard_links=yes
  8438. $RM conftest*
  8439. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8440. touch conftest.a
  8441. ln conftest.a conftest.b 2>&5 || hard_links=no
  8442. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8444. $as_echo "$hard_links" >&6; }
  8445. if test "$hard_links" = no; then
  8446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8447. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8448. need_locks=warn
  8449. fi
  8450. else
  8451. need_locks=no
  8452. fi
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8454. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8455. runpath_var=
  8456. allow_undefined_flag=
  8457. always_export_symbols=no
  8458. archive_cmds=
  8459. archive_expsym_cmds=
  8460. compiler_needs_object=no
  8461. enable_shared_with_static_runtimes=no
  8462. export_dynamic_flag_spec=
  8463. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8464. hardcode_automatic=no
  8465. hardcode_direct=no
  8466. hardcode_direct_absolute=no
  8467. hardcode_libdir_flag_spec=
  8468. hardcode_libdir_flag_spec_ld=
  8469. hardcode_libdir_separator=
  8470. hardcode_minus_L=no
  8471. hardcode_shlibpath_var=unsupported
  8472. inherit_rpath=no
  8473. link_all_deplibs=unknown
  8474. module_cmds=
  8475. module_expsym_cmds=
  8476. old_archive_from_new_cmds=
  8477. old_archive_from_expsyms_cmds=
  8478. thread_safe_flag_spec=
  8479. whole_archive_flag_spec=
  8480. # include_expsyms should be a list of space-separated symbols to be *always*
  8481. # included in the symbol list
  8482. include_expsyms=
  8483. # exclude_expsyms can be an extended regexp of symbols to exclude
  8484. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8485. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8486. # as well as any symbol that contains `d'.
  8487. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8488. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8489. # platforms (ab)use it in PIC code, but their linkers get confused if
  8490. # the symbol is explicitly referenced. Since portable code cannot
  8491. # rely on this symbol name, it's probably fine to never include it in
  8492. # preloaded symbol tables.
  8493. # Exclude shared library initialization/finalization symbols.
  8494. extract_expsyms_cmds=
  8495. case $host_os in
  8496. cygwin* | mingw* | pw32* | cegcc*)
  8497. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8498. # When not using gcc, we currently assume that we are using
  8499. # Microsoft Visual C++.
  8500. if test "$GCC" != yes; then
  8501. with_gnu_ld=no
  8502. fi
  8503. ;;
  8504. interix*)
  8505. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8506. with_gnu_ld=yes
  8507. ;;
  8508. openbsd*)
  8509. with_gnu_ld=no
  8510. ;;
  8511. esac
  8512. ld_shlibs=yes
  8513. # On some targets, GNU ld is compatible enough with the native linker
  8514. # that we're better off using the native interface for both.
  8515. lt_use_gnu_ld_interface=no
  8516. if test "$with_gnu_ld" = yes; then
  8517. case $host_os in
  8518. aix*)
  8519. # The AIX port of GNU ld has always aspired to compatibility
  8520. # with the native linker. However, as the warning in the GNU ld
  8521. # block says, versions before 2.19.5* couldn't really create working
  8522. # shared libraries, regardless of the interface used.
  8523. case `$LD -v 2>&1` in
  8524. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8525. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8526. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8527. *)
  8528. lt_use_gnu_ld_interface=yes
  8529. ;;
  8530. esac
  8531. ;;
  8532. *)
  8533. lt_use_gnu_ld_interface=yes
  8534. ;;
  8535. esac
  8536. fi
  8537. if test "$lt_use_gnu_ld_interface" = yes; then
  8538. # If archive_cmds runs LD, not CC, wlarc should be empty
  8539. wlarc='${wl}'
  8540. # Set some defaults for GNU ld with shared library support. These
  8541. # are reset later if shared libraries are not supported. Putting them
  8542. # here allows them to be overridden if necessary.
  8543. runpath_var=LD_RUN_PATH
  8544. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8545. export_dynamic_flag_spec='${wl}--export-dynamic'
  8546. # ancient GNU ld didn't support --whole-archive et. al.
  8547. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8548. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8549. else
  8550. whole_archive_flag_spec=
  8551. fi
  8552. supports_anon_versioning=no
  8553. case `$LD -v 2>&1` in
  8554. *GNU\ gold*) supports_anon_versioning=yes ;;
  8555. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8556. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8557. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8558. *\ 2.11.*) ;; # other 2.11 versions
  8559. *) supports_anon_versioning=yes ;;
  8560. esac
  8561. # See if GNU ld supports shared libraries.
  8562. case $host_os in
  8563. aix[3-9]*)
  8564. # On AIX/PPC, the GNU linker is very broken
  8565. if test "$host_cpu" != ia64; then
  8566. ld_shlibs=no
  8567. cat <<_LT_EOF 1>&2
  8568. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8569. *** to be unable to reliably create shared libraries on AIX.
  8570. *** Therefore, libtool is disabling shared libraries support. If you
  8571. *** really care for shared libraries, you may want to install binutils
  8572. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8573. *** You will then need to restart the configuration process.
  8574. _LT_EOF
  8575. fi
  8576. ;;
  8577. amigaos*)
  8578. case $host_cpu in
  8579. powerpc)
  8580. # see comment about AmigaOS4 .so support
  8581. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8582. archive_expsym_cmds=''
  8583. ;;
  8584. m68k)
  8585. 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)'
  8586. hardcode_libdir_flag_spec='-L$libdir'
  8587. hardcode_minus_L=yes
  8588. ;;
  8589. esac
  8590. ;;
  8591. beos*)
  8592. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8593. allow_undefined_flag=unsupported
  8594. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8595. # support --undefined. This deserves some investigation. FIXME
  8596. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8597. else
  8598. ld_shlibs=no
  8599. fi
  8600. ;;
  8601. cygwin* | mingw* | pw32* | cegcc*)
  8602. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8603. # as there is no search path for DLLs.
  8604. hardcode_libdir_flag_spec='-L$libdir'
  8605. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8606. allow_undefined_flag=unsupported
  8607. always_export_symbols=no
  8608. enable_shared_with_static_runtimes=yes
  8609. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8610. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8611. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8612. # If the export-symbols file already is a .def file (1st line
  8613. # is EXPORTS), use it as is; otherwise, prepend...
  8614. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8615. cp $export_symbols $output_objdir/$soname.def;
  8616. else
  8617. echo EXPORTS > $output_objdir/$soname.def;
  8618. cat $export_symbols >> $output_objdir/$soname.def;
  8619. fi~
  8620. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8621. else
  8622. ld_shlibs=no
  8623. fi
  8624. ;;
  8625. haiku*)
  8626. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8627. link_all_deplibs=yes
  8628. ;;
  8629. interix[3-9]*)
  8630. hardcode_direct=no
  8631. hardcode_shlibpath_var=no
  8632. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8633. export_dynamic_flag_spec='${wl}-E'
  8634. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8635. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8636. # default) and relocated if they conflict, which is a slow very memory
  8637. # consuming and fragmenting process. To avoid this, we pick a random,
  8638. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8639. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8640. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8641. 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'
  8642. ;;
  8643. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8644. tmp_diet=no
  8645. if test "$host_os" = linux-dietlibc; then
  8646. case $cc_basename in
  8647. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8648. esac
  8649. fi
  8650. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8651. && test "$tmp_diet" = no
  8652. then
  8653. tmp_addflag=' $pic_flag'
  8654. tmp_sharedflag='-shared'
  8655. case $cc_basename,$host_cpu in
  8656. pgcc*) # Portland Group C compiler
  8657. 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'
  8658. tmp_addflag=' $pic_flag'
  8659. ;;
  8660. pgf77* | pgf90* | pgf95* | pgfortran*)
  8661. # Portland Group f77 and f90 compilers
  8662. 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'
  8663. tmp_addflag=' $pic_flag -Mnomain' ;;
  8664. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8665. tmp_addflag=' -i_dynamic' ;;
  8666. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8667. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8668. ifc* | ifort*) # Intel Fortran compiler
  8669. tmp_addflag=' -nofor_main' ;;
  8670. lf95*) # Lahey Fortran 8.1
  8671. whole_archive_flag_spec=
  8672. tmp_sharedflag='--shared' ;;
  8673. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8674. tmp_sharedflag='-qmkshrobj'
  8675. tmp_addflag= ;;
  8676. nvcc*) # Cuda Compiler Driver 2.2
  8677. 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'
  8678. compiler_needs_object=yes
  8679. ;;
  8680. esac
  8681. case `$CC -V 2>&1 | sed 5q` in
  8682. *Sun\ C*) # Sun C 5.9
  8683. 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'
  8684. compiler_needs_object=yes
  8685. tmp_sharedflag='-G' ;;
  8686. *Sun\ F*) # Sun Fortran 8.3
  8687. tmp_sharedflag='-G' ;;
  8688. esac
  8689. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8690. if test "x$supports_anon_versioning" = xyes; then
  8691. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8692. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8693. echo "local: *; };" >> $output_objdir/$libname.ver~
  8694. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8695. fi
  8696. case $cc_basename in
  8697. xlf* | bgf* | bgxlf* | mpixlf*)
  8698. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8699. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8700. hardcode_libdir_flag_spec=
  8701. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8702. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8703. if test "x$supports_anon_versioning" = xyes; then
  8704. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8705. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8706. echo "local: *; };" >> $output_objdir/$libname.ver~
  8707. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8708. fi
  8709. ;;
  8710. esac
  8711. else
  8712. ld_shlibs=no
  8713. fi
  8714. ;;
  8715. netbsd*)
  8716. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8717. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8718. wlarc=
  8719. else
  8720. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8721. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8722. fi
  8723. ;;
  8724. solaris*)
  8725. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8726. ld_shlibs=no
  8727. cat <<_LT_EOF 1>&2
  8728. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8729. *** create shared libraries on Solaris systems. Therefore, libtool
  8730. *** is disabling shared libraries support. We urge you to upgrade GNU
  8731. *** binutils to release 2.9.1 or newer. Another option is to modify
  8732. *** your PATH or compiler configuration so that the native linker is
  8733. *** used, and then restart.
  8734. _LT_EOF
  8735. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8737. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8738. else
  8739. ld_shlibs=no
  8740. fi
  8741. ;;
  8742. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8743. case `$LD -v 2>&1` in
  8744. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8745. ld_shlibs=no
  8746. cat <<_LT_EOF 1>&2
  8747. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8748. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8749. *** is disabling shared libraries support. We urge you to upgrade GNU
  8750. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8751. *** your PATH or compiler configuration so that the native linker is
  8752. *** used, and then restart.
  8753. _LT_EOF
  8754. ;;
  8755. *)
  8756. # For security reasons, it is highly recommended that you always
  8757. # use absolute paths for naming shared libraries, and exclude the
  8758. # DT_RUNPATH tag from executables and libraries. But doing so
  8759. # requires that you compile everything twice, which is a pain.
  8760. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8761. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8762. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8763. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8764. else
  8765. ld_shlibs=no
  8766. fi
  8767. ;;
  8768. esac
  8769. ;;
  8770. sunos4*)
  8771. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8772. wlarc=
  8773. hardcode_direct=yes
  8774. hardcode_shlibpath_var=no
  8775. ;;
  8776. *)
  8777. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8778. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8779. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8780. else
  8781. ld_shlibs=no
  8782. fi
  8783. ;;
  8784. esac
  8785. if test "$ld_shlibs" = no; then
  8786. runpath_var=
  8787. hardcode_libdir_flag_spec=
  8788. export_dynamic_flag_spec=
  8789. whole_archive_flag_spec=
  8790. fi
  8791. else
  8792. # PORTME fill in a description of your system's linker (not GNU ld)
  8793. case $host_os in
  8794. aix3*)
  8795. allow_undefined_flag=unsupported
  8796. always_export_symbols=yes
  8797. 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'
  8798. # Note: this linker hardcodes the directories in LIBPATH if there
  8799. # are no directories specified by -L.
  8800. hardcode_minus_L=yes
  8801. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8802. # Neither direct hardcoding nor static linking is supported with a
  8803. # broken collect2.
  8804. hardcode_direct=unsupported
  8805. fi
  8806. ;;
  8807. aix[4-9]*)
  8808. if test "$host_cpu" = ia64; then
  8809. # On IA64, the linker does run time linking by default, so we don't
  8810. # have to do anything special.
  8811. aix_use_runtimelinking=no
  8812. exp_sym_flag='-Bexport'
  8813. no_entry_flag=""
  8814. else
  8815. # If we're using GNU nm, then we don't want the "-C" option.
  8816. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8817. # Also, AIX nm treats weak defined symbols like other global
  8818. # defined symbols, whereas GNU nm marks them as "W".
  8819. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8820. 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'
  8821. else
  8822. 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'
  8823. fi
  8824. aix_use_runtimelinking=no
  8825. # Test if we are trying to use run time linking or normal
  8826. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8827. # need to do runtime linking.
  8828. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8829. for ld_flag in $LDFLAGS; do
  8830. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8831. aix_use_runtimelinking=yes
  8832. break
  8833. fi
  8834. done
  8835. ;;
  8836. esac
  8837. exp_sym_flag='-bexport'
  8838. no_entry_flag='-bnoentry'
  8839. fi
  8840. # When large executables or shared objects are built, AIX ld can
  8841. # have problems creating the table of contents. If linking a library
  8842. # or program results in "error TOC overflow" add -mminimal-toc to
  8843. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8844. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8845. archive_cmds=''
  8846. hardcode_direct=yes
  8847. hardcode_direct_absolute=yes
  8848. hardcode_libdir_separator=':'
  8849. link_all_deplibs=yes
  8850. file_list_spec='${wl}-f,'
  8851. if test "$GCC" = yes; then
  8852. case $host_os in aix4.[012]|aix4.[012].*)
  8853. # We only want to do this on AIX 4.2 and lower, the check
  8854. # below for broken collect2 doesn't work under 4.3+
  8855. collect2name=`${CC} -print-prog-name=collect2`
  8856. if test -f "$collect2name" &&
  8857. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8858. then
  8859. # We have reworked collect2
  8860. :
  8861. else
  8862. # We have old collect2
  8863. hardcode_direct=unsupported
  8864. # It fails to find uninstalled libraries when the uninstalled
  8865. # path is not listed in the libpath. Setting hardcode_minus_L
  8866. # to unsupported forces relinking
  8867. hardcode_minus_L=yes
  8868. hardcode_libdir_flag_spec='-L$libdir'
  8869. hardcode_libdir_separator=
  8870. fi
  8871. ;;
  8872. esac
  8873. shared_flag='-shared'
  8874. if test "$aix_use_runtimelinking" = yes; then
  8875. shared_flag="$shared_flag "'${wl}-G'
  8876. fi
  8877. else
  8878. # not using gcc
  8879. if test "$host_cpu" = ia64; then
  8880. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8881. # chokes on -Wl,-G. The following line is correct:
  8882. shared_flag='-G'
  8883. else
  8884. if test "$aix_use_runtimelinking" = yes; then
  8885. shared_flag='${wl}-G'
  8886. else
  8887. shared_flag='${wl}-bM:SRE'
  8888. fi
  8889. fi
  8890. fi
  8891. export_dynamic_flag_spec='${wl}-bexpall'
  8892. # It seems that -bexpall does not export symbols beginning with
  8893. # underscore (_), so it is better to generate a list of symbols to export.
  8894. always_export_symbols=yes
  8895. if test "$aix_use_runtimelinking" = yes; then
  8896. # Warning - without using the other runtime loading flags (-brtl),
  8897. # -berok will link without error, but may produce a broken library.
  8898. allow_undefined_flag='-berok'
  8899. # Determine the default libpath from the value encoded in an
  8900. # empty executable.
  8901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8902. /* end confdefs.h. */
  8903. int
  8904. main ()
  8905. {
  8906. ;
  8907. return 0;
  8908. }
  8909. _ACEOF
  8910. if ac_fn_c_try_link "$LINENO"; then :
  8911. lt_aix_libpath_sed='
  8912. /Import File Strings/,/^$/ {
  8913. /^0/ {
  8914. s/^0 *\(.*\)$/\1/
  8915. p
  8916. }
  8917. }'
  8918. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8919. # Check for a 64-bit object if we didn't find anything.
  8920. if test -z "$aix_libpath"; then
  8921. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8922. fi
  8923. fi
  8924. rm -f core conftest.err conftest.$ac_objext \
  8925. conftest$ac_exeext conftest.$ac_ext
  8926. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8927. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8928. 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"
  8929. else
  8930. if test "$host_cpu" = ia64; then
  8931. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8932. allow_undefined_flag="-z nodefs"
  8933. 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"
  8934. else
  8935. # Determine the default libpath from the value encoded in an
  8936. # empty executable.
  8937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8938. /* end confdefs.h. */
  8939. int
  8940. main ()
  8941. {
  8942. ;
  8943. return 0;
  8944. }
  8945. _ACEOF
  8946. if ac_fn_c_try_link "$LINENO"; then :
  8947. lt_aix_libpath_sed='
  8948. /Import File Strings/,/^$/ {
  8949. /^0/ {
  8950. s/^0 *\(.*\)$/\1/
  8951. p
  8952. }
  8953. }'
  8954. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8955. # Check for a 64-bit object if we didn't find anything.
  8956. if test -z "$aix_libpath"; then
  8957. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8958. fi
  8959. fi
  8960. rm -f core conftest.err conftest.$ac_objext \
  8961. conftest$ac_exeext conftest.$ac_ext
  8962. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8963. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8964. # Warning - without using the other run time loading flags,
  8965. # -berok will link without error, but may produce a broken library.
  8966. no_undefined_flag=' ${wl}-bernotok'
  8967. allow_undefined_flag=' ${wl}-berok'
  8968. if test "$with_gnu_ld" = yes; then
  8969. # We only use this code for GNU lds that support --whole-archive.
  8970. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8971. else
  8972. # Exported symbols can be pulled into shared objects from archives
  8973. whole_archive_flag_spec='$convenience'
  8974. fi
  8975. archive_cmds_need_lc=yes
  8976. # This is similar to how AIX traditionally builds its shared libraries.
  8977. 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'
  8978. fi
  8979. fi
  8980. ;;
  8981. amigaos*)
  8982. case $host_cpu in
  8983. powerpc)
  8984. # see comment about AmigaOS4 .so support
  8985. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8986. archive_expsym_cmds=''
  8987. ;;
  8988. m68k)
  8989. 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)'
  8990. hardcode_libdir_flag_spec='-L$libdir'
  8991. hardcode_minus_L=yes
  8992. ;;
  8993. esac
  8994. ;;
  8995. bsdi[45]*)
  8996. export_dynamic_flag_spec=-rdynamic
  8997. ;;
  8998. cygwin* | mingw* | pw32* | cegcc*)
  8999. # When not using gcc, we currently assume that we are using
  9000. # Microsoft Visual C++.
  9001. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9002. # no search path for DLLs.
  9003. hardcode_libdir_flag_spec=' '
  9004. allow_undefined_flag=unsupported
  9005. # Tell ltmain to make .lib files, not .a files.
  9006. libext=lib
  9007. # Tell ltmain to make .dll files, not .so files.
  9008. shrext_cmds=".dll"
  9009. # FIXME: Setting linknames here is a bad hack.
  9010. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9011. # The linker will automatically build a .lib file if we build a DLL.
  9012. old_archive_from_new_cmds='true'
  9013. # FIXME: Should let the user specify the lib program.
  9014. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9015. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9016. enable_shared_with_static_runtimes=yes
  9017. ;;
  9018. darwin* | rhapsody*)
  9019. archive_cmds_need_lc=no
  9020. hardcode_direct=no
  9021. hardcode_automatic=yes
  9022. hardcode_shlibpath_var=unsupported
  9023. if test "$lt_cv_ld_force_load" = "yes"; then
  9024. 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\"`'
  9025. else
  9026. whole_archive_flag_spec=''
  9027. fi
  9028. link_all_deplibs=yes
  9029. allow_undefined_flag="$_lt_dar_allow_undefined"
  9030. case $cc_basename in
  9031. ifort*) _lt_dar_can_shared=yes ;;
  9032. *) _lt_dar_can_shared=$GCC ;;
  9033. esac
  9034. if test "$_lt_dar_can_shared" = "yes"; then
  9035. output_verbose_link_cmd=func_echo_all
  9036. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9037. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9038. 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}"
  9039. 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}"
  9040. else
  9041. ld_shlibs=no
  9042. fi
  9043. ;;
  9044. dgux*)
  9045. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9046. hardcode_libdir_flag_spec='-L$libdir'
  9047. hardcode_shlibpath_var=no
  9048. ;;
  9049. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9050. # support. Future versions do this automatically, but an explicit c++rt0.o
  9051. # does not break anything, and helps significantly (at the cost of a little
  9052. # extra space).
  9053. freebsd2.2*)
  9054. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9055. hardcode_libdir_flag_spec='-R$libdir'
  9056. hardcode_direct=yes
  9057. hardcode_shlibpath_var=no
  9058. ;;
  9059. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9060. freebsd2.*)
  9061. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9062. hardcode_direct=yes
  9063. hardcode_minus_L=yes
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9067. freebsd* | dragonfly*)
  9068. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9069. hardcode_libdir_flag_spec='-R$libdir'
  9070. hardcode_direct=yes
  9071. hardcode_shlibpath_var=no
  9072. ;;
  9073. hpux9*)
  9074. if test "$GCC" = yes; then
  9075. 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'
  9076. else
  9077. 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'
  9078. fi
  9079. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9080. hardcode_libdir_separator=:
  9081. hardcode_direct=yes
  9082. # hardcode_minus_L: Not really in the search PATH,
  9083. # but as the default location of the library.
  9084. hardcode_minus_L=yes
  9085. export_dynamic_flag_spec='${wl}-E'
  9086. ;;
  9087. hpux10*)
  9088. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9089. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9090. else
  9091. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9092. fi
  9093. if test "$with_gnu_ld" = no; then
  9094. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9095. hardcode_libdir_flag_spec_ld='+b $libdir'
  9096. hardcode_libdir_separator=:
  9097. hardcode_direct=yes
  9098. hardcode_direct_absolute=yes
  9099. export_dynamic_flag_spec='${wl}-E'
  9100. # hardcode_minus_L: Not really in the search PATH,
  9101. # but as the default location of the library.
  9102. hardcode_minus_L=yes
  9103. fi
  9104. ;;
  9105. hpux11*)
  9106. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9107. case $host_cpu in
  9108. hppa*64*)
  9109. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9110. ;;
  9111. ia64*)
  9112. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9113. ;;
  9114. *)
  9115. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9116. ;;
  9117. esac
  9118. else
  9119. case $host_cpu in
  9120. hppa*64*)
  9121. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9122. ;;
  9123. ia64*)
  9124. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9125. ;;
  9126. *)
  9127. # Older versions of the 11.00 compiler do not understand -b yet
  9128. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9130. $as_echo_n "checking if $CC understands -b... " >&6; }
  9131. if ${lt_cv_prog_compiler__b+:} false; then :
  9132. $as_echo_n "(cached) " >&6
  9133. else
  9134. lt_cv_prog_compiler__b=no
  9135. save_LDFLAGS="$LDFLAGS"
  9136. LDFLAGS="$LDFLAGS -b"
  9137. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9138. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9139. # The linker can only warn and ignore the option if not recognized
  9140. # So say no if there are warnings
  9141. if test -s conftest.err; then
  9142. # Append any errors to the config.log.
  9143. cat conftest.err 1>&5
  9144. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9145. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9146. if diff conftest.exp conftest.er2 >/dev/null; then
  9147. lt_cv_prog_compiler__b=yes
  9148. fi
  9149. else
  9150. lt_cv_prog_compiler__b=yes
  9151. fi
  9152. fi
  9153. $RM -r conftest*
  9154. LDFLAGS="$save_LDFLAGS"
  9155. fi
  9156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9157. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9158. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9159. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9160. else
  9161. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9162. fi
  9163. ;;
  9164. esac
  9165. fi
  9166. if test "$with_gnu_ld" = no; then
  9167. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9168. hardcode_libdir_separator=:
  9169. case $host_cpu in
  9170. hppa*64*|ia64*)
  9171. hardcode_direct=no
  9172. hardcode_shlibpath_var=no
  9173. ;;
  9174. *)
  9175. hardcode_direct=yes
  9176. hardcode_direct_absolute=yes
  9177. export_dynamic_flag_spec='${wl}-E'
  9178. # hardcode_minus_L: Not really in the search PATH,
  9179. # but as the default location of the library.
  9180. hardcode_minus_L=yes
  9181. ;;
  9182. esac
  9183. fi
  9184. ;;
  9185. irix5* | irix6* | nonstopux*)
  9186. if test "$GCC" = yes; then
  9187. 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'
  9188. # Try to use the -exported_symbol ld option, if it does not
  9189. # work, assume that -exports_file does not work either and
  9190. # implicitly export all symbols.
  9191. save_LDFLAGS="$LDFLAGS"
  9192. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9194. /* end confdefs.h. */
  9195. int foo(void) {}
  9196. _ACEOF
  9197. if ac_fn_c_try_link "$LINENO"; then :
  9198. 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'
  9199. fi
  9200. rm -f core conftest.err conftest.$ac_objext \
  9201. conftest$ac_exeext conftest.$ac_ext
  9202. LDFLAGS="$save_LDFLAGS"
  9203. else
  9204. 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'
  9205. 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'
  9206. fi
  9207. archive_cmds_need_lc='no'
  9208. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9209. hardcode_libdir_separator=:
  9210. inherit_rpath=yes
  9211. link_all_deplibs=yes
  9212. ;;
  9213. netbsd*)
  9214. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9215. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9216. else
  9217. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9218. fi
  9219. hardcode_libdir_flag_spec='-R$libdir'
  9220. hardcode_direct=yes
  9221. hardcode_shlibpath_var=no
  9222. ;;
  9223. newsos6)
  9224. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9225. hardcode_direct=yes
  9226. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9227. hardcode_libdir_separator=:
  9228. hardcode_shlibpath_var=no
  9229. ;;
  9230. *nto* | *qnx*)
  9231. ;;
  9232. openbsd*)
  9233. if test -f /usr/libexec/ld.so; then
  9234. hardcode_direct=yes
  9235. hardcode_shlibpath_var=no
  9236. hardcode_direct_absolute=yes
  9237. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9238. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9239. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9240. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9241. export_dynamic_flag_spec='${wl}-E'
  9242. else
  9243. case $host_os in
  9244. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9246. hardcode_libdir_flag_spec='-R$libdir'
  9247. ;;
  9248. *)
  9249. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9250. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9251. ;;
  9252. esac
  9253. fi
  9254. else
  9255. ld_shlibs=no
  9256. fi
  9257. ;;
  9258. os2*)
  9259. hardcode_libdir_flag_spec='-L$libdir'
  9260. hardcode_minus_L=yes
  9261. allow_undefined_flag=unsupported
  9262. 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'
  9263. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9264. ;;
  9265. osf3*)
  9266. if test "$GCC" = yes; then
  9267. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9268. 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'
  9269. else
  9270. allow_undefined_flag=' -expect_unresolved \*'
  9271. 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'
  9272. fi
  9273. archive_cmds_need_lc='no'
  9274. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9275. hardcode_libdir_separator=:
  9276. ;;
  9277. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9278. if test "$GCC" = yes; then
  9279. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9280. 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'
  9281. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9282. else
  9283. allow_undefined_flag=' -expect_unresolved \*'
  9284. 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'
  9285. 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~
  9286. $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'
  9287. # Both c and cxx compiler support -rpath directly
  9288. hardcode_libdir_flag_spec='-rpath $libdir'
  9289. fi
  9290. archive_cmds_need_lc='no'
  9291. hardcode_libdir_separator=:
  9292. ;;
  9293. solaris*)
  9294. no_undefined_flag=' -z defs'
  9295. if test "$GCC" = yes; then
  9296. wlarc='${wl}'
  9297. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9298. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9299. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9300. else
  9301. case `$CC -V 2>&1` in
  9302. *"Compilers 5.0"*)
  9303. wlarc=''
  9304. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9305. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9306. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9307. ;;
  9308. *)
  9309. wlarc='${wl}'
  9310. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9311. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9312. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9313. ;;
  9314. esac
  9315. fi
  9316. hardcode_libdir_flag_spec='-R$libdir'
  9317. hardcode_shlibpath_var=no
  9318. case $host_os in
  9319. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9320. *)
  9321. # The compiler driver will combine and reorder linker options,
  9322. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9323. # but is careful enough not to reorder.
  9324. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9325. if test "$GCC" = yes; then
  9326. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9327. else
  9328. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9329. fi
  9330. ;;
  9331. esac
  9332. link_all_deplibs=yes
  9333. ;;
  9334. sunos4*)
  9335. if test "x$host_vendor" = xsequent; then
  9336. # Use $CC to link under sequent, because it throws in some extra .o
  9337. # files that make .init and .fini sections work.
  9338. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9339. else
  9340. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9341. fi
  9342. hardcode_libdir_flag_spec='-L$libdir'
  9343. hardcode_direct=yes
  9344. hardcode_minus_L=yes
  9345. hardcode_shlibpath_var=no
  9346. ;;
  9347. sysv4)
  9348. case $host_vendor in
  9349. sni)
  9350. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9351. hardcode_direct=yes # is this really true???
  9352. ;;
  9353. siemens)
  9354. ## LD is ld it makes a PLAMLIB
  9355. ## CC just makes a GrossModule.
  9356. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9357. reload_cmds='$CC -r -o $output$reload_objs'
  9358. hardcode_direct=no
  9359. ;;
  9360. motorola)
  9361. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9362. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9363. ;;
  9364. esac
  9365. runpath_var='LD_RUN_PATH'
  9366. hardcode_shlibpath_var=no
  9367. ;;
  9368. sysv4.3*)
  9369. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9370. hardcode_shlibpath_var=no
  9371. export_dynamic_flag_spec='-Bexport'
  9372. ;;
  9373. sysv4*MP*)
  9374. if test -d /usr/nec; then
  9375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9376. hardcode_shlibpath_var=no
  9377. runpath_var=LD_RUN_PATH
  9378. hardcode_runpath_var=yes
  9379. ld_shlibs=yes
  9380. fi
  9381. ;;
  9382. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9383. no_undefined_flag='${wl}-z,text'
  9384. archive_cmds_need_lc=no
  9385. hardcode_shlibpath_var=no
  9386. runpath_var='LD_RUN_PATH'
  9387. if test "$GCC" = yes; then
  9388. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9390. else
  9391. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9392. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9393. fi
  9394. ;;
  9395. sysv5* | sco3.2v5* | sco5v6*)
  9396. # Note: We can NOT use -z defs as we might desire, because we do not
  9397. # link with -lc, and that would cause any symbols used from libc to
  9398. # always be unresolved, which means just about no library would
  9399. # ever link correctly. If we're not using GNU ld we use -z text
  9400. # though, which does catch some bad symbols but isn't as heavy-handed
  9401. # as -z defs.
  9402. no_undefined_flag='${wl}-z,text'
  9403. allow_undefined_flag='${wl}-z,nodefs'
  9404. archive_cmds_need_lc=no
  9405. hardcode_shlibpath_var=no
  9406. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9407. hardcode_libdir_separator=':'
  9408. link_all_deplibs=yes
  9409. export_dynamic_flag_spec='${wl}-Bexport'
  9410. runpath_var='LD_RUN_PATH'
  9411. if test "$GCC" = yes; then
  9412. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9413. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9414. else
  9415. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9416. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9417. fi
  9418. ;;
  9419. uts4*)
  9420. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9421. hardcode_libdir_flag_spec='-L$libdir'
  9422. hardcode_shlibpath_var=no
  9423. ;;
  9424. *)
  9425. ld_shlibs=no
  9426. ;;
  9427. esac
  9428. if test x$host_vendor = xsni; then
  9429. case $host in
  9430. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9431. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9432. ;;
  9433. esac
  9434. fi
  9435. fi
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9437. $as_echo "$ld_shlibs" >&6; }
  9438. test "$ld_shlibs" = no && can_build_shared=no
  9439. with_gnu_ld=$with_gnu_ld
  9440. #
  9441. # Do we need to explicitly link libc?
  9442. #
  9443. case "x$archive_cmds_need_lc" in
  9444. x|xyes)
  9445. # Assume -lc should be added
  9446. archive_cmds_need_lc=yes
  9447. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9448. case $archive_cmds in
  9449. *'~'*)
  9450. # FIXME: we may have to deal with multi-command sequences.
  9451. ;;
  9452. '$CC '*)
  9453. # Test whether the compiler implicitly links with -lc since on some
  9454. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9455. # to ld, don't add -lc before -lgcc.
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9457. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9458. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. $RM conftest*
  9462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9464. (eval $ac_compile) 2>&5
  9465. ac_status=$?
  9466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9467. test $ac_status = 0; } 2>conftest.err; then
  9468. soname=conftest
  9469. lib=conftest
  9470. libobjs=conftest.$ac_objext
  9471. deplibs=
  9472. wl=$lt_prog_compiler_wl
  9473. pic_flag=$lt_prog_compiler_pic
  9474. compiler_flags=-v
  9475. linker_flags=-v
  9476. verstring=
  9477. output_objdir=.
  9478. libname=conftest
  9479. lt_save_allow_undefined_flag=$allow_undefined_flag
  9480. allow_undefined_flag=
  9481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9482. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9483. ac_status=$?
  9484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9485. test $ac_status = 0; }
  9486. then
  9487. lt_cv_archive_cmds_need_lc=no
  9488. else
  9489. lt_cv_archive_cmds_need_lc=yes
  9490. fi
  9491. allow_undefined_flag=$lt_save_allow_undefined_flag
  9492. else
  9493. cat conftest.err 1>&5
  9494. fi
  9495. $RM conftest*
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9498. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9499. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9500. ;;
  9501. esac
  9502. fi
  9503. ;;
  9504. esac
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9506. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9507. if test "$GCC" = yes; then
  9508. case $host_os in
  9509. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9510. *) lt_awk_arg="/^libraries:/" ;;
  9511. esac
  9512. case $host_os in
  9513. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9514. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9515. esac
  9516. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9517. case $lt_search_path_spec in
  9518. *\;*)
  9519. # if the path contains ";" then we assume it to be the separator
  9520. # otherwise default to the standard path separator (i.e. ":") - it is
  9521. # assumed that no part of a normal pathname contains ";" but that should
  9522. # okay in the real world where ";" in dirpaths is itself problematic.
  9523. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9524. ;;
  9525. *)
  9526. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9527. ;;
  9528. esac
  9529. # Ok, now we have the path, separated by spaces, we can step through it
  9530. # and add multilib dir if necessary.
  9531. lt_tmp_lt_search_path_spec=
  9532. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9533. for lt_sys_path in $lt_search_path_spec; do
  9534. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9535. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9536. else
  9537. test -d "$lt_sys_path" && \
  9538. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9539. fi
  9540. done
  9541. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9542. BEGIN {RS=" "; FS="/|\n";} {
  9543. lt_foo="";
  9544. lt_count=0;
  9545. for (lt_i = NF; lt_i > 0; lt_i--) {
  9546. if ($lt_i != "" && $lt_i != ".") {
  9547. if ($lt_i == "..") {
  9548. lt_count++;
  9549. } else {
  9550. if (lt_count == 0) {
  9551. lt_foo="/" $lt_i lt_foo;
  9552. } else {
  9553. lt_count--;
  9554. }
  9555. }
  9556. }
  9557. }
  9558. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9559. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9560. }'`
  9561. # AWK program above erroneously prepends '/' to C:/dos/paths
  9562. # for these hosts.
  9563. case $host_os in
  9564. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9565. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9566. esac
  9567. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9568. else
  9569. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9570. fi
  9571. library_names_spec=
  9572. libname_spec='lib$name'
  9573. soname_spec=
  9574. shrext_cmds=".so"
  9575. postinstall_cmds=
  9576. postuninstall_cmds=
  9577. finish_cmds=
  9578. finish_eval=
  9579. shlibpath_var=
  9580. shlibpath_overrides_runpath=unknown
  9581. version_type=none
  9582. dynamic_linker="$host_os ld.so"
  9583. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9584. need_lib_prefix=unknown
  9585. hardcode_into_libs=no
  9586. # when you set need_version to no, make sure it does not cause -set_version
  9587. # flags to be left without arguments
  9588. need_version=unknown
  9589. case $host_os in
  9590. aix3*)
  9591. version_type=linux
  9592. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9593. shlibpath_var=LIBPATH
  9594. # AIX 3 has no versioning support, so we append a major version to the name.
  9595. soname_spec='${libname}${release}${shared_ext}$major'
  9596. ;;
  9597. aix[4-9]*)
  9598. version_type=linux
  9599. need_lib_prefix=no
  9600. need_version=no
  9601. hardcode_into_libs=yes
  9602. if test "$host_cpu" = ia64; then
  9603. # AIX 5 supports IA64
  9604. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9605. shlibpath_var=LD_LIBRARY_PATH
  9606. else
  9607. # With GCC up to 2.95.x, collect2 would create an import file
  9608. # for dependence libraries. The import file would start with
  9609. # the line `#! .'. This would cause the generated library to
  9610. # depend on `.', always an invalid library. This was fixed in
  9611. # development snapshots of GCC prior to 3.0.
  9612. case $host_os in
  9613. aix4 | aix4.[01] | aix4.[01].*)
  9614. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9615. echo ' yes '
  9616. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9617. :
  9618. else
  9619. can_build_shared=no
  9620. fi
  9621. ;;
  9622. esac
  9623. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9624. # soname into executable. Probably we can add versioning support to
  9625. # collect2, so additional links can be useful in future.
  9626. if test "$aix_use_runtimelinking" = yes; then
  9627. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9628. # instead of lib<name>.a to let people know that these are not
  9629. # typical AIX shared libraries.
  9630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9631. else
  9632. # We preserve .a as extension for shared libraries through AIX4.2
  9633. # and later when we are not doing run time linking.
  9634. library_names_spec='${libname}${release}.a $libname.a'
  9635. soname_spec='${libname}${release}${shared_ext}$major'
  9636. fi
  9637. shlibpath_var=LIBPATH
  9638. fi
  9639. ;;
  9640. amigaos*)
  9641. case $host_cpu in
  9642. powerpc)
  9643. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9644. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9646. ;;
  9647. m68k)
  9648. library_names_spec='$libname.ixlibrary $libname.a'
  9649. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9650. 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'
  9651. ;;
  9652. esac
  9653. ;;
  9654. beos*)
  9655. library_names_spec='${libname}${shared_ext}'
  9656. dynamic_linker="$host_os ld.so"
  9657. shlibpath_var=LIBRARY_PATH
  9658. ;;
  9659. bsdi[45]*)
  9660. version_type=linux
  9661. need_version=no
  9662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9663. soname_spec='${libname}${release}${shared_ext}$major'
  9664. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9665. shlibpath_var=LD_LIBRARY_PATH
  9666. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9667. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9668. # the default ld.so.conf also contains /usr/contrib/lib and
  9669. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9670. # libtool to hard-code these into programs
  9671. ;;
  9672. cygwin* | mingw* | pw32* | cegcc*)
  9673. version_type=windows
  9674. shrext_cmds=".dll"
  9675. need_version=no
  9676. need_lib_prefix=no
  9677. case $GCC,$host_os in
  9678. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9679. library_names_spec='$libname.dll.a'
  9680. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9681. postinstall_cmds='base_file=`basename \${file}`~
  9682. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9683. dldir=$destdir/`dirname \$dlpath`~
  9684. test -d \$dldir || mkdir -p \$dldir~
  9685. $install_prog $dir/$dlname \$dldir/$dlname~
  9686. chmod a+x \$dldir/$dlname~
  9687. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9688. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9689. fi'
  9690. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9691. dlpath=$dir/\$dldll~
  9692. $RM \$dlpath'
  9693. shlibpath_overrides_runpath=yes
  9694. case $host_os in
  9695. cygwin*)
  9696. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9697. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9698. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9699. ;;
  9700. mingw* | cegcc*)
  9701. # MinGW DLLs use traditional 'lib' prefix
  9702. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9703. ;;
  9704. pw32*)
  9705. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9706. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9707. ;;
  9708. esac
  9709. ;;
  9710. *)
  9711. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9712. ;;
  9713. esac
  9714. dynamic_linker='Win32 ld.exe'
  9715. # FIXME: first we should search . and the directory the executable is in
  9716. shlibpath_var=PATH
  9717. ;;
  9718. darwin* | rhapsody*)
  9719. dynamic_linker="$host_os dyld"
  9720. version_type=darwin
  9721. need_lib_prefix=no
  9722. need_version=no
  9723. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9724. soname_spec='${libname}${release}${major}$shared_ext'
  9725. shlibpath_overrides_runpath=yes
  9726. shlibpath_var=DYLD_LIBRARY_PATH
  9727. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9728. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9729. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9730. ;;
  9731. dgux*)
  9732. version_type=linux
  9733. need_lib_prefix=no
  9734. need_version=no
  9735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9736. soname_spec='${libname}${release}${shared_ext}$major'
  9737. shlibpath_var=LD_LIBRARY_PATH
  9738. ;;
  9739. freebsd* | dragonfly*)
  9740. # DragonFly does not have aout. When/if they implement a new
  9741. # versioning mechanism, adjust this.
  9742. if test -x /usr/bin/objformat; then
  9743. objformat=`/usr/bin/objformat`
  9744. else
  9745. case $host_os in
  9746. freebsd[23].*) objformat=aout ;;
  9747. *) objformat=elf ;;
  9748. esac
  9749. fi
  9750. version_type=freebsd-$objformat
  9751. case $version_type in
  9752. freebsd-elf*)
  9753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9754. need_version=no
  9755. need_lib_prefix=no
  9756. ;;
  9757. freebsd-*)
  9758. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9759. need_version=yes
  9760. ;;
  9761. esac
  9762. shlibpath_var=LD_LIBRARY_PATH
  9763. case $host_os in
  9764. freebsd2.*)
  9765. shlibpath_overrides_runpath=yes
  9766. ;;
  9767. freebsd3.[01]* | freebsdelf3.[01]*)
  9768. shlibpath_overrides_runpath=yes
  9769. hardcode_into_libs=yes
  9770. ;;
  9771. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9772. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9773. shlibpath_overrides_runpath=no
  9774. hardcode_into_libs=yes
  9775. ;;
  9776. *) # from 4.6 on, and DragonFly
  9777. shlibpath_overrides_runpath=yes
  9778. hardcode_into_libs=yes
  9779. ;;
  9780. esac
  9781. ;;
  9782. haiku*)
  9783. version_type=linux
  9784. need_lib_prefix=no
  9785. need_version=no
  9786. dynamic_linker="$host_os runtime_loader"
  9787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9788. soname_spec='${libname}${release}${shared_ext}$major'
  9789. shlibpath_var=LIBRARY_PATH
  9790. shlibpath_overrides_runpath=yes
  9791. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9792. hardcode_into_libs=yes
  9793. ;;
  9794. hpux9* | hpux10* | hpux11*)
  9795. # Give a soname corresponding to the major version so that dld.sl refuses to
  9796. # link against other versions.
  9797. version_type=sunos
  9798. need_lib_prefix=no
  9799. need_version=no
  9800. case $host_cpu in
  9801. ia64*)
  9802. shrext_cmds='.so'
  9803. hardcode_into_libs=yes
  9804. dynamic_linker="$host_os dld.so"
  9805. shlibpath_var=LD_LIBRARY_PATH
  9806. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9808. soname_spec='${libname}${release}${shared_ext}$major'
  9809. if test "X$HPUX_IA64_MODE" = X32; then
  9810. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9811. else
  9812. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9813. fi
  9814. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9815. ;;
  9816. hppa*64*)
  9817. shrext_cmds='.sl'
  9818. hardcode_into_libs=yes
  9819. dynamic_linker="$host_os dld.sl"
  9820. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9821. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9823. soname_spec='${libname}${release}${shared_ext}$major'
  9824. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9826. ;;
  9827. *)
  9828. shrext_cmds='.sl'
  9829. dynamic_linker="$host_os dld.sl"
  9830. shlibpath_var=SHLIB_PATH
  9831. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9833. soname_spec='${libname}${release}${shared_ext}$major'
  9834. ;;
  9835. esac
  9836. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9837. postinstall_cmds='chmod 555 $lib'
  9838. # or fails outright, so override atomically:
  9839. install_override_mode=555
  9840. ;;
  9841. interix[3-9]*)
  9842. version_type=linux
  9843. need_lib_prefix=no
  9844. need_version=no
  9845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9846. soname_spec='${libname}${release}${shared_ext}$major'
  9847. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. shlibpath_overrides_runpath=no
  9850. hardcode_into_libs=yes
  9851. ;;
  9852. irix5* | irix6* | nonstopux*)
  9853. case $host_os in
  9854. nonstopux*) version_type=nonstopux ;;
  9855. *)
  9856. if test "$lt_cv_prog_gnu_ld" = yes; then
  9857. version_type=linux
  9858. else
  9859. version_type=irix
  9860. fi ;;
  9861. esac
  9862. need_lib_prefix=no
  9863. need_version=no
  9864. soname_spec='${libname}${release}${shared_ext}$major'
  9865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9866. case $host_os in
  9867. irix5* | nonstopux*)
  9868. libsuff= shlibsuff=
  9869. ;;
  9870. *)
  9871. case $LD in # libtool.m4 will add one of these switches to LD
  9872. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9873. libsuff= shlibsuff= libmagic=32-bit;;
  9874. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9875. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9876. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9877. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9878. *) libsuff= shlibsuff= libmagic=never-match;;
  9879. esac
  9880. ;;
  9881. esac
  9882. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9883. shlibpath_overrides_runpath=no
  9884. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9885. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9886. hardcode_into_libs=yes
  9887. ;;
  9888. # No shared lib support for Linux oldld, aout, or coff.
  9889. linux*oldld* | linux*aout* | linux*coff*)
  9890. dynamic_linker=no
  9891. ;;
  9892. # This must be Linux ELF.
  9893. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9894. version_type=linux
  9895. need_lib_prefix=no
  9896. need_version=no
  9897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9898. soname_spec='${libname}${release}${shared_ext}$major'
  9899. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9900. shlibpath_var=LD_LIBRARY_PATH
  9901. shlibpath_overrides_runpath=no
  9902. # Some binutils ld are patched to set DT_RUNPATH
  9903. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9904. $as_echo_n "(cached) " >&6
  9905. else
  9906. lt_cv_shlibpath_overrides_runpath=no
  9907. save_LDFLAGS=$LDFLAGS
  9908. save_libdir=$libdir
  9909. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9910. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9912. /* end confdefs.h. */
  9913. int
  9914. main ()
  9915. {
  9916. ;
  9917. return 0;
  9918. }
  9919. _ACEOF
  9920. if ac_fn_c_try_link "$LINENO"; then :
  9921. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9922. lt_cv_shlibpath_overrides_runpath=yes
  9923. fi
  9924. fi
  9925. rm -f core conftest.err conftest.$ac_objext \
  9926. conftest$ac_exeext conftest.$ac_ext
  9927. LDFLAGS=$save_LDFLAGS
  9928. libdir=$save_libdir
  9929. fi
  9930. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9931. # This implies no fast_install, which is unacceptable.
  9932. # Some rework will be needed to allow for fast_install
  9933. # before this can be enabled.
  9934. hardcode_into_libs=yes
  9935. # Append ld.so.conf contents to the search path
  9936. if test -f /etc/ld.so.conf; then
  9937. 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' ' '`
  9938. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9939. fi
  9940. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9941. # powerpc, because MkLinux only supported shared libraries with the
  9942. # GNU dynamic linker. Since this was broken with cross compilers,
  9943. # most powerpc-linux boxes support dynamic linking these days and
  9944. # people can always --disable-shared, the test was removed, and we
  9945. # assume the GNU/Linux dynamic linker is in use.
  9946. dynamic_linker='GNU/Linux ld.so'
  9947. ;;
  9948. netbsd*)
  9949. version_type=sunos
  9950. need_lib_prefix=no
  9951. need_version=no
  9952. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9954. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9955. dynamic_linker='NetBSD (a.out) ld.so'
  9956. else
  9957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9958. soname_spec='${libname}${release}${shared_ext}$major'
  9959. dynamic_linker='NetBSD ld.elf_so'
  9960. fi
  9961. shlibpath_var=LD_LIBRARY_PATH
  9962. shlibpath_overrides_runpath=yes
  9963. hardcode_into_libs=yes
  9964. ;;
  9965. newsos6)
  9966. version_type=linux
  9967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9968. shlibpath_var=LD_LIBRARY_PATH
  9969. shlibpath_overrides_runpath=yes
  9970. ;;
  9971. *nto* | *qnx*)
  9972. version_type=qnx
  9973. need_lib_prefix=no
  9974. need_version=no
  9975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9976. soname_spec='${libname}${release}${shared_ext}$major'
  9977. shlibpath_var=LD_LIBRARY_PATH
  9978. shlibpath_overrides_runpath=no
  9979. hardcode_into_libs=yes
  9980. dynamic_linker='ldqnx.so'
  9981. ;;
  9982. openbsd*)
  9983. version_type=sunos
  9984. sys_lib_dlsearch_path_spec="/usr/lib"
  9985. need_lib_prefix=no
  9986. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9987. case $host_os in
  9988. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9989. *) need_version=no ;;
  9990. esac
  9991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9992. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9993. shlibpath_var=LD_LIBRARY_PATH
  9994. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9995. case $host_os in
  9996. openbsd2.[89] | openbsd2.[89].*)
  9997. shlibpath_overrides_runpath=no
  9998. ;;
  9999. *)
  10000. shlibpath_overrides_runpath=yes
  10001. ;;
  10002. esac
  10003. else
  10004. shlibpath_overrides_runpath=yes
  10005. fi
  10006. ;;
  10007. os2*)
  10008. libname_spec='$name'
  10009. shrext_cmds=".dll"
  10010. need_lib_prefix=no
  10011. library_names_spec='$libname${shared_ext} $libname.a'
  10012. dynamic_linker='OS/2 ld.exe'
  10013. shlibpath_var=LIBPATH
  10014. ;;
  10015. osf3* | osf4* | osf5*)
  10016. version_type=osf
  10017. need_lib_prefix=no
  10018. need_version=no
  10019. soname_spec='${libname}${release}${shared_ext}$major'
  10020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10021. shlibpath_var=LD_LIBRARY_PATH
  10022. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10023. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10024. ;;
  10025. rdos*)
  10026. dynamic_linker=no
  10027. ;;
  10028. solaris*)
  10029. version_type=linux
  10030. need_lib_prefix=no
  10031. need_version=no
  10032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10033. soname_spec='${libname}${release}${shared_ext}$major'
  10034. shlibpath_var=LD_LIBRARY_PATH
  10035. shlibpath_overrides_runpath=yes
  10036. hardcode_into_libs=yes
  10037. # ldd complains unless libraries are executable
  10038. postinstall_cmds='chmod +x $lib'
  10039. ;;
  10040. sunos4*)
  10041. version_type=sunos
  10042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10043. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10044. shlibpath_var=LD_LIBRARY_PATH
  10045. shlibpath_overrides_runpath=yes
  10046. if test "$with_gnu_ld" = yes; then
  10047. need_lib_prefix=no
  10048. fi
  10049. need_version=yes
  10050. ;;
  10051. sysv4 | sysv4.3*)
  10052. version_type=linux
  10053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10054. soname_spec='${libname}${release}${shared_ext}$major'
  10055. shlibpath_var=LD_LIBRARY_PATH
  10056. case $host_vendor in
  10057. sni)
  10058. shlibpath_overrides_runpath=no
  10059. need_lib_prefix=no
  10060. runpath_var=LD_RUN_PATH
  10061. ;;
  10062. siemens)
  10063. need_lib_prefix=no
  10064. ;;
  10065. motorola)
  10066. need_lib_prefix=no
  10067. need_version=no
  10068. shlibpath_overrides_runpath=no
  10069. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10070. ;;
  10071. esac
  10072. ;;
  10073. sysv4*MP*)
  10074. if test -d /usr/nec ;then
  10075. version_type=linux
  10076. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10077. soname_spec='$libname${shared_ext}.$major'
  10078. shlibpath_var=LD_LIBRARY_PATH
  10079. fi
  10080. ;;
  10081. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10082. version_type=freebsd-elf
  10083. need_lib_prefix=no
  10084. need_version=no
  10085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10086. soname_spec='${libname}${release}${shared_ext}$major'
  10087. shlibpath_var=LD_LIBRARY_PATH
  10088. shlibpath_overrides_runpath=yes
  10089. hardcode_into_libs=yes
  10090. if test "$with_gnu_ld" = yes; then
  10091. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10092. else
  10093. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10094. case $host_os in
  10095. sco3.2v5*)
  10096. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10097. ;;
  10098. esac
  10099. fi
  10100. sys_lib_dlsearch_path_spec='/usr/lib'
  10101. ;;
  10102. tpf*)
  10103. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10104. version_type=linux
  10105. need_lib_prefix=no
  10106. need_version=no
  10107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10108. shlibpath_var=LD_LIBRARY_PATH
  10109. shlibpath_overrides_runpath=no
  10110. hardcode_into_libs=yes
  10111. ;;
  10112. uts4*)
  10113. version_type=linux
  10114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10115. soname_spec='${libname}${release}${shared_ext}$major'
  10116. shlibpath_var=LD_LIBRARY_PATH
  10117. ;;
  10118. *)
  10119. dynamic_linker=no
  10120. ;;
  10121. esac
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10123. $as_echo "$dynamic_linker" >&6; }
  10124. test "$dynamic_linker" = no && can_build_shared=no
  10125. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10126. if test "$GCC" = yes; then
  10127. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10128. fi
  10129. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10130. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10131. fi
  10132. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10133. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10134. fi
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10136. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10137. hardcode_action=
  10138. if test -n "$hardcode_libdir_flag_spec" ||
  10139. test -n "$runpath_var" ||
  10140. test "X$hardcode_automatic" = "Xyes" ; then
  10141. # We can hardcode non-existent directories.
  10142. if test "$hardcode_direct" != no &&
  10143. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10144. # have to relink, otherwise we might link with an installed library
  10145. # when we should be linking with a yet-to-be-installed one
  10146. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10147. test "$hardcode_minus_L" != no; then
  10148. # Linking always hardcodes the temporary library directory.
  10149. hardcode_action=relink
  10150. else
  10151. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10152. hardcode_action=immediate
  10153. fi
  10154. else
  10155. # We cannot hardcode anything, or else we can only hardcode existing
  10156. # directories.
  10157. hardcode_action=unsupported
  10158. fi
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10160. $as_echo "$hardcode_action" >&6; }
  10161. if test "$hardcode_action" = relink ||
  10162. test "$inherit_rpath" = yes; then
  10163. # Fast installation is not supported
  10164. enable_fast_install=no
  10165. elif test "$shlibpath_overrides_runpath" = yes ||
  10166. test "$enable_shared" = no; then
  10167. # Fast installation is not necessary
  10168. enable_fast_install=needless
  10169. fi
  10170. if test "x$enable_dlopen" != xyes; then
  10171. enable_dlopen=unknown
  10172. enable_dlopen_self=unknown
  10173. enable_dlopen_self_static=unknown
  10174. else
  10175. lt_cv_dlopen=no
  10176. lt_cv_dlopen_libs=
  10177. case $host_os in
  10178. beos*)
  10179. lt_cv_dlopen="load_add_on"
  10180. lt_cv_dlopen_libs=
  10181. lt_cv_dlopen_self=yes
  10182. ;;
  10183. mingw* | pw32* | cegcc*)
  10184. lt_cv_dlopen="LoadLibrary"
  10185. lt_cv_dlopen_libs=
  10186. ;;
  10187. cygwin*)
  10188. lt_cv_dlopen="dlopen"
  10189. lt_cv_dlopen_libs=
  10190. ;;
  10191. darwin*)
  10192. # if libdl is installed we need to link against it
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10194. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10195. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10196. $as_echo_n "(cached) " >&6
  10197. else
  10198. ac_check_lib_save_LIBS=$LIBS
  10199. LIBS="-ldl $LIBS"
  10200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10201. /* end confdefs.h. */
  10202. /* Override any GCC internal prototype to avoid an error.
  10203. Use char because int might match the return type of a GCC
  10204. builtin and then its argument prototype would still apply. */
  10205. #ifdef __cplusplus
  10206. extern "C"
  10207. #endif
  10208. char dlopen ();
  10209. int
  10210. main ()
  10211. {
  10212. return dlopen ();
  10213. ;
  10214. return 0;
  10215. }
  10216. _ACEOF
  10217. if ac_fn_c_try_link "$LINENO"; then :
  10218. ac_cv_lib_dl_dlopen=yes
  10219. else
  10220. ac_cv_lib_dl_dlopen=no
  10221. fi
  10222. rm -f core conftest.err conftest.$ac_objext \
  10223. conftest$ac_exeext conftest.$ac_ext
  10224. LIBS=$ac_check_lib_save_LIBS
  10225. fi
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10227. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10228. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10229. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10230. else
  10231. lt_cv_dlopen="dyld"
  10232. lt_cv_dlopen_libs=
  10233. lt_cv_dlopen_self=yes
  10234. fi
  10235. ;;
  10236. *)
  10237. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10238. if test "x$ac_cv_func_shl_load" = xyes; then :
  10239. lt_cv_dlopen="shl_load"
  10240. else
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10242. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10243. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10244. $as_echo_n "(cached) " >&6
  10245. else
  10246. ac_check_lib_save_LIBS=$LIBS
  10247. LIBS="-ldld $LIBS"
  10248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10249. /* end confdefs.h. */
  10250. /* Override any GCC internal prototype to avoid an error.
  10251. Use char because int might match the return type of a GCC
  10252. builtin and then its argument prototype would still apply. */
  10253. #ifdef __cplusplus
  10254. extern "C"
  10255. #endif
  10256. char shl_load ();
  10257. int
  10258. main ()
  10259. {
  10260. return shl_load ();
  10261. ;
  10262. return 0;
  10263. }
  10264. _ACEOF
  10265. if ac_fn_c_try_link "$LINENO"; then :
  10266. ac_cv_lib_dld_shl_load=yes
  10267. else
  10268. ac_cv_lib_dld_shl_load=no
  10269. fi
  10270. rm -f core conftest.err conftest.$ac_objext \
  10271. conftest$ac_exeext conftest.$ac_ext
  10272. LIBS=$ac_check_lib_save_LIBS
  10273. fi
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10275. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10276. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10277. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10278. else
  10279. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10280. if test "x$ac_cv_func_dlopen" = xyes; then :
  10281. lt_cv_dlopen="dlopen"
  10282. else
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10284. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10285. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10286. $as_echo_n "(cached) " >&6
  10287. else
  10288. ac_check_lib_save_LIBS=$LIBS
  10289. LIBS="-ldl $LIBS"
  10290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10291. /* end confdefs.h. */
  10292. /* Override any GCC internal prototype to avoid an error.
  10293. Use char because int might match the return type of a GCC
  10294. builtin and then its argument prototype would still apply. */
  10295. #ifdef __cplusplus
  10296. extern "C"
  10297. #endif
  10298. char dlopen ();
  10299. int
  10300. main ()
  10301. {
  10302. return dlopen ();
  10303. ;
  10304. return 0;
  10305. }
  10306. _ACEOF
  10307. if ac_fn_c_try_link "$LINENO"; then :
  10308. ac_cv_lib_dl_dlopen=yes
  10309. else
  10310. ac_cv_lib_dl_dlopen=no
  10311. fi
  10312. rm -f core conftest.err conftest.$ac_objext \
  10313. conftest$ac_exeext conftest.$ac_ext
  10314. LIBS=$ac_check_lib_save_LIBS
  10315. fi
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10317. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10318. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10319. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10320. else
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10322. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10323. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. ac_check_lib_save_LIBS=$LIBS
  10327. LIBS="-lsvld $LIBS"
  10328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10329. /* end confdefs.h. */
  10330. /* Override any GCC internal prototype to avoid an error.
  10331. Use char because int might match the return type of a GCC
  10332. builtin and then its argument prototype would still apply. */
  10333. #ifdef __cplusplus
  10334. extern "C"
  10335. #endif
  10336. char dlopen ();
  10337. int
  10338. main ()
  10339. {
  10340. return dlopen ();
  10341. ;
  10342. return 0;
  10343. }
  10344. _ACEOF
  10345. if ac_fn_c_try_link "$LINENO"; then :
  10346. ac_cv_lib_svld_dlopen=yes
  10347. else
  10348. ac_cv_lib_svld_dlopen=no
  10349. fi
  10350. rm -f core conftest.err conftest.$ac_objext \
  10351. conftest$ac_exeext conftest.$ac_ext
  10352. LIBS=$ac_check_lib_save_LIBS
  10353. fi
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10355. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10356. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10357. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10358. else
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10360. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10361. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10362. $as_echo_n "(cached) " >&6
  10363. else
  10364. ac_check_lib_save_LIBS=$LIBS
  10365. LIBS="-ldld $LIBS"
  10366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10367. /* end confdefs.h. */
  10368. /* Override any GCC internal prototype to avoid an error.
  10369. Use char because int might match the return type of a GCC
  10370. builtin and then its argument prototype would still apply. */
  10371. #ifdef __cplusplus
  10372. extern "C"
  10373. #endif
  10374. char dld_link ();
  10375. int
  10376. main ()
  10377. {
  10378. return dld_link ();
  10379. ;
  10380. return 0;
  10381. }
  10382. _ACEOF
  10383. if ac_fn_c_try_link "$LINENO"; then :
  10384. ac_cv_lib_dld_dld_link=yes
  10385. else
  10386. ac_cv_lib_dld_dld_link=no
  10387. fi
  10388. rm -f core conftest.err conftest.$ac_objext \
  10389. conftest$ac_exeext conftest.$ac_ext
  10390. LIBS=$ac_check_lib_save_LIBS
  10391. fi
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10393. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10394. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10395. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10396. fi
  10397. fi
  10398. fi
  10399. fi
  10400. fi
  10401. fi
  10402. ;;
  10403. esac
  10404. if test "x$lt_cv_dlopen" != xno; then
  10405. enable_dlopen=yes
  10406. else
  10407. enable_dlopen=no
  10408. fi
  10409. case $lt_cv_dlopen in
  10410. dlopen)
  10411. save_CPPFLAGS="$CPPFLAGS"
  10412. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10413. save_LDFLAGS="$LDFLAGS"
  10414. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10415. save_LIBS="$LIBS"
  10416. LIBS="$lt_cv_dlopen_libs $LIBS"
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10418. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10419. if ${lt_cv_dlopen_self+:} false; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. if test "$cross_compiling" = yes; then :
  10423. lt_cv_dlopen_self=cross
  10424. else
  10425. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10426. lt_status=$lt_dlunknown
  10427. cat > conftest.$ac_ext <<_LT_EOF
  10428. #line 12061 "configure"
  10429. #include "confdefs.h"
  10430. #if HAVE_DLFCN_H
  10431. #include <dlfcn.h>
  10432. #endif
  10433. #include <stdio.h>
  10434. #ifdef RTLD_GLOBAL
  10435. # define LT_DLGLOBAL RTLD_GLOBAL
  10436. #else
  10437. # ifdef DL_GLOBAL
  10438. # define LT_DLGLOBAL DL_GLOBAL
  10439. # else
  10440. # define LT_DLGLOBAL 0
  10441. # endif
  10442. #endif
  10443. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10444. find out it does not work in some platform. */
  10445. #ifndef LT_DLLAZY_OR_NOW
  10446. # ifdef RTLD_LAZY
  10447. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10448. # else
  10449. # ifdef DL_LAZY
  10450. # define LT_DLLAZY_OR_NOW DL_LAZY
  10451. # else
  10452. # ifdef RTLD_NOW
  10453. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10454. # else
  10455. # ifdef DL_NOW
  10456. # define LT_DLLAZY_OR_NOW DL_NOW
  10457. # else
  10458. # define LT_DLLAZY_OR_NOW 0
  10459. # endif
  10460. # endif
  10461. # endif
  10462. # endif
  10463. #endif
  10464. /* When -fvisbility=hidden is used, assume the code has been annotated
  10465. correspondingly for the symbols needed. */
  10466. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10467. void fnord () __attribute__((visibility("default")));
  10468. #endif
  10469. void fnord () { int i=42; }
  10470. int main ()
  10471. {
  10472. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10473. int status = $lt_dlunknown;
  10474. if (self)
  10475. {
  10476. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10477. else
  10478. {
  10479. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10480. else puts (dlerror ());
  10481. }
  10482. /* dlclose (self); */
  10483. }
  10484. else
  10485. puts (dlerror ());
  10486. return status;
  10487. }
  10488. _LT_EOF
  10489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10490. (eval $ac_link) 2>&5
  10491. ac_status=$?
  10492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10493. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10494. (./conftest; exit; ) >&5 2>/dev/null
  10495. lt_status=$?
  10496. case x$lt_status in
  10497. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10498. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10499. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10500. esac
  10501. else :
  10502. # compilation failed
  10503. lt_cv_dlopen_self=no
  10504. fi
  10505. fi
  10506. rm -fr conftest*
  10507. fi
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10509. $as_echo "$lt_cv_dlopen_self" >&6; }
  10510. if test "x$lt_cv_dlopen_self" = xyes; then
  10511. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10513. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10514. if ${lt_cv_dlopen_self_static+:} false; then :
  10515. $as_echo_n "(cached) " >&6
  10516. else
  10517. if test "$cross_compiling" = yes; then :
  10518. lt_cv_dlopen_self_static=cross
  10519. else
  10520. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10521. lt_status=$lt_dlunknown
  10522. cat > conftest.$ac_ext <<_LT_EOF
  10523. #line 12167 "configure"
  10524. #include "confdefs.h"
  10525. #if HAVE_DLFCN_H
  10526. #include <dlfcn.h>
  10527. #endif
  10528. #include <stdio.h>
  10529. #ifdef RTLD_GLOBAL
  10530. # define LT_DLGLOBAL RTLD_GLOBAL
  10531. #else
  10532. # ifdef DL_GLOBAL
  10533. # define LT_DLGLOBAL DL_GLOBAL
  10534. # else
  10535. # define LT_DLGLOBAL 0
  10536. # endif
  10537. #endif
  10538. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10539. find out it does not work in some platform. */
  10540. #ifndef LT_DLLAZY_OR_NOW
  10541. # ifdef RTLD_LAZY
  10542. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10543. # else
  10544. # ifdef DL_LAZY
  10545. # define LT_DLLAZY_OR_NOW DL_LAZY
  10546. # else
  10547. # ifdef RTLD_NOW
  10548. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10549. # else
  10550. # ifdef DL_NOW
  10551. # define LT_DLLAZY_OR_NOW DL_NOW
  10552. # else
  10553. # define LT_DLLAZY_OR_NOW 0
  10554. # endif
  10555. # endif
  10556. # endif
  10557. # endif
  10558. #endif
  10559. /* When -fvisbility=hidden is used, assume the code has been annotated
  10560. correspondingly for the symbols needed. */
  10561. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10562. void fnord () __attribute__((visibility("default")));
  10563. #endif
  10564. void fnord () { int i=42; }
  10565. int main ()
  10566. {
  10567. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10568. int status = $lt_dlunknown;
  10569. if (self)
  10570. {
  10571. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10572. else
  10573. {
  10574. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10575. else puts (dlerror ());
  10576. }
  10577. /* dlclose (self); */
  10578. }
  10579. else
  10580. puts (dlerror ());
  10581. return status;
  10582. }
  10583. _LT_EOF
  10584. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10585. (eval $ac_link) 2>&5
  10586. ac_status=$?
  10587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10588. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10589. (./conftest; exit; ) >&5 2>/dev/null
  10590. lt_status=$?
  10591. case x$lt_status in
  10592. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10593. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10594. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10595. esac
  10596. else :
  10597. # compilation failed
  10598. lt_cv_dlopen_self_static=no
  10599. fi
  10600. fi
  10601. rm -fr conftest*
  10602. fi
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10604. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10605. fi
  10606. CPPFLAGS="$save_CPPFLAGS"
  10607. LDFLAGS="$save_LDFLAGS"
  10608. LIBS="$save_LIBS"
  10609. ;;
  10610. esac
  10611. case $lt_cv_dlopen_self in
  10612. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10613. *) enable_dlopen_self=unknown ;;
  10614. esac
  10615. case $lt_cv_dlopen_self_static in
  10616. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10617. *) enable_dlopen_self_static=unknown ;;
  10618. esac
  10619. fi
  10620. striplib=
  10621. old_striplib=
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10623. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10624. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10625. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10626. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10628. $as_echo "yes" >&6; }
  10629. else
  10630. # FIXME - insert some real tests, host_os isn't really good enough
  10631. case $host_os in
  10632. darwin*)
  10633. if test -n "$STRIP" ; then
  10634. striplib="$STRIP -x"
  10635. old_striplib="$STRIP -S"
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10637. $as_echo "yes" >&6; }
  10638. else
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10640. $as_echo "no" >&6; }
  10641. fi
  10642. ;;
  10643. *)
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10645. $as_echo "no" >&6; }
  10646. ;;
  10647. esac
  10648. fi
  10649. # Report which library types will actually be built
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10651. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10653. $as_echo "$can_build_shared" >&6; }
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10655. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10656. test "$can_build_shared" = "no" && enable_shared=no
  10657. # On AIX, shared libraries and static libraries use the same namespace, and
  10658. # are all built from PIC.
  10659. case $host_os in
  10660. aix3*)
  10661. test "$enable_shared" = yes && enable_static=no
  10662. if test -n "$RANLIB"; then
  10663. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10664. postinstall_cmds='$RANLIB $lib'
  10665. fi
  10666. ;;
  10667. aix[4-9]*)
  10668. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10669. test "$enable_shared" = yes && enable_static=no
  10670. fi
  10671. ;;
  10672. esac
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10674. $as_echo "$enable_shared" >&6; }
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10676. $as_echo_n "checking whether to build static libraries... " >&6; }
  10677. # Make sure either enable_shared or enable_static is yes.
  10678. test "$enable_shared" = yes || enable_static=yes
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10680. $as_echo "$enable_static" >&6; }
  10681. fi
  10682. ac_ext=c
  10683. ac_cpp='$CPP $CPPFLAGS'
  10684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10687. CC="$lt_save_CC"
  10688. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10689. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10690. (test "X$CXX" != "Xg++"))) ; then
  10691. ac_ext=cpp
  10692. ac_cpp='$CXXCPP $CPPFLAGS'
  10693. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10694. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10695. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10697. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10698. if test -z "$CXXCPP"; then
  10699. if ${ac_cv_prog_CXXCPP+:} false; then :
  10700. $as_echo_n "(cached) " >&6
  10701. else
  10702. # Double quotes because CXXCPP needs to be expanded
  10703. for CXXCPP in "$CXX -E" "/lib/cpp"
  10704. do
  10705. ac_preproc_ok=false
  10706. for ac_cxx_preproc_warn_flag in '' yes
  10707. do
  10708. # Use a header file that comes with gcc, so configuring glibc
  10709. # with a fresh cross-compiler works.
  10710. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10711. # <limits.h> exists even on freestanding compilers.
  10712. # On the NeXT, cc -E runs the code through the compiler's parser,
  10713. # not just through cpp. "Syntax error" is here to catch this case.
  10714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10715. /* end confdefs.h. */
  10716. #ifdef __STDC__
  10717. # include <limits.h>
  10718. #else
  10719. # include <assert.h>
  10720. #endif
  10721. Syntax error
  10722. _ACEOF
  10723. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10724. else
  10725. # Broken: fails on valid input.
  10726. continue
  10727. fi
  10728. rm -f conftest.err conftest.i conftest.$ac_ext
  10729. # OK, works on sane cases. Now check whether nonexistent headers
  10730. # can be detected and how.
  10731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10732. /* end confdefs.h. */
  10733. #include <ac_nonexistent.h>
  10734. _ACEOF
  10735. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10736. # Broken: success on invalid input.
  10737. continue
  10738. else
  10739. # Passes both tests.
  10740. ac_preproc_ok=:
  10741. break
  10742. fi
  10743. rm -f conftest.err conftest.i conftest.$ac_ext
  10744. done
  10745. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10746. rm -f conftest.i conftest.err conftest.$ac_ext
  10747. if $ac_preproc_ok; then :
  10748. break
  10749. fi
  10750. done
  10751. ac_cv_prog_CXXCPP=$CXXCPP
  10752. fi
  10753. CXXCPP=$ac_cv_prog_CXXCPP
  10754. else
  10755. ac_cv_prog_CXXCPP=$CXXCPP
  10756. fi
  10757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10758. $as_echo "$CXXCPP" >&6; }
  10759. ac_preproc_ok=false
  10760. for ac_cxx_preproc_warn_flag in '' yes
  10761. do
  10762. # Use a header file that comes with gcc, so configuring glibc
  10763. # with a fresh cross-compiler works.
  10764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10765. # <limits.h> exists even on freestanding compilers.
  10766. # On the NeXT, cc -E runs the code through the compiler's parser,
  10767. # not just through cpp. "Syntax error" is here to catch this case.
  10768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10769. /* end confdefs.h. */
  10770. #ifdef __STDC__
  10771. # include <limits.h>
  10772. #else
  10773. # include <assert.h>
  10774. #endif
  10775. Syntax error
  10776. _ACEOF
  10777. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10778. else
  10779. # Broken: fails on valid input.
  10780. continue
  10781. fi
  10782. rm -f conftest.err conftest.i conftest.$ac_ext
  10783. # OK, works on sane cases. Now check whether nonexistent headers
  10784. # can be detected and how.
  10785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10786. /* end confdefs.h. */
  10787. #include <ac_nonexistent.h>
  10788. _ACEOF
  10789. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10790. # Broken: success on invalid input.
  10791. continue
  10792. else
  10793. # Passes both tests.
  10794. ac_preproc_ok=:
  10795. break
  10796. fi
  10797. rm -f conftest.err conftest.i conftest.$ac_ext
  10798. done
  10799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10800. rm -f conftest.i conftest.err conftest.$ac_ext
  10801. if $ac_preproc_ok; then :
  10802. else
  10803. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10804. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10805. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10806. See \`config.log' for more details" "$LINENO" 5; }
  10807. fi
  10808. ac_ext=c
  10809. ac_cpp='$CPP $CPPFLAGS'
  10810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10813. else
  10814. _lt_caught_CXX_error=yes
  10815. fi
  10816. ac_ext=cpp
  10817. ac_cpp='$CXXCPP $CPPFLAGS'
  10818. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10819. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10820. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10821. archive_cmds_need_lc_CXX=no
  10822. allow_undefined_flag_CXX=
  10823. always_export_symbols_CXX=no
  10824. archive_expsym_cmds_CXX=
  10825. compiler_needs_object_CXX=no
  10826. export_dynamic_flag_spec_CXX=
  10827. hardcode_direct_CXX=no
  10828. hardcode_direct_absolute_CXX=no
  10829. hardcode_libdir_flag_spec_CXX=
  10830. hardcode_libdir_flag_spec_ld_CXX=
  10831. hardcode_libdir_separator_CXX=
  10832. hardcode_minus_L_CXX=no
  10833. hardcode_shlibpath_var_CXX=unsupported
  10834. hardcode_automatic_CXX=no
  10835. inherit_rpath_CXX=no
  10836. module_cmds_CXX=
  10837. module_expsym_cmds_CXX=
  10838. link_all_deplibs_CXX=unknown
  10839. old_archive_cmds_CXX=$old_archive_cmds
  10840. reload_flag_CXX=$reload_flag
  10841. reload_cmds_CXX=$reload_cmds
  10842. no_undefined_flag_CXX=
  10843. whole_archive_flag_spec_CXX=
  10844. enable_shared_with_static_runtimes_CXX=no
  10845. # Source file extension for C++ test sources.
  10846. ac_ext=cpp
  10847. # Object file extension for compiled C++ test sources.
  10848. objext=o
  10849. objext_CXX=$objext
  10850. # No sense in running all these tests if we already determined that
  10851. # the CXX compiler isn't working. Some variables (like enable_shared)
  10852. # are currently assumed to apply to all compilers on this platform,
  10853. # and will be corrupted by setting them based on a non-working compiler.
  10854. if test "$_lt_caught_CXX_error" != yes; then
  10855. # Code to be used in simple compile tests
  10856. lt_simple_compile_test_code="int some_variable = 0;"
  10857. # Code to be used in simple link tests
  10858. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10859. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10860. # If no C compiler was specified, use CC.
  10861. LTCC=${LTCC-"$CC"}
  10862. # If no C compiler flags were specified, use CFLAGS.
  10863. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10864. # Allow CC to be a program name with arguments.
  10865. compiler=$CC
  10866. # save warnings/boilerplate of simple test code
  10867. ac_outfile=conftest.$ac_objext
  10868. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10869. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10870. _lt_compiler_boilerplate=`cat conftest.err`
  10871. $RM conftest*
  10872. ac_outfile=conftest.$ac_objext
  10873. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10874. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10875. _lt_linker_boilerplate=`cat conftest.err`
  10876. $RM -r conftest*
  10877. # Allow CC to be a program name with arguments.
  10878. lt_save_CC=$CC
  10879. lt_save_LD=$LD
  10880. lt_save_GCC=$GCC
  10881. GCC=$GXX
  10882. lt_save_with_gnu_ld=$with_gnu_ld
  10883. lt_save_path_LD=$lt_cv_path_LD
  10884. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10885. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10886. else
  10887. $as_unset lt_cv_prog_gnu_ld
  10888. fi
  10889. if test -n "${lt_cv_path_LDCXX+set}"; then
  10890. lt_cv_path_LD=$lt_cv_path_LDCXX
  10891. else
  10892. $as_unset lt_cv_path_LD
  10893. fi
  10894. test -z "${LDCXX+set}" || LD=$LDCXX
  10895. CC=${CXX-"c++"}
  10896. compiler=$CC
  10897. compiler_CXX=$CC
  10898. for cc_temp in $compiler""; do
  10899. case $cc_temp in
  10900. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10901. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10902. \-*) ;;
  10903. *) break;;
  10904. esac
  10905. done
  10906. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10907. if test -n "$compiler"; then
  10908. # We don't want -fno-exception when compiling C++ code, so set the
  10909. # no_builtin_flag separately
  10910. if test "$GXX" = yes; then
  10911. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10912. else
  10913. lt_prog_compiler_no_builtin_flag_CXX=
  10914. fi
  10915. if test "$GXX" = yes; then
  10916. # Set up default GNU C++ configuration
  10917. # Check whether --with-gnu-ld was given.
  10918. if test "${with_gnu_ld+set}" = set; then :
  10919. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10920. else
  10921. with_gnu_ld=no
  10922. fi
  10923. ac_prog=ld
  10924. if test "$GCC" = yes; then
  10925. # Check if gcc -print-prog-name=ld gives a path.
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10927. $as_echo_n "checking for ld used by $CC... " >&6; }
  10928. case $host in
  10929. *-*-mingw*)
  10930. # gcc leaves a trailing carriage return which upsets mingw
  10931. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10932. *)
  10933. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10934. esac
  10935. case $ac_prog in
  10936. # Accept absolute paths.
  10937. [\\/]* | ?:[\\/]*)
  10938. re_direlt='/[^/][^/]*/\.\./'
  10939. # Canonicalize the pathname of ld
  10940. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10941. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10942. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10943. done
  10944. test -z "$LD" && LD="$ac_prog"
  10945. ;;
  10946. "")
  10947. # If it fails, then pretend we aren't using GCC.
  10948. ac_prog=ld
  10949. ;;
  10950. *)
  10951. # If it is relative, then search for the first ld in PATH.
  10952. with_gnu_ld=unknown
  10953. ;;
  10954. esac
  10955. elif test "$with_gnu_ld" = yes; then
  10956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10957. $as_echo_n "checking for GNU ld... " >&6; }
  10958. else
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10960. $as_echo_n "checking for non-GNU ld... " >&6; }
  10961. fi
  10962. if ${lt_cv_path_LD+:} false; then :
  10963. $as_echo_n "(cached) " >&6
  10964. else
  10965. if test -z "$LD"; then
  10966. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10967. for ac_dir in $PATH; do
  10968. IFS="$lt_save_ifs"
  10969. test -z "$ac_dir" && ac_dir=.
  10970. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10971. lt_cv_path_LD="$ac_dir/$ac_prog"
  10972. # Check to see if the program is GNU ld. I'd rather use --version,
  10973. # but apparently some variants of GNU ld only accept -v.
  10974. # Break only if it was the GNU/non-GNU ld that we prefer.
  10975. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10976. *GNU* | *'with BFD'*)
  10977. test "$with_gnu_ld" != no && break
  10978. ;;
  10979. *)
  10980. test "$with_gnu_ld" != yes && break
  10981. ;;
  10982. esac
  10983. fi
  10984. done
  10985. IFS="$lt_save_ifs"
  10986. else
  10987. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10988. fi
  10989. fi
  10990. LD="$lt_cv_path_LD"
  10991. if test -n "$LD"; then
  10992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10993. $as_echo "$LD" >&6; }
  10994. else
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10996. $as_echo "no" >&6; }
  10997. fi
  10998. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11000. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11001. if ${lt_cv_prog_gnu_ld+:} false; then :
  11002. $as_echo_n "(cached) " >&6
  11003. else
  11004. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11005. case `$LD -v 2>&1 </dev/null` in
  11006. *GNU* | *'with BFD'*)
  11007. lt_cv_prog_gnu_ld=yes
  11008. ;;
  11009. *)
  11010. lt_cv_prog_gnu_ld=no
  11011. ;;
  11012. esac
  11013. fi
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11015. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11016. with_gnu_ld=$lt_cv_prog_gnu_ld
  11017. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11018. # archiving commands below assume that GNU ld is being used.
  11019. if test "$with_gnu_ld" = yes; then
  11020. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11021. 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'
  11022. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11023. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11024. # If archive_cmds runs LD, not CC, wlarc should be empty
  11025. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11026. # investigate it a little bit more. (MM)
  11027. wlarc='${wl}'
  11028. # ancient GNU ld didn't support --whole-archive et. al.
  11029. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11030. $GREP 'no-whole-archive' > /dev/null; then
  11031. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11032. else
  11033. whole_archive_flag_spec_CXX=
  11034. fi
  11035. else
  11036. with_gnu_ld=no
  11037. wlarc=
  11038. # A generic and very simple default shared library creation
  11039. # command for GNU C++ for the case where it uses the native
  11040. # linker, instead of GNU ld. If possible, this setting should
  11041. # overridden to take advantage of the native linker features on
  11042. # the platform it is being used on.
  11043. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11044. fi
  11045. # Commands to make compiler produce verbose output that lists
  11046. # what "hidden" libraries, object files and flags are used when
  11047. # linking a shared library.
  11048. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11049. else
  11050. GXX=no
  11051. with_gnu_ld=no
  11052. wlarc=
  11053. fi
  11054. # PORTME: fill in a description of your system's C++ link characteristics
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11056. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11057. ld_shlibs_CXX=yes
  11058. case $host_os in
  11059. aix3*)
  11060. # FIXME: insert proper C++ library support
  11061. ld_shlibs_CXX=no
  11062. ;;
  11063. aix[4-9]*)
  11064. if test "$host_cpu" = ia64; then
  11065. # On IA64, the linker does run time linking by default, so we don't
  11066. # have to do anything special.
  11067. aix_use_runtimelinking=no
  11068. exp_sym_flag='-Bexport'
  11069. no_entry_flag=""
  11070. else
  11071. aix_use_runtimelinking=no
  11072. # Test if we are trying to use run time linking or normal
  11073. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11074. # need to do runtime linking.
  11075. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11076. for ld_flag in $LDFLAGS; do
  11077. case $ld_flag in
  11078. *-brtl*)
  11079. aix_use_runtimelinking=yes
  11080. break
  11081. ;;
  11082. esac
  11083. done
  11084. ;;
  11085. esac
  11086. exp_sym_flag='-bexport'
  11087. no_entry_flag='-bnoentry'
  11088. fi
  11089. # When large executables or shared objects are built, AIX ld can
  11090. # have problems creating the table of contents. If linking a library
  11091. # or program results in "error TOC overflow" add -mminimal-toc to
  11092. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11093. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11094. archive_cmds_CXX=''
  11095. hardcode_direct_CXX=yes
  11096. hardcode_direct_absolute_CXX=yes
  11097. hardcode_libdir_separator_CXX=':'
  11098. link_all_deplibs_CXX=yes
  11099. file_list_spec_CXX='${wl}-f,'
  11100. if test "$GXX" = yes; then
  11101. case $host_os in aix4.[012]|aix4.[012].*)
  11102. # We only want to do this on AIX 4.2 and lower, the check
  11103. # below for broken collect2 doesn't work under 4.3+
  11104. collect2name=`${CC} -print-prog-name=collect2`
  11105. if test -f "$collect2name" &&
  11106. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11107. then
  11108. # We have reworked collect2
  11109. :
  11110. else
  11111. # We have old collect2
  11112. hardcode_direct_CXX=unsupported
  11113. # It fails to find uninstalled libraries when the uninstalled
  11114. # path is not listed in the libpath. Setting hardcode_minus_L
  11115. # to unsupported forces relinking
  11116. hardcode_minus_L_CXX=yes
  11117. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11118. hardcode_libdir_separator_CXX=
  11119. fi
  11120. esac
  11121. shared_flag='-shared'
  11122. if test "$aix_use_runtimelinking" = yes; then
  11123. shared_flag="$shared_flag "'${wl}-G'
  11124. fi
  11125. else
  11126. # not using gcc
  11127. if test "$host_cpu" = ia64; then
  11128. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11129. # chokes on -Wl,-G. The following line is correct:
  11130. shared_flag='-G'
  11131. else
  11132. if test "$aix_use_runtimelinking" = yes; then
  11133. shared_flag='${wl}-G'
  11134. else
  11135. shared_flag='${wl}-bM:SRE'
  11136. fi
  11137. fi
  11138. fi
  11139. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11140. # It seems that -bexpall does not export symbols beginning with
  11141. # underscore (_), so it is better to generate a list of symbols to
  11142. # export.
  11143. always_export_symbols_CXX=yes
  11144. if test "$aix_use_runtimelinking" = yes; then
  11145. # Warning - without using the other runtime loading flags (-brtl),
  11146. # -berok will link without error, but may produce a broken library.
  11147. allow_undefined_flag_CXX='-berok'
  11148. # Determine the default libpath from the value encoded in an empty
  11149. # executable.
  11150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11151. /* end confdefs.h. */
  11152. int
  11153. main ()
  11154. {
  11155. ;
  11156. return 0;
  11157. }
  11158. _ACEOF
  11159. if ac_fn_cxx_try_link "$LINENO"; then :
  11160. lt_aix_libpath_sed='
  11161. /Import File Strings/,/^$/ {
  11162. /^0/ {
  11163. s/^0 *\(.*\)$/\1/
  11164. p
  11165. }
  11166. }'
  11167. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11168. # Check for a 64-bit object if we didn't find anything.
  11169. if test -z "$aix_libpath"; then
  11170. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11171. fi
  11172. fi
  11173. rm -f core conftest.err conftest.$ac_objext \
  11174. conftest$ac_exeext conftest.$ac_ext
  11175. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11176. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11177. 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"
  11178. else
  11179. if test "$host_cpu" = ia64; then
  11180. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11181. allow_undefined_flag_CXX="-z nodefs"
  11182. 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"
  11183. else
  11184. # Determine the default libpath from the value encoded in an
  11185. # empty executable.
  11186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11187. /* end confdefs.h. */
  11188. int
  11189. main ()
  11190. {
  11191. ;
  11192. return 0;
  11193. }
  11194. _ACEOF
  11195. if ac_fn_cxx_try_link "$LINENO"; then :
  11196. lt_aix_libpath_sed='
  11197. /Import File Strings/,/^$/ {
  11198. /^0/ {
  11199. s/^0 *\(.*\)$/\1/
  11200. p
  11201. }
  11202. }'
  11203. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11204. # Check for a 64-bit object if we didn't find anything.
  11205. if test -z "$aix_libpath"; then
  11206. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11207. fi
  11208. fi
  11209. rm -f core conftest.err conftest.$ac_objext \
  11210. conftest$ac_exeext conftest.$ac_ext
  11211. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11212. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11213. # Warning - without using the other run time loading flags,
  11214. # -berok will link without error, but may produce a broken library.
  11215. no_undefined_flag_CXX=' ${wl}-bernotok'
  11216. allow_undefined_flag_CXX=' ${wl}-berok'
  11217. if test "$with_gnu_ld" = yes; then
  11218. # We only use this code for GNU lds that support --whole-archive.
  11219. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11220. else
  11221. # Exported symbols can be pulled into shared objects from archives
  11222. whole_archive_flag_spec_CXX='$convenience'
  11223. fi
  11224. archive_cmds_need_lc_CXX=yes
  11225. # This is similar to how AIX traditionally builds its shared
  11226. # libraries.
  11227. 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'
  11228. fi
  11229. fi
  11230. ;;
  11231. beos*)
  11232. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11233. allow_undefined_flag_CXX=unsupported
  11234. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11235. # support --undefined. This deserves some investigation. FIXME
  11236. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11237. else
  11238. ld_shlibs_CXX=no
  11239. fi
  11240. ;;
  11241. chorus*)
  11242. case $cc_basename in
  11243. *)
  11244. # FIXME: insert proper C++ library support
  11245. ld_shlibs_CXX=no
  11246. ;;
  11247. esac
  11248. ;;
  11249. cygwin* | mingw* | pw32* | cegcc*)
  11250. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11251. # as there is no search path for DLLs.
  11252. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11253. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11254. allow_undefined_flag_CXX=unsupported
  11255. always_export_symbols_CXX=no
  11256. enable_shared_with_static_runtimes_CXX=yes
  11257. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11258. 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'
  11259. # If the export-symbols file already is a .def file (1st line
  11260. # is EXPORTS), use it as is; otherwise, prepend...
  11261. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11262. cp $export_symbols $output_objdir/$soname.def;
  11263. else
  11264. echo EXPORTS > $output_objdir/$soname.def;
  11265. cat $export_symbols >> $output_objdir/$soname.def;
  11266. fi~
  11267. $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'
  11268. else
  11269. ld_shlibs_CXX=no
  11270. fi
  11271. ;;
  11272. darwin* | rhapsody*)
  11273. archive_cmds_need_lc_CXX=no
  11274. hardcode_direct_CXX=no
  11275. hardcode_automatic_CXX=yes
  11276. hardcode_shlibpath_var_CXX=unsupported
  11277. if test "$lt_cv_ld_force_load" = "yes"; then
  11278. 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\"`'
  11279. else
  11280. whole_archive_flag_spec_CXX=''
  11281. fi
  11282. link_all_deplibs_CXX=yes
  11283. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11284. case $cc_basename in
  11285. ifort*) _lt_dar_can_shared=yes ;;
  11286. *) _lt_dar_can_shared=$GCC ;;
  11287. esac
  11288. if test "$_lt_dar_can_shared" = "yes"; then
  11289. output_verbose_link_cmd=func_echo_all
  11290. 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}"
  11291. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11292. 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}"
  11293. 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}"
  11294. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11295. 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}"
  11296. 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}"
  11297. fi
  11298. else
  11299. ld_shlibs_CXX=no
  11300. fi
  11301. ;;
  11302. dgux*)
  11303. case $cc_basename in
  11304. ec++*)
  11305. # FIXME: insert proper C++ library support
  11306. ld_shlibs_CXX=no
  11307. ;;
  11308. ghcx*)
  11309. # Green Hills C++ Compiler
  11310. # FIXME: insert proper C++ library support
  11311. ld_shlibs_CXX=no
  11312. ;;
  11313. *)
  11314. # FIXME: insert proper C++ library support
  11315. ld_shlibs_CXX=no
  11316. ;;
  11317. esac
  11318. ;;
  11319. freebsd2.*)
  11320. # C++ shared libraries reported to be fairly broken before
  11321. # switch to ELF
  11322. ld_shlibs_CXX=no
  11323. ;;
  11324. freebsd-elf*)
  11325. archive_cmds_need_lc_CXX=no
  11326. ;;
  11327. freebsd* | dragonfly*)
  11328. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11329. # conventions
  11330. ld_shlibs_CXX=yes
  11331. ;;
  11332. gnu*)
  11333. ;;
  11334. haiku*)
  11335. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11336. link_all_deplibs_CXX=yes
  11337. ;;
  11338. hpux9*)
  11339. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11340. hardcode_libdir_separator_CXX=:
  11341. export_dynamic_flag_spec_CXX='${wl}-E'
  11342. hardcode_direct_CXX=yes
  11343. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11344. # but as the default
  11345. # location of the library.
  11346. case $cc_basename in
  11347. CC*)
  11348. # FIXME: insert proper C++ library support
  11349. ld_shlibs_CXX=no
  11350. ;;
  11351. aCC*)
  11352. 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'
  11353. # Commands to make compiler produce verbose output that lists
  11354. # what "hidden" libraries, object files and flags are used when
  11355. # linking a shared library.
  11356. #
  11357. # There doesn't appear to be a way to prevent this compiler from
  11358. # explicitly linking system object files so we need to strip them
  11359. # from the output so that they don't get included in the library
  11360. # dependencies.
  11361. 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"'
  11362. ;;
  11363. *)
  11364. if test "$GXX" = yes; then
  11365. 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'
  11366. else
  11367. # FIXME: insert proper C++ library support
  11368. ld_shlibs_CXX=no
  11369. fi
  11370. ;;
  11371. esac
  11372. ;;
  11373. hpux10*|hpux11*)
  11374. if test $with_gnu_ld = no; then
  11375. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11376. hardcode_libdir_separator_CXX=:
  11377. case $host_cpu in
  11378. hppa*64*|ia64*)
  11379. ;;
  11380. *)
  11381. export_dynamic_flag_spec_CXX='${wl}-E'
  11382. ;;
  11383. esac
  11384. fi
  11385. case $host_cpu in
  11386. hppa*64*|ia64*)
  11387. hardcode_direct_CXX=no
  11388. hardcode_shlibpath_var_CXX=no
  11389. ;;
  11390. *)
  11391. hardcode_direct_CXX=yes
  11392. hardcode_direct_absolute_CXX=yes
  11393. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11394. # but as the default
  11395. # location of the library.
  11396. ;;
  11397. esac
  11398. case $cc_basename in
  11399. CC*)
  11400. # FIXME: insert proper C++ library support
  11401. ld_shlibs_CXX=no
  11402. ;;
  11403. aCC*)
  11404. case $host_cpu in
  11405. hppa*64*)
  11406. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11407. ;;
  11408. ia64*)
  11409. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11410. ;;
  11411. *)
  11412. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11413. ;;
  11414. esac
  11415. # Commands to make compiler produce verbose output that lists
  11416. # what "hidden" libraries, object files and flags are used when
  11417. # linking a shared library.
  11418. #
  11419. # There doesn't appear to be a way to prevent this compiler from
  11420. # explicitly linking system object files so we need to strip them
  11421. # from the output so that they don't get included in the library
  11422. # dependencies.
  11423. 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"'
  11424. ;;
  11425. *)
  11426. if test "$GXX" = yes; then
  11427. if test $with_gnu_ld = no; then
  11428. case $host_cpu in
  11429. hppa*64*)
  11430. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11431. ;;
  11432. ia64*)
  11433. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11434. ;;
  11435. *)
  11436. 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'
  11437. ;;
  11438. esac
  11439. fi
  11440. else
  11441. # FIXME: insert proper C++ library support
  11442. ld_shlibs_CXX=no
  11443. fi
  11444. ;;
  11445. esac
  11446. ;;
  11447. interix[3-9]*)
  11448. hardcode_direct_CXX=no
  11449. hardcode_shlibpath_var_CXX=no
  11450. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11451. export_dynamic_flag_spec_CXX='${wl}-E'
  11452. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11453. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11454. # default) and relocated if they conflict, which is a slow very memory
  11455. # consuming and fragmenting process. To avoid this, we pick a random,
  11456. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11457. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11458. 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'
  11459. 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'
  11460. ;;
  11461. irix5* | irix6*)
  11462. case $cc_basename in
  11463. CC*)
  11464. # SGI C++
  11465. 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'
  11466. # Archives containing C++ object files must be created using
  11467. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11468. # necessary to make sure instantiated templates are included
  11469. # in the archive.
  11470. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11471. ;;
  11472. *)
  11473. if test "$GXX" = yes; then
  11474. if test "$with_gnu_ld" = no; then
  11475. 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'
  11476. else
  11477. 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'
  11478. fi
  11479. fi
  11480. link_all_deplibs_CXX=yes
  11481. ;;
  11482. esac
  11483. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11484. hardcode_libdir_separator_CXX=:
  11485. inherit_rpath_CXX=yes
  11486. ;;
  11487. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11488. case $cc_basename in
  11489. KCC*)
  11490. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11491. # KCC will only create a shared library if the output file
  11492. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11493. # to its proper name (with version) after linking.
  11494. 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'
  11495. 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'
  11496. # Commands to make compiler produce verbose output that lists
  11497. # what "hidden" libraries, object files and flags are used when
  11498. # linking a shared library.
  11499. #
  11500. # There doesn't appear to be a way to prevent this compiler from
  11501. # explicitly linking system object files so we need to strip them
  11502. # from the output so that they don't get included in the library
  11503. # dependencies.
  11504. 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"'
  11505. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11506. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11507. # Archives containing C++ object files must be created using
  11508. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11509. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11510. ;;
  11511. icpc* | ecpc* )
  11512. # Intel C++
  11513. with_gnu_ld=yes
  11514. # version 8.0 and above of icpc choke on multiply defined symbols
  11515. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11516. # earlier do not add the objects themselves.
  11517. case `$CC -V 2>&1` in
  11518. *"Version 7."*)
  11519. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11520. 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'
  11521. ;;
  11522. *) # Version 8.0 or newer
  11523. tmp_idyn=
  11524. case $host_cpu in
  11525. ia64*) tmp_idyn=' -i_dynamic';;
  11526. esac
  11527. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11528. 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'
  11529. ;;
  11530. esac
  11531. archive_cmds_need_lc_CXX=no
  11532. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11533. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11534. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11535. ;;
  11536. pgCC* | pgcpp*)
  11537. # Portland Group C++ compiler
  11538. case `$CC -V` in
  11539. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11540. prelink_cmds_CXX='tpldir=Template.dir~
  11541. rm -rf $tpldir~
  11542. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11543. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11544. old_archive_cmds_CXX='tpldir=Template.dir~
  11545. rm -rf $tpldir~
  11546. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11547. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11548. $RANLIB $oldlib'
  11549. archive_cmds_CXX='tpldir=Template.dir~
  11550. rm -rf $tpldir~
  11551. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11552. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11553. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11554. rm -rf $tpldir~
  11555. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11556. $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'
  11557. ;;
  11558. *) # Version 6 and above use weak symbols
  11559. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11560. 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'
  11561. ;;
  11562. esac
  11563. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11564. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11565. 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'
  11566. ;;
  11567. cxx*)
  11568. # Compaq C++
  11569. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11570. 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'
  11571. runpath_var=LD_RUN_PATH
  11572. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11573. hardcode_libdir_separator_CXX=:
  11574. # Commands to make compiler produce verbose output that lists
  11575. # what "hidden" libraries, object files and flags are used when
  11576. # linking a shared library.
  11577. #
  11578. # There doesn't appear to be a way to prevent this compiler from
  11579. # explicitly linking system object files so we need to strip them
  11580. # from the output so that they don't get included in the library
  11581. # dependencies.
  11582. 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'
  11583. ;;
  11584. xl* | mpixl* | bgxl*)
  11585. # IBM XL 8.0 on PPC, with GNU ld
  11586. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11587. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11588. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11589. if test "x$supports_anon_versioning" = xyes; then
  11590. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11591. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11592. echo "local: *; };" >> $output_objdir/$libname.ver~
  11593. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11594. fi
  11595. ;;
  11596. *)
  11597. case `$CC -V 2>&1 | sed 5q` in
  11598. *Sun\ C*)
  11599. # Sun C++ 5.9
  11600. no_undefined_flag_CXX=' -zdefs'
  11601. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11602. 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'
  11603. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11604. 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'
  11605. compiler_needs_object_CXX=yes
  11606. # Not sure whether something based on
  11607. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11608. # would be better.
  11609. output_verbose_link_cmd='func_echo_all'
  11610. # Archives containing C++ object files must be created using
  11611. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11612. # necessary to make sure instantiated templates are included
  11613. # in the archive.
  11614. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11615. ;;
  11616. esac
  11617. ;;
  11618. esac
  11619. ;;
  11620. lynxos*)
  11621. # FIXME: insert proper C++ library support
  11622. ld_shlibs_CXX=no
  11623. ;;
  11624. m88k*)
  11625. # FIXME: insert proper C++ library support
  11626. ld_shlibs_CXX=no
  11627. ;;
  11628. mvs*)
  11629. case $cc_basename in
  11630. cxx*)
  11631. # FIXME: insert proper C++ library support
  11632. ld_shlibs_CXX=no
  11633. ;;
  11634. *)
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. ;;
  11638. esac
  11639. ;;
  11640. netbsd*)
  11641. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11642. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11643. wlarc=
  11644. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11645. hardcode_direct_CXX=yes
  11646. hardcode_shlibpath_var_CXX=no
  11647. fi
  11648. # Workaround some broken pre-1.5 toolchains
  11649. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11650. ;;
  11651. *nto* | *qnx*)
  11652. ld_shlibs_CXX=yes
  11653. ;;
  11654. openbsd2*)
  11655. # C++ shared libraries are fairly broken
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. openbsd*)
  11659. if test -f /usr/libexec/ld.so; then
  11660. hardcode_direct_CXX=yes
  11661. hardcode_shlibpath_var_CXX=no
  11662. hardcode_direct_absolute_CXX=yes
  11663. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11664. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11665. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11666. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11667. export_dynamic_flag_spec_CXX='${wl}-E'
  11668. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11669. fi
  11670. output_verbose_link_cmd=func_echo_all
  11671. else
  11672. ld_shlibs_CXX=no
  11673. fi
  11674. ;;
  11675. osf3* | osf4* | osf5*)
  11676. case $cc_basename in
  11677. KCC*)
  11678. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11679. # KCC will only create a shared library if the output file
  11680. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11681. # to its proper name (with version) after linking.
  11682. 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'
  11683. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11684. hardcode_libdir_separator_CXX=:
  11685. # Archives containing C++ object files must be created using
  11686. # the KAI C++ compiler.
  11687. case $host in
  11688. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11689. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11690. esac
  11691. ;;
  11692. RCC*)
  11693. # Rational C++ 2.4.1
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. cxx*)
  11698. case $host in
  11699. osf3*)
  11700. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11701. 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'
  11702. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11703. ;;
  11704. *)
  11705. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11706. 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'
  11707. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11708. echo "-hidden">> $lib.exp~
  11709. $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~
  11710. $RM $lib.exp'
  11711. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11712. ;;
  11713. esac
  11714. hardcode_libdir_separator_CXX=:
  11715. # Commands to make compiler produce verbose output that lists
  11716. # what "hidden" libraries, object files and flags are used when
  11717. # linking a shared library.
  11718. #
  11719. # There doesn't appear to be a way to prevent this compiler from
  11720. # explicitly linking system object files so we need to strip them
  11721. # from the output so that they don't get included in the library
  11722. # dependencies.
  11723. 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"'
  11724. ;;
  11725. *)
  11726. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11727. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11728. case $host in
  11729. osf3*)
  11730. 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'
  11731. ;;
  11732. *)
  11733. 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'
  11734. ;;
  11735. esac
  11736. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11737. hardcode_libdir_separator_CXX=:
  11738. # Commands to make compiler produce verbose output that lists
  11739. # what "hidden" libraries, object files and flags are used when
  11740. # linking a shared library.
  11741. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11742. else
  11743. # FIXME: insert proper C++ library support
  11744. ld_shlibs_CXX=no
  11745. fi
  11746. ;;
  11747. esac
  11748. ;;
  11749. psos*)
  11750. # FIXME: insert proper C++ library support
  11751. ld_shlibs_CXX=no
  11752. ;;
  11753. sunos4*)
  11754. case $cc_basename in
  11755. CC*)
  11756. # Sun C++ 4.x
  11757. # FIXME: insert proper C++ library support
  11758. ld_shlibs_CXX=no
  11759. ;;
  11760. lcc*)
  11761. # Lucid
  11762. # FIXME: insert proper C++ library support
  11763. ld_shlibs_CXX=no
  11764. ;;
  11765. *)
  11766. # FIXME: insert proper C++ library support
  11767. ld_shlibs_CXX=no
  11768. ;;
  11769. esac
  11770. ;;
  11771. solaris*)
  11772. case $cc_basename in
  11773. CC*)
  11774. # Sun C++ 4.2, 5.x and Centerline C++
  11775. archive_cmds_need_lc_CXX=yes
  11776. no_undefined_flag_CXX=' -zdefs'
  11777. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11778. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11779. $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'
  11780. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11781. hardcode_shlibpath_var_CXX=no
  11782. case $host_os in
  11783. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11784. *)
  11785. # The compiler driver will combine and reorder linker options,
  11786. # but understands `-z linker_flag'.
  11787. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11788. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11789. ;;
  11790. esac
  11791. link_all_deplibs_CXX=yes
  11792. output_verbose_link_cmd='func_echo_all'
  11793. # Archives containing C++ object files must be created using
  11794. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11795. # necessary to make sure instantiated templates are included
  11796. # in the archive.
  11797. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11798. ;;
  11799. gcx*)
  11800. # Green Hills C++ Compiler
  11801. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11802. # The C++ compiler must be used to create the archive.
  11803. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11804. ;;
  11805. *)
  11806. # GNU C++ compiler with Solaris linker
  11807. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11808. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11809. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11810. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11811. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11812. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11813. # Commands to make compiler produce verbose output that lists
  11814. # what "hidden" libraries, object files and flags are used when
  11815. # linking a shared library.
  11816. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11817. else
  11818. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11819. # platform.
  11820. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11821. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11822. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11823. # Commands to make compiler produce verbose output that lists
  11824. # what "hidden" libraries, object files and flags are used when
  11825. # linking a shared library.
  11826. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11827. fi
  11828. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11829. case $host_os in
  11830. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11831. *)
  11832. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11833. ;;
  11834. esac
  11835. fi
  11836. ;;
  11837. esac
  11838. ;;
  11839. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11840. no_undefined_flag_CXX='${wl}-z,text'
  11841. archive_cmds_need_lc_CXX=no
  11842. hardcode_shlibpath_var_CXX=no
  11843. runpath_var='LD_RUN_PATH'
  11844. case $cc_basename in
  11845. CC*)
  11846. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11847. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11848. ;;
  11849. *)
  11850. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11851. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11852. ;;
  11853. esac
  11854. ;;
  11855. sysv5* | sco3.2v5* | sco5v6*)
  11856. # Note: We can NOT use -z defs as we might desire, because we do not
  11857. # link with -lc, and that would cause any symbols used from libc to
  11858. # always be unresolved, which means just about no library would
  11859. # ever link correctly. If we're not using GNU ld we use -z text
  11860. # though, which does catch some bad symbols but isn't as heavy-handed
  11861. # as -z defs.
  11862. no_undefined_flag_CXX='${wl}-z,text'
  11863. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11864. archive_cmds_need_lc_CXX=no
  11865. hardcode_shlibpath_var_CXX=no
  11866. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11867. hardcode_libdir_separator_CXX=':'
  11868. link_all_deplibs_CXX=yes
  11869. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11870. runpath_var='LD_RUN_PATH'
  11871. case $cc_basename in
  11872. CC*)
  11873. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11874. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11875. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11876. '"$old_archive_cmds_CXX"
  11877. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11878. '"$reload_cmds_CXX"
  11879. ;;
  11880. *)
  11881. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11882. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11883. ;;
  11884. esac
  11885. ;;
  11886. tandem*)
  11887. case $cc_basename in
  11888. NCC*)
  11889. # NonStop-UX NCC 3.20
  11890. # FIXME: insert proper C++ library support
  11891. ld_shlibs_CXX=no
  11892. ;;
  11893. *)
  11894. # FIXME: insert proper C++ library support
  11895. ld_shlibs_CXX=no
  11896. ;;
  11897. esac
  11898. ;;
  11899. vxworks*)
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. *)
  11904. # FIXME: insert proper C++ library support
  11905. ld_shlibs_CXX=no
  11906. ;;
  11907. esac
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11909. $as_echo "$ld_shlibs_CXX" >&6; }
  11910. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11911. GCC_CXX="$GXX"
  11912. LD_CXX="$LD"
  11913. ## CAVEAT EMPTOR:
  11914. ## There is no encapsulation within the following macros, do not change
  11915. ## the running order or otherwise move them around unless you know exactly
  11916. ## what you are doing...
  11917. # Dependencies to place before and after the object being linked:
  11918. predep_objects_CXX=
  11919. postdep_objects_CXX=
  11920. predeps_CXX=
  11921. postdeps_CXX=
  11922. compiler_lib_search_path_CXX=
  11923. cat > conftest.$ac_ext <<_LT_EOF
  11924. class Foo
  11925. {
  11926. public:
  11927. Foo (void) { a = 0; }
  11928. private:
  11929. int a;
  11930. };
  11931. _LT_EOF
  11932. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11933. (eval $ac_compile) 2>&5
  11934. ac_status=$?
  11935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11936. test $ac_status = 0; }; then
  11937. # Parse the compiler output and extract the necessary
  11938. # objects, libraries and library flags.
  11939. # Sentinel used to keep track of whether or not we are before
  11940. # the conftest object file.
  11941. pre_test_object_deps_done=no
  11942. for p in `eval "$output_verbose_link_cmd"`; do
  11943. case $p in
  11944. -L* | -R* | -l*)
  11945. # Some compilers place space between "-{L,R}" and the path.
  11946. # Remove the space.
  11947. if test $p = "-L" ||
  11948. test $p = "-R"; then
  11949. prev=$p
  11950. continue
  11951. else
  11952. prev=
  11953. fi
  11954. if test "$pre_test_object_deps_done" = no; then
  11955. case $p in
  11956. -L* | -R*)
  11957. # Internal compiler library paths should come after those
  11958. # provided the user. The postdeps already come after the
  11959. # user supplied libs so there is no need to process them.
  11960. if test -z "$compiler_lib_search_path_CXX"; then
  11961. compiler_lib_search_path_CXX="${prev}${p}"
  11962. else
  11963. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11964. fi
  11965. ;;
  11966. # The "-l" case would never come before the object being
  11967. # linked, so don't bother handling this case.
  11968. esac
  11969. else
  11970. if test -z "$postdeps_CXX"; then
  11971. postdeps_CXX="${prev}${p}"
  11972. else
  11973. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11974. fi
  11975. fi
  11976. ;;
  11977. *.$objext)
  11978. # This assumes that the test object file only shows up
  11979. # once in the compiler output.
  11980. if test "$p" = "conftest.$objext"; then
  11981. pre_test_object_deps_done=yes
  11982. continue
  11983. fi
  11984. if test "$pre_test_object_deps_done" = no; then
  11985. if test -z "$predep_objects_CXX"; then
  11986. predep_objects_CXX="$p"
  11987. else
  11988. predep_objects_CXX="$predep_objects_CXX $p"
  11989. fi
  11990. else
  11991. if test -z "$postdep_objects_CXX"; then
  11992. postdep_objects_CXX="$p"
  11993. else
  11994. postdep_objects_CXX="$postdep_objects_CXX $p"
  11995. fi
  11996. fi
  11997. ;;
  11998. *) ;; # Ignore the rest.
  11999. esac
  12000. done
  12001. # Clean up.
  12002. rm -f a.out a.exe
  12003. else
  12004. echo "libtool.m4: error: problem compiling CXX test program"
  12005. fi
  12006. $RM -f confest.$objext
  12007. # PORTME: override above test on systems where it is broken
  12008. case $host_os in
  12009. interix[3-9]*)
  12010. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12011. # hack all around it, let's just trust "g++" to DTRT.
  12012. predep_objects_CXX=
  12013. postdep_objects_CXX=
  12014. postdeps_CXX=
  12015. ;;
  12016. linux*)
  12017. case `$CC -V 2>&1 | sed 5q` in
  12018. *Sun\ C*)
  12019. # Sun C++ 5.9
  12020. # The more standards-conforming stlport4 library is
  12021. # incompatible with the Cstd library. Avoid specifying
  12022. # it if it's in CXXFLAGS. Ignore libCrun as
  12023. # -library=stlport4 depends on it.
  12024. case " $CXX $CXXFLAGS " in
  12025. *" -library=stlport4 "*)
  12026. solaris_use_stlport4=yes
  12027. ;;
  12028. esac
  12029. if test "$solaris_use_stlport4" != yes; then
  12030. postdeps_CXX='-library=Cstd -library=Crun'
  12031. fi
  12032. ;;
  12033. esac
  12034. ;;
  12035. solaris*)
  12036. case $cc_basename in
  12037. CC*)
  12038. # The more standards-conforming stlport4 library is
  12039. # incompatible with the Cstd library. Avoid specifying
  12040. # it if it's in CXXFLAGS. Ignore libCrun as
  12041. # -library=stlport4 depends on it.
  12042. case " $CXX $CXXFLAGS " in
  12043. *" -library=stlport4 "*)
  12044. solaris_use_stlport4=yes
  12045. ;;
  12046. esac
  12047. # Adding this requires a known-good setup of shared libraries for
  12048. # Sun compiler versions before 5.6, else PIC objects from an old
  12049. # archive will be linked into the output, leading to subtle bugs.
  12050. if test "$solaris_use_stlport4" != yes; then
  12051. postdeps_CXX='-library=Cstd -library=Crun'
  12052. fi
  12053. ;;
  12054. esac
  12055. ;;
  12056. esac
  12057. case " $postdeps_CXX " in
  12058. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12059. esac
  12060. compiler_lib_search_dirs_CXX=
  12061. if test -n "${compiler_lib_search_path_CXX}"; then
  12062. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12063. fi
  12064. lt_prog_compiler_wl_CXX=
  12065. lt_prog_compiler_pic_CXX=
  12066. lt_prog_compiler_static_CXX=
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12068. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12069. # C++ specific cases for pic, static, wl, etc.
  12070. if test "$GXX" = yes; then
  12071. lt_prog_compiler_wl_CXX='-Wl,'
  12072. lt_prog_compiler_static_CXX='-static'
  12073. case $host_os in
  12074. aix*)
  12075. # All AIX code is PIC.
  12076. if test "$host_cpu" = ia64; then
  12077. # AIX 5 now supports IA64 processor
  12078. lt_prog_compiler_static_CXX='-Bstatic'
  12079. fi
  12080. lt_prog_compiler_pic_CXX='-fPIC'
  12081. ;;
  12082. amigaos*)
  12083. case $host_cpu in
  12084. powerpc)
  12085. # see comment about AmigaOS4 .so support
  12086. lt_prog_compiler_pic_CXX='-fPIC'
  12087. ;;
  12088. m68k)
  12089. # FIXME: we need at least 68020 code to build shared libraries, but
  12090. # adding the `-m68020' flag to GCC prevents building anything better,
  12091. # like `-m68040'.
  12092. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12093. ;;
  12094. esac
  12095. ;;
  12096. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12097. # PIC is the default for these OSes.
  12098. ;;
  12099. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12100. # This hack is so that the source file can tell whether it is being
  12101. # built for inclusion in a dll (and should export symbols for example).
  12102. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12103. # (--disable-auto-import) libraries
  12104. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12105. ;;
  12106. darwin* | rhapsody*)
  12107. # PIC is the default on this platform
  12108. # Common symbols not allowed in MH_DYLIB files
  12109. lt_prog_compiler_pic_CXX='-fno-common'
  12110. ;;
  12111. *djgpp*)
  12112. # DJGPP does not support shared libraries at all
  12113. lt_prog_compiler_pic_CXX=
  12114. ;;
  12115. haiku*)
  12116. # PIC is the default for Haiku.
  12117. # The "-static" flag exists, but is broken.
  12118. lt_prog_compiler_static_CXX=
  12119. ;;
  12120. interix[3-9]*)
  12121. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12122. # Instead, we relocate shared libraries at runtime.
  12123. ;;
  12124. sysv4*MP*)
  12125. if test -d /usr/nec; then
  12126. lt_prog_compiler_pic_CXX=-Kconform_pic
  12127. fi
  12128. ;;
  12129. hpux*)
  12130. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12131. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12132. # sets the default TLS model and affects inlining.
  12133. case $host_cpu in
  12134. hppa*64*)
  12135. ;;
  12136. *)
  12137. lt_prog_compiler_pic_CXX='-fPIC'
  12138. ;;
  12139. esac
  12140. ;;
  12141. *qnx* | *nto*)
  12142. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12143. # it will coredump.
  12144. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12145. ;;
  12146. *)
  12147. lt_prog_compiler_pic_CXX='-fPIC'
  12148. ;;
  12149. esac
  12150. else
  12151. case $host_os in
  12152. aix[4-9]*)
  12153. # All AIX code is PIC.
  12154. if test "$host_cpu" = ia64; then
  12155. # AIX 5 now supports IA64 processor
  12156. lt_prog_compiler_static_CXX='-Bstatic'
  12157. else
  12158. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12159. fi
  12160. ;;
  12161. chorus*)
  12162. case $cc_basename in
  12163. cxch68*)
  12164. # Green Hills C++ Compiler
  12165. # _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"
  12166. ;;
  12167. esac
  12168. ;;
  12169. dgux*)
  12170. case $cc_basename in
  12171. ec++*)
  12172. lt_prog_compiler_pic_CXX='-KPIC'
  12173. ;;
  12174. ghcx*)
  12175. # Green Hills C++ Compiler
  12176. lt_prog_compiler_pic_CXX='-pic'
  12177. ;;
  12178. *)
  12179. ;;
  12180. esac
  12181. ;;
  12182. freebsd* | dragonfly*)
  12183. # FreeBSD uses GNU C++
  12184. ;;
  12185. hpux9* | hpux10* | hpux11*)
  12186. case $cc_basename in
  12187. CC*)
  12188. lt_prog_compiler_wl_CXX='-Wl,'
  12189. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12190. if test "$host_cpu" != ia64; then
  12191. lt_prog_compiler_pic_CXX='+Z'
  12192. fi
  12193. ;;
  12194. aCC*)
  12195. lt_prog_compiler_wl_CXX='-Wl,'
  12196. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12197. case $host_cpu in
  12198. hppa*64*|ia64*)
  12199. # +Z the default
  12200. ;;
  12201. *)
  12202. lt_prog_compiler_pic_CXX='+Z'
  12203. ;;
  12204. esac
  12205. ;;
  12206. *)
  12207. ;;
  12208. esac
  12209. ;;
  12210. interix*)
  12211. # This is c89, which is MS Visual C++ (no shared libs)
  12212. # Anyone wants to do a port?
  12213. ;;
  12214. irix5* | irix6* | nonstopux*)
  12215. case $cc_basename in
  12216. CC*)
  12217. lt_prog_compiler_wl_CXX='-Wl,'
  12218. lt_prog_compiler_static_CXX='-non_shared'
  12219. # CC pic flag -KPIC is the default.
  12220. ;;
  12221. *)
  12222. ;;
  12223. esac
  12224. ;;
  12225. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12226. case $cc_basename in
  12227. KCC*)
  12228. # KAI C++ Compiler
  12229. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12230. lt_prog_compiler_pic_CXX='-fPIC'
  12231. ;;
  12232. ecpc* )
  12233. # old Intel C++ for x86_64 which still supported -KPIC.
  12234. lt_prog_compiler_wl_CXX='-Wl,'
  12235. lt_prog_compiler_pic_CXX='-KPIC'
  12236. lt_prog_compiler_static_CXX='-static'
  12237. ;;
  12238. icpc* )
  12239. # Intel C++, used to be incompatible with GCC.
  12240. # ICC 10 doesn't accept -KPIC any more.
  12241. lt_prog_compiler_wl_CXX='-Wl,'
  12242. lt_prog_compiler_pic_CXX='-fPIC'
  12243. lt_prog_compiler_static_CXX='-static'
  12244. ;;
  12245. pgCC* | pgcpp*)
  12246. # Portland Group C++ compiler
  12247. lt_prog_compiler_wl_CXX='-Wl,'
  12248. lt_prog_compiler_pic_CXX='-fpic'
  12249. lt_prog_compiler_static_CXX='-Bstatic'
  12250. ;;
  12251. cxx*)
  12252. # Compaq C++
  12253. # Make sure the PIC flag is empty. It appears that all Alpha
  12254. # Linux and Compaq Tru64 Unix objects are PIC.
  12255. lt_prog_compiler_pic_CXX=
  12256. lt_prog_compiler_static_CXX='-non_shared'
  12257. ;;
  12258. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12259. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12260. lt_prog_compiler_wl_CXX='-Wl,'
  12261. lt_prog_compiler_pic_CXX='-qpic'
  12262. lt_prog_compiler_static_CXX='-qstaticlink'
  12263. ;;
  12264. *)
  12265. case `$CC -V 2>&1 | sed 5q` in
  12266. *Sun\ C*)
  12267. # Sun C++ 5.9
  12268. lt_prog_compiler_pic_CXX='-KPIC'
  12269. lt_prog_compiler_static_CXX='-Bstatic'
  12270. lt_prog_compiler_wl_CXX='-Qoption ld '
  12271. ;;
  12272. esac
  12273. ;;
  12274. esac
  12275. ;;
  12276. lynxos*)
  12277. ;;
  12278. m88k*)
  12279. ;;
  12280. mvs*)
  12281. case $cc_basename in
  12282. cxx*)
  12283. lt_prog_compiler_pic_CXX='-W c,exportall'
  12284. ;;
  12285. *)
  12286. ;;
  12287. esac
  12288. ;;
  12289. netbsd*)
  12290. ;;
  12291. *qnx* | *nto*)
  12292. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12293. # it will coredump.
  12294. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12295. ;;
  12296. osf3* | osf4* | osf5*)
  12297. case $cc_basename in
  12298. KCC*)
  12299. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12300. ;;
  12301. RCC*)
  12302. # Rational C++ 2.4.1
  12303. lt_prog_compiler_pic_CXX='-pic'
  12304. ;;
  12305. cxx*)
  12306. # Digital/Compaq C++
  12307. lt_prog_compiler_wl_CXX='-Wl,'
  12308. # Make sure the PIC flag is empty. It appears that all Alpha
  12309. # Linux and Compaq Tru64 Unix objects are PIC.
  12310. lt_prog_compiler_pic_CXX=
  12311. lt_prog_compiler_static_CXX='-non_shared'
  12312. ;;
  12313. *)
  12314. ;;
  12315. esac
  12316. ;;
  12317. psos*)
  12318. ;;
  12319. solaris*)
  12320. case $cc_basename in
  12321. CC*)
  12322. # Sun C++ 4.2, 5.x and Centerline C++
  12323. lt_prog_compiler_pic_CXX='-KPIC'
  12324. lt_prog_compiler_static_CXX='-Bstatic'
  12325. lt_prog_compiler_wl_CXX='-Qoption ld '
  12326. ;;
  12327. gcx*)
  12328. # Green Hills C++ Compiler
  12329. lt_prog_compiler_pic_CXX='-PIC'
  12330. ;;
  12331. *)
  12332. ;;
  12333. esac
  12334. ;;
  12335. sunos4*)
  12336. case $cc_basename in
  12337. CC*)
  12338. # Sun C++ 4.x
  12339. lt_prog_compiler_pic_CXX='-pic'
  12340. lt_prog_compiler_static_CXX='-Bstatic'
  12341. ;;
  12342. lcc*)
  12343. # Lucid
  12344. lt_prog_compiler_pic_CXX='-pic'
  12345. ;;
  12346. *)
  12347. ;;
  12348. esac
  12349. ;;
  12350. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12351. case $cc_basename in
  12352. CC*)
  12353. lt_prog_compiler_wl_CXX='-Wl,'
  12354. lt_prog_compiler_pic_CXX='-KPIC'
  12355. lt_prog_compiler_static_CXX='-Bstatic'
  12356. ;;
  12357. esac
  12358. ;;
  12359. tandem*)
  12360. case $cc_basename in
  12361. NCC*)
  12362. # NonStop-UX NCC 3.20
  12363. lt_prog_compiler_pic_CXX='-KPIC'
  12364. ;;
  12365. *)
  12366. ;;
  12367. esac
  12368. ;;
  12369. vxworks*)
  12370. ;;
  12371. *)
  12372. lt_prog_compiler_can_build_shared_CXX=no
  12373. ;;
  12374. esac
  12375. fi
  12376. case $host_os in
  12377. # For platforms which do not support PIC, -DPIC is meaningless:
  12378. *djgpp*)
  12379. lt_prog_compiler_pic_CXX=
  12380. ;;
  12381. *)
  12382. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12383. ;;
  12384. esac
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12386. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12387. #
  12388. # Check to make sure the PIC flag actually works.
  12389. #
  12390. if test -n "$lt_prog_compiler_pic_CXX"; then
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12392. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12393. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12394. $as_echo_n "(cached) " >&6
  12395. else
  12396. lt_cv_prog_compiler_pic_works_CXX=no
  12397. ac_outfile=conftest.$ac_objext
  12398. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12399. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12400. # Insert the option either (1) after the last *FLAGS variable, or
  12401. # (2) before a word containing "conftest.", or (3) at the end.
  12402. # Note that $ac_compile itself does not contain backslashes and begins
  12403. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12404. # The option is referenced via a variable to avoid confusing sed.
  12405. lt_compile=`echo "$ac_compile" | $SED \
  12406. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12407. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12408. -e 's:$: $lt_compiler_flag:'`
  12409. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12410. (eval "$lt_compile" 2>conftest.err)
  12411. ac_status=$?
  12412. cat conftest.err >&5
  12413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12414. if (exit $ac_status) && test -s "$ac_outfile"; then
  12415. # The compiler can only warn and ignore the option if not recognized
  12416. # So say no if there are warnings other than the usual output.
  12417. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12418. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12419. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12420. lt_cv_prog_compiler_pic_works_CXX=yes
  12421. fi
  12422. fi
  12423. $RM conftest*
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12426. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12427. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12428. case $lt_prog_compiler_pic_CXX in
  12429. "" | " "*) ;;
  12430. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12431. esac
  12432. else
  12433. lt_prog_compiler_pic_CXX=
  12434. lt_prog_compiler_can_build_shared_CXX=no
  12435. fi
  12436. fi
  12437. #
  12438. # Check to make sure the static flag actually works.
  12439. #
  12440. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12442. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12443. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. lt_cv_prog_compiler_static_works_CXX=no
  12447. save_LDFLAGS="$LDFLAGS"
  12448. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12449. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12450. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12451. # The linker can only warn and ignore the option if not recognized
  12452. # So say no if there are warnings
  12453. if test -s conftest.err; then
  12454. # Append any errors to the config.log.
  12455. cat conftest.err 1>&5
  12456. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12457. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12458. if diff conftest.exp conftest.er2 >/dev/null; then
  12459. lt_cv_prog_compiler_static_works_CXX=yes
  12460. fi
  12461. else
  12462. lt_cv_prog_compiler_static_works_CXX=yes
  12463. fi
  12464. fi
  12465. $RM -r conftest*
  12466. LDFLAGS="$save_LDFLAGS"
  12467. fi
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12469. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12470. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12471. :
  12472. else
  12473. lt_prog_compiler_static_CXX=
  12474. fi
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12476. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12477. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12478. $as_echo_n "(cached) " >&6
  12479. else
  12480. lt_cv_prog_compiler_c_o_CXX=no
  12481. $RM -r conftest 2>/dev/null
  12482. mkdir conftest
  12483. cd conftest
  12484. mkdir out
  12485. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12486. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12487. # Insert the option either (1) after the last *FLAGS variable, or
  12488. # (2) before a word containing "conftest.", or (3) at the end.
  12489. # Note that $ac_compile itself does not contain backslashes and begins
  12490. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12491. lt_compile=`echo "$ac_compile" | $SED \
  12492. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12493. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12494. -e 's:$: $lt_compiler_flag:'`
  12495. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12496. (eval "$lt_compile" 2>out/conftest.err)
  12497. ac_status=$?
  12498. cat out/conftest.err >&5
  12499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12500. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12501. then
  12502. # The compiler can only warn and ignore the option if not recognized
  12503. # So say no if there are warnings
  12504. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12505. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12506. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12507. lt_cv_prog_compiler_c_o_CXX=yes
  12508. fi
  12509. fi
  12510. chmod u+w . 2>&5
  12511. $RM conftest*
  12512. # SGI C++ compiler will create directory out/ii_files/ for
  12513. # template instantiation
  12514. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12515. $RM out/* && rmdir out
  12516. cd ..
  12517. $RM -r conftest
  12518. $RM conftest*
  12519. fi
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12521. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12523. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12524. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12525. $as_echo_n "(cached) " >&6
  12526. else
  12527. lt_cv_prog_compiler_c_o_CXX=no
  12528. $RM -r conftest 2>/dev/null
  12529. mkdir conftest
  12530. cd conftest
  12531. mkdir out
  12532. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12533. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12534. # Insert the option either (1) after the last *FLAGS variable, or
  12535. # (2) before a word containing "conftest.", or (3) at the end.
  12536. # Note that $ac_compile itself does not contain backslashes and begins
  12537. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12538. lt_compile=`echo "$ac_compile" | $SED \
  12539. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12540. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12541. -e 's:$: $lt_compiler_flag:'`
  12542. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12543. (eval "$lt_compile" 2>out/conftest.err)
  12544. ac_status=$?
  12545. cat out/conftest.err >&5
  12546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12547. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12548. then
  12549. # The compiler can only warn and ignore the option if not recognized
  12550. # So say no if there are warnings
  12551. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12552. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12553. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12554. lt_cv_prog_compiler_c_o_CXX=yes
  12555. fi
  12556. fi
  12557. chmod u+w . 2>&5
  12558. $RM conftest*
  12559. # SGI C++ compiler will create directory out/ii_files/ for
  12560. # template instantiation
  12561. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12562. $RM out/* && rmdir out
  12563. cd ..
  12564. $RM -r conftest
  12565. $RM conftest*
  12566. fi
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12568. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12569. hard_links="nottested"
  12570. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12571. # do not overwrite the value of need_locks provided by the user
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12573. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12574. hard_links=yes
  12575. $RM conftest*
  12576. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12577. touch conftest.a
  12578. ln conftest.a conftest.b 2>&5 || hard_links=no
  12579. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12581. $as_echo "$hard_links" >&6; }
  12582. if test "$hard_links" = no; then
  12583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12584. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12585. need_locks=warn
  12586. fi
  12587. else
  12588. need_locks=no
  12589. fi
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12591. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12592. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12593. case $host_os in
  12594. aix[4-9]*)
  12595. # If we're using GNU nm, then we don't want the "-C" option.
  12596. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12597. # Also, AIX nm treats weak defined symbols like other global defined
  12598. # symbols, whereas GNU nm marks them as "W".
  12599. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12600. 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'
  12601. else
  12602. 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'
  12603. fi
  12604. ;;
  12605. pw32*)
  12606. export_symbols_cmds_CXX="$ltdll_cmds"
  12607. ;;
  12608. cygwin* | mingw* | cegcc*)
  12609. 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'
  12610. ;;
  12611. *)
  12612. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12613. ;;
  12614. esac
  12615. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12617. $as_echo "$ld_shlibs_CXX" >&6; }
  12618. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12619. with_gnu_ld_CXX=$with_gnu_ld
  12620. #
  12621. # Do we need to explicitly link libc?
  12622. #
  12623. case "x$archive_cmds_need_lc_CXX" in
  12624. x|xyes)
  12625. # Assume -lc should be added
  12626. archive_cmds_need_lc_CXX=yes
  12627. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12628. case $archive_cmds_CXX in
  12629. *'~'*)
  12630. # FIXME: we may have to deal with multi-command sequences.
  12631. ;;
  12632. '$CC '*)
  12633. # Test whether the compiler implicitly links with -lc since on some
  12634. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12635. # to ld, don't add -lc before -lgcc.
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12637. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12638. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12639. $as_echo_n "(cached) " >&6
  12640. else
  12641. $RM conftest*
  12642. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12644. (eval $ac_compile) 2>&5
  12645. ac_status=$?
  12646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12647. test $ac_status = 0; } 2>conftest.err; then
  12648. soname=conftest
  12649. lib=conftest
  12650. libobjs=conftest.$ac_objext
  12651. deplibs=
  12652. wl=$lt_prog_compiler_wl_CXX
  12653. pic_flag=$lt_prog_compiler_pic_CXX
  12654. compiler_flags=-v
  12655. linker_flags=-v
  12656. verstring=
  12657. output_objdir=.
  12658. libname=conftest
  12659. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12660. allow_undefined_flag_CXX=
  12661. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12662. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12663. ac_status=$?
  12664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12665. test $ac_status = 0; }
  12666. then
  12667. lt_cv_archive_cmds_need_lc_CXX=no
  12668. else
  12669. lt_cv_archive_cmds_need_lc_CXX=yes
  12670. fi
  12671. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12672. else
  12673. cat conftest.err 1>&5
  12674. fi
  12675. $RM conftest*
  12676. fi
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12678. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12679. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12680. ;;
  12681. esac
  12682. fi
  12683. ;;
  12684. esac
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12686. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12687. library_names_spec=
  12688. libname_spec='lib$name'
  12689. soname_spec=
  12690. shrext_cmds=".so"
  12691. postinstall_cmds=
  12692. postuninstall_cmds=
  12693. finish_cmds=
  12694. finish_eval=
  12695. shlibpath_var=
  12696. shlibpath_overrides_runpath=unknown
  12697. version_type=none
  12698. dynamic_linker="$host_os ld.so"
  12699. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12700. need_lib_prefix=unknown
  12701. hardcode_into_libs=no
  12702. # when you set need_version to no, make sure it does not cause -set_version
  12703. # flags to be left without arguments
  12704. need_version=unknown
  12705. case $host_os in
  12706. aix3*)
  12707. version_type=linux
  12708. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12709. shlibpath_var=LIBPATH
  12710. # AIX 3 has no versioning support, so we append a major version to the name.
  12711. soname_spec='${libname}${release}${shared_ext}$major'
  12712. ;;
  12713. aix[4-9]*)
  12714. version_type=linux
  12715. need_lib_prefix=no
  12716. need_version=no
  12717. hardcode_into_libs=yes
  12718. if test "$host_cpu" = ia64; then
  12719. # AIX 5 supports IA64
  12720. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12721. shlibpath_var=LD_LIBRARY_PATH
  12722. else
  12723. # With GCC up to 2.95.x, collect2 would create an import file
  12724. # for dependence libraries. The import file would start with
  12725. # the line `#! .'. This would cause the generated library to
  12726. # depend on `.', always an invalid library. This was fixed in
  12727. # development snapshots of GCC prior to 3.0.
  12728. case $host_os in
  12729. aix4 | aix4.[01] | aix4.[01].*)
  12730. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12731. echo ' yes '
  12732. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12733. :
  12734. else
  12735. can_build_shared=no
  12736. fi
  12737. ;;
  12738. esac
  12739. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12740. # soname into executable. Probably we can add versioning support to
  12741. # collect2, so additional links can be useful in future.
  12742. if test "$aix_use_runtimelinking" = yes; then
  12743. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12744. # instead of lib<name>.a to let people know that these are not
  12745. # typical AIX shared libraries.
  12746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12747. else
  12748. # We preserve .a as extension for shared libraries through AIX4.2
  12749. # and later when we are not doing run time linking.
  12750. library_names_spec='${libname}${release}.a $libname.a'
  12751. soname_spec='${libname}${release}${shared_ext}$major'
  12752. fi
  12753. shlibpath_var=LIBPATH
  12754. fi
  12755. ;;
  12756. amigaos*)
  12757. case $host_cpu in
  12758. powerpc)
  12759. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12760. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12762. ;;
  12763. m68k)
  12764. library_names_spec='$libname.ixlibrary $libname.a'
  12765. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12766. 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'
  12767. ;;
  12768. esac
  12769. ;;
  12770. beos*)
  12771. library_names_spec='${libname}${shared_ext}'
  12772. dynamic_linker="$host_os ld.so"
  12773. shlibpath_var=LIBRARY_PATH
  12774. ;;
  12775. bsdi[45]*)
  12776. version_type=linux
  12777. need_version=no
  12778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12779. soname_spec='${libname}${release}${shared_ext}$major'
  12780. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12781. shlibpath_var=LD_LIBRARY_PATH
  12782. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12783. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12784. # the default ld.so.conf also contains /usr/contrib/lib and
  12785. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12786. # libtool to hard-code these into programs
  12787. ;;
  12788. cygwin* | mingw* | pw32* | cegcc*)
  12789. version_type=windows
  12790. shrext_cmds=".dll"
  12791. need_version=no
  12792. need_lib_prefix=no
  12793. case $GCC,$host_os in
  12794. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12795. library_names_spec='$libname.dll.a'
  12796. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12797. postinstall_cmds='base_file=`basename \${file}`~
  12798. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12799. dldir=$destdir/`dirname \$dlpath`~
  12800. test -d \$dldir || mkdir -p \$dldir~
  12801. $install_prog $dir/$dlname \$dldir/$dlname~
  12802. chmod a+x \$dldir/$dlname~
  12803. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12804. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12805. fi'
  12806. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12807. dlpath=$dir/\$dldll~
  12808. $RM \$dlpath'
  12809. shlibpath_overrides_runpath=yes
  12810. case $host_os in
  12811. cygwin*)
  12812. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12813. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12814. ;;
  12815. mingw* | cegcc*)
  12816. # MinGW DLLs use traditional 'lib' prefix
  12817. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12818. ;;
  12819. pw32*)
  12820. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12821. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12822. ;;
  12823. esac
  12824. ;;
  12825. *)
  12826. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12827. ;;
  12828. esac
  12829. dynamic_linker='Win32 ld.exe'
  12830. # FIXME: first we should search . and the directory the executable is in
  12831. shlibpath_var=PATH
  12832. ;;
  12833. darwin* | rhapsody*)
  12834. dynamic_linker="$host_os dyld"
  12835. version_type=darwin
  12836. need_lib_prefix=no
  12837. need_version=no
  12838. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12839. soname_spec='${libname}${release}${major}$shared_ext'
  12840. shlibpath_overrides_runpath=yes
  12841. shlibpath_var=DYLD_LIBRARY_PATH
  12842. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12843. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12844. ;;
  12845. dgux*)
  12846. version_type=linux
  12847. need_lib_prefix=no
  12848. need_version=no
  12849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12850. soname_spec='${libname}${release}${shared_ext}$major'
  12851. shlibpath_var=LD_LIBRARY_PATH
  12852. ;;
  12853. freebsd* | dragonfly*)
  12854. # DragonFly does not have aout. When/if they implement a new
  12855. # versioning mechanism, adjust this.
  12856. if test -x /usr/bin/objformat; then
  12857. objformat=`/usr/bin/objformat`
  12858. else
  12859. case $host_os in
  12860. freebsd[23].*) objformat=aout ;;
  12861. *) objformat=elf ;;
  12862. esac
  12863. fi
  12864. version_type=freebsd-$objformat
  12865. case $version_type in
  12866. freebsd-elf*)
  12867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12868. need_version=no
  12869. need_lib_prefix=no
  12870. ;;
  12871. freebsd-*)
  12872. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12873. need_version=yes
  12874. ;;
  12875. esac
  12876. shlibpath_var=LD_LIBRARY_PATH
  12877. case $host_os in
  12878. freebsd2.*)
  12879. shlibpath_overrides_runpath=yes
  12880. ;;
  12881. freebsd3.[01]* | freebsdelf3.[01]*)
  12882. shlibpath_overrides_runpath=yes
  12883. hardcode_into_libs=yes
  12884. ;;
  12885. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12886. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12887. shlibpath_overrides_runpath=no
  12888. hardcode_into_libs=yes
  12889. ;;
  12890. *) # from 4.6 on, and DragonFly
  12891. shlibpath_overrides_runpath=yes
  12892. hardcode_into_libs=yes
  12893. ;;
  12894. esac
  12895. ;;
  12896. haiku*)
  12897. version_type=linux
  12898. need_lib_prefix=no
  12899. need_version=no
  12900. dynamic_linker="$host_os runtime_loader"
  12901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12902. soname_spec='${libname}${release}${shared_ext}$major'
  12903. shlibpath_var=LIBRARY_PATH
  12904. shlibpath_overrides_runpath=yes
  12905. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12906. hardcode_into_libs=yes
  12907. ;;
  12908. hpux9* | hpux10* | hpux11*)
  12909. # Give a soname corresponding to the major version so that dld.sl refuses to
  12910. # link against other versions.
  12911. version_type=sunos
  12912. need_lib_prefix=no
  12913. need_version=no
  12914. case $host_cpu in
  12915. ia64*)
  12916. shrext_cmds='.so'
  12917. hardcode_into_libs=yes
  12918. dynamic_linker="$host_os dld.so"
  12919. shlibpath_var=LD_LIBRARY_PATH
  12920. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12922. soname_spec='${libname}${release}${shared_ext}$major'
  12923. if test "X$HPUX_IA64_MODE" = X32; then
  12924. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12925. else
  12926. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12927. fi
  12928. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12929. ;;
  12930. hppa*64*)
  12931. shrext_cmds='.sl'
  12932. hardcode_into_libs=yes
  12933. dynamic_linker="$host_os dld.sl"
  12934. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12935. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12937. soname_spec='${libname}${release}${shared_ext}$major'
  12938. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12939. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12940. ;;
  12941. *)
  12942. shrext_cmds='.sl'
  12943. dynamic_linker="$host_os dld.sl"
  12944. shlibpath_var=SHLIB_PATH
  12945. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. ;;
  12949. esac
  12950. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12951. postinstall_cmds='chmod 555 $lib'
  12952. # or fails outright, so override atomically:
  12953. install_override_mode=555
  12954. ;;
  12955. interix[3-9]*)
  12956. version_type=linux
  12957. need_lib_prefix=no
  12958. need_version=no
  12959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12960. soname_spec='${libname}${release}${shared_ext}$major'
  12961. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12962. shlibpath_var=LD_LIBRARY_PATH
  12963. shlibpath_overrides_runpath=no
  12964. hardcode_into_libs=yes
  12965. ;;
  12966. irix5* | irix6* | nonstopux*)
  12967. case $host_os in
  12968. nonstopux*) version_type=nonstopux ;;
  12969. *)
  12970. if test "$lt_cv_prog_gnu_ld" = yes; then
  12971. version_type=linux
  12972. else
  12973. version_type=irix
  12974. fi ;;
  12975. esac
  12976. need_lib_prefix=no
  12977. need_version=no
  12978. soname_spec='${libname}${release}${shared_ext}$major'
  12979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12980. case $host_os in
  12981. irix5* | nonstopux*)
  12982. libsuff= shlibsuff=
  12983. ;;
  12984. *)
  12985. case $LD in # libtool.m4 will add one of these switches to LD
  12986. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12987. libsuff= shlibsuff= libmagic=32-bit;;
  12988. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12989. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12990. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12991. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12992. *) libsuff= shlibsuff= libmagic=never-match;;
  12993. esac
  12994. ;;
  12995. esac
  12996. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12997. shlibpath_overrides_runpath=no
  12998. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12999. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13000. hardcode_into_libs=yes
  13001. ;;
  13002. # No shared lib support for Linux oldld, aout, or coff.
  13003. linux*oldld* | linux*aout* | linux*coff*)
  13004. dynamic_linker=no
  13005. ;;
  13006. # This must be Linux ELF.
  13007. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13008. version_type=linux
  13009. need_lib_prefix=no
  13010. need_version=no
  13011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13012. soname_spec='${libname}${release}${shared_ext}$major'
  13013. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13014. shlibpath_var=LD_LIBRARY_PATH
  13015. shlibpath_overrides_runpath=no
  13016. # Some binutils ld are patched to set DT_RUNPATH
  13017. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13018. $as_echo_n "(cached) " >&6
  13019. else
  13020. lt_cv_shlibpath_overrides_runpath=no
  13021. save_LDFLAGS=$LDFLAGS
  13022. save_libdir=$libdir
  13023. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13024. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13026. /* end confdefs.h. */
  13027. int
  13028. main ()
  13029. {
  13030. ;
  13031. return 0;
  13032. }
  13033. _ACEOF
  13034. if ac_fn_cxx_try_link "$LINENO"; then :
  13035. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13036. lt_cv_shlibpath_overrides_runpath=yes
  13037. fi
  13038. fi
  13039. rm -f core conftest.err conftest.$ac_objext \
  13040. conftest$ac_exeext conftest.$ac_ext
  13041. LDFLAGS=$save_LDFLAGS
  13042. libdir=$save_libdir
  13043. fi
  13044. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13045. # This implies no fast_install, which is unacceptable.
  13046. # Some rework will be needed to allow for fast_install
  13047. # before this can be enabled.
  13048. hardcode_into_libs=yes
  13049. # Append ld.so.conf contents to the search path
  13050. if test -f /etc/ld.so.conf; then
  13051. 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' ' '`
  13052. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13053. fi
  13054. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13055. # powerpc, because MkLinux only supported shared libraries with the
  13056. # GNU dynamic linker. Since this was broken with cross compilers,
  13057. # most powerpc-linux boxes support dynamic linking these days and
  13058. # people can always --disable-shared, the test was removed, and we
  13059. # assume the GNU/Linux dynamic linker is in use.
  13060. dynamic_linker='GNU/Linux ld.so'
  13061. ;;
  13062. netbsd*)
  13063. version_type=sunos
  13064. need_lib_prefix=no
  13065. need_version=no
  13066. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13068. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13069. dynamic_linker='NetBSD (a.out) ld.so'
  13070. else
  13071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13072. soname_spec='${libname}${release}${shared_ext}$major'
  13073. dynamic_linker='NetBSD ld.elf_so'
  13074. fi
  13075. shlibpath_var=LD_LIBRARY_PATH
  13076. shlibpath_overrides_runpath=yes
  13077. hardcode_into_libs=yes
  13078. ;;
  13079. newsos6)
  13080. version_type=linux
  13081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13082. shlibpath_var=LD_LIBRARY_PATH
  13083. shlibpath_overrides_runpath=yes
  13084. ;;
  13085. *nto* | *qnx*)
  13086. version_type=qnx
  13087. need_lib_prefix=no
  13088. need_version=no
  13089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13090. soname_spec='${libname}${release}${shared_ext}$major'
  13091. shlibpath_var=LD_LIBRARY_PATH
  13092. shlibpath_overrides_runpath=no
  13093. hardcode_into_libs=yes
  13094. dynamic_linker='ldqnx.so'
  13095. ;;
  13096. openbsd*)
  13097. version_type=sunos
  13098. sys_lib_dlsearch_path_spec="/usr/lib"
  13099. need_lib_prefix=no
  13100. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13101. case $host_os in
  13102. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13103. *) need_version=no ;;
  13104. esac
  13105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13106. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13107. shlibpath_var=LD_LIBRARY_PATH
  13108. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13109. case $host_os in
  13110. openbsd2.[89] | openbsd2.[89].*)
  13111. shlibpath_overrides_runpath=no
  13112. ;;
  13113. *)
  13114. shlibpath_overrides_runpath=yes
  13115. ;;
  13116. esac
  13117. else
  13118. shlibpath_overrides_runpath=yes
  13119. fi
  13120. ;;
  13121. os2*)
  13122. libname_spec='$name'
  13123. shrext_cmds=".dll"
  13124. need_lib_prefix=no
  13125. library_names_spec='$libname${shared_ext} $libname.a'
  13126. dynamic_linker='OS/2 ld.exe'
  13127. shlibpath_var=LIBPATH
  13128. ;;
  13129. osf3* | osf4* | osf5*)
  13130. version_type=osf
  13131. need_lib_prefix=no
  13132. need_version=no
  13133. soname_spec='${libname}${release}${shared_ext}$major'
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13137. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13138. ;;
  13139. rdos*)
  13140. dynamic_linker=no
  13141. ;;
  13142. solaris*)
  13143. version_type=linux
  13144. need_lib_prefix=no
  13145. need_version=no
  13146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13147. soname_spec='${libname}${release}${shared_ext}$major'
  13148. shlibpath_var=LD_LIBRARY_PATH
  13149. shlibpath_overrides_runpath=yes
  13150. hardcode_into_libs=yes
  13151. # ldd complains unless libraries are executable
  13152. postinstall_cmds='chmod +x $lib'
  13153. ;;
  13154. sunos4*)
  13155. version_type=sunos
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13157. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13158. shlibpath_var=LD_LIBRARY_PATH
  13159. shlibpath_overrides_runpath=yes
  13160. if test "$with_gnu_ld" = yes; then
  13161. need_lib_prefix=no
  13162. fi
  13163. need_version=yes
  13164. ;;
  13165. sysv4 | sysv4.3*)
  13166. version_type=linux
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13168. soname_spec='${libname}${release}${shared_ext}$major'
  13169. shlibpath_var=LD_LIBRARY_PATH
  13170. case $host_vendor in
  13171. sni)
  13172. shlibpath_overrides_runpath=no
  13173. need_lib_prefix=no
  13174. runpath_var=LD_RUN_PATH
  13175. ;;
  13176. siemens)
  13177. need_lib_prefix=no
  13178. ;;
  13179. motorola)
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. shlibpath_overrides_runpath=no
  13183. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13184. ;;
  13185. esac
  13186. ;;
  13187. sysv4*MP*)
  13188. if test -d /usr/nec ;then
  13189. version_type=linux
  13190. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13191. soname_spec='$libname${shared_ext}.$major'
  13192. shlibpath_var=LD_LIBRARY_PATH
  13193. fi
  13194. ;;
  13195. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13196. version_type=freebsd-elf
  13197. need_lib_prefix=no
  13198. need_version=no
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. shlibpath_var=LD_LIBRARY_PATH
  13202. shlibpath_overrides_runpath=yes
  13203. hardcode_into_libs=yes
  13204. if test "$with_gnu_ld" = yes; then
  13205. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13206. else
  13207. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13208. case $host_os in
  13209. sco3.2v5*)
  13210. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13211. ;;
  13212. esac
  13213. fi
  13214. sys_lib_dlsearch_path_spec='/usr/lib'
  13215. ;;
  13216. tpf*)
  13217. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13218. version_type=linux
  13219. need_lib_prefix=no
  13220. need_version=no
  13221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13222. shlibpath_var=LD_LIBRARY_PATH
  13223. shlibpath_overrides_runpath=no
  13224. hardcode_into_libs=yes
  13225. ;;
  13226. uts4*)
  13227. version_type=linux
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. shlibpath_var=LD_LIBRARY_PATH
  13231. ;;
  13232. *)
  13233. dynamic_linker=no
  13234. ;;
  13235. esac
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13237. $as_echo "$dynamic_linker" >&6; }
  13238. test "$dynamic_linker" = no && can_build_shared=no
  13239. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13240. if test "$GCC" = yes; then
  13241. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13242. fi
  13243. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13244. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13245. fi
  13246. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13247. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13248. fi
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13250. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13251. hardcode_action_CXX=
  13252. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13253. test -n "$runpath_var_CXX" ||
  13254. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13255. # We can hardcode non-existent directories.
  13256. if test "$hardcode_direct_CXX" != no &&
  13257. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13258. # have to relink, otherwise we might link with an installed library
  13259. # when we should be linking with a yet-to-be-installed one
  13260. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13261. test "$hardcode_minus_L_CXX" != no; then
  13262. # Linking always hardcodes the temporary library directory.
  13263. hardcode_action_CXX=relink
  13264. else
  13265. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13266. hardcode_action_CXX=immediate
  13267. fi
  13268. else
  13269. # We cannot hardcode anything, or else we can only hardcode existing
  13270. # directories.
  13271. hardcode_action_CXX=unsupported
  13272. fi
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13274. $as_echo "$hardcode_action_CXX" >&6; }
  13275. if test "$hardcode_action_CXX" = relink ||
  13276. test "$inherit_rpath_CXX" = yes; then
  13277. # Fast installation is not supported
  13278. enable_fast_install=no
  13279. elif test "$shlibpath_overrides_runpath" = yes ||
  13280. test "$enable_shared" = no; then
  13281. # Fast installation is not necessary
  13282. enable_fast_install=needless
  13283. fi
  13284. fi # test -n "$compiler"
  13285. CC=$lt_save_CC
  13286. LDCXX=$LD
  13287. LD=$lt_save_LD
  13288. GCC=$lt_save_GCC
  13289. with_gnu_ld=$lt_save_with_gnu_ld
  13290. lt_cv_path_LDCXX=$lt_cv_path_LD
  13291. lt_cv_path_LD=$lt_save_path_LD
  13292. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13293. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13294. fi # test "$_lt_caught_CXX_error" != yes
  13295. ac_ext=c
  13296. ac_cpp='$CPP $CPPFLAGS'
  13297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13300. ac_config_commands="$ac_config_commands libtool"
  13301. # Only expand once:
  13302. # Check whether --enable-shared was given.
  13303. if test "${enable_shared+set}" = set; then :
  13304. enableval=$enable_shared; p=${PACKAGE-default}
  13305. case $enableval in
  13306. yes) enable_shared=yes ;;
  13307. no) enable_shared=no ;;
  13308. *)
  13309. enable_shared=no
  13310. # Look at the argument we got. We use all the common list separators.
  13311. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13312. for pkg in $enableval; do
  13313. IFS="$lt_save_ifs"
  13314. if test "X$pkg" = "X$p"; then
  13315. enable_shared=yes
  13316. fi
  13317. done
  13318. IFS="$lt_save_ifs"
  13319. ;;
  13320. esac
  13321. else
  13322. enable_shared=yes
  13323. fi
  13324. # Check whether --enable-static was given.
  13325. if test "${enable_static+set}" = set; then :
  13326. enableval=$enable_static; p=${PACKAGE-default}
  13327. case $enableval in
  13328. yes) enable_static=yes ;;
  13329. no) enable_static=no ;;
  13330. *)
  13331. enable_static=no
  13332. # Look at the argument we got. We use all the common list separators.
  13333. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13334. for pkg in $enableval; do
  13335. IFS="$lt_save_ifs"
  13336. if test "X$pkg" = "X$p"; then
  13337. enable_static=yes
  13338. fi
  13339. done
  13340. IFS="$lt_save_ifs"
  13341. ;;
  13342. esac
  13343. else
  13344. enable_static=no
  13345. fi
  13346. if test "$enable_shared" != "yes"; then
  13347. as_fn_error $? "Cannot set --enable-shared for gprofng/libcollector." "$LINENO" 5
  13348. fi
  13349. GPROFNG_VARIANT=unknown
  13350. case "${target}" in
  13351. x86_64-*-linux*)
  13352. GPROFNG_VARIANT=amd64-Linux
  13353. ;;
  13354. i?86-*-linux*)
  13355. GPROFNG_VARIANT=intel-Linux
  13356. ;;
  13357. aarch64-*-linux*)
  13358. GPROFNG_VARIANT=aarch64-Linux
  13359. ;;
  13360. esac
  13361. ac_ext=c
  13362. ac_cpp='$CPP $CPPFLAGS'
  13363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13366. GPROFNG_NO_NONNULL_COMPARE_CFLAGS=
  13367. save_CFLAGS="$CFLAGS"
  13368. for real_option in -Wno-nonnull-compare; do
  13369. # Do the check with the no- prefix removed since gcc silently
  13370. # accepts any -Wno-* option on purpose
  13371. case $real_option in
  13372. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  13373. *) option=$real_option ;;
  13374. esac
  13375. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  13377. $as_echo_n "checking whether $CC supports $option... " >&6; }
  13378. if eval \${$as_acx_Woption+:} false; then :
  13379. $as_echo_n "(cached) " >&6
  13380. else
  13381. CFLAGS="$option"
  13382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13383. /* end confdefs.h. */
  13384. int
  13385. main ()
  13386. {
  13387. ;
  13388. return 0;
  13389. }
  13390. _ACEOF
  13391. if ac_fn_c_try_compile "$LINENO"; then :
  13392. eval "$as_acx_Woption=yes"
  13393. else
  13394. eval "$as_acx_Woption=no"
  13395. fi
  13396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13397. fi
  13398. eval ac_res=\$$as_acx_Woption
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13400. $as_echo "$ac_res" >&6; }
  13401. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  13402. GPROFNG_NO_NONNULL_COMPARE_CFLAGS="$GPROFNG_NO_NONNULL_COMPARE_CFLAGS${GPROFNG_NO_NONNULL_COMPARE_CFLAGS:+ }$real_option"
  13403. fi
  13404. done
  13405. CFLAGS="$save_CFLAGS"
  13406. ac_ext=c
  13407. ac_cpp='$CPP $CPPFLAGS'
  13408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13411. ac_config_files="$ac_config_files Makefile"
  13412. ac_config_headers="$ac_config_headers lib-config.h:../common/config.h.in"
  13413. cat >confcache <<\_ACEOF
  13414. # This file is a shell script that caches the results of configure
  13415. # tests run on this system so they can be shared between configure
  13416. # scripts and configure runs, see configure's option --config-cache.
  13417. # It is not useful on other systems. If it contains results you don't
  13418. # want to keep, you may remove or edit it.
  13419. #
  13420. # config.status only pays attention to the cache file if you give it
  13421. # the --recheck option to rerun configure.
  13422. #
  13423. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13424. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13425. # following values.
  13426. _ACEOF
  13427. # The following way of writing the cache mishandles newlines in values,
  13428. # but we know of no workaround that is simple, portable, and efficient.
  13429. # So, we kill variables containing newlines.
  13430. # Ultrix sh set writes to stderr and can't be redirected directly,
  13431. # and sets the high bit in the cache file unless we assign to the vars.
  13432. (
  13433. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13434. eval ac_val=\$$ac_var
  13435. case $ac_val in #(
  13436. *${as_nl}*)
  13437. case $ac_var in #(
  13438. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13439. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13440. esac
  13441. case $ac_var in #(
  13442. _ | IFS | as_nl) ;; #(
  13443. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13444. *) { eval $ac_var=; unset $ac_var;} ;;
  13445. esac ;;
  13446. esac
  13447. done
  13448. (set) 2>&1 |
  13449. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13450. *${as_nl}ac_space=\ *)
  13451. # `set' does not quote correctly, so add quotes: double-quote
  13452. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13453. sed -n \
  13454. "s/'/'\\\\''/g;
  13455. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13456. ;; #(
  13457. *)
  13458. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13459. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13460. ;;
  13461. esac |
  13462. sort
  13463. ) |
  13464. sed '
  13465. /^ac_cv_env_/b end
  13466. t clear
  13467. :clear
  13468. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13469. t end
  13470. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13471. :end' >>confcache
  13472. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13473. if test -w "$cache_file"; then
  13474. if test "x$cache_file" != "x/dev/null"; then
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13476. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13477. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13478. cat confcache >"$cache_file"
  13479. else
  13480. case $cache_file in #(
  13481. */* | ?:*)
  13482. mv -f confcache "$cache_file"$$ &&
  13483. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13484. *)
  13485. mv -f confcache "$cache_file" ;;
  13486. esac
  13487. fi
  13488. fi
  13489. else
  13490. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13491. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13492. fi
  13493. fi
  13494. rm -f confcache
  13495. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13496. # Let make expand exec_prefix.
  13497. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13498. DEFS=-DHAVE_CONFIG_H
  13499. ac_libobjs=
  13500. ac_ltlibobjs=
  13501. U=
  13502. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13503. # 1. Remove the extension, and $U if already installed.
  13504. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13505. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13506. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13507. # will be set to the directory where LIBOBJS objects are built.
  13508. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13509. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13510. done
  13511. LIBOBJS=$ac_libobjs
  13512. LTLIBOBJS=$ac_ltlibobjs
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13514. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13515. if test -n "$am_sleep_pid"; then
  13516. # Hide warnings about reused PIDs.
  13517. wait $am_sleep_pid 2>/dev/null
  13518. fi
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13520. $as_echo "done" >&6; }
  13521. if test -n "$EXEEXT"; then
  13522. am__EXEEXT_TRUE=
  13523. am__EXEEXT_FALSE='#'
  13524. else
  13525. am__EXEEXT_TRUE='#'
  13526. am__EXEEXT_FALSE=
  13527. fi
  13528. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13529. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13531. fi
  13532. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13533. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13535. fi
  13536. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13537. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13538. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13539. fi
  13540. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13541. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13542. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13543. fi
  13544. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13545. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13546. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13547. fi
  13548. : "${CONFIG_STATUS=./config.status}"
  13549. ac_write_fail=0
  13550. ac_clean_files_save=$ac_clean_files
  13551. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13553. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13554. as_write_fail=0
  13555. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13556. #! $SHELL
  13557. # Generated by $as_me.
  13558. # Run this file to recreate the current configuration.
  13559. # Compiler output produced by configure, useful for debugging
  13560. # configure, is in config.log if it exists.
  13561. debug=false
  13562. ac_cs_recheck=false
  13563. ac_cs_silent=false
  13564. SHELL=\${CONFIG_SHELL-$SHELL}
  13565. export SHELL
  13566. _ASEOF
  13567. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13568. ## -------------------- ##
  13569. ## M4sh Initialization. ##
  13570. ## -------------------- ##
  13571. # Be more Bourne compatible
  13572. DUALCASE=1; export DUALCASE # for MKS sh
  13573. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13574. emulate sh
  13575. NULLCMD=:
  13576. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13577. # is contrary to our usage. Disable this feature.
  13578. alias -g '${1+"$@"}'='"$@"'
  13579. setopt NO_GLOB_SUBST
  13580. else
  13581. case `(set -o) 2>/dev/null` in #(
  13582. *posix*) :
  13583. set -o posix ;; #(
  13584. *) :
  13585. ;;
  13586. esac
  13587. fi
  13588. as_nl='
  13589. '
  13590. export as_nl
  13591. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13592. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13593. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13594. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13595. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13596. # but without wasting forks for bash or zsh.
  13597. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13598. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13599. as_echo='print -r --'
  13600. as_echo_n='print -rn --'
  13601. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13602. as_echo='printf %s\n'
  13603. as_echo_n='printf %s'
  13604. else
  13605. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13606. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13607. as_echo_n='/usr/ucb/echo -n'
  13608. else
  13609. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13610. as_echo_n_body='eval
  13611. arg=$1;
  13612. case $arg in #(
  13613. *"$as_nl"*)
  13614. expr "X$arg" : "X\\(.*\\)$as_nl";
  13615. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13616. esac;
  13617. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13618. '
  13619. export as_echo_n_body
  13620. as_echo_n='sh -c $as_echo_n_body as_echo'
  13621. fi
  13622. export as_echo_body
  13623. as_echo='sh -c $as_echo_body as_echo'
  13624. fi
  13625. # The user is always right.
  13626. if test "${PATH_SEPARATOR+set}" != set; then
  13627. PATH_SEPARATOR=:
  13628. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13629. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13630. PATH_SEPARATOR=';'
  13631. }
  13632. fi
  13633. # IFS
  13634. # We need space, tab and new line, in precisely that order. Quoting is
  13635. # there to prevent editors from complaining about space-tab.
  13636. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13637. # splitting by setting IFS to empty value.)
  13638. IFS=" "" $as_nl"
  13639. # Find who we are. Look in the path if we contain no directory separator.
  13640. as_myself=
  13641. case $0 in #((
  13642. *[\\/]* ) as_myself=$0 ;;
  13643. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13644. for as_dir in $PATH
  13645. do
  13646. IFS=$as_save_IFS
  13647. test -z "$as_dir" && as_dir=.
  13648. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13649. done
  13650. IFS=$as_save_IFS
  13651. ;;
  13652. esac
  13653. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13654. # in which case we are not to be found in the path.
  13655. if test "x$as_myself" = x; then
  13656. as_myself=$0
  13657. fi
  13658. if test ! -f "$as_myself"; then
  13659. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13660. exit 1
  13661. fi
  13662. # Unset variables that we do not need and which cause bugs (e.g. in
  13663. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13664. # suppresses any "Segmentation fault" message there. '((' could
  13665. # trigger a bug in pdksh 5.2.14.
  13666. for as_var in BASH_ENV ENV MAIL MAILPATH
  13667. do eval test x\${$as_var+set} = xset \
  13668. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13669. done
  13670. PS1='$ '
  13671. PS2='> '
  13672. PS4='+ '
  13673. # NLS nuisances.
  13674. LC_ALL=C
  13675. export LC_ALL
  13676. LANGUAGE=C
  13677. export LANGUAGE
  13678. # CDPATH.
  13679. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13680. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13681. # ----------------------------------------
  13682. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13683. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13684. # script with STATUS, using 1 if that was 0.
  13685. as_fn_error ()
  13686. {
  13687. as_status=$1; test $as_status -eq 0 && as_status=1
  13688. if test "$4"; then
  13689. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13690. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13691. fi
  13692. $as_echo "$as_me: error: $2" >&2
  13693. as_fn_exit $as_status
  13694. } # as_fn_error
  13695. # as_fn_set_status STATUS
  13696. # -----------------------
  13697. # Set $? to STATUS, without forking.
  13698. as_fn_set_status ()
  13699. {
  13700. return $1
  13701. } # as_fn_set_status
  13702. # as_fn_exit STATUS
  13703. # -----------------
  13704. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13705. as_fn_exit ()
  13706. {
  13707. set +e
  13708. as_fn_set_status $1
  13709. exit $1
  13710. } # as_fn_exit
  13711. # as_fn_unset VAR
  13712. # ---------------
  13713. # Portably unset VAR.
  13714. as_fn_unset ()
  13715. {
  13716. { eval $1=; unset $1;}
  13717. }
  13718. as_unset=as_fn_unset
  13719. # as_fn_append VAR VALUE
  13720. # ----------------------
  13721. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13722. # advantage of any shell optimizations that allow amortized linear growth over
  13723. # repeated appends, instead of the typical quadratic growth present in naive
  13724. # implementations.
  13725. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13726. eval 'as_fn_append ()
  13727. {
  13728. eval $1+=\$2
  13729. }'
  13730. else
  13731. as_fn_append ()
  13732. {
  13733. eval $1=\$$1\$2
  13734. }
  13735. fi # as_fn_append
  13736. # as_fn_arith ARG...
  13737. # ------------------
  13738. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13739. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13740. # must be portable across $(()) and expr.
  13741. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13742. eval 'as_fn_arith ()
  13743. {
  13744. as_val=$(( $* ))
  13745. }'
  13746. else
  13747. as_fn_arith ()
  13748. {
  13749. as_val=`expr "$@" || test $? -eq 1`
  13750. }
  13751. fi # as_fn_arith
  13752. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13753. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13754. as_expr=expr
  13755. else
  13756. as_expr=false
  13757. fi
  13758. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13759. as_basename=basename
  13760. else
  13761. as_basename=false
  13762. fi
  13763. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13764. as_dirname=dirname
  13765. else
  13766. as_dirname=false
  13767. fi
  13768. as_me=`$as_basename -- "$0" ||
  13769. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13770. X"$0" : 'X\(//\)$' \| \
  13771. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13772. $as_echo X/"$0" |
  13773. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13774. s//\1/
  13775. q
  13776. }
  13777. /^X\/\(\/\/\)$/{
  13778. s//\1/
  13779. q
  13780. }
  13781. /^X\/\(\/\).*/{
  13782. s//\1/
  13783. q
  13784. }
  13785. s/.*/./; q'`
  13786. # Avoid depending upon Character Ranges.
  13787. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13788. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13789. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13790. as_cr_digits='0123456789'
  13791. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13792. ECHO_C= ECHO_N= ECHO_T=
  13793. case `echo -n x` in #(((((
  13794. -n*)
  13795. case `echo 'xy\c'` in
  13796. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13797. xy) ECHO_C='\c';;
  13798. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13799. ECHO_T=' ';;
  13800. esac;;
  13801. *)
  13802. ECHO_N='-n';;
  13803. esac
  13804. rm -f conf$$ conf$$.exe conf$$.file
  13805. if test -d conf$$.dir; then
  13806. rm -f conf$$.dir/conf$$.file
  13807. else
  13808. rm -f conf$$.dir
  13809. mkdir conf$$.dir 2>/dev/null
  13810. fi
  13811. if (echo >conf$$.file) 2>/dev/null; then
  13812. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13813. as_ln_s='ln -s'
  13814. # ... but there are two gotchas:
  13815. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13816. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13817. # In both cases, we have to default to `cp -pR'.
  13818. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13819. as_ln_s='cp -pR'
  13820. elif ln conf$$.file conf$$ 2>/dev/null; then
  13821. as_ln_s=ln
  13822. else
  13823. as_ln_s='cp -pR'
  13824. fi
  13825. else
  13826. as_ln_s='cp -pR'
  13827. fi
  13828. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13829. rmdir conf$$.dir 2>/dev/null
  13830. # as_fn_mkdir_p
  13831. # -------------
  13832. # Create "$as_dir" as a directory, including parents if necessary.
  13833. as_fn_mkdir_p ()
  13834. {
  13835. case $as_dir in #(
  13836. -*) as_dir=./$as_dir;;
  13837. esac
  13838. test -d "$as_dir" || eval $as_mkdir_p || {
  13839. as_dirs=
  13840. while :; do
  13841. case $as_dir in #(
  13842. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13843. *) as_qdir=$as_dir;;
  13844. esac
  13845. as_dirs="'$as_qdir' $as_dirs"
  13846. as_dir=`$as_dirname -- "$as_dir" ||
  13847. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13848. X"$as_dir" : 'X\(//\)[^/]' \| \
  13849. X"$as_dir" : 'X\(//\)$' \| \
  13850. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13851. $as_echo X"$as_dir" |
  13852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13853. s//\1/
  13854. q
  13855. }
  13856. /^X\(\/\/\)[^/].*/{
  13857. s//\1/
  13858. q
  13859. }
  13860. /^X\(\/\/\)$/{
  13861. s//\1/
  13862. q
  13863. }
  13864. /^X\(\/\).*/{
  13865. s//\1/
  13866. q
  13867. }
  13868. s/.*/./; q'`
  13869. test -d "$as_dir" && break
  13870. done
  13871. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13872. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13873. } # as_fn_mkdir_p
  13874. if mkdir -p . 2>/dev/null; then
  13875. as_mkdir_p='mkdir -p "$as_dir"'
  13876. else
  13877. test -d ./-p && rmdir ./-p
  13878. as_mkdir_p=false
  13879. fi
  13880. # as_fn_executable_p FILE
  13881. # -----------------------
  13882. # Test if FILE is an executable regular file.
  13883. as_fn_executable_p ()
  13884. {
  13885. test -f "$1" && test -x "$1"
  13886. } # as_fn_executable_p
  13887. as_test_x='test -x'
  13888. as_executable_p=as_fn_executable_p
  13889. # Sed expression to map a string onto a valid CPP name.
  13890. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13891. # Sed expression to map a string onto a valid variable name.
  13892. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13893. exec 6>&1
  13894. ## ----------------------------------- ##
  13895. ## Main body of $CONFIG_STATUS script. ##
  13896. ## ----------------------------------- ##
  13897. _ASEOF
  13898. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13900. # Save the log message, to keep $0 and so on meaningful, and to
  13901. # report actual input values of CONFIG_FILES etc. instead of their
  13902. # values after options handling.
  13903. ac_log="
  13904. This file was extended by gprofng $as_me 2.38.50, which was
  13905. generated by GNU Autoconf 2.69. Invocation command line was
  13906. CONFIG_FILES = $CONFIG_FILES
  13907. CONFIG_HEADERS = $CONFIG_HEADERS
  13908. CONFIG_LINKS = $CONFIG_LINKS
  13909. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13910. $ $0 $@
  13911. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13912. "
  13913. _ACEOF
  13914. case $ac_config_files in *"
  13915. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13916. esac
  13917. case $ac_config_headers in *"
  13918. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13919. esac
  13920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13921. # Files that config.status was made for.
  13922. config_files="$ac_config_files"
  13923. config_headers="$ac_config_headers"
  13924. config_commands="$ac_config_commands"
  13925. _ACEOF
  13926. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13927. ac_cs_usage="\
  13928. \`$as_me' instantiates files and other configuration actions
  13929. from templates according to the current configuration. Unless the files
  13930. and actions are specified as TAGs, all are instantiated by default.
  13931. Usage: $0 [OPTION]... [TAG]...
  13932. -h, --help print this help, then exit
  13933. -V, --version print version number and configuration settings, then exit
  13934. --config print configuration, then exit
  13935. -q, --quiet, --silent
  13936. do not print progress messages
  13937. -d, --debug don't remove temporary files
  13938. --recheck update $as_me by reconfiguring in the same conditions
  13939. --file=FILE[:TEMPLATE]
  13940. instantiate the configuration file FILE
  13941. --header=FILE[:TEMPLATE]
  13942. instantiate the configuration header FILE
  13943. Configuration files:
  13944. $config_files
  13945. Configuration headers:
  13946. $config_headers
  13947. Configuration commands:
  13948. $config_commands
  13949. Report bugs to the package provider."
  13950. _ACEOF
  13951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13952. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13953. ac_cs_version="\\
  13954. gprofng config.status 2.38.50
  13955. configured by $0, generated by GNU Autoconf 2.69,
  13956. with options \\"\$ac_cs_config\\"
  13957. Copyright (C) 2012 Free Software Foundation, Inc.
  13958. This config.status script is free software; the Free Software Foundation
  13959. gives unlimited permission to copy, distribute and modify it."
  13960. ac_pwd='$ac_pwd'
  13961. srcdir='$srcdir'
  13962. INSTALL='$INSTALL'
  13963. MKDIR_P='$MKDIR_P'
  13964. AWK='$AWK'
  13965. test -n "\$AWK" || AWK=awk
  13966. _ACEOF
  13967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13968. # The default lists apply if the user does not specify any file.
  13969. ac_need_defaults=:
  13970. while test $# != 0
  13971. do
  13972. case $1 in
  13973. --*=?*)
  13974. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13975. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13976. ac_shift=:
  13977. ;;
  13978. --*=)
  13979. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13980. ac_optarg=
  13981. ac_shift=:
  13982. ;;
  13983. *)
  13984. ac_option=$1
  13985. ac_optarg=$2
  13986. ac_shift=shift
  13987. ;;
  13988. esac
  13989. case $ac_option in
  13990. # Handling of the options.
  13991. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13992. ac_cs_recheck=: ;;
  13993. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13994. $as_echo "$ac_cs_version"; exit ;;
  13995. --config | --confi | --conf | --con | --co | --c )
  13996. $as_echo "$ac_cs_config"; exit ;;
  13997. --debug | --debu | --deb | --de | --d | -d )
  13998. debug=: ;;
  13999. --file | --fil | --fi | --f )
  14000. $ac_shift
  14001. case $ac_optarg in
  14002. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14003. '') as_fn_error $? "missing file argument" ;;
  14004. esac
  14005. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14006. ac_need_defaults=false;;
  14007. --header | --heade | --head | --hea )
  14008. $ac_shift
  14009. case $ac_optarg in
  14010. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14011. esac
  14012. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14013. ac_need_defaults=false;;
  14014. --he | --h)
  14015. # Conflict between --help and --header
  14016. as_fn_error $? "ambiguous option: \`$1'
  14017. Try \`$0 --help' for more information.";;
  14018. --help | --hel | -h )
  14019. $as_echo "$ac_cs_usage"; exit ;;
  14020. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14021. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14022. ac_cs_silent=: ;;
  14023. # This is an error.
  14024. -*) as_fn_error $? "unrecognized option: \`$1'
  14025. Try \`$0 --help' for more information." ;;
  14026. *) as_fn_append ac_config_targets " $1"
  14027. ac_need_defaults=false ;;
  14028. esac
  14029. shift
  14030. done
  14031. ac_configure_extra_args=
  14032. if $ac_cs_silent; then
  14033. exec 6>/dev/null
  14034. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14035. fi
  14036. _ACEOF
  14037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14038. if \$ac_cs_recheck; then
  14039. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14040. shift
  14041. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14042. CONFIG_SHELL='$SHELL'
  14043. export CONFIG_SHELL
  14044. exec "\$@"
  14045. fi
  14046. _ACEOF
  14047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14048. exec 5>>config.log
  14049. {
  14050. echo
  14051. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14052. ## Running $as_me. ##
  14053. _ASBOX
  14054. $as_echo "$ac_log"
  14055. } >&5
  14056. _ACEOF
  14057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14058. #
  14059. # INIT-COMMANDS
  14060. #
  14061. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14062. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14063. # if CDPATH is set.
  14064. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14065. sed_quote_subst='$sed_quote_subst'
  14066. double_quote_subst='$double_quote_subst'
  14067. delay_variable_subst='$delay_variable_subst'
  14068. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14069. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14070. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14071. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14072. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14073. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14074. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14075. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14076. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14077. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14078. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14079. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14080. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14081. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14082. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14083. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14084. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14085. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14086. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14087. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14088. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14089. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14090. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14091. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14092. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14093. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14094. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14095. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14096. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14097. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14098. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14099. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14100. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14101. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14102. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14103. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14104. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14105. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14106. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14107. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14108. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14109. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14110. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14111. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14112. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14113. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14114. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14115. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14116. 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"`'
  14117. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14118. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14119. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14120. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14121. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14122. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14123. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14124. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14125. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14126. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14127. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14128. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14129. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14130. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14131. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14132. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14133. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14134. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14135. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14136. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14137. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14138. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14139. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14140. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14141. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14142. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14143. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14144. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14145. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14146. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14147. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14148. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14149. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14150. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14151. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14152. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14153. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14154. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14155. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14156. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14157. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14158. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14159. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14160. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14161. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14162. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14163. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14164. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14165. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14166. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14167. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14168. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14169. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14170. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14171. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14172. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14173. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14174. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14175. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14176. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14177. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14178. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14179. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14180. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14181. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14182. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14183. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14184. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14185. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14186. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14187. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14188. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14189. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14190. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14191. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14192. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14193. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14194. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14195. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14196. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14197. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14198. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14199. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14200. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14201. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14202. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14203. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14204. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14205. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14206. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14207. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14208. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14209. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14210. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14211. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14212. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14213. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14214. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14215. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14216. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14217. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14218. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14219. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14220. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14221. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14222. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14223. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14224. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14225. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14226. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14227. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14228. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14229. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  14230. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14231. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14232. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14233. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14234. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14235. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14236. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14237. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14238. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14239. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14240. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14241. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14242. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14243. LTCC='$LTCC'
  14244. LTCFLAGS='$LTCFLAGS'
  14245. compiler='$compiler_DEFAULT'
  14246. # A function that is used when there is no print builtin or printf.
  14247. func_fallback_echo ()
  14248. {
  14249. eval 'cat <<_LTECHO_EOF
  14250. \$1
  14251. _LTECHO_EOF'
  14252. }
  14253. # Quote evaled strings.
  14254. for var in SHELL \
  14255. ECHO \
  14256. SED \
  14257. GREP \
  14258. EGREP \
  14259. FGREP \
  14260. LD \
  14261. NM \
  14262. LN_S \
  14263. lt_SP2NL \
  14264. lt_NL2SP \
  14265. reload_flag \
  14266. OBJDUMP \
  14267. deplibs_check_method \
  14268. file_magic_cmd \
  14269. AR \
  14270. AR_FLAGS \
  14271. STRIP \
  14272. RANLIB \
  14273. CC \
  14274. CFLAGS \
  14275. compiler \
  14276. lt_cv_sys_global_symbol_pipe \
  14277. lt_cv_sys_global_symbol_to_cdecl \
  14278. lt_cv_sys_global_symbol_to_c_name_address \
  14279. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14280. lt_prog_compiler_no_builtin_flag \
  14281. lt_prog_compiler_wl \
  14282. lt_prog_compiler_pic \
  14283. lt_prog_compiler_static \
  14284. lt_cv_prog_compiler_c_o \
  14285. need_locks \
  14286. DSYMUTIL \
  14287. NMEDIT \
  14288. LIPO \
  14289. OTOOL \
  14290. OTOOL64 \
  14291. shrext_cmds \
  14292. export_dynamic_flag_spec \
  14293. whole_archive_flag_spec \
  14294. compiler_needs_object \
  14295. with_gnu_ld \
  14296. allow_undefined_flag \
  14297. no_undefined_flag \
  14298. hardcode_libdir_flag_spec \
  14299. hardcode_libdir_flag_spec_ld \
  14300. hardcode_libdir_separator \
  14301. fix_srcfile_path \
  14302. exclude_expsyms \
  14303. include_expsyms \
  14304. file_list_spec \
  14305. variables_saved_for_relink \
  14306. libname_spec \
  14307. library_names_spec \
  14308. soname_spec \
  14309. install_override_mode \
  14310. finish_eval \
  14311. old_striplib \
  14312. striplib \
  14313. compiler_lib_search_dirs \
  14314. predep_objects \
  14315. postdep_objects \
  14316. predeps \
  14317. postdeps \
  14318. compiler_lib_search_path \
  14319. LD_CXX \
  14320. reload_flag_CXX \
  14321. compiler_CXX \
  14322. lt_prog_compiler_no_builtin_flag_CXX \
  14323. lt_prog_compiler_wl_CXX \
  14324. lt_prog_compiler_pic_CXX \
  14325. lt_prog_compiler_static_CXX \
  14326. lt_cv_prog_compiler_c_o_CXX \
  14327. export_dynamic_flag_spec_CXX \
  14328. whole_archive_flag_spec_CXX \
  14329. compiler_needs_object_CXX \
  14330. with_gnu_ld_CXX \
  14331. allow_undefined_flag_CXX \
  14332. no_undefined_flag_CXX \
  14333. hardcode_libdir_flag_spec_CXX \
  14334. hardcode_libdir_flag_spec_ld_CXX \
  14335. hardcode_libdir_separator_CXX \
  14336. fix_srcfile_path_CXX \
  14337. exclude_expsyms_CXX \
  14338. include_expsyms_CXX \
  14339. file_list_spec_CXX \
  14340. compiler_lib_search_dirs_CXX \
  14341. predep_objects_CXX \
  14342. postdep_objects_CXX \
  14343. predeps_CXX \
  14344. postdeps_CXX \
  14345. compiler_lib_search_path_CXX; do
  14346. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14347. *[\\\\\\\`\\"\\\$]*)
  14348. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14349. ;;
  14350. *)
  14351. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14352. ;;
  14353. esac
  14354. done
  14355. # Double-quote double-evaled strings.
  14356. for var in reload_cmds \
  14357. old_postinstall_cmds \
  14358. old_postuninstall_cmds \
  14359. old_archive_cmds \
  14360. extract_expsyms_cmds \
  14361. old_archive_from_new_cmds \
  14362. old_archive_from_expsyms_cmds \
  14363. archive_cmds \
  14364. archive_expsym_cmds \
  14365. module_cmds \
  14366. module_expsym_cmds \
  14367. export_symbols_cmds \
  14368. prelink_cmds \
  14369. postinstall_cmds \
  14370. postuninstall_cmds \
  14371. finish_cmds \
  14372. sys_lib_search_path_spec \
  14373. sys_lib_dlsearch_path_spec \
  14374. reload_cmds_CXX \
  14375. old_archive_cmds_CXX \
  14376. old_archive_from_new_cmds_CXX \
  14377. old_archive_from_expsyms_cmds_CXX \
  14378. archive_cmds_CXX \
  14379. archive_expsym_cmds_CXX \
  14380. module_cmds_CXX \
  14381. module_expsym_cmds_CXX \
  14382. export_symbols_cmds_CXX \
  14383. prelink_cmds_CXX; do
  14384. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14385. *[\\\\\\\`\\"\\\$]*)
  14386. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14387. ;;
  14388. *)
  14389. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14390. ;;
  14391. esac
  14392. done
  14393. ac_aux_dir='$ac_aux_dir'
  14394. xsi_shell='$xsi_shell'
  14395. lt_shell_append='$lt_shell_append'
  14396. # See if we are running on zsh, and set the options which allow our
  14397. # commands through without removal of \ escapes INIT.
  14398. if test -n "\${ZSH_VERSION+set}" ; then
  14399. setopt NO_GLOB_SUBST
  14400. fi
  14401. PACKAGE='$PACKAGE'
  14402. VERSION='$VERSION'
  14403. TIMESTAMP='$TIMESTAMP'
  14404. RM='$RM'
  14405. ofile='$ofile'
  14406. _ACEOF
  14407. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14408. # Handling of arguments.
  14409. for ac_config_target in $ac_config_targets
  14410. do
  14411. case $ac_config_target in
  14412. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14413. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14414. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14415. "lib-config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib-config.h:../common/config.h.in" ;;
  14416. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14417. esac
  14418. done
  14419. # If the user did not use the arguments to specify the items to instantiate,
  14420. # then the envvar interface is used. Set only those that are not.
  14421. # We use the long form for the default assignment because of an extremely
  14422. # bizarre bug on SunOS 4.1.3.
  14423. if $ac_need_defaults; then
  14424. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14425. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14426. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14427. fi
  14428. # Have a temporary directory for convenience. Make it in the build tree
  14429. # simply because there is no reason against having it here, and in addition,
  14430. # creating and moving files from /tmp can sometimes cause problems.
  14431. # Hook for its removal unless debugging.
  14432. # Note that there is a small window in which the directory will not be cleaned:
  14433. # after its creation but before its name has been assigned to `$tmp'.
  14434. $debug ||
  14435. {
  14436. tmp= ac_tmp=
  14437. trap 'exit_status=$?
  14438. : "${ac_tmp:=$tmp}"
  14439. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14440. ' 0
  14441. trap 'as_fn_exit 1' 1 2 13 15
  14442. }
  14443. # Create a (secure) tmp directory for tmp files.
  14444. {
  14445. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14446. test -d "$tmp"
  14447. } ||
  14448. {
  14449. tmp=./conf$$-$RANDOM
  14450. (umask 077 && mkdir "$tmp")
  14451. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14452. ac_tmp=$tmp
  14453. # Set up the scripts for CONFIG_FILES section.
  14454. # No need to generate them if there are no CONFIG_FILES.
  14455. # This happens for instance with `./config.status config.h'.
  14456. if test -n "$CONFIG_FILES"; then
  14457. ac_cr=`echo X | tr X '\015'`
  14458. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14459. # But we know of no other shell where ac_cr would be empty at this
  14460. # point, so we can use a bashism as a fallback.
  14461. if test "x$ac_cr" = x; then
  14462. eval ac_cr=\$\'\\r\'
  14463. fi
  14464. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14465. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14466. ac_cs_awk_cr='\\r'
  14467. else
  14468. ac_cs_awk_cr=$ac_cr
  14469. fi
  14470. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14471. _ACEOF
  14472. {
  14473. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14474. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14475. echo "_ACEOF"
  14476. } >conf$$subs.sh ||
  14477. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14478. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14479. ac_delim='%!_!# '
  14480. for ac_last_try in false false false false false :; do
  14481. . ./conf$$subs.sh ||
  14482. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14483. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14484. if test $ac_delim_n = $ac_delim_num; then
  14485. break
  14486. elif $ac_last_try; then
  14487. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14488. else
  14489. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14490. fi
  14491. done
  14492. rm -f conf$$subs.sh
  14493. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14494. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14495. _ACEOF
  14496. sed -n '
  14497. h
  14498. s/^/S["/; s/!.*/"]=/
  14499. p
  14500. g
  14501. s/^[^!]*!//
  14502. :repl
  14503. t repl
  14504. s/'"$ac_delim"'$//
  14505. t delim
  14506. :nl
  14507. h
  14508. s/\(.\{148\}\)..*/\1/
  14509. t more1
  14510. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14511. p
  14512. n
  14513. b repl
  14514. :more1
  14515. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14516. p
  14517. g
  14518. s/.\{148\}//
  14519. t nl
  14520. :delim
  14521. h
  14522. s/\(.\{148\}\)..*/\1/
  14523. t more2
  14524. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14525. p
  14526. b
  14527. :more2
  14528. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14529. p
  14530. g
  14531. s/.\{148\}//
  14532. t delim
  14533. ' <conf$$subs.awk | sed '
  14534. /^[^""]/{
  14535. N
  14536. s/\n//
  14537. }
  14538. ' >>$CONFIG_STATUS || ac_write_fail=1
  14539. rm -f conf$$subs.awk
  14540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14541. _ACAWK
  14542. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14543. for (key in S) S_is_set[key] = 1
  14544. FS = ""
  14545. }
  14546. {
  14547. line = $ 0
  14548. nfields = split(line, field, "@")
  14549. substed = 0
  14550. len = length(field[1])
  14551. for (i = 2; i < nfields; i++) {
  14552. key = field[i]
  14553. keylen = length(key)
  14554. if (S_is_set[key]) {
  14555. value = S[key]
  14556. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14557. len += length(value) + length(field[++i])
  14558. substed = 1
  14559. } else
  14560. len += 1 + keylen
  14561. }
  14562. print line
  14563. }
  14564. _ACAWK
  14565. _ACEOF
  14566. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14567. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14568. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14569. else
  14570. cat
  14571. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14572. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14573. _ACEOF
  14574. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14575. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14576. # trailing colons and then remove the whole line if VPATH becomes empty
  14577. # (actually we leave an empty line to preserve line numbers).
  14578. if test "x$srcdir" = x.; then
  14579. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14580. h
  14581. s///
  14582. s/^/:/
  14583. s/[ ]*$/:/
  14584. s/:\$(srcdir):/:/g
  14585. s/:\${srcdir}:/:/g
  14586. s/:@srcdir@:/:/g
  14587. s/^:*//
  14588. s/:*$//
  14589. x
  14590. s/\(=[ ]*\).*/\1/
  14591. G
  14592. s/\n//
  14593. s/^[^=]*=[ ]*$//
  14594. }'
  14595. fi
  14596. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14597. fi # test -n "$CONFIG_FILES"
  14598. # Set up the scripts for CONFIG_HEADERS section.
  14599. # No need to generate them if there are no CONFIG_HEADERS.
  14600. # This happens for instance with `./config.status Makefile'.
  14601. if test -n "$CONFIG_HEADERS"; then
  14602. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14603. BEGIN {
  14604. _ACEOF
  14605. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14606. # here-document in config.status, that substitutes the proper values into
  14607. # config.h.in to produce config.h.
  14608. # Create a delimiter string that does not exist in confdefs.h, to ease
  14609. # handling of long lines.
  14610. ac_delim='%!_!# '
  14611. for ac_last_try in false false :; do
  14612. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14613. if test -z "$ac_tt"; then
  14614. break
  14615. elif $ac_last_try; then
  14616. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14617. else
  14618. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14619. fi
  14620. done
  14621. # For the awk script, D is an array of macro values keyed by name,
  14622. # likewise P contains macro parameters if any. Preserve backslash
  14623. # newline sequences.
  14624. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14625. sed -n '
  14626. s/.\{148\}/&'"$ac_delim"'/g
  14627. t rset
  14628. :rset
  14629. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14630. t def
  14631. d
  14632. :def
  14633. s/\\$//
  14634. t bsnl
  14635. s/["\\]/\\&/g
  14636. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14637. D["\1"]=" \3"/p
  14638. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14639. d
  14640. :bsnl
  14641. s/["\\]/\\&/g
  14642. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14643. D["\1"]=" \3\\\\\\n"\\/p
  14644. t cont
  14645. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14646. t cont
  14647. d
  14648. :cont
  14649. n
  14650. s/.\{148\}/&'"$ac_delim"'/g
  14651. t clear
  14652. :clear
  14653. s/\\$//
  14654. t bsnlc
  14655. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14656. d
  14657. :bsnlc
  14658. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14659. b cont
  14660. ' <confdefs.h | sed '
  14661. s/'"$ac_delim"'/"\\\
  14662. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14664. for (key in D) D_is_set[key] = 1
  14665. FS = ""
  14666. }
  14667. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14668. line = \$ 0
  14669. split(line, arg, " ")
  14670. if (arg[1] == "#") {
  14671. defundef = arg[2]
  14672. mac1 = arg[3]
  14673. } else {
  14674. defundef = substr(arg[1], 2)
  14675. mac1 = arg[2]
  14676. }
  14677. split(mac1, mac2, "(") #)
  14678. macro = mac2[1]
  14679. prefix = substr(line, 1, index(line, defundef) - 1)
  14680. if (D_is_set[macro]) {
  14681. # Preserve the white space surrounding the "#".
  14682. print prefix "define", macro P[macro] D[macro]
  14683. next
  14684. } else {
  14685. # Replace #undef with comments. This is necessary, for example,
  14686. # in the case of _POSIX_SOURCE, which is predefined and required
  14687. # on some systems where configure will not decide to define it.
  14688. if (defundef == "undef") {
  14689. print "/*", prefix defundef, macro, "*/"
  14690. next
  14691. }
  14692. }
  14693. }
  14694. { print }
  14695. _ACAWK
  14696. _ACEOF
  14697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14698. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14699. fi # test -n "$CONFIG_HEADERS"
  14700. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14701. shift
  14702. for ac_tag
  14703. do
  14704. case $ac_tag in
  14705. :[FHLC]) ac_mode=$ac_tag; continue;;
  14706. esac
  14707. case $ac_mode$ac_tag in
  14708. :[FHL]*:*);;
  14709. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14710. :[FH]-) ac_tag=-:-;;
  14711. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14712. esac
  14713. ac_save_IFS=$IFS
  14714. IFS=:
  14715. set x $ac_tag
  14716. IFS=$ac_save_IFS
  14717. shift
  14718. ac_file=$1
  14719. shift
  14720. case $ac_mode in
  14721. :L) ac_source=$1;;
  14722. :[FH])
  14723. ac_file_inputs=
  14724. for ac_f
  14725. do
  14726. case $ac_f in
  14727. -) ac_f="$ac_tmp/stdin";;
  14728. *) # Look for the file first in the build tree, then in the source tree
  14729. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14730. # because $ac_f cannot contain `:'.
  14731. test -f "$ac_f" ||
  14732. case $ac_f in
  14733. [\\/$]*) false;;
  14734. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14735. esac ||
  14736. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14737. esac
  14738. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14739. as_fn_append ac_file_inputs " '$ac_f'"
  14740. done
  14741. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14742. # use $as_me), people would be surprised to read:
  14743. # /* config.h. Generated by config.status. */
  14744. configure_input='Generated from '`
  14745. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14746. `' by configure.'
  14747. if test x"$ac_file" != x-; then
  14748. configure_input="$ac_file. $configure_input"
  14749. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14750. $as_echo "$as_me: creating $ac_file" >&6;}
  14751. fi
  14752. # Neutralize special characters interpreted by sed in replacement strings.
  14753. case $configure_input in #(
  14754. *\&* | *\|* | *\\* )
  14755. ac_sed_conf_input=`$as_echo "$configure_input" |
  14756. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14757. *) ac_sed_conf_input=$configure_input;;
  14758. esac
  14759. case $ac_tag in
  14760. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14761. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14762. esac
  14763. ;;
  14764. esac
  14765. ac_dir=`$as_dirname -- "$ac_file" ||
  14766. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14767. X"$ac_file" : 'X\(//\)[^/]' \| \
  14768. X"$ac_file" : 'X\(//\)$' \| \
  14769. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14770. $as_echo X"$ac_file" |
  14771. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14772. s//\1/
  14773. q
  14774. }
  14775. /^X\(\/\/\)[^/].*/{
  14776. s//\1/
  14777. q
  14778. }
  14779. /^X\(\/\/\)$/{
  14780. s//\1/
  14781. q
  14782. }
  14783. /^X\(\/\).*/{
  14784. s//\1/
  14785. q
  14786. }
  14787. s/.*/./; q'`
  14788. as_dir="$ac_dir"; as_fn_mkdir_p
  14789. ac_builddir=.
  14790. case "$ac_dir" in
  14791. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14792. *)
  14793. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14794. # A ".." for each directory in $ac_dir_suffix.
  14795. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14796. case $ac_top_builddir_sub in
  14797. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14798. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14799. esac ;;
  14800. esac
  14801. ac_abs_top_builddir=$ac_pwd
  14802. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14803. # for backward compatibility:
  14804. ac_top_builddir=$ac_top_build_prefix
  14805. case $srcdir in
  14806. .) # We are building in place.
  14807. ac_srcdir=.
  14808. ac_top_srcdir=$ac_top_builddir_sub
  14809. ac_abs_top_srcdir=$ac_pwd ;;
  14810. [\\/]* | ?:[\\/]* ) # Absolute name.
  14811. ac_srcdir=$srcdir$ac_dir_suffix;
  14812. ac_top_srcdir=$srcdir
  14813. ac_abs_top_srcdir=$srcdir ;;
  14814. *) # Relative name.
  14815. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14816. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14817. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14818. esac
  14819. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14820. case $ac_mode in
  14821. :F)
  14822. #
  14823. # CONFIG_FILE
  14824. #
  14825. case $INSTALL in
  14826. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14827. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14828. esac
  14829. ac_MKDIR_P=$MKDIR_P
  14830. case $MKDIR_P in
  14831. [\\/$]* | ?:[\\/]* ) ;;
  14832. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14833. esac
  14834. _ACEOF
  14835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14836. # If the template does not know about datarootdir, expand it.
  14837. # FIXME: This hack should be removed a few years after 2.60.
  14838. ac_datarootdir_hack=; ac_datarootdir_seen=
  14839. ac_sed_dataroot='
  14840. /datarootdir/ {
  14841. p
  14842. q
  14843. }
  14844. /@datadir@/p
  14845. /@docdir@/p
  14846. /@infodir@/p
  14847. /@localedir@/p
  14848. /@mandir@/p'
  14849. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14850. *datarootdir*) ac_datarootdir_seen=yes;;
  14851. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14853. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14854. _ACEOF
  14855. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14856. ac_datarootdir_hack='
  14857. s&@datadir@&$datadir&g
  14858. s&@docdir@&$docdir&g
  14859. s&@infodir@&$infodir&g
  14860. s&@localedir@&$localedir&g
  14861. s&@mandir@&$mandir&g
  14862. s&\\\${datarootdir}&$datarootdir&g' ;;
  14863. esac
  14864. _ACEOF
  14865. # Neutralize VPATH when `$srcdir' = `.'.
  14866. # Shell code in configure.ac might set extrasub.
  14867. # FIXME: do we really want to maintain this feature?
  14868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14869. ac_sed_extra="$ac_vpsub
  14870. $extrasub
  14871. _ACEOF
  14872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14873. :t
  14874. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14875. s|@configure_input@|$ac_sed_conf_input|;t t
  14876. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14877. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14878. s&@srcdir@&$ac_srcdir&;t t
  14879. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14880. s&@top_srcdir@&$ac_top_srcdir&;t t
  14881. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14882. s&@builddir@&$ac_builddir&;t t
  14883. s&@abs_builddir@&$ac_abs_builddir&;t t
  14884. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14885. s&@INSTALL@&$ac_INSTALL&;t t
  14886. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14887. $ac_datarootdir_hack
  14888. "
  14889. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14890. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14891. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14892. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14893. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14894. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14896. which seems to be undefined. Please make sure it is defined" >&5
  14897. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14898. which seems to be undefined. Please make sure it is defined" >&2;}
  14899. rm -f "$ac_tmp/stdin"
  14900. case $ac_file in
  14901. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14902. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14903. esac \
  14904. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14905. ;;
  14906. :H)
  14907. #
  14908. # CONFIG_HEADER
  14909. #
  14910. if test x"$ac_file" != x-; then
  14911. {
  14912. $as_echo "/* $configure_input */" \
  14913. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14914. } >"$ac_tmp/config.h" \
  14915. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14916. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14918. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14919. else
  14920. rm -f "$ac_file"
  14921. mv "$ac_tmp/config.h" "$ac_file" \
  14922. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14923. fi
  14924. else
  14925. $as_echo "/* $configure_input */" \
  14926. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14927. || as_fn_error $? "could not create -" "$LINENO" 5
  14928. fi
  14929. # Compute "$ac_file"'s index in $config_headers.
  14930. _am_arg="$ac_file"
  14931. _am_stamp_count=1
  14932. for _am_header in $config_headers :; do
  14933. case $_am_header in
  14934. $_am_arg | $_am_arg:* )
  14935. break ;;
  14936. * )
  14937. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14938. esac
  14939. done
  14940. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14941. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14942. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14943. X"$_am_arg" : 'X\(//\)$' \| \
  14944. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14945. $as_echo X"$_am_arg" |
  14946. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14947. s//\1/
  14948. q
  14949. }
  14950. /^X\(\/\/\)[^/].*/{
  14951. s//\1/
  14952. q
  14953. }
  14954. /^X\(\/\/\)$/{
  14955. s//\1/
  14956. q
  14957. }
  14958. /^X\(\/\).*/{
  14959. s//\1/
  14960. q
  14961. }
  14962. s/.*/./; q'`/stamp-h$_am_stamp_count
  14963. ;;
  14964. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14965. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14966. ;;
  14967. esac
  14968. case $ac_file$ac_mode in
  14969. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14970. # Older Autoconf quotes --file arguments for eval, but not when files
  14971. # are listed without --file. Let's play safe and only enable the eval
  14972. # if we detect the quoting.
  14973. case $CONFIG_FILES in
  14974. *\'*) eval set x "$CONFIG_FILES" ;;
  14975. *) set x $CONFIG_FILES ;;
  14976. esac
  14977. shift
  14978. for mf
  14979. do
  14980. # Strip MF so we end up with the name of the file.
  14981. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14982. # Check whether this is an Automake generated Makefile or not.
  14983. # We used to match only the files named 'Makefile.in', but
  14984. # some people rename them; so instead we look at the file content.
  14985. # Grep'ing the first line is not enough: some people post-process
  14986. # each Makefile.in and add a new line on top of each file to say so.
  14987. # Grep'ing the whole file is not good either: AIX grep has a line
  14988. # limit of 2048, but all sed's we know have understand at least 4000.
  14989. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14990. dirpart=`$as_dirname -- "$mf" ||
  14991. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14992. X"$mf" : 'X\(//\)[^/]' \| \
  14993. X"$mf" : 'X\(//\)$' \| \
  14994. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14995. $as_echo X"$mf" |
  14996. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14997. s//\1/
  14998. q
  14999. }
  15000. /^X\(\/\/\)[^/].*/{
  15001. s//\1/
  15002. q
  15003. }
  15004. /^X\(\/\/\)$/{
  15005. s//\1/
  15006. q
  15007. }
  15008. /^X\(\/\).*/{
  15009. s//\1/
  15010. q
  15011. }
  15012. s/.*/./; q'`
  15013. else
  15014. continue
  15015. fi
  15016. # Extract the definition of DEPDIR, am__include, and am__quote
  15017. # from the Makefile without running 'make'.
  15018. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15019. test -z "$DEPDIR" && continue
  15020. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15021. test -z "$am__include" && continue
  15022. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15023. # Find all dependency output files, they are included files with
  15024. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15025. # simplest approach to changing $(DEPDIR) to its actual value in the
  15026. # expansion.
  15027. for file in `sed -n "
  15028. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15029. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15030. # Make sure the directory exists.
  15031. test -f "$dirpart/$file" && continue
  15032. fdir=`$as_dirname -- "$file" ||
  15033. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15034. X"$file" : 'X\(//\)[^/]' \| \
  15035. X"$file" : 'X\(//\)$' \| \
  15036. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15037. $as_echo X"$file" |
  15038. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15039. s//\1/
  15040. q
  15041. }
  15042. /^X\(\/\/\)[^/].*/{
  15043. s//\1/
  15044. q
  15045. }
  15046. /^X\(\/\/\)$/{
  15047. s//\1/
  15048. q
  15049. }
  15050. /^X\(\/\).*/{
  15051. s//\1/
  15052. q
  15053. }
  15054. s/.*/./; q'`
  15055. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15056. # echo "creating $dirpart/$file"
  15057. echo '# dummy' > "$dirpart/$file"
  15058. done
  15059. done
  15060. }
  15061. ;;
  15062. "libtool":C)
  15063. # See if we are running on zsh, and set the options which allow our
  15064. # commands through without removal of \ escapes.
  15065. if test -n "${ZSH_VERSION+set}" ; then
  15066. setopt NO_GLOB_SUBST
  15067. fi
  15068. cfgfile="${ofile}T"
  15069. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15070. $RM "$cfgfile"
  15071. cat <<_LT_EOF >> "$cfgfile"
  15072. #! $SHELL
  15073. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15074. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15075. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15076. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15077. #
  15078. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15079. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15080. # Written by Gordon Matzigkeit, 1996
  15081. #
  15082. # This file is part of GNU Libtool.
  15083. #
  15084. # GNU Libtool is free software; you can redistribute it and/or
  15085. # modify it under the terms of the GNU General Public License as
  15086. # published by the Free Software Foundation; either version 2 of
  15087. # the License, or (at your option) any later version.
  15088. #
  15089. # As a special exception to the GNU General Public License,
  15090. # if you distribute this file as part of a program or library that
  15091. # is built using GNU Libtool, you may include this file under the
  15092. # same distribution terms that you use for the rest of that program.
  15093. #
  15094. # GNU Libtool is distributed in the hope that it will be useful,
  15095. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15096. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15097. # GNU General Public License for more details.
  15098. #
  15099. # You should have received a copy of the GNU General Public License
  15100. # along with GNU Libtool; see the file COPYING. If not, a copy
  15101. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15102. # obtained by writing to the Free Software Foundation, Inc.,
  15103. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15104. # The names of the tagged configurations supported by this script.
  15105. available_tags="CXX "
  15106. # ### BEGIN LIBTOOL CONFIG
  15107. # Which release of libtool.m4 was used?
  15108. macro_version=$macro_version
  15109. macro_revision=$macro_revision
  15110. # Whether or not to build shared libraries.
  15111. build_libtool_libs=$enable_shared
  15112. # Whether or not to build static libraries.
  15113. build_old_libs=$enable_static
  15114. # What type of objects to build.
  15115. pic_mode=$pic_mode
  15116. # Whether or not to optimize for fast installation.
  15117. fast_install=$enable_fast_install
  15118. # Shell to use when invoking shell scripts.
  15119. SHELL=$lt_SHELL
  15120. # An echo program that protects backslashes.
  15121. ECHO=$lt_ECHO
  15122. # The host system.
  15123. host_alias=$host_alias
  15124. host=$host
  15125. host_os=$host_os
  15126. # The build system.
  15127. build_alias=$build_alias
  15128. build=$build
  15129. build_os=$build_os
  15130. # A sed program that does not truncate output.
  15131. SED=$lt_SED
  15132. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15133. Xsed="\$SED -e 1s/^X//"
  15134. # A grep program that handles long lines.
  15135. GREP=$lt_GREP
  15136. # An ERE matcher.
  15137. EGREP=$lt_EGREP
  15138. # A literal string matcher.
  15139. FGREP=$lt_FGREP
  15140. # A BSD- or MS-compatible name lister.
  15141. NM=$lt_NM
  15142. # Whether we need soft or hard links.
  15143. LN_S=$lt_LN_S
  15144. # What is the maximum length of a command?
  15145. max_cmd_len=$max_cmd_len
  15146. # Object file suffix (normally "o").
  15147. objext=$ac_objext
  15148. # Executable file suffix (normally "").
  15149. exeext=$exeext
  15150. # whether the shell understands "unset".
  15151. lt_unset=$lt_unset
  15152. # turn spaces into newlines.
  15153. SP2NL=$lt_lt_SP2NL
  15154. # turn newlines into spaces.
  15155. NL2SP=$lt_lt_NL2SP
  15156. # An object symbol dumper.
  15157. OBJDUMP=$lt_OBJDUMP
  15158. # Method to check whether dependent libraries are shared objects.
  15159. deplibs_check_method=$lt_deplibs_check_method
  15160. # Command to use when deplibs_check_method == "file_magic".
  15161. file_magic_cmd=$lt_file_magic_cmd
  15162. # The archiver.
  15163. AR=$lt_AR
  15164. AR_FLAGS=$lt_AR_FLAGS
  15165. # A symbol stripping program.
  15166. STRIP=$lt_STRIP
  15167. # Commands used to install an old-style archive.
  15168. RANLIB=$lt_RANLIB
  15169. old_postinstall_cmds=$lt_old_postinstall_cmds
  15170. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15171. # Whether to use a lock for old archive extraction.
  15172. lock_old_archive_extraction=$lock_old_archive_extraction
  15173. # A C compiler.
  15174. LTCC=$lt_CC
  15175. # LTCC compiler flags.
  15176. LTCFLAGS=$lt_CFLAGS
  15177. # Take the output of nm and produce a listing of raw symbols and C names.
  15178. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15179. # Transform the output of nm in a proper C declaration.
  15180. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15181. # Transform the output of nm in a C name address pair.
  15182. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15183. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15184. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15185. # The name of the directory that contains temporary libtool files.
  15186. objdir=$objdir
  15187. # Used to examine libraries when file_magic_cmd begins with "file".
  15188. MAGIC_CMD=$MAGIC_CMD
  15189. # Must we lock files when doing compilation?
  15190. need_locks=$lt_need_locks
  15191. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15192. DSYMUTIL=$lt_DSYMUTIL
  15193. # Tool to change global to local symbols on Mac OS X.
  15194. NMEDIT=$lt_NMEDIT
  15195. # Tool to manipulate fat objects and archives on Mac OS X.
  15196. LIPO=$lt_LIPO
  15197. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15198. OTOOL=$lt_OTOOL
  15199. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15200. OTOOL64=$lt_OTOOL64
  15201. # Old archive suffix (normally "a").
  15202. libext=$libext
  15203. # Shared library suffix (normally ".so").
  15204. shrext_cmds=$lt_shrext_cmds
  15205. # The commands to extract the exported symbol list from a shared archive.
  15206. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15207. # Variables whose values should be saved in libtool wrapper scripts and
  15208. # restored at link time.
  15209. variables_saved_for_relink=$lt_variables_saved_for_relink
  15210. # Do we need the "lib" prefix for modules?
  15211. need_lib_prefix=$need_lib_prefix
  15212. # Do we need a version for libraries?
  15213. need_version=$need_version
  15214. # Library versioning type.
  15215. version_type=$version_type
  15216. # Shared library runtime path variable.
  15217. runpath_var=$runpath_var
  15218. # Shared library path variable.
  15219. shlibpath_var=$shlibpath_var
  15220. # Is shlibpath searched before the hard-coded library search path?
  15221. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15222. # Format of library name prefix.
  15223. libname_spec=$lt_libname_spec
  15224. # List of archive names. First name is the real one, the rest are links.
  15225. # The last name is the one that the linker finds with -lNAME
  15226. library_names_spec=$lt_library_names_spec
  15227. # The coded name of the library, if different from the real name.
  15228. soname_spec=$lt_soname_spec
  15229. # Permission mode override for installation of shared libraries.
  15230. install_override_mode=$lt_install_override_mode
  15231. # Command to use after installation of a shared archive.
  15232. postinstall_cmds=$lt_postinstall_cmds
  15233. # Command to use after uninstallation of a shared archive.
  15234. postuninstall_cmds=$lt_postuninstall_cmds
  15235. # Commands used to finish a libtool library installation in a directory.
  15236. finish_cmds=$lt_finish_cmds
  15237. # As "finish_cmds", except a single script fragment to be evaled but
  15238. # not shown.
  15239. finish_eval=$lt_finish_eval
  15240. # Whether we should hardcode library paths into libraries.
  15241. hardcode_into_libs=$hardcode_into_libs
  15242. # Compile-time system search path for libraries.
  15243. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15244. # Run-time system search path for libraries.
  15245. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15246. # Whether dlopen is supported.
  15247. dlopen_support=$enable_dlopen
  15248. # Whether dlopen of programs is supported.
  15249. dlopen_self=$enable_dlopen_self
  15250. # Whether dlopen of statically linked programs is supported.
  15251. dlopen_self_static=$enable_dlopen_self_static
  15252. # Commands to strip libraries.
  15253. old_striplib=$lt_old_striplib
  15254. striplib=$lt_striplib
  15255. # The linker used to build libraries.
  15256. LD=$lt_LD
  15257. # How to create reloadable object files.
  15258. reload_flag=$lt_reload_flag
  15259. reload_cmds=$lt_reload_cmds
  15260. # Commands used to build an old-style archive.
  15261. old_archive_cmds=$lt_old_archive_cmds
  15262. # A language specific compiler.
  15263. CC=$lt_compiler
  15264. # Is the compiler the GNU compiler?
  15265. with_gcc=$GCC
  15266. # Compiler flag to turn off builtin functions.
  15267. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15268. # How to pass a linker flag through the compiler.
  15269. wl=$lt_lt_prog_compiler_wl
  15270. # Additional compiler flags for building library objects.
  15271. pic_flag=$lt_lt_prog_compiler_pic
  15272. # Compiler flag to prevent dynamic linking.
  15273. link_static_flag=$lt_lt_prog_compiler_static
  15274. # Does compiler simultaneously support -c and -o options?
  15275. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15276. # Whether or not to add -lc for building shared libraries.
  15277. build_libtool_need_lc=$archive_cmds_need_lc
  15278. # Whether or not to disallow shared libs when runtime libs are static.
  15279. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15280. # Compiler flag to allow reflexive dlopens.
  15281. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15282. # Compiler flag to generate shared objects directly from archives.
  15283. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15284. # Whether the compiler copes with passing no objects directly.
  15285. compiler_needs_object=$lt_compiler_needs_object
  15286. # Create an old-style archive from a shared archive.
  15287. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15288. # Create a temporary old-style archive to link instead of a shared archive.
  15289. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15290. # Commands used to build a shared archive.
  15291. archive_cmds=$lt_archive_cmds
  15292. archive_expsym_cmds=$lt_archive_expsym_cmds
  15293. # Commands used to build a loadable module if different from building
  15294. # a shared archive.
  15295. module_cmds=$lt_module_cmds
  15296. module_expsym_cmds=$lt_module_expsym_cmds
  15297. # Whether we are building with GNU ld or not.
  15298. with_gnu_ld=$lt_with_gnu_ld
  15299. # Flag that allows shared libraries with undefined symbols to be built.
  15300. allow_undefined_flag=$lt_allow_undefined_flag
  15301. # Flag that enforces no undefined symbols.
  15302. no_undefined_flag=$lt_no_undefined_flag
  15303. # Flag to hardcode \$libdir into a binary during linking.
  15304. # This must work even if \$libdir does not exist
  15305. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15306. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15307. # during linking. This must work even if \$libdir does not exist.
  15308. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15309. # Whether we need a single "-rpath" flag with a separated argument.
  15310. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15311. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15312. # DIR into the resulting binary.
  15313. hardcode_direct=$hardcode_direct
  15314. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15315. # DIR into the resulting binary and the resulting library dependency is
  15316. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15317. # library is relocated.
  15318. hardcode_direct_absolute=$hardcode_direct_absolute
  15319. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15320. # into the resulting binary.
  15321. hardcode_minus_L=$hardcode_minus_L
  15322. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15323. # into the resulting binary.
  15324. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15325. # Set to "yes" if building a shared library automatically hardcodes DIR
  15326. # into the library and all subsequent libraries and executables linked
  15327. # against it.
  15328. hardcode_automatic=$hardcode_automatic
  15329. # Set to yes if linker adds runtime paths of dependent libraries
  15330. # to runtime path list.
  15331. inherit_rpath=$inherit_rpath
  15332. # Whether libtool must link a program against all its dependency libraries.
  15333. link_all_deplibs=$link_all_deplibs
  15334. # Fix the shell variable \$srcfile for the compiler.
  15335. fix_srcfile_path=$lt_fix_srcfile_path
  15336. # Set to "yes" if exported symbols are required.
  15337. always_export_symbols=$always_export_symbols
  15338. # The commands to list exported symbols.
  15339. export_symbols_cmds=$lt_export_symbols_cmds
  15340. # Symbols that should not be listed in the preloaded symbols.
  15341. exclude_expsyms=$lt_exclude_expsyms
  15342. # Symbols that must always be exported.
  15343. include_expsyms=$lt_include_expsyms
  15344. # Commands necessary for linking programs (against libraries) with templates.
  15345. prelink_cmds=$lt_prelink_cmds
  15346. # Specify filename containing input files.
  15347. file_list_spec=$lt_file_list_spec
  15348. # How to hardcode a shared library path into an executable.
  15349. hardcode_action=$hardcode_action
  15350. # The directories searched by this compiler when creating a shared library.
  15351. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15352. # Dependencies to place before and after the objects being linked to
  15353. # create a shared library.
  15354. predep_objects=$lt_predep_objects
  15355. postdep_objects=$lt_postdep_objects
  15356. predeps=$lt_predeps
  15357. postdeps=$lt_postdeps
  15358. # The library search path used internally by the compiler when linking
  15359. # a shared library.
  15360. compiler_lib_search_path=$lt_compiler_lib_search_path
  15361. # ### END LIBTOOL CONFIG
  15362. _LT_EOF
  15363. case $host_os in
  15364. aix3*)
  15365. cat <<\_LT_EOF >> "$cfgfile"
  15366. # AIX sometimes has problems with the GCC collect2 program. For some
  15367. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15368. # vanish in a puff of smoke.
  15369. if test "X${COLLECT_NAMES+set}" != Xset; then
  15370. COLLECT_NAMES=
  15371. export COLLECT_NAMES
  15372. fi
  15373. _LT_EOF
  15374. ;;
  15375. esac
  15376. ltmain="$ac_aux_dir/ltmain.sh"
  15377. # We use sed instead of cat because bash on DJGPP gets confused if
  15378. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15379. # text mode, it properly converts lines to CR/LF. This bash problem
  15380. # is reportedly fixed, but why not run on old versions too?
  15381. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15382. || (rm -f "$cfgfile"; exit 1)
  15383. case $xsi_shell in
  15384. yes)
  15385. cat << \_LT_EOF >> "$cfgfile"
  15386. # func_dirname file append nondir_replacement
  15387. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15388. # otherwise set result to NONDIR_REPLACEMENT.
  15389. func_dirname ()
  15390. {
  15391. case ${1} in
  15392. */*) func_dirname_result="${1%/*}${2}" ;;
  15393. * ) func_dirname_result="${3}" ;;
  15394. esac
  15395. }
  15396. # func_basename file
  15397. func_basename ()
  15398. {
  15399. func_basename_result="${1##*/}"
  15400. }
  15401. # func_dirname_and_basename file append nondir_replacement
  15402. # perform func_basename and func_dirname in a single function
  15403. # call:
  15404. # dirname: Compute the dirname of FILE. If nonempty,
  15405. # add APPEND to the result, otherwise set result
  15406. # to NONDIR_REPLACEMENT.
  15407. # value returned in "$func_dirname_result"
  15408. # basename: Compute filename of FILE.
  15409. # value retuned in "$func_basename_result"
  15410. # Implementation must be kept synchronized with func_dirname
  15411. # and func_basename. For efficiency, we do not delegate to
  15412. # those functions but instead duplicate the functionality here.
  15413. func_dirname_and_basename ()
  15414. {
  15415. case ${1} in
  15416. */*) func_dirname_result="${1%/*}${2}" ;;
  15417. * ) func_dirname_result="${3}" ;;
  15418. esac
  15419. func_basename_result="${1##*/}"
  15420. }
  15421. # func_stripname prefix suffix name
  15422. # strip PREFIX and SUFFIX off of NAME.
  15423. # PREFIX and SUFFIX must not contain globbing or regex special
  15424. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15425. # dot (in which case that matches only a dot).
  15426. func_stripname ()
  15427. {
  15428. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15429. # positional parameters, so assign one to ordinary parameter first.
  15430. func_stripname_result=${3}
  15431. func_stripname_result=${func_stripname_result#"${1}"}
  15432. func_stripname_result=${func_stripname_result%"${2}"}
  15433. }
  15434. # func_opt_split
  15435. func_opt_split ()
  15436. {
  15437. func_opt_split_opt=${1%%=*}
  15438. func_opt_split_arg=${1#*=}
  15439. }
  15440. # func_lo2o object
  15441. func_lo2o ()
  15442. {
  15443. case ${1} in
  15444. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15445. *) func_lo2o_result=${1} ;;
  15446. esac
  15447. }
  15448. # func_xform libobj-or-source
  15449. func_xform ()
  15450. {
  15451. func_xform_result=${1%.*}.lo
  15452. }
  15453. # func_arith arithmetic-term...
  15454. func_arith ()
  15455. {
  15456. func_arith_result=$(( $* ))
  15457. }
  15458. # func_len string
  15459. # STRING may not start with a hyphen.
  15460. func_len ()
  15461. {
  15462. func_len_result=${#1}
  15463. }
  15464. _LT_EOF
  15465. ;;
  15466. *) # Bourne compatible functions.
  15467. cat << \_LT_EOF >> "$cfgfile"
  15468. # func_dirname file append nondir_replacement
  15469. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15470. # otherwise set result to NONDIR_REPLACEMENT.
  15471. func_dirname ()
  15472. {
  15473. # Extract subdirectory from the argument.
  15474. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15475. if test "X$func_dirname_result" = "X${1}"; then
  15476. func_dirname_result="${3}"
  15477. else
  15478. func_dirname_result="$func_dirname_result${2}"
  15479. fi
  15480. }
  15481. # func_basename file
  15482. func_basename ()
  15483. {
  15484. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15485. }
  15486. # func_stripname prefix suffix name
  15487. # strip PREFIX and SUFFIX off of NAME.
  15488. # PREFIX and SUFFIX must not contain globbing or regex special
  15489. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15490. # dot (in which case that matches only a dot).
  15491. # func_strip_suffix prefix name
  15492. func_stripname ()
  15493. {
  15494. case ${2} in
  15495. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15496. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15497. esac
  15498. }
  15499. # sed scripts:
  15500. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15501. my_sed_long_arg='1s/^-[^=]*=//'
  15502. # func_opt_split
  15503. func_opt_split ()
  15504. {
  15505. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15506. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15507. }
  15508. # func_lo2o object
  15509. func_lo2o ()
  15510. {
  15511. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15512. }
  15513. # func_xform libobj-or-source
  15514. func_xform ()
  15515. {
  15516. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15517. }
  15518. # func_arith arithmetic-term...
  15519. func_arith ()
  15520. {
  15521. func_arith_result=`expr "$@"`
  15522. }
  15523. # func_len string
  15524. # STRING may not start with a hyphen.
  15525. func_len ()
  15526. {
  15527. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15528. }
  15529. _LT_EOF
  15530. esac
  15531. case $lt_shell_append in
  15532. yes)
  15533. cat << \_LT_EOF >> "$cfgfile"
  15534. # func_append var value
  15535. # Append VALUE to the end of shell variable VAR.
  15536. func_append ()
  15537. {
  15538. eval "$1+=\$2"
  15539. }
  15540. _LT_EOF
  15541. ;;
  15542. *)
  15543. cat << \_LT_EOF >> "$cfgfile"
  15544. # func_append var value
  15545. # Append VALUE to the end of shell variable VAR.
  15546. func_append ()
  15547. {
  15548. eval "$1=\$$1\$2"
  15549. }
  15550. _LT_EOF
  15551. ;;
  15552. esac
  15553. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15554. || (rm -f "$cfgfile"; exit 1)
  15555. mv -f "$cfgfile" "$ofile" ||
  15556. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15557. chmod +x "$ofile"
  15558. cat <<_LT_EOF >> "$ofile"
  15559. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15560. # The linker used to build libraries.
  15561. LD=$lt_LD_CXX
  15562. # How to create reloadable object files.
  15563. reload_flag=$lt_reload_flag_CXX
  15564. reload_cmds=$lt_reload_cmds_CXX
  15565. # Commands used to build an old-style archive.
  15566. old_archive_cmds=$lt_old_archive_cmds_CXX
  15567. # A language specific compiler.
  15568. CC=$lt_compiler_CXX
  15569. # Is the compiler the GNU compiler?
  15570. with_gcc=$GCC_CXX
  15571. # Compiler flag to turn off builtin functions.
  15572. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15573. # How to pass a linker flag through the compiler.
  15574. wl=$lt_lt_prog_compiler_wl_CXX
  15575. # Additional compiler flags for building library objects.
  15576. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15577. # Compiler flag to prevent dynamic linking.
  15578. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15579. # Does compiler simultaneously support -c and -o options?
  15580. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15581. # Whether or not to add -lc for building shared libraries.
  15582. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15583. # Whether or not to disallow shared libs when runtime libs are static.
  15584. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15585. # Compiler flag to allow reflexive dlopens.
  15586. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15587. # Compiler flag to generate shared objects directly from archives.
  15588. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15589. # Whether the compiler copes with passing no objects directly.
  15590. compiler_needs_object=$lt_compiler_needs_object_CXX
  15591. # Create an old-style archive from a shared archive.
  15592. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15593. # Create a temporary old-style archive to link instead of a shared archive.
  15594. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15595. # Commands used to build a shared archive.
  15596. archive_cmds=$lt_archive_cmds_CXX
  15597. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15598. # Commands used to build a loadable module if different from building
  15599. # a shared archive.
  15600. module_cmds=$lt_module_cmds_CXX
  15601. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15602. # Whether we are building with GNU ld or not.
  15603. with_gnu_ld=$lt_with_gnu_ld_CXX
  15604. # Flag that allows shared libraries with undefined symbols to be built.
  15605. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15606. # Flag that enforces no undefined symbols.
  15607. no_undefined_flag=$lt_no_undefined_flag_CXX
  15608. # Flag to hardcode \$libdir into a binary during linking.
  15609. # This must work even if \$libdir does not exist
  15610. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15611. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15612. # during linking. This must work even if \$libdir does not exist.
  15613. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15614. # Whether we need a single "-rpath" flag with a separated argument.
  15615. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15616. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15617. # DIR into the resulting binary.
  15618. hardcode_direct=$hardcode_direct_CXX
  15619. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15620. # DIR into the resulting binary and the resulting library dependency is
  15621. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15622. # library is relocated.
  15623. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15624. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15625. # into the resulting binary.
  15626. hardcode_minus_L=$hardcode_minus_L_CXX
  15627. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15628. # into the resulting binary.
  15629. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15630. # Set to "yes" if building a shared library automatically hardcodes DIR
  15631. # into the library and all subsequent libraries and executables linked
  15632. # against it.
  15633. hardcode_automatic=$hardcode_automatic_CXX
  15634. # Set to yes if linker adds runtime paths of dependent libraries
  15635. # to runtime path list.
  15636. inherit_rpath=$inherit_rpath_CXX
  15637. # Whether libtool must link a program against all its dependency libraries.
  15638. link_all_deplibs=$link_all_deplibs_CXX
  15639. # Fix the shell variable \$srcfile for the compiler.
  15640. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15641. # Set to "yes" if exported symbols are required.
  15642. always_export_symbols=$always_export_symbols_CXX
  15643. # The commands to list exported symbols.
  15644. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15645. # Symbols that should not be listed in the preloaded symbols.
  15646. exclude_expsyms=$lt_exclude_expsyms_CXX
  15647. # Symbols that must always be exported.
  15648. include_expsyms=$lt_include_expsyms_CXX
  15649. # Commands necessary for linking programs (against libraries) with templates.
  15650. prelink_cmds=$lt_prelink_cmds_CXX
  15651. # Specify filename containing input files.
  15652. file_list_spec=$lt_file_list_spec_CXX
  15653. # How to hardcode a shared library path into an executable.
  15654. hardcode_action=$hardcode_action_CXX
  15655. # The directories searched by this compiler when creating a shared library.
  15656. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15657. # Dependencies to place before and after the objects being linked to
  15658. # create a shared library.
  15659. predep_objects=$lt_predep_objects_CXX
  15660. postdep_objects=$lt_postdep_objects_CXX
  15661. predeps=$lt_predeps_CXX
  15662. postdeps=$lt_postdeps_CXX
  15663. # The library search path used internally by the compiler when linking
  15664. # a shared library.
  15665. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15666. # ### END LIBTOOL TAG CONFIG: CXX
  15667. _LT_EOF
  15668. ;;
  15669. esac
  15670. done # for ac_tag
  15671. as_fn_exit 0
  15672. _ACEOF
  15673. ac_clean_files=$ac_clean_files_save
  15674. test $ac_write_fail = 0 ||
  15675. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15676. # configure is writing to config.log, and then calls config.status.
  15677. # config.status does its own redirection, appending to config.log.
  15678. # Unfortunately, on DOS this fails, as config.log is still kept open
  15679. # by configure, so config.status won't be able to write to it; its
  15680. # output is simply discarded. So we exec the FD to /dev/null,
  15681. # effectively closing config.log, so it can be properly (re)opened and
  15682. # appended to by config.status. When coming back to configure, we
  15683. # need to make the FD available again.
  15684. if test "$no_create" != yes; then
  15685. ac_cs_success=:
  15686. ac_config_status_args=
  15687. test "$silent" = yes &&
  15688. ac_config_status_args="$ac_config_status_args --quiet"
  15689. exec 5>/dev/null
  15690. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15691. exec 5>>config.log
  15692. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15693. # would make configure fail if this is the last instruction.
  15694. $ac_cs_success || as_fn_exit 1
  15695. fi
  15696. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15698. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15699. fi