configure 558 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for zlog 1.0.
  4. #
  5. # Report bugs to <BUG-REPORT-ADDRESS>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='zlog'
  542. PACKAGE_TARNAME='zlog'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='zlog 1.0'
  545. PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
  546. PACKAGE_URL=''
  547. ac_unique_file="log_queue.cpp"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. ALLOCA
  588. CXXCPP
  589. OTOOL64
  590. OTOOL
  591. LIPO
  592. NMEDIT
  593. DSYMUTIL
  594. MANIFEST_TOOL
  595. ac_ct_AR
  596. AR
  597. DLLTOOL
  598. OBJDUMP
  599. NM
  600. ac_ct_DUMPBIN
  601. DUMPBIN
  602. LD
  603. FGREP
  604. SED
  605. host_os
  606. host_vendor
  607. host_cpu
  608. host
  609. build_os
  610. build_vendor
  611. build_cpu
  612. build
  613. LIBTOOL
  614. EGREP
  615. GREP
  616. RANLIB
  617. LN_S
  618. CPP
  619. am__fastdepCC_FALSE
  620. am__fastdepCC_TRUE
  621. CCDEPMODE
  622. ac_ct_CC
  623. CFLAGS
  624. CC
  625. am__fastdepCXX_FALSE
  626. am__fastdepCXX_TRUE
  627. CXXDEPMODE
  628. am__nodep
  629. AMDEPBACKSLASH
  630. AMDEP_FALSE
  631. AMDEP_TRUE
  632. am__quote
  633. am__include
  634. DEPDIR
  635. OBJEXT
  636. EXEEXT
  637. ac_ct_CXX
  638. CPPFLAGS
  639. LDFLAGS
  640. CXXFLAGS
  641. CXX
  642. AM_BACKSLASH
  643. AM_DEFAULT_VERBOSITY
  644. AM_DEFAULT_V
  645. AM_V
  646. am__untar
  647. am__tar
  648. AMTAR
  649. am__leading_dot
  650. SET_MAKE
  651. AWK
  652. mkdir_p
  653. MKDIR_P
  654. INSTALL_STRIP_PROGRAM
  655. STRIP
  656. install_sh
  657. MAKEINFO
  658. AUTOHEADER
  659. AUTOMAKE
  660. AUTOCONF
  661. ACLOCAL
  662. VERSION
  663. PACKAGE
  664. CYGPATH_W
  665. am__isrc
  666. INSTALL_DATA
  667. INSTALL_SCRIPT
  668. INSTALL_PROGRAM
  669. target_alias
  670. host_alias
  671. build_alias
  672. LIBS
  673. ECHO_T
  674. ECHO_N
  675. ECHO_C
  676. DEFS
  677. mandir
  678. localedir
  679. libdir
  680. psdir
  681. pdfdir
  682. dvidir
  683. htmldir
  684. infodir
  685. docdir
  686. oldincludedir
  687. includedir
  688. localstatedir
  689. sharedstatedir
  690. sysconfdir
  691. datadir
  692. datarootdir
  693. libexecdir
  694. sbindir
  695. bindir
  696. program_transform_name
  697. prefix
  698. exec_prefix
  699. PACKAGE_URL
  700. PACKAGE_BUGREPORT
  701. PACKAGE_STRING
  702. PACKAGE_VERSION
  703. PACKAGE_TARNAME
  704. PACKAGE_NAME
  705. PATH_SEPARATOR
  706. SHELL'
  707. ac_subst_files=''
  708. ac_user_opts='
  709. enable_option_checking
  710. enable_silent_rules
  711. enable_dependency_tracking
  712. enable_shared
  713. enable_static
  714. with_pic
  715. enable_fast_install
  716. with_gnu_ld
  717. with_sysroot
  718. enable_libtool_lock
  719. '
  720. ac_precious_vars='build_alias
  721. host_alias
  722. target_alias
  723. CXX
  724. CXXFLAGS
  725. LDFLAGS
  726. LIBS
  727. CPPFLAGS
  728. CCC
  729. CC
  730. CFLAGS
  731. CPP
  732. CXXCPP'
  733. # Initialize some variables set by options.
  734. ac_init_help=
  735. ac_init_version=false
  736. ac_unrecognized_opts=
  737. ac_unrecognized_sep=
  738. # The variables have the same names as the options, with
  739. # dashes changed to underlines.
  740. cache_file=/dev/null
  741. exec_prefix=NONE
  742. no_create=
  743. no_recursion=
  744. prefix=NONE
  745. program_prefix=NONE
  746. program_suffix=NONE
  747. program_transform_name=s,x,x,
  748. silent=
  749. site=
  750. srcdir=
  751. verbose=
  752. x_includes=NONE
  753. x_libraries=NONE
  754. # Installation directory options.
  755. # These are left unexpanded so users can "make install exec_prefix=/foo"
  756. # and all the variables that are supposed to be based on exec_prefix
  757. # by default will actually change.
  758. # Use braces instead of parens because sh, perl, etc. also accept them.
  759. # (The list follows the same order as the GNU Coding Standards.)
  760. bindir='${exec_prefix}/bin'
  761. sbindir='${exec_prefix}/sbin'
  762. libexecdir='${exec_prefix}/libexec'
  763. datarootdir='${prefix}/share'
  764. datadir='${datarootdir}'
  765. sysconfdir='${prefix}/etc'
  766. sharedstatedir='${prefix}/com'
  767. localstatedir='${prefix}/var'
  768. includedir='${prefix}/include'
  769. oldincludedir='/usr/include'
  770. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  771. infodir='${datarootdir}/info'
  772. htmldir='${docdir}'
  773. dvidir='${docdir}'
  774. pdfdir='${docdir}'
  775. psdir='${docdir}'
  776. libdir='${exec_prefix}/lib'
  777. localedir='${datarootdir}/locale'
  778. mandir='${datarootdir}/man'
  779. ac_prev=
  780. ac_dashdash=
  781. for ac_option
  782. do
  783. # If the previous option needs an argument, assign it.
  784. if test -n "$ac_prev"; then
  785. eval $ac_prev=\$ac_option
  786. ac_prev=
  787. continue
  788. fi
  789. case $ac_option in
  790. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  791. *=) ac_optarg= ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information"
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error $? "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. elif test "x$build_alias" != "x$host_alias"; then
  1127. cross_compiling=yes
  1128. fi
  1129. fi
  1130. ac_tool_prefix=
  1131. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1132. test "$silent" = yes && exec 6>/dev/null
  1133. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1134. ac_ls_di=`ls -di .` &&
  1135. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1136. as_fn_error $? "working directory cannot be determined"
  1137. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1138. as_fn_error $? "pwd does not report name of working directory"
  1139. # Find the source files, if location was not specified.
  1140. if test -z "$srcdir"; then
  1141. ac_srcdir_defaulted=yes
  1142. # Try the directory containing this script, then the parent directory.
  1143. ac_confdir=`$as_dirname -- "$as_myself" ||
  1144. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1145. X"$as_myself" : 'X\(//\)[^/]' \| \
  1146. X"$as_myself" : 'X\(//\)$' \| \
  1147. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1148. $as_echo X"$as_myself" |
  1149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)[^/].*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\).*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. s/.*/./; q'`
  1166. srcdir=$ac_confdir
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. srcdir=..
  1169. fi
  1170. else
  1171. ac_srcdir_defaulted=no
  1172. fi
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1175. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1176. fi
  1177. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1178. ac_abs_confdir=`(
  1179. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1180. pwd)`
  1181. # When building in place, set srcdir=.
  1182. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1183. srcdir=.
  1184. fi
  1185. # Remove unnecessary trailing slashes from srcdir.
  1186. # Double slashes in file names in object file debugging info
  1187. # mess up M-x gdb in Emacs.
  1188. case $srcdir in
  1189. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1190. esac
  1191. for ac_var in $ac_precious_vars; do
  1192. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_env_${ac_var}_value=\$${ac_var}
  1194. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1196. done
  1197. #
  1198. # Report the --help message.
  1199. #
  1200. if test "$ac_init_help" = "long"; then
  1201. # Omit some internal or obsolete options to make the list less imposing.
  1202. # This message is too long to be a string in the A/UX 3.1 sh.
  1203. cat <<_ACEOF
  1204. \`configure' configures zlog 1.0 to adapt to many kinds of systems.
  1205. Usage: $0 [OPTION]... [VAR=VALUE]...
  1206. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1207. VAR=VALUE. See below for descriptions of some of the useful variables.
  1208. Defaults for the options are specified in brackets.
  1209. Configuration:
  1210. -h, --help display this help and exit
  1211. --help=short display options specific to this package
  1212. --help=recursive display the short help of all the included packages
  1213. -V, --version display version information and exit
  1214. -q, --quiet, --silent do not print \`checking ...' messages
  1215. --cache-file=FILE cache test results in FILE [disabled]
  1216. -C, --config-cache alias for \`--cache-file=config.cache'
  1217. -n, --no-create do not create output files
  1218. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1219. Installation directories:
  1220. --prefix=PREFIX install architecture-independent files in PREFIX
  1221. [$ac_default_prefix]
  1222. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1223. [PREFIX]
  1224. By default, \`make install' will install all the files in
  1225. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1226. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1227. for instance \`--prefix=\$HOME'.
  1228. For better control, use the options below.
  1229. Fine tuning of the installation directories:
  1230. --bindir=DIR user executables [EPREFIX/bin]
  1231. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1232. --libexecdir=DIR program executables [EPREFIX/libexec]
  1233. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1234. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1235. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1236. --libdir=DIR object code libraries [EPREFIX/lib]
  1237. --includedir=DIR C header files [PREFIX/include]
  1238. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1239. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1240. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1241. --infodir=DIR info documentation [DATAROOTDIR/info]
  1242. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1243. --mandir=DIR man documentation [DATAROOTDIR/man]
  1244. --docdir=DIR documentation root [DATAROOTDIR/doc/zlog]
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. _ACEOF
  1259. fi
  1260. if test -n "$ac_init_help"; then
  1261. case $ac_init_help in
  1262. short | recursive ) echo "Configuration of zlog 1.0:";;
  1263. esac
  1264. cat <<\_ACEOF
  1265. Optional Features:
  1266. --disable-option-checking ignore unrecognized --enable/--with options
  1267. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1268. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1269. --enable-silent-rules less verbose build output (undo: "make V=1")
  1270. --disable-silent-rules verbose build output (undo: "make V=0")
  1271. --enable-dependency-tracking
  1272. do not reject slow dependency extractors
  1273. --disable-dependency-tracking
  1274. speeds up one-time build
  1275. --enable-shared[=PKGS] build shared libraries [default=yes]
  1276. --enable-static[=PKGS] build static libraries [default=yes]
  1277. --enable-fast-install[=PKGS]
  1278. optimize for fast installation [default=yes]
  1279. --disable-libtool-lock avoid locking (might break parallel builds)
  1280. Optional Packages:
  1281. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1282. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1283. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1284. both]
  1285. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1286. --with-sysroot=DIR Search for dependent libraries within DIR
  1287. (or the compiler's sysroot if not specified).
  1288. Some influential environment variables:
  1289. CXX C++ compiler command
  1290. CXXFLAGS C++ compiler flags
  1291. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1292. nonstandard directory <lib dir>
  1293. LIBS libraries to pass to the linker, e.g. -l<library>
  1294. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1295. you have headers in a nonstandard directory <include dir>
  1296. CC C compiler command
  1297. CFLAGS C compiler flags
  1298. CPP C preprocessor
  1299. CXXCPP C++ preprocessor
  1300. Use these variables to override the choices made by `configure' or to help
  1301. it to find libraries and programs with nonstandard names/locations.
  1302. Report bugs to <BUG-REPORT-ADDRESS>.
  1303. _ACEOF
  1304. ac_status=$?
  1305. fi
  1306. if test "$ac_init_help" = "recursive"; then
  1307. # If there are subdirs, report their specific --help.
  1308. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1309. test -d "$ac_dir" ||
  1310. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1311. continue
  1312. ac_builddir=.
  1313. case "$ac_dir" in
  1314. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1315. *)
  1316. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1317. # A ".." for each directory in $ac_dir_suffix.
  1318. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1319. case $ac_top_builddir_sub in
  1320. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1322. esac ;;
  1323. esac
  1324. ac_abs_top_builddir=$ac_pwd
  1325. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1326. # for backward compatibility:
  1327. ac_top_builddir=$ac_top_build_prefix
  1328. case $srcdir in
  1329. .) # We are building in place.
  1330. ac_srcdir=.
  1331. ac_top_srcdir=$ac_top_builddir_sub
  1332. ac_abs_top_srcdir=$ac_pwd ;;
  1333. [\\/]* | ?:[\\/]* ) # Absolute name.
  1334. ac_srcdir=$srcdir$ac_dir_suffix;
  1335. ac_top_srcdir=$srcdir
  1336. ac_abs_top_srcdir=$srcdir ;;
  1337. *) # Relative name.
  1338. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1339. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1340. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1341. esac
  1342. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1343. cd "$ac_dir" || { ac_status=$?; continue; }
  1344. # Check for guested configure.
  1345. if test -f "$ac_srcdir/configure.gnu"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1348. elif test -f "$ac_srcdir/configure"; then
  1349. echo &&
  1350. $SHELL "$ac_srcdir/configure" --help=recursive
  1351. else
  1352. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1353. fi || ac_status=$?
  1354. cd "$ac_pwd" || { ac_status=$?; break; }
  1355. done
  1356. fi
  1357. test -n "$ac_init_help" && exit $ac_status
  1358. if $ac_init_version; then
  1359. cat <<\_ACEOF
  1360. zlog configure 1.0
  1361. generated by GNU Autoconf 2.69
  1362. Copyright (C) 2012 Free Software Foundation, Inc.
  1363. This configure script is free software; the Free Software Foundation
  1364. gives unlimited permission to copy, distribute and modify it.
  1365. _ACEOF
  1366. exit
  1367. fi
  1368. ## ------------------------ ##
  1369. ## Autoconf initialization. ##
  1370. ## ------------------------ ##
  1371. # ac_fn_cxx_try_compile LINENO
  1372. # ----------------------------
  1373. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1374. ac_fn_cxx_try_compile ()
  1375. {
  1376. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1377. rm -f conftest.$ac_objext
  1378. if { { ac_try="$ac_compile"
  1379. case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1384. $as_echo "$ac_try_echo"; } >&5
  1385. (eval "$ac_compile") 2>conftest.err
  1386. ac_status=$?
  1387. if test -s conftest.err; then
  1388. grep -v '^ *+' conftest.err >conftest.er1
  1389. cat conftest.er1 >&5
  1390. mv -f conftest.er1 conftest.err
  1391. fi
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } && {
  1394. test -z "$ac_cxx_werror_flag" ||
  1395. test ! -s conftest.err
  1396. } && test -s conftest.$ac_objext; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=1
  1402. fi
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } # ac_fn_cxx_try_compile
  1406. # ac_fn_c_try_compile LINENO
  1407. # --------------------------
  1408. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1409. ac_fn_c_try_compile ()
  1410. {
  1411. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1412. rm -f conftest.$ac_objext
  1413. if { { ac_try="$ac_compile"
  1414. case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_compile") 2>conftest.err
  1421. ac_status=$?
  1422. if test -s conftest.err; then
  1423. grep -v '^ *+' conftest.err >conftest.er1
  1424. cat conftest.er1 >&5
  1425. mv -f conftest.er1 conftest.err
  1426. fi
  1427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1428. test $ac_status = 0; } && {
  1429. test -z "$ac_c_werror_flag" ||
  1430. test ! -s conftest.err
  1431. } && test -s conftest.$ac_objext; then :
  1432. ac_retval=0
  1433. else
  1434. $as_echo "$as_me: failed program was:" >&5
  1435. sed 's/^/| /' conftest.$ac_ext >&5
  1436. ac_retval=1
  1437. fi
  1438. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1439. as_fn_set_status $ac_retval
  1440. } # ac_fn_c_try_compile
  1441. # ac_fn_c_try_cpp LINENO
  1442. # ----------------------
  1443. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_cpp ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1448. case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1455. ac_status=$?
  1456. if test -s conftest.err; then
  1457. grep -v '^ *+' conftest.err >conftest.er1
  1458. cat conftest.er1 >&5
  1459. mv -f conftest.er1 conftest.err
  1460. fi
  1461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1462. test $ac_status = 0; } > conftest.i && {
  1463. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1464. test ! -s conftest.err
  1465. }; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. as_fn_set_status $ac_retval
  1474. } # ac_fn_c_try_cpp
  1475. # ac_fn_c_try_link LINENO
  1476. # -----------------------
  1477. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_link ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext conftest$ac_exeext
  1482. if { { ac_try="$ac_link"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_link") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_c_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest$ac_exeext && {
  1501. test "$cross_compiling" = yes ||
  1502. test -x conftest$ac_exeext
  1503. }; then :
  1504. ac_retval=0
  1505. else
  1506. $as_echo "$as_me: failed program was:" >&5
  1507. sed 's/^/| /' conftest.$ac_ext >&5
  1508. ac_retval=1
  1509. fi
  1510. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1511. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1512. # interfere with the next link command; also delete a directory that is
  1513. # left behind by Apple's compiler. We do this before executing the actions.
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_link
  1518. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1519. # -------------------------------------------------------
  1520. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1521. # the include files in INCLUDES and setting the cache variable VAR
  1522. # accordingly.
  1523. ac_fn_c_check_header_mongrel ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. if eval \${$3+:} false; then :
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1528. $as_echo_n "checking for $2... " >&6; }
  1529. if eval \${$3+:} false; then :
  1530. $as_echo_n "(cached) " >&6
  1531. fi
  1532. eval ac_res=\$$3
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1534. $as_echo "$ac_res" >&6; }
  1535. else
  1536. # Is the header compilable?
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1538. $as_echo_n "checking $2 usability... " >&6; }
  1539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1540. /* end confdefs.h. */
  1541. $4
  1542. #include <$2>
  1543. _ACEOF
  1544. if ac_fn_c_try_compile "$LINENO"; then :
  1545. ac_header_compiler=yes
  1546. else
  1547. ac_header_compiler=no
  1548. fi
  1549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1551. $as_echo "$ac_header_compiler" >&6; }
  1552. # Is the header present?
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1554. $as_echo_n "checking $2 presence... " >&6; }
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. #include <$2>
  1558. _ACEOF
  1559. if ac_fn_c_try_cpp "$LINENO"; then :
  1560. ac_header_preproc=yes
  1561. else
  1562. ac_header_preproc=no
  1563. fi
  1564. rm -f conftest.err conftest.i conftest.$ac_ext
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1566. $as_echo "$ac_header_preproc" >&6; }
  1567. # So? What about this header?
  1568. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1569. yes:no: )
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1571. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1573. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1574. ;;
  1575. no:yes:* )
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1577. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1579. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1581. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1583. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1585. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1586. ( $as_echo "## --------------------------------- ##
  1587. ## Report this to BUG-REPORT-ADDRESS ##
  1588. ## --------------------------------- ##"
  1589. ) | sed "s/^/$as_me: WARNING: /" >&2
  1590. ;;
  1591. esac
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1593. $as_echo_n "checking for $2... " >&6; }
  1594. if eval \${$3+:} false; then :
  1595. $as_echo_n "(cached) " >&6
  1596. else
  1597. eval "$3=\$ac_header_compiler"
  1598. fi
  1599. eval ac_res=\$$3
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1601. $as_echo "$ac_res" >&6; }
  1602. fi
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. } # ac_fn_c_check_header_mongrel
  1605. # ac_fn_c_try_run LINENO
  1606. # ----------------------
  1607. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1608. # that executables *can* be run.
  1609. ac_fn_c_try_run ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. if { { ac_try="$ac_link"
  1613. case "(($ac_try" in
  1614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1615. *) ac_try_echo=$ac_try;;
  1616. esac
  1617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1618. $as_echo "$ac_try_echo"; } >&5
  1619. (eval "$ac_link") 2>&5
  1620. ac_status=$?
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1623. { { case "(($ac_try" in
  1624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1625. *) ac_try_echo=$ac_try;;
  1626. esac
  1627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1628. $as_echo "$ac_try_echo"; } >&5
  1629. (eval "$ac_try") 2>&5
  1630. ac_status=$?
  1631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1632. test $ac_status = 0; }; }; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: program exited with status $ac_status" >&5
  1636. $as_echo "$as_me: failed program was:" >&5
  1637. sed 's/^/| /' conftest.$ac_ext >&5
  1638. ac_retval=$ac_status
  1639. fi
  1640. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. as_fn_set_status $ac_retval
  1643. } # ac_fn_c_try_run
  1644. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1645. # -------------------------------------------------------
  1646. # Tests whether HEADER exists and can be compiled using the include files in
  1647. # INCLUDES, setting the cache variable VAR accordingly.
  1648. ac_fn_c_check_header_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. #include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_compile "$LINENO"; then :
  1662. eval "$3=yes"
  1663. else
  1664. eval "$3=no"
  1665. fi
  1666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_header_compile
  1673. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1674. # -------------------------------------------
  1675. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1676. # variable VAR accordingly.
  1677. ac_fn_c_check_type ()
  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. eval "$3=no"
  1686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h. */
  1688. $4
  1689. int
  1690. main ()
  1691. {
  1692. if (sizeof ($2))
  1693. return 0;
  1694. ;
  1695. return 0;
  1696. }
  1697. _ACEOF
  1698. if ac_fn_c_try_compile "$LINENO"; then :
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. $4
  1702. int
  1703. main ()
  1704. {
  1705. if (sizeof (($2)))
  1706. return 0;
  1707. ;
  1708. return 0;
  1709. }
  1710. _ACEOF
  1711. if ac_fn_c_try_compile "$LINENO"; then :
  1712. else
  1713. eval "$3=yes"
  1714. fi
  1715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1718. fi
  1719. eval ac_res=\$$3
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1721. $as_echo "$ac_res" >&6; }
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. } # ac_fn_c_check_type
  1724. # ac_fn_c_find_intX_t LINENO BITS VAR
  1725. # -----------------------------------
  1726. # Finds a signed integer type with width BITS, setting cache variable VAR
  1727. # accordingly.
  1728. ac_fn_c_find_intX_t ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1732. $as_echo_n "checking for int$2_t... " >&6; }
  1733. if eval \${$3+:} false; then :
  1734. $as_echo_n "(cached) " >&6
  1735. else
  1736. eval "$3=no"
  1737. # Order is important - never check a type that is potentially smaller
  1738. # than half of the expected target width.
  1739. for ac_type in int$2_t 'int' 'long int' \
  1740. 'long long int' 'short int' 'signed char'; do
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $ac_includes_default
  1744. enum { N = $2 / 2 - 1 };
  1745. int
  1746. main ()
  1747. {
  1748. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1749. test_array [0] = 0;
  1750. return test_array [0];
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_compile "$LINENO"; then :
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. $ac_includes_default
  1759. enum { N = $2 / 2 - 1 };
  1760. int
  1761. main ()
  1762. {
  1763. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1764. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1765. test_array [0] = 0;
  1766. return test_array [0];
  1767. ;
  1768. return 0;
  1769. }
  1770. _ACEOF
  1771. if ac_fn_c_try_compile "$LINENO"; then :
  1772. else
  1773. case $ac_type in #(
  1774. int$2_t) :
  1775. eval "$3=yes" ;; #(
  1776. *) :
  1777. eval "$3=\$ac_type" ;;
  1778. esac
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. if eval test \"x\$"$3"\" = x"no"; then :
  1784. else
  1785. break
  1786. fi
  1787. done
  1788. fi
  1789. eval ac_res=\$$3
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1791. $as_echo "$ac_res" >&6; }
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. } # ac_fn_c_find_intX_t
  1794. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1795. # ------------------------------------
  1796. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1797. # accordingly.
  1798. ac_fn_c_find_uintX_t ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1802. $as_echo_n "checking for uint$2_t... " >&6; }
  1803. if eval \${$3+:} false; then :
  1804. $as_echo_n "(cached) " >&6
  1805. else
  1806. eval "$3=no"
  1807. # Order is important - never check a type that is potentially smaller
  1808. # than half of the expected target width.
  1809. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1810. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $ac_includes_default
  1814. int
  1815. main ()
  1816. {
  1817. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1818. test_array [0] = 0;
  1819. return test_array [0];
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_compile "$LINENO"; then :
  1825. case $ac_type in #(
  1826. uint$2_t) :
  1827. eval "$3=yes" ;; #(
  1828. *) :
  1829. eval "$3=\$ac_type" ;;
  1830. esac
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. if eval test \"x\$"$3"\" = x"no"; then :
  1834. else
  1835. break
  1836. fi
  1837. done
  1838. fi
  1839. eval ac_res=\$$3
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1841. $as_echo "$ac_res" >&6; }
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. } # ac_fn_c_find_uintX_t
  1844. # ac_fn_c_check_func LINENO FUNC VAR
  1845. # ----------------------------------
  1846. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1847. ac_fn_c_check_func ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1851. $as_echo_n "checking for $2... " >&6; }
  1852. if eval \${$3+:} false; then :
  1853. $as_echo_n "(cached) " >&6
  1854. else
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h. */
  1857. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1859. #define $2 innocuous_$2
  1860. /* System header to define __stub macros and hopefully few prototypes,
  1861. which can conflict with char $2 (); below.
  1862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1863. <limits.h> exists even on freestanding compilers. */
  1864. #ifdef __STDC__
  1865. # include <limits.h>
  1866. #else
  1867. # include <assert.h>
  1868. #endif
  1869. #undef $2
  1870. /* Override any GCC internal prototype to avoid an error.
  1871. Use char because int might match the return type of a GCC
  1872. builtin and then its argument prototype would still apply. */
  1873. #ifdef __cplusplus
  1874. extern "C"
  1875. #endif
  1876. char $2 ();
  1877. /* The GNU C library defines this for functions which it implements
  1878. to always fail with ENOSYS. Some functions are actually named
  1879. something starting with __ and the normal name is an alias. */
  1880. #if defined __stub_$2 || defined __stub___$2
  1881. choke me
  1882. #endif
  1883. int
  1884. main ()
  1885. {
  1886. return $2 ();
  1887. ;
  1888. return 0;
  1889. }
  1890. _ACEOF
  1891. if ac_fn_c_try_link "$LINENO"; then :
  1892. eval "$3=yes"
  1893. else
  1894. eval "$3=no"
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext \
  1897. conftest$ac_exeext conftest.$ac_ext
  1898. fi
  1899. eval ac_res=\$$3
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. $as_echo "$ac_res" >&6; }
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. } # ac_fn_c_check_func
  1904. # ac_fn_cxx_try_cpp LINENO
  1905. # ------------------------
  1906. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1907. ac_fn_cxx_try_cpp ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1911. case "(($ac_try" in
  1912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1913. *) ac_try_echo=$ac_try;;
  1914. esac
  1915. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1916. $as_echo "$ac_try_echo"; } >&5
  1917. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1918. ac_status=$?
  1919. if test -s conftest.err; then
  1920. grep -v '^ *+' conftest.err >conftest.er1
  1921. cat conftest.er1 >&5
  1922. mv -f conftest.er1 conftest.err
  1923. fi
  1924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1925. test $ac_status = 0; } > conftest.i && {
  1926. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1927. test ! -s conftest.err
  1928. }; then :
  1929. ac_retval=0
  1930. else
  1931. $as_echo "$as_me: failed program was:" >&5
  1932. sed 's/^/| /' conftest.$ac_ext >&5
  1933. ac_retval=1
  1934. fi
  1935. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1936. as_fn_set_status $ac_retval
  1937. } # ac_fn_cxx_try_cpp
  1938. # ac_fn_cxx_try_link LINENO
  1939. # -------------------------
  1940. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1941. ac_fn_cxx_try_link ()
  1942. {
  1943. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1944. rm -f conftest.$ac_objext conftest$ac_exeext
  1945. if { { ac_try="$ac_link"
  1946. case "(($ac_try" in
  1947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1948. *) ac_try_echo=$ac_try;;
  1949. esac
  1950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1951. $as_echo "$ac_try_echo"; } >&5
  1952. (eval "$ac_link") 2>conftest.err
  1953. ac_status=$?
  1954. if test -s conftest.err; then
  1955. grep -v '^ *+' conftest.err >conftest.er1
  1956. cat conftest.er1 >&5
  1957. mv -f conftest.er1 conftest.err
  1958. fi
  1959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1960. test $ac_status = 0; } && {
  1961. test -z "$ac_cxx_werror_flag" ||
  1962. test ! -s conftest.err
  1963. } && test -s conftest$ac_exeext && {
  1964. test "$cross_compiling" = yes ||
  1965. test -x conftest$ac_exeext
  1966. }; then :
  1967. ac_retval=0
  1968. else
  1969. $as_echo "$as_me: failed program was:" >&5
  1970. sed 's/^/| /' conftest.$ac_ext >&5
  1971. ac_retval=1
  1972. fi
  1973. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1974. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1975. # interfere with the next link command; also delete a directory that is
  1976. # left behind by Apple's compiler. We do this before executing the actions.
  1977. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. as_fn_set_status $ac_retval
  1980. } # ac_fn_cxx_try_link
  1981. cat >config.log <<_ACEOF
  1982. This file contains any messages produced by compilers while
  1983. running configure, to aid debugging if configure makes a mistake.
  1984. It was created by zlog $as_me 1.0, which was
  1985. generated by GNU Autoconf 2.69. Invocation command line was
  1986. $ $0 $@
  1987. _ACEOF
  1988. exec 5>>config.log
  1989. {
  1990. cat <<_ASUNAME
  1991. ## --------- ##
  1992. ## Platform. ##
  1993. ## --------- ##
  1994. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1995. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1996. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1997. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1998. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1999. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2000. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2001. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2002. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2003. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2004. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2005. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2006. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2007. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2008. _ASUNAME
  2009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2010. for as_dir in $PATH
  2011. do
  2012. IFS=$as_save_IFS
  2013. test -z "$as_dir" && as_dir=.
  2014. $as_echo "PATH: $as_dir"
  2015. done
  2016. IFS=$as_save_IFS
  2017. } >&5
  2018. cat >&5 <<_ACEOF
  2019. ## ----------- ##
  2020. ## Core tests. ##
  2021. ## ----------- ##
  2022. _ACEOF
  2023. # Keep a trace of the command line.
  2024. # Strip out --no-create and --no-recursion so they do not pile up.
  2025. # Strip out --silent because we don't want to record it for future runs.
  2026. # Also quote any args containing shell meta-characters.
  2027. # Make two passes to allow for proper duplicate-argument suppression.
  2028. ac_configure_args=
  2029. ac_configure_args0=
  2030. ac_configure_args1=
  2031. ac_must_keep_next=false
  2032. for ac_pass in 1 2
  2033. do
  2034. for ac_arg
  2035. do
  2036. case $ac_arg in
  2037. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2038. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2039. | -silent | --silent | --silen | --sile | --sil)
  2040. continue ;;
  2041. *\'*)
  2042. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2043. esac
  2044. case $ac_pass in
  2045. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2046. 2)
  2047. as_fn_append ac_configure_args1 " '$ac_arg'"
  2048. if test $ac_must_keep_next = true; then
  2049. ac_must_keep_next=false # Got value, back to normal.
  2050. else
  2051. case $ac_arg in
  2052. *=* | --config-cache | -C | -disable-* | --disable-* \
  2053. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2054. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2055. | -with-* | --with-* | -without-* | --without-* | --x)
  2056. case "$ac_configure_args0 " in
  2057. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2058. esac
  2059. ;;
  2060. -* ) ac_must_keep_next=true ;;
  2061. esac
  2062. fi
  2063. as_fn_append ac_configure_args " '$ac_arg'"
  2064. ;;
  2065. esac
  2066. done
  2067. done
  2068. { ac_configure_args0=; unset ac_configure_args0;}
  2069. { ac_configure_args1=; unset ac_configure_args1;}
  2070. # When interrupted or exit'd, cleanup temporary files, and complete
  2071. # config.log. We remove comments because anyway the quotes in there
  2072. # would cause problems or look ugly.
  2073. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2074. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2075. trap 'exit_status=$?
  2076. # Save into config.log some information that might help in debugging.
  2077. {
  2078. echo
  2079. $as_echo "## ---------------- ##
  2080. ## Cache variables. ##
  2081. ## ---------------- ##"
  2082. echo
  2083. # The following way of writing the cache mishandles newlines in values,
  2084. (
  2085. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2086. eval ac_val=\$$ac_var
  2087. case $ac_val in #(
  2088. *${as_nl}*)
  2089. case $ac_var in #(
  2090. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2091. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2092. esac
  2093. case $ac_var in #(
  2094. _ | IFS | as_nl) ;; #(
  2095. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2096. *) { eval $ac_var=; unset $ac_var;} ;;
  2097. esac ;;
  2098. esac
  2099. done
  2100. (set) 2>&1 |
  2101. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2102. *${as_nl}ac_space=\ *)
  2103. sed -n \
  2104. "s/'\''/'\''\\\\'\'''\''/g;
  2105. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2106. ;; #(
  2107. *)
  2108. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2109. ;;
  2110. esac |
  2111. sort
  2112. )
  2113. echo
  2114. $as_echo "## ----------------- ##
  2115. ## Output variables. ##
  2116. ## ----------------- ##"
  2117. echo
  2118. for ac_var in $ac_subst_vars
  2119. do
  2120. eval ac_val=\$$ac_var
  2121. case $ac_val in
  2122. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2123. esac
  2124. $as_echo "$ac_var='\''$ac_val'\''"
  2125. done | sort
  2126. echo
  2127. if test -n "$ac_subst_files"; then
  2128. $as_echo "## ------------------- ##
  2129. ## File substitutions. ##
  2130. ## ------------------- ##"
  2131. echo
  2132. for ac_var in $ac_subst_files
  2133. do
  2134. eval ac_val=\$$ac_var
  2135. case $ac_val in
  2136. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2137. esac
  2138. $as_echo "$ac_var='\''$ac_val'\''"
  2139. done | sort
  2140. echo
  2141. fi
  2142. if test -s confdefs.h; then
  2143. $as_echo "## ----------- ##
  2144. ## confdefs.h. ##
  2145. ## ----------- ##"
  2146. echo
  2147. cat confdefs.h
  2148. echo
  2149. fi
  2150. test "$ac_signal" != 0 &&
  2151. $as_echo "$as_me: caught signal $ac_signal"
  2152. $as_echo "$as_me: exit $exit_status"
  2153. } >&5
  2154. rm -f core *.core core.conftest.* &&
  2155. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2156. exit $exit_status
  2157. ' 0
  2158. for ac_signal in 1 2 13 15; do
  2159. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2160. done
  2161. ac_signal=0
  2162. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2163. rm -f -r conftest* confdefs.h
  2164. $as_echo "/* confdefs.h */" > confdefs.h
  2165. # Predefined preprocessor variables.
  2166. cat >>confdefs.h <<_ACEOF
  2167. #define PACKAGE_NAME "$PACKAGE_NAME"
  2168. _ACEOF
  2169. cat >>confdefs.h <<_ACEOF
  2170. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2171. _ACEOF
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_STRING "$PACKAGE_STRING"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_URL "$PACKAGE_URL"
  2183. _ACEOF
  2184. # Let the site file select an alternate cache file if it wants to.
  2185. # Prefer an explicitly selected file to automatically selected ones.
  2186. ac_site_file1=NONE
  2187. ac_site_file2=NONE
  2188. if test -n "$CONFIG_SITE"; then
  2189. # We do not want a PATH search for config.site.
  2190. case $CONFIG_SITE in #((
  2191. -*) ac_site_file1=./$CONFIG_SITE;;
  2192. */*) ac_site_file1=$CONFIG_SITE;;
  2193. *) ac_site_file1=./$CONFIG_SITE;;
  2194. esac
  2195. elif test "x$prefix" != xNONE; then
  2196. ac_site_file1=$prefix/share/config.site
  2197. ac_site_file2=$prefix/etc/config.site
  2198. else
  2199. ac_site_file1=$ac_default_prefix/share/config.site
  2200. ac_site_file2=$ac_default_prefix/etc/config.site
  2201. fi
  2202. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2203. do
  2204. test "x$ac_site_file" = xNONE && continue
  2205. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2207. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2208. sed 's/^/| /' "$ac_site_file" >&5
  2209. . "$ac_site_file" \
  2210. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2212. as_fn_error $? "failed to load site script $ac_site_file
  2213. See \`config.log' for more details" "$LINENO" 5; }
  2214. fi
  2215. done
  2216. if test -r "$cache_file"; then
  2217. # Some versions of bash will fail to source /dev/null (special files
  2218. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2219. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2221. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2222. case $cache_file in
  2223. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2224. *) . "./$cache_file";;
  2225. esac
  2226. fi
  2227. else
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2229. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2230. >$cache_file
  2231. fi
  2232. # Check that the precious variables saved in the cache have kept the same
  2233. # value.
  2234. ac_cache_corrupted=false
  2235. for ac_var in $ac_precious_vars; do
  2236. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2237. eval ac_new_set=\$ac_env_${ac_var}_set
  2238. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2239. eval ac_new_val=\$ac_env_${ac_var}_value
  2240. case $ac_old_set,$ac_new_set in
  2241. set,)
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2244. ac_cache_corrupted=: ;;
  2245. ,set)
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2247. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2248. ac_cache_corrupted=: ;;
  2249. ,);;
  2250. *)
  2251. if test "x$ac_old_val" != "x$ac_new_val"; then
  2252. # differences in whitespace do not lead to failure.
  2253. ac_old_val_w=`echo x $ac_old_val`
  2254. ac_new_val_w=`echo x $ac_new_val`
  2255. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2257. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2258. ac_cache_corrupted=:
  2259. else
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2261. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2262. eval $ac_var=\$ac_old_val
  2263. fi
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2265. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2267. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2268. fi;;
  2269. esac
  2270. # Pass precious variables to config.status.
  2271. if test "$ac_new_set" = set; then
  2272. case $ac_new_val in
  2273. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2274. *) ac_arg=$ac_var=$ac_new_val ;;
  2275. esac
  2276. case " $ac_configure_args " in
  2277. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2278. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2279. esac
  2280. fi
  2281. done
  2282. if $ac_cache_corrupted; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2284. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2286. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2287. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2288. fi
  2289. ## -------------------- ##
  2290. ## Main body of script. ##
  2291. ## -------------------- ##
  2292. ac_ext=c
  2293. ac_cpp='$CPP $CPPFLAGS'
  2294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2297. am__api_version='1.13'
  2298. ac_aux_dir=
  2299. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2300. if test -f "$ac_dir/install-sh"; then
  2301. ac_aux_dir=$ac_dir
  2302. ac_install_sh="$ac_aux_dir/install-sh -c"
  2303. break
  2304. elif test -f "$ac_dir/install.sh"; then
  2305. ac_aux_dir=$ac_dir
  2306. ac_install_sh="$ac_aux_dir/install.sh -c"
  2307. break
  2308. elif test -f "$ac_dir/shtool"; then
  2309. ac_aux_dir=$ac_dir
  2310. ac_install_sh="$ac_aux_dir/shtool install -c"
  2311. break
  2312. fi
  2313. done
  2314. if test -z "$ac_aux_dir"; then
  2315. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2316. fi
  2317. # These three variables are undocumented and unsupported,
  2318. # and are intended to be withdrawn in a future Autoconf release.
  2319. # They can cause serious problems if a builder's source tree is in a directory
  2320. # whose full name contains unusual characters.
  2321. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2322. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2323. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2324. # Find a good install program. We prefer a C program (faster),
  2325. # so one script is as good as another. But avoid the broken or
  2326. # incompatible versions:
  2327. # SysV /etc/install, /usr/sbin/install
  2328. # SunOS /usr/etc/install
  2329. # IRIX /sbin/install
  2330. # AIX /bin/install
  2331. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2332. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2333. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2334. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2335. # OS/2's system install, which has a completely different semantic
  2336. # ./install, which can be erroneously created by make from ./install.sh.
  2337. # Reject install programs that cannot install multiple files.
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2339. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2340. if test -z "$INSTALL"; then
  2341. if ${ac_cv_path_install+:} false; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2345. for as_dir in $PATH
  2346. do
  2347. IFS=$as_save_IFS
  2348. test -z "$as_dir" && as_dir=.
  2349. # Account for people who put trailing slashes in PATH elements.
  2350. case $as_dir/ in #((
  2351. ./ | .// | /[cC]/* | \
  2352. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2353. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2354. /usr/ucb/* ) ;;
  2355. *)
  2356. # OSF1 and SCO ODT 3.0 have their own names for install.
  2357. # Don't use installbsd from OSF since it installs stuff as root
  2358. # by default.
  2359. for ac_prog in ginstall scoinst install; do
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2362. if test $ac_prog = install &&
  2363. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2364. # AIX install. It has an incompatible calling convention.
  2365. :
  2366. elif test $ac_prog = install &&
  2367. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2368. # program-specific install script used by HP pwplus--don't use.
  2369. :
  2370. else
  2371. rm -rf conftest.one conftest.two conftest.dir
  2372. echo one > conftest.one
  2373. echo two > conftest.two
  2374. mkdir conftest.dir
  2375. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2376. test -s conftest.one && test -s conftest.two &&
  2377. test -s conftest.dir/conftest.one &&
  2378. test -s conftest.dir/conftest.two
  2379. then
  2380. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2381. break 3
  2382. fi
  2383. fi
  2384. fi
  2385. done
  2386. done
  2387. ;;
  2388. esac
  2389. done
  2390. IFS=$as_save_IFS
  2391. rm -rf conftest.one conftest.two conftest.dir
  2392. fi
  2393. if test "${ac_cv_path_install+set}" = set; then
  2394. INSTALL=$ac_cv_path_install
  2395. else
  2396. # As a last resort, use the slow shell script. Don't cache a
  2397. # value for INSTALL within a source directory, because that will
  2398. # break other packages using the cache if that directory is
  2399. # removed, or if the value is a relative name.
  2400. INSTALL=$ac_install_sh
  2401. fi
  2402. fi
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2404. $as_echo "$INSTALL" >&6; }
  2405. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2406. # It thinks the first close brace ends the variable substitution.
  2407. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2408. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2409. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2411. $as_echo_n "checking whether build environment is sane... " >&6; }
  2412. # Reject unsafe characters in $srcdir or the absolute working directory
  2413. # name. Accept space and tab only in the latter.
  2414. am_lf='
  2415. '
  2416. case `pwd` in
  2417. *[\\\"\#\$\&\'\`$am_lf]*)
  2418. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2419. esac
  2420. case $srcdir in
  2421. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2422. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2423. esac
  2424. # Do 'set' in a subshell so we don't clobber the current shell's
  2425. # arguments. Must try -L first in case configure is actually a
  2426. # symlink; some systems play weird games with the mod time of symlinks
  2427. # (eg FreeBSD returns the mod time of the symlink's containing
  2428. # directory).
  2429. if (
  2430. am_has_slept=no
  2431. for am_try in 1 2; do
  2432. echo "timestamp, slept: $am_has_slept" > conftest.file
  2433. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2434. if test "$*" = "X"; then
  2435. # -L didn't work.
  2436. set X `ls -t "$srcdir/configure" conftest.file`
  2437. fi
  2438. if test "$*" != "X $srcdir/configure conftest.file" \
  2439. && test "$*" != "X conftest.file $srcdir/configure"; then
  2440. # If neither matched, then we have a broken ls. This can happen
  2441. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2442. # broken ls alias from the environment. This has actually
  2443. # happened. Such a system could not be considered "sane".
  2444. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2445. alias in your environment" "$LINENO" 5
  2446. fi
  2447. if test "$2" = conftest.file || test $am_try -eq 2; then
  2448. break
  2449. fi
  2450. # Just in case.
  2451. sleep 1
  2452. am_has_slept=yes
  2453. done
  2454. test "$2" = conftest.file
  2455. )
  2456. then
  2457. # Ok.
  2458. :
  2459. else
  2460. as_fn_error $? "newly created file is older than distributed files!
  2461. Check your system clock" "$LINENO" 5
  2462. fi
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2464. $as_echo "yes" >&6; }
  2465. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2466. # generated files are strictly newer.
  2467. am_sleep_pid=
  2468. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2469. ( sleep 1 ) &
  2470. am_sleep_pid=$!
  2471. fi
  2472. rm -f conftest.file
  2473. test "$program_prefix" != NONE &&
  2474. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2475. # Use a double $ so make ignores it.
  2476. test "$program_suffix" != NONE &&
  2477. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2478. # Double any \ or $.
  2479. # By default was `s,x,x', remove it if useless.
  2480. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2481. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2482. # expand $ac_aux_dir to an absolute path
  2483. am_aux_dir=`cd $ac_aux_dir && pwd`
  2484. if test x"${MISSING+set}" != xset; then
  2485. case $am_aux_dir in
  2486. *\ * | *\ *)
  2487. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2488. *)
  2489. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2490. esac
  2491. fi
  2492. # Use eval to expand $SHELL
  2493. if eval "$MISSING --is-lightweight"; then
  2494. am_missing_run="$MISSING "
  2495. else
  2496. am_missing_run=
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2498. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2499. fi
  2500. if test x"${install_sh}" != xset; then
  2501. case $am_aux_dir in
  2502. *\ * | *\ *)
  2503. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2504. *)
  2505. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2506. esac
  2507. fi
  2508. # Installed binaries are usually stripped using 'strip' when the user
  2509. # run "make install-strip". However 'strip' might not be the right
  2510. # tool to use in cross-compilation environments, therefore Automake
  2511. # will honor the 'STRIP' environment variable to overrule this program.
  2512. if test "$cross_compiling" != no; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2515. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2517. $as_echo_n "checking for $ac_word... " >&6; }
  2518. if ${ac_cv_prog_STRIP+:} false; then :
  2519. $as_echo_n "(cached) " >&6
  2520. else
  2521. if test -n "$STRIP"; then
  2522. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2523. else
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2531. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2533. break 2
  2534. fi
  2535. done
  2536. done
  2537. IFS=$as_save_IFS
  2538. fi
  2539. fi
  2540. STRIP=$ac_cv_prog_STRIP
  2541. if test -n "$STRIP"; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2543. $as_echo "$STRIP" >&6; }
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2546. $as_echo "no" >&6; }
  2547. fi
  2548. fi
  2549. if test -z "$ac_cv_prog_STRIP"; then
  2550. ac_ct_STRIP=$STRIP
  2551. # Extract the first word of "strip", so it can be a program name with args.
  2552. set dummy strip; ac_word=$2
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2554. $as_echo_n "checking for $ac_word... " >&6; }
  2555. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2556. $as_echo_n "(cached) " >&6
  2557. else
  2558. if test -n "$ac_ct_STRIP"; then
  2559. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. ac_cv_prog_ac_ct_STRIP="strip"
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2578. if test -n "$ac_ct_STRIP"; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2580. $as_echo "$ac_ct_STRIP" >&6; }
  2581. else
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2583. $as_echo "no" >&6; }
  2584. fi
  2585. if test "x$ac_ct_STRIP" = x; then
  2586. STRIP=":"
  2587. else
  2588. case $cross_compiling:$ac_tool_warned in
  2589. yes:)
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2592. ac_tool_warned=yes ;;
  2593. esac
  2594. STRIP=$ac_ct_STRIP
  2595. fi
  2596. else
  2597. STRIP="$ac_cv_prog_STRIP"
  2598. fi
  2599. fi
  2600. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2602. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2603. if test -z "$MKDIR_P"; then
  2604. if ${ac_cv_path_mkdir+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_prog in mkdir gmkdir; do
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2615. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2616. 'mkdir (GNU coreutils) '* | \
  2617. 'mkdir (coreutils) '* | \
  2618. 'mkdir (fileutils) '4.1*)
  2619. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2620. break 3;;
  2621. esac
  2622. done
  2623. done
  2624. done
  2625. IFS=$as_save_IFS
  2626. fi
  2627. test -d ./--version && rmdir ./--version
  2628. if test "${ac_cv_path_mkdir+set}" = set; then
  2629. MKDIR_P="$ac_cv_path_mkdir -p"
  2630. else
  2631. # As a last resort, use the slow shell script. Don't cache a
  2632. # value for MKDIR_P within a source directory, because that will
  2633. # break other packages using the cache if that directory is
  2634. # removed, or if the value is a relative name.
  2635. MKDIR_P="$ac_install_sh -d"
  2636. fi
  2637. fi
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2639. $as_echo "$MKDIR_P" >&6; }
  2640. for ac_prog in gawk mawk nawk awk
  2641. do
  2642. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2643. set dummy $ac_prog; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if ${ac_cv_prog_AWK+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$AWK"; then
  2650. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2659. ac_cv_prog_AWK="$ac_prog"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. AWK=$ac_cv_prog_AWK
  2669. if test -n "$AWK"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2671. $as_echo "$AWK" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. test -n "$AWK" && break
  2677. done
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2679. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2680. set x ${MAKE-make}
  2681. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2682. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. cat >conftest.make <<\_ACEOF
  2686. SHELL = /bin/sh
  2687. all:
  2688. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2689. _ACEOF
  2690. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2691. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2692. *@@@%%%=?*=@@@%%%*)
  2693. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2694. *)
  2695. eval ac_cv_prog_make_${ac_make}_set=no;;
  2696. esac
  2697. rm -f conftest.make
  2698. fi
  2699. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2701. $as_echo "yes" >&6; }
  2702. SET_MAKE=
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. SET_MAKE="MAKE=${MAKE-make}"
  2707. fi
  2708. rm -rf .tst 2>/dev/null
  2709. mkdir .tst 2>/dev/null
  2710. if test -d .tst; then
  2711. am__leading_dot=.
  2712. else
  2713. am__leading_dot=_
  2714. fi
  2715. rmdir .tst 2>/dev/null
  2716. # Check whether --enable-silent-rules was given.
  2717. if test "${enable_silent_rules+set}" = set; then :
  2718. enableval=$enable_silent_rules;
  2719. fi
  2720. case $enable_silent_rules in # (((
  2721. yes) AM_DEFAULT_VERBOSITY=0;;
  2722. no) AM_DEFAULT_VERBOSITY=1;;
  2723. *) AM_DEFAULT_VERBOSITY=1;;
  2724. esac
  2725. am_make=${MAKE-make}
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2727. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2728. if ${am_cv_make_support_nested_variables+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if $as_echo 'TRUE=$(BAR$(V))
  2732. BAR0=false
  2733. BAR1=true
  2734. V=1
  2735. am__doit:
  2736. @$(TRUE)
  2737. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2738. am_cv_make_support_nested_variables=yes
  2739. else
  2740. am_cv_make_support_nested_variables=no
  2741. fi
  2742. fi
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2744. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2745. if test $am_cv_make_support_nested_variables = yes; then
  2746. AM_V='$(V)'
  2747. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2748. else
  2749. AM_V=$AM_DEFAULT_VERBOSITY
  2750. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2751. fi
  2752. AM_BACKSLASH='\'
  2753. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2754. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2755. # is not polluted with repeated "-I."
  2756. am__isrc=' -I$(srcdir)'
  2757. # test to see if srcdir already configured
  2758. if test -f $srcdir/config.status; then
  2759. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2760. fi
  2761. fi
  2762. # test whether we have cygpath
  2763. if test -z "$CYGPATH_W"; then
  2764. if (cygpath --version) >/dev/null 2>/dev/null; then
  2765. CYGPATH_W='cygpath -w'
  2766. else
  2767. CYGPATH_W=echo
  2768. fi
  2769. fi
  2770. # Define the identity of the package.
  2771. PACKAGE='zlog'
  2772. VERSION='1.0'
  2773. cat >>confdefs.h <<_ACEOF
  2774. #define PACKAGE "$PACKAGE"
  2775. _ACEOF
  2776. cat >>confdefs.h <<_ACEOF
  2777. #define VERSION "$VERSION"
  2778. _ACEOF
  2779. # Some tools Automake needs.
  2780. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2781. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2782. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2783. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2784. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2785. # For better backward compatibility. To be removed once Automake 1.9.x
  2786. # dies out for good. For more background, see:
  2787. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2788. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2789. mkdir_p='$(MKDIR_P)'
  2790. # We need awk for the "check" target. The system "awk" is bad on
  2791. # some platforms.
  2792. # Always define AMTAR for backward compatibility. Yes, it's still used
  2793. # in the wild :-( We should find a proper way to deprecate it ...
  2794. AMTAR='$${TAR-tar}'
  2795. # We'll loop over all known methods to create a tar archive until one works.
  2796. _am_tools='gnutar pax cpio none'
  2797. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2798. ac_config_headers="$ac_config_headers config.h"
  2799. # Checks for programs.
  2800. ac_ext=cpp
  2801. ac_cpp='$CXXCPP $CPPFLAGS'
  2802. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2803. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2804. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2805. if test -z "$CXX"; then
  2806. if test -n "$CCC"; then
  2807. CXX=$CCC
  2808. else
  2809. if test -n "$ac_tool_prefix"; then
  2810. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2811. do
  2812. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2813. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. $as_echo_n "checking for $ac_word... " >&6; }
  2816. if ${ac_cv_prog_CXX+:} false; then :
  2817. $as_echo_n "(cached) " >&6
  2818. else
  2819. if test -n "$CXX"; then
  2820. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2821. else
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. CXX=$ac_cv_prog_CXX
  2839. if test -n "$CXX"; then
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2841. $as_echo "$CXX" >&6; }
  2842. else
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846. test -n "$CXX" && break
  2847. done
  2848. fi
  2849. if test -z "$CXX"; then
  2850. ac_ct_CXX=$CXX
  2851. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2852. do
  2853. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2854. set dummy $ac_prog; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$ac_ct_CXX"; then
  2861. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2862. else
  2863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2864. for as_dir in $PATH
  2865. do
  2866. IFS=$as_save_IFS
  2867. test -z "$as_dir" && as_dir=.
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2870. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2872. break 2
  2873. fi
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. fi
  2879. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2880. if test -n "$ac_ct_CXX"; then
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2882. $as_echo "$ac_ct_CXX" >&6; }
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. fi
  2887. test -n "$ac_ct_CXX" && break
  2888. done
  2889. if test "x$ac_ct_CXX" = x; then
  2890. CXX="g++"
  2891. else
  2892. case $cross_compiling:$ac_tool_warned in
  2893. yes:)
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2896. ac_tool_warned=yes ;;
  2897. esac
  2898. CXX=$ac_ct_CXX
  2899. fi
  2900. fi
  2901. fi
  2902. fi
  2903. # Provide some information about the compiler.
  2904. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2905. set X $ac_compile
  2906. ac_compiler=$2
  2907. for ac_option in --version -v -V -qversion; do
  2908. { { ac_try="$ac_compiler $ac_option >&5"
  2909. case "(($ac_try" in
  2910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2911. *) ac_try_echo=$ac_try;;
  2912. esac
  2913. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2914. $as_echo "$ac_try_echo"; } >&5
  2915. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2916. ac_status=$?
  2917. if test -s conftest.err; then
  2918. sed '10a\
  2919. ... rest of stderr output deleted ...
  2920. 10q' conftest.err >conftest.er1
  2921. cat conftest.er1 >&5
  2922. fi
  2923. rm -f conftest.er1 conftest.err
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2925. test $ac_status = 0; }
  2926. done
  2927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2928. /* end confdefs.h. */
  2929. int
  2930. main ()
  2931. {
  2932. ;
  2933. return 0;
  2934. }
  2935. _ACEOF
  2936. ac_clean_files_save=$ac_clean_files
  2937. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2938. # Try to create an executable without -o first, disregard a.out.
  2939. # It will help us diagnose broken compilers, and finding out an intuition
  2940. # of exeext.
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2942. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2943. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2944. # The possible output files:
  2945. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2946. ac_rmfiles=
  2947. for ac_file in $ac_files
  2948. do
  2949. case $ac_file in
  2950. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2951. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2952. esac
  2953. done
  2954. rm -f $ac_rmfiles
  2955. if { { ac_try="$ac_link_default"
  2956. case "(($ac_try" in
  2957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2958. *) ac_try_echo=$ac_try;;
  2959. esac
  2960. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2961. $as_echo "$ac_try_echo"; } >&5
  2962. (eval "$ac_link_default") 2>&5
  2963. ac_status=$?
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2965. test $ac_status = 0; }; then :
  2966. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2967. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2968. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2969. # so that the user can short-circuit this test for compilers unknown to
  2970. # Autoconf.
  2971. for ac_file in $ac_files ''
  2972. do
  2973. test -f "$ac_file" || continue
  2974. case $ac_file in
  2975. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2976. ;;
  2977. [ab].out )
  2978. # We found the default executable, but exeext='' is most
  2979. # certainly right.
  2980. break;;
  2981. *.* )
  2982. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2983. then :; else
  2984. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2985. fi
  2986. # We set ac_cv_exeext here because the later test for it is not
  2987. # safe: cross compilers may not add the suffix if given an `-o'
  2988. # argument, so we may need to know it at that point already.
  2989. # Even if this section looks crufty: it has the advantage of
  2990. # actually working.
  2991. break;;
  2992. * )
  2993. break;;
  2994. esac
  2995. done
  2996. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2997. else
  2998. ac_file=''
  2999. fi
  3000. if test -z "$ac_file"; then :
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3002. $as_echo "no" >&6; }
  3003. $as_echo "$as_me: failed program was:" >&5
  3004. sed 's/^/| /' conftest.$ac_ext >&5
  3005. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3007. as_fn_error 77 "C++ compiler cannot create executables
  3008. See \`config.log' for more details" "$LINENO" 5; }
  3009. else
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3011. $as_echo "yes" >&6; }
  3012. fi
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3014. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3016. $as_echo "$ac_file" >&6; }
  3017. ac_exeext=$ac_cv_exeext
  3018. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3019. ac_clean_files=$ac_clean_files_save
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3021. $as_echo_n "checking for suffix of executables... " >&6; }
  3022. if { { ac_try="$ac_link"
  3023. case "(($ac_try" in
  3024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3025. *) ac_try_echo=$ac_try;;
  3026. esac
  3027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3028. $as_echo "$ac_try_echo"; } >&5
  3029. (eval "$ac_link") 2>&5
  3030. ac_status=$?
  3031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3032. test $ac_status = 0; }; then :
  3033. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3034. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3035. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3036. # `rm'.
  3037. for ac_file in conftest.exe conftest conftest.*; do
  3038. test -f "$ac_file" || continue
  3039. case $ac_file in
  3040. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3041. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3042. break;;
  3043. * ) break;;
  3044. esac
  3045. done
  3046. else
  3047. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3049. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3050. See \`config.log' for more details" "$LINENO" 5; }
  3051. fi
  3052. rm -f conftest conftest$ac_cv_exeext
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3054. $as_echo "$ac_cv_exeext" >&6; }
  3055. rm -f conftest.$ac_ext
  3056. EXEEXT=$ac_cv_exeext
  3057. ac_exeext=$EXEEXT
  3058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h. */
  3060. #include <stdio.h>
  3061. int
  3062. main ()
  3063. {
  3064. FILE *f = fopen ("conftest.out", "w");
  3065. return ferror (f) || fclose (f) != 0;
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. ac_clean_files="$ac_clean_files conftest.out"
  3071. # Check that the compiler produces executables we can run. If not, either
  3072. # the compiler is broken, or we cross compile.
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3074. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3075. if test "$cross_compiling" != yes; then
  3076. { { ac_try="$ac_link"
  3077. case "(($ac_try" in
  3078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3079. *) ac_try_echo=$ac_try;;
  3080. esac
  3081. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3082. $as_echo "$ac_try_echo"; } >&5
  3083. (eval "$ac_link") 2>&5
  3084. ac_status=$?
  3085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3086. test $ac_status = 0; }
  3087. if { ac_try='./conftest$ac_cv_exeext'
  3088. { { case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_try") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; }; then
  3098. cross_compiling=no
  3099. else
  3100. if test "$cross_compiling" = maybe; then
  3101. cross_compiling=yes
  3102. else
  3103. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3104. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3105. as_fn_error $? "cannot run C++ compiled programs.
  3106. If you meant to cross compile, use \`--host'.
  3107. See \`config.log' for more details" "$LINENO" 5; }
  3108. fi
  3109. fi
  3110. fi
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3112. $as_echo "$cross_compiling" >&6; }
  3113. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3114. ac_clean_files=$ac_clean_files_save
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3116. $as_echo_n "checking for suffix of object files... " >&6; }
  3117. if ${ac_cv_objext+:} false; then :
  3118. $as_echo_n "(cached) " >&6
  3119. else
  3120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end confdefs.h. */
  3122. int
  3123. main ()
  3124. {
  3125. ;
  3126. return 0;
  3127. }
  3128. _ACEOF
  3129. rm -f conftest.o conftest.obj
  3130. if { { ac_try="$ac_compile"
  3131. case "(($ac_try" in
  3132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3133. *) ac_try_echo=$ac_try;;
  3134. esac
  3135. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3136. $as_echo "$ac_try_echo"; } >&5
  3137. (eval "$ac_compile") 2>&5
  3138. ac_status=$?
  3139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3140. test $ac_status = 0; }; then :
  3141. for ac_file in conftest.o conftest.obj conftest.*; do
  3142. test -f "$ac_file" || continue;
  3143. case $ac_file in
  3144. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3145. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3146. break;;
  3147. esac
  3148. done
  3149. else
  3150. $as_echo "$as_me: failed program was:" >&5
  3151. sed 's/^/| /' conftest.$ac_ext >&5
  3152. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3153. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3154. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3155. See \`config.log' for more details" "$LINENO" 5; }
  3156. fi
  3157. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3158. fi
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3160. $as_echo "$ac_cv_objext" >&6; }
  3161. OBJEXT=$ac_cv_objext
  3162. ac_objext=$OBJEXT
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3164. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3165. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3169. /* end confdefs.h. */
  3170. int
  3171. main ()
  3172. {
  3173. #ifndef __GNUC__
  3174. choke me
  3175. #endif
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. if ac_fn_cxx_try_compile "$LINENO"; then :
  3181. ac_compiler_gnu=yes
  3182. else
  3183. ac_compiler_gnu=no
  3184. fi
  3185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3186. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3187. fi
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3189. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3190. if test $ac_compiler_gnu = yes; then
  3191. GXX=yes
  3192. else
  3193. GXX=
  3194. fi
  3195. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3196. ac_save_CXXFLAGS=$CXXFLAGS
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3198. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3199. if ${ac_cv_prog_cxx_g+:} false; then :
  3200. $as_echo_n "(cached) " >&6
  3201. else
  3202. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3203. ac_cxx_werror_flag=yes
  3204. ac_cv_prog_cxx_g=no
  3205. CXXFLAGS="-g"
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. if ac_fn_cxx_try_compile "$LINENO"; then :
  3216. ac_cv_prog_cxx_g=yes
  3217. else
  3218. CXXFLAGS=""
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. int
  3222. main ()
  3223. {
  3224. ;
  3225. return 0;
  3226. }
  3227. _ACEOF
  3228. if ac_fn_cxx_try_compile "$LINENO"; then :
  3229. else
  3230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3231. CXXFLAGS="-g"
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. int
  3235. main ()
  3236. {
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. if ac_fn_cxx_try_compile "$LINENO"; then :
  3242. ac_cv_prog_cxx_g=yes
  3243. fi
  3244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3245. fi
  3246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3252. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3253. if test "$ac_test_CXXFLAGS" = set; then
  3254. CXXFLAGS=$ac_save_CXXFLAGS
  3255. elif test $ac_cv_prog_cxx_g = yes; then
  3256. if test "$GXX" = yes; then
  3257. CXXFLAGS="-g -O2"
  3258. else
  3259. CXXFLAGS="-g"
  3260. fi
  3261. else
  3262. if test "$GXX" = yes; then
  3263. CXXFLAGS="-O2"
  3264. else
  3265. CXXFLAGS=
  3266. fi
  3267. fi
  3268. ac_ext=c
  3269. ac_cpp='$CPP $CPPFLAGS'
  3270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3273. DEPDIR="${am__leading_dot}deps"
  3274. ac_config_commands="$ac_config_commands depfiles"
  3275. am_make=${MAKE-make}
  3276. cat > confinc << 'END'
  3277. am__doit:
  3278. @echo this is the am__doit target
  3279. .PHONY: am__doit
  3280. END
  3281. # If we don't find an include directive, just comment out the code.
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3283. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3284. am__include="#"
  3285. am__quote=
  3286. _am_result=none
  3287. # First try GNU make style include.
  3288. echo "include confinc" > confmf
  3289. # Ignore all kinds of additional output from 'make'.
  3290. case `$am_make -s -f confmf 2> /dev/null` in #(
  3291. *the\ am__doit\ target*)
  3292. am__include=include
  3293. am__quote=
  3294. _am_result=GNU
  3295. ;;
  3296. esac
  3297. # Now try BSD make style include.
  3298. if test "$am__include" = "#"; then
  3299. echo '.include "confinc"' > confmf
  3300. case `$am_make -s -f confmf 2> /dev/null` in #(
  3301. *the\ am__doit\ target*)
  3302. am__include=.include
  3303. am__quote="\""
  3304. _am_result=BSD
  3305. ;;
  3306. esac
  3307. fi
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3309. $as_echo "$_am_result" >&6; }
  3310. rm -f confinc confmf
  3311. # Check whether --enable-dependency-tracking was given.
  3312. if test "${enable_dependency_tracking+set}" = set; then :
  3313. enableval=$enable_dependency_tracking;
  3314. fi
  3315. if test "x$enable_dependency_tracking" != xno; then
  3316. am_depcomp="$ac_aux_dir/depcomp"
  3317. AMDEPBACKSLASH='\'
  3318. am__nodep='_no'
  3319. fi
  3320. if test "x$enable_dependency_tracking" != xno; then
  3321. AMDEP_TRUE=
  3322. AMDEP_FALSE='#'
  3323. else
  3324. AMDEP_TRUE='#'
  3325. AMDEP_FALSE=
  3326. fi
  3327. depcc="$CXX" am_compiler_list=
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3329. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3330. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3331. $as_echo_n "(cached) " >&6
  3332. else
  3333. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3334. # We make a subdir and do the tests there. Otherwise we can end up
  3335. # making bogus files that we don't know about and never remove. For
  3336. # instance it was reported that on HP-UX the gcc test will end up
  3337. # making a dummy file named 'D' -- because '-MD' means "put the output
  3338. # in D".
  3339. rm -rf conftest.dir
  3340. mkdir conftest.dir
  3341. # Copy depcomp to subdir because otherwise we won't find it if we're
  3342. # using a relative directory.
  3343. cp "$am_depcomp" conftest.dir
  3344. cd conftest.dir
  3345. # We will build objects and dependencies in a subdirectory because
  3346. # it helps to detect inapplicable dependency modes. For instance
  3347. # both Tru64's cc and ICC support -MD to output dependencies as a
  3348. # side effect of compilation, but ICC will put the dependencies in
  3349. # the current directory while Tru64 will put them in the object
  3350. # directory.
  3351. mkdir sub
  3352. am_cv_CXX_dependencies_compiler_type=none
  3353. if test "$am_compiler_list" = ""; then
  3354. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3355. fi
  3356. am__universal=false
  3357. case " $depcc " in #(
  3358. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3359. esac
  3360. for depmode in $am_compiler_list; do
  3361. # Setup a source with many dependencies, because some compilers
  3362. # like to wrap large dependency lists on column 80 (with \), and
  3363. # we should not choose a depcomp mode which is confused by this.
  3364. #
  3365. # We need to recreate these files for each test, as the compiler may
  3366. # overwrite some of them when testing with obscure command lines.
  3367. # This happens at least with the AIX C compiler.
  3368. : > sub/conftest.c
  3369. for i in 1 2 3 4 5 6; do
  3370. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3371. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3372. # Solaris 10 /bin/sh.
  3373. echo '/* dummy */' > sub/conftst$i.h
  3374. done
  3375. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3376. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3377. # mode. It turns out that the SunPro C++ compiler does not properly
  3378. # handle '-M -o', and we need to detect this. Also, some Intel
  3379. # versions had trouble with output in subdirs.
  3380. am__obj=sub/conftest.${OBJEXT-o}
  3381. am__minus_obj="-o $am__obj"
  3382. case $depmode in
  3383. gcc)
  3384. # This depmode causes a compiler race in universal mode.
  3385. test "$am__universal" = false || continue
  3386. ;;
  3387. nosideeffect)
  3388. # After this tag, mechanisms are not by side-effect, so they'll
  3389. # only be used when explicitly requested.
  3390. if test "x$enable_dependency_tracking" = xyes; then
  3391. continue
  3392. else
  3393. break
  3394. fi
  3395. ;;
  3396. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3397. # This compiler won't grok '-c -o', but also, the minuso test has
  3398. # not run yet. These depmodes are late enough in the game, and
  3399. # so weak that their functioning should not be impacted.
  3400. am__obj=conftest.${OBJEXT-o}
  3401. am__minus_obj=
  3402. ;;
  3403. none) break ;;
  3404. esac
  3405. if depmode=$depmode \
  3406. source=sub/conftest.c object=$am__obj \
  3407. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3408. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3409. >/dev/null 2>conftest.err &&
  3410. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3411. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3412. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3413. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3414. # icc doesn't choke on unknown options, it will just issue warnings
  3415. # or remarks (even with -Werror). So we grep stderr for any message
  3416. # that says an option was ignored or not supported.
  3417. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3418. # icc: Command line warning: ignoring option '-M'; no argument required
  3419. # The diagnosis changed in icc 8.0:
  3420. # icc: Command line remark: option '-MP' not supported
  3421. if (grep 'ignoring option' conftest.err ||
  3422. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3423. am_cv_CXX_dependencies_compiler_type=$depmode
  3424. break
  3425. fi
  3426. fi
  3427. done
  3428. cd ..
  3429. rm -rf conftest.dir
  3430. else
  3431. am_cv_CXX_dependencies_compiler_type=none
  3432. fi
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3435. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3436. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3437. if
  3438. test "x$enable_dependency_tracking" != xno \
  3439. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3440. am__fastdepCXX_TRUE=
  3441. am__fastdepCXX_FALSE='#'
  3442. else
  3443. am__fastdepCXX_TRUE='#'
  3444. am__fastdepCXX_FALSE=
  3445. fi
  3446. for ac_prog in gawk mawk nawk awk
  3447. do
  3448. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3449. set dummy $ac_prog; ac_word=$2
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3451. $as_echo_n "checking for $ac_word... " >&6; }
  3452. if ${ac_cv_prog_AWK+:} false; then :
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. if test -n "$AWK"; then
  3456. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3457. else
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH
  3460. do
  3461. IFS=$as_save_IFS
  3462. test -z "$as_dir" && as_dir=.
  3463. for ac_exec_ext in '' $ac_executable_extensions; do
  3464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3465. ac_cv_prog_AWK="$ac_prog"
  3466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3467. break 2
  3468. fi
  3469. done
  3470. done
  3471. IFS=$as_save_IFS
  3472. fi
  3473. fi
  3474. AWK=$ac_cv_prog_AWK
  3475. if test -n "$AWK"; then
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3477. $as_echo "$AWK" >&6; }
  3478. else
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3480. $as_echo "no" >&6; }
  3481. fi
  3482. test -n "$AWK" && break
  3483. done
  3484. ac_ext=c
  3485. ac_cpp='$CPP $CPPFLAGS'
  3486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489. if test -n "$ac_tool_prefix"; then
  3490. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3491. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if ${ac_cv_prog_CC+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3507. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. CC=$ac_cv_prog_CC
  3517. if test -n "$CC"; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3519. $as_echo "$CC" >&6; }
  3520. else
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. $as_echo "no" >&6; }
  3523. fi
  3524. fi
  3525. if test -z "$ac_cv_prog_CC"; then
  3526. ac_ct_CC=$CC
  3527. # Extract the first word of "gcc", so it can be a program name with args.
  3528. set dummy gcc; ac_word=$2
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3530. $as_echo_n "checking for $ac_word... " >&6; }
  3531. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if test -n "$ac_ct_CC"; then
  3535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3536. else
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_exec_ext in '' $ac_executable_extensions; do
  3543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3544. ac_cv_prog_ac_ct_CC="gcc"
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3546. break 2
  3547. fi
  3548. done
  3549. done
  3550. IFS=$as_save_IFS
  3551. fi
  3552. fi
  3553. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3554. if test -n "$ac_ct_CC"; then
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3556. $as_echo "$ac_ct_CC" >&6; }
  3557. else
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3559. $as_echo "no" >&6; }
  3560. fi
  3561. if test "x$ac_ct_CC" = x; then
  3562. CC=""
  3563. else
  3564. case $cross_compiling:$ac_tool_warned in
  3565. yes:)
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3568. ac_tool_warned=yes ;;
  3569. esac
  3570. CC=$ac_ct_CC
  3571. fi
  3572. else
  3573. CC="$ac_cv_prog_CC"
  3574. fi
  3575. if test -z "$CC"; then
  3576. if test -n "$ac_tool_prefix"; then
  3577. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3578. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3580. $as_echo_n "checking for $ac_word... " >&6; }
  3581. if ${ac_cv_prog_CC+:} false; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if test -n "$CC"; then
  3585. ac_cv_prog_CC="$CC" # Let the user override the test.
  3586. else
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. $as_echo "$CC" >&6; }
  3607. else
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. $as_echo "no" >&6; }
  3610. fi
  3611. fi
  3612. fi
  3613. if test -z "$CC"; then
  3614. # Extract the first word of "cc", so it can be a program name with args.
  3615. set dummy cc; ac_word=$2
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if ${ac_cv_prog_CC+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -n "$CC"; then
  3622. ac_cv_prog_CC="$CC" # Let the user override the test.
  3623. else
  3624. ac_prog_rejected=no
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3632. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3633. ac_prog_rejected=yes
  3634. continue
  3635. fi
  3636. ac_cv_prog_CC="cc"
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3638. break 2
  3639. fi
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. if test $ac_prog_rejected = yes; then
  3644. # We found a bogon in the path, so make sure we never use it.
  3645. set dummy $ac_cv_prog_CC
  3646. shift
  3647. if test $# != 0; then
  3648. # We chose a different compiler from the bogus one.
  3649. # However, it has the same basename, so the bogon will be chosen
  3650. # first if we set CC to just the basename; use the full file name.
  3651. shift
  3652. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3653. fi
  3654. fi
  3655. fi
  3656. fi
  3657. CC=$ac_cv_prog_CC
  3658. if test -n "$CC"; then
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3660. $as_echo "$CC" >&6; }
  3661. else
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. $as_echo "no" >&6; }
  3664. fi
  3665. fi
  3666. if test -z "$CC"; then
  3667. if test -n "$ac_tool_prefix"; then
  3668. for ac_prog in cl.exe
  3669. do
  3670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3673. $as_echo_n "checking for $ac_word... " >&6; }
  3674. if ${ac_cv_prog_CC+:} false; then :
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. if test -n "$CC"; then
  3678. ac_cv_prog_CC="$CC" # Let the user override the test.
  3679. else
  3680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3681. for as_dir in $PATH
  3682. do
  3683. IFS=$as_save_IFS
  3684. test -z "$as_dir" && as_dir=.
  3685. for ac_exec_ext in '' $ac_executable_extensions; do
  3686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3687. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3689. break 2
  3690. fi
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. fi
  3695. fi
  3696. CC=$ac_cv_prog_CC
  3697. if test -n "$CC"; then
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3699. $as_echo "$CC" >&6; }
  3700. else
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. $as_echo "no" >&6; }
  3703. fi
  3704. test -n "$CC" && break
  3705. done
  3706. fi
  3707. if test -z "$CC"; then
  3708. ac_ct_CC=$CC
  3709. for ac_prog in cl.exe
  3710. do
  3711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3712. set dummy $ac_prog; ac_word=$2
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3714. $as_echo_n "checking for $ac_word... " >&6; }
  3715. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if test -n "$ac_ct_CC"; then
  3719. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3720. else
  3721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722. for as_dir in $PATH
  3723. do
  3724. IFS=$as_save_IFS
  3725. test -z "$as_dir" && as_dir=.
  3726. for ac_exec_ext in '' $ac_executable_extensions; do
  3727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3728. ac_cv_prog_ac_ct_CC="$ac_prog"
  3729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3730. break 2
  3731. fi
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. fi
  3736. fi
  3737. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3738. if test -n "$ac_ct_CC"; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3740. $as_echo "$ac_ct_CC" >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. test -n "$ac_ct_CC" && break
  3746. done
  3747. if test "x$ac_ct_CC" = x; then
  3748. CC=""
  3749. else
  3750. case $cross_compiling:$ac_tool_warned in
  3751. yes:)
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3754. ac_tool_warned=yes ;;
  3755. esac
  3756. CC=$ac_ct_CC
  3757. fi
  3758. fi
  3759. fi
  3760. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3762. as_fn_error $? "no acceptable C compiler found in \$PATH
  3763. See \`config.log' for more details" "$LINENO" 5; }
  3764. # Provide some information about the compiler.
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3766. set X $ac_compile
  3767. ac_compiler=$2
  3768. for ac_option in --version -v -V -qversion; do
  3769. { { ac_try="$ac_compiler $ac_option >&5"
  3770. case "(($ac_try" in
  3771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3772. *) ac_try_echo=$ac_try;;
  3773. esac
  3774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3775. $as_echo "$ac_try_echo"; } >&5
  3776. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3777. ac_status=$?
  3778. if test -s conftest.err; then
  3779. sed '10a\
  3780. ... rest of stderr output deleted ...
  3781. 10q' conftest.err >conftest.er1
  3782. cat conftest.er1 >&5
  3783. fi
  3784. rm -f conftest.er1 conftest.err
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3786. test $ac_status = 0; }
  3787. done
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3789. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3790. if ${ac_cv_c_compiler_gnu+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3794. /* end confdefs.h. */
  3795. int
  3796. main ()
  3797. {
  3798. #ifndef __GNUC__
  3799. choke me
  3800. #endif
  3801. ;
  3802. return 0;
  3803. }
  3804. _ACEOF
  3805. if ac_fn_c_try_compile "$LINENO"; then :
  3806. ac_compiler_gnu=yes
  3807. else
  3808. ac_compiler_gnu=no
  3809. fi
  3810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3811. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3812. fi
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3814. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3815. if test $ac_compiler_gnu = yes; then
  3816. GCC=yes
  3817. else
  3818. GCC=
  3819. fi
  3820. ac_test_CFLAGS=${CFLAGS+set}
  3821. ac_save_CFLAGS=$CFLAGS
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3823. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3824. if ${ac_cv_prog_cc_g+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. ac_save_c_werror_flag=$ac_c_werror_flag
  3828. ac_c_werror_flag=yes
  3829. ac_cv_prog_cc_g=no
  3830. CFLAGS="-g"
  3831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end confdefs.h. */
  3833. int
  3834. main ()
  3835. {
  3836. ;
  3837. return 0;
  3838. }
  3839. _ACEOF
  3840. if ac_fn_c_try_compile "$LINENO"; then :
  3841. ac_cv_prog_cc_g=yes
  3842. else
  3843. CFLAGS=""
  3844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3845. /* end confdefs.h. */
  3846. int
  3847. main ()
  3848. {
  3849. ;
  3850. return 0;
  3851. }
  3852. _ACEOF
  3853. if ac_fn_c_try_compile "$LINENO"; then :
  3854. else
  3855. ac_c_werror_flag=$ac_save_c_werror_flag
  3856. CFLAGS="-g"
  3857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3858. /* end confdefs.h. */
  3859. int
  3860. main ()
  3861. {
  3862. ;
  3863. return 0;
  3864. }
  3865. _ACEOF
  3866. if ac_fn_c_try_compile "$LINENO"; then :
  3867. ac_cv_prog_cc_g=yes
  3868. fi
  3869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. fi
  3871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3872. fi
  3873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3874. ac_c_werror_flag=$ac_save_c_werror_flag
  3875. fi
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3877. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3878. if test "$ac_test_CFLAGS" = set; then
  3879. CFLAGS=$ac_save_CFLAGS
  3880. elif test $ac_cv_prog_cc_g = yes; then
  3881. if test "$GCC" = yes; then
  3882. CFLAGS="-g -O2"
  3883. else
  3884. CFLAGS="-g"
  3885. fi
  3886. else
  3887. if test "$GCC" = yes; then
  3888. CFLAGS="-O2"
  3889. else
  3890. CFLAGS=
  3891. fi
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3894. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3895. if ${ac_cv_prog_cc_c89+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. ac_cv_prog_cc_c89=no
  3899. ac_save_CC=$CC
  3900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3901. /* end confdefs.h. */
  3902. #include <stdarg.h>
  3903. #include <stdio.h>
  3904. struct stat;
  3905. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3906. struct buf { int x; };
  3907. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3908. static char *e (p, i)
  3909. char **p;
  3910. int i;
  3911. {
  3912. return p[i];
  3913. }
  3914. static char *f (char * (*g) (char **, int), char **p, ...)
  3915. {
  3916. char *s;
  3917. va_list v;
  3918. va_start (v,p);
  3919. s = g (p, va_arg (v,int));
  3920. va_end (v);
  3921. return s;
  3922. }
  3923. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3924. function prototypes and stuff, but not '\xHH' hex character constants.
  3925. These don't provoke an error unfortunately, instead are silently treated
  3926. as 'x'. The following induces an error, until -std is added to get
  3927. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3928. array size at least. It's necessary to write '\x00'==0 to get something
  3929. that's true only with -std. */
  3930. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3931. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3932. inside strings and character constants. */
  3933. #define FOO(x) 'x'
  3934. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3935. int test (int i, double x);
  3936. struct s1 {int (*f) (int a);};
  3937. struct s2 {int (*f) (double a);};
  3938. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3939. int argc;
  3940. char **argv;
  3941. int
  3942. main ()
  3943. {
  3944. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3945. ;
  3946. return 0;
  3947. }
  3948. _ACEOF
  3949. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3950. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3951. do
  3952. CC="$ac_save_CC $ac_arg"
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954. ac_cv_prog_cc_c89=$ac_arg
  3955. fi
  3956. rm -f core conftest.err conftest.$ac_objext
  3957. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3958. done
  3959. rm -f conftest.$ac_ext
  3960. CC=$ac_save_CC
  3961. fi
  3962. # AC_CACHE_VAL
  3963. case "x$ac_cv_prog_cc_c89" in
  3964. x)
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3966. $as_echo "none needed" >&6; } ;;
  3967. xno)
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3969. $as_echo "unsupported" >&6; } ;;
  3970. *)
  3971. CC="$CC $ac_cv_prog_cc_c89"
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3973. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3974. esac
  3975. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3976. fi
  3977. ac_ext=c
  3978. ac_cpp='$CPP $CPPFLAGS'
  3979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3982. depcc="$CC" am_compiler_list=
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3984. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3985. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3989. # We make a subdir and do the tests there. Otherwise we can end up
  3990. # making bogus files that we don't know about and never remove. For
  3991. # instance it was reported that on HP-UX the gcc test will end up
  3992. # making a dummy file named 'D' -- because '-MD' means "put the output
  3993. # in D".
  3994. rm -rf conftest.dir
  3995. mkdir conftest.dir
  3996. # Copy depcomp to subdir because otherwise we won't find it if we're
  3997. # using a relative directory.
  3998. cp "$am_depcomp" conftest.dir
  3999. cd conftest.dir
  4000. # We will build objects and dependencies in a subdirectory because
  4001. # it helps to detect inapplicable dependency modes. For instance
  4002. # both Tru64's cc and ICC support -MD to output dependencies as a
  4003. # side effect of compilation, but ICC will put the dependencies in
  4004. # the current directory while Tru64 will put them in the object
  4005. # directory.
  4006. mkdir sub
  4007. am_cv_CC_dependencies_compiler_type=none
  4008. if test "$am_compiler_list" = ""; then
  4009. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4010. fi
  4011. am__universal=false
  4012. case " $depcc " in #(
  4013. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4014. esac
  4015. for depmode in $am_compiler_list; do
  4016. # Setup a source with many dependencies, because some compilers
  4017. # like to wrap large dependency lists on column 80 (with \), and
  4018. # we should not choose a depcomp mode which is confused by this.
  4019. #
  4020. # We need to recreate these files for each test, as the compiler may
  4021. # overwrite some of them when testing with obscure command lines.
  4022. # This happens at least with the AIX C compiler.
  4023. : > sub/conftest.c
  4024. for i in 1 2 3 4 5 6; do
  4025. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4026. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4027. # Solaris 10 /bin/sh.
  4028. echo '/* dummy */' > sub/conftst$i.h
  4029. done
  4030. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4031. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4032. # mode. It turns out that the SunPro C++ compiler does not properly
  4033. # handle '-M -o', and we need to detect this. Also, some Intel
  4034. # versions had trouble with output in subdirs.
  4035. am__obj=sub/conftest.${OBJEXT-o}
  4036. am__minus_obj="-o $am__obj"
  4037. case $depmode in
  4038. gcc)
  4039. # This depmode causes a compiler race in universal mode.
  4040. test "$am__universal" = false || continue
  4041. ;;
  4042. nosideeffect)
  4043. # After this tag, mechanisms are not by side-effect, so they'll
  4044. # only be used when explicitly requested.
  4045. if test "x$enable_dependency_tracking" = xyes; then
  4046. continue
  4047. else
  4048. break
  4049. fi
  4050. ;;
  4051. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4052. # This compiler won't grok '-c -o', but also, the minuso test has
  4053. # not run yet. These depmodes are late enough in the game, and
  4054. # so weak that their functioning should not be impacted.
  4055. am__obj=conftest.${OBJEXT-o}
  4056. am__minus_obj=
  4057. ;;
  4058. none) break ;;
  4059. esac
  4060. if depmode=$depmode \
  4061. source=sub/conftest.c object=$am__obj \
  4062. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4063. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4064. >/dev/null 2>conftest.err &&
  4065. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4066. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4067. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4068. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4069. # icc doesn't choke on unknown options, it will just issue warnings
  4070. # or remarks (even with -Werror). So we grep stderr for any message
  4071. # that says an option was ignored or not supported.
  4072. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4073. # icc: Command line warning: ignoring option '-M'; no argument required
  4074. # The diagnosis changed in icc 8.0:
  4075. # icc: Command line remark: option '-MP' not supported
  4076. if (grep 'ignoring option' conftest.err ||
  4077. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4078. am_cv_CC_dependencies_compiler_type=$depmode
  4079. break
  4080. fi
  4081. fi
  4082. done
  4083. cd ..
  4084. rm -rf conftest.dir
  4085. else
  4086. am_cv_CC_dependencies_compiler_type=none
  4087. fi
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4090. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4091. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4092. if
  4093. test "x$enable_dependency_tracking" != xno \
  4094. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4095. am__fastdepCC_TRUE=
  4096. am__fastdepCC_FALSE='#'
  4097. else
  4098. am__fastdepCC_TRUE='#'
  4099. am__fastdepCC_FALSE=
  4100. fi
  4101. ac_ext=c
  4102. ac_cpp='$CPP $CPPFLAGS'
  4103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4107. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4108. # On Suns, sometimes $CPP names a directory.
  4109. if test -n "$CPP" && test -d "$CPP"; then
  4110. CPP=
  4111. fi
  4112. if test -z "$CPP"; then
  4113. if ${ac_cv_prog_CPP+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. # Double quotes because CPP needs to be expanded
  4117. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4118. do
  4119. ac_preproc_ok=false
  4120. for ac_c_preproc_warn_flag in '' yes
  4121. do
  4122. # Use a header file that comes with gcc, so configuring glibc
  4123. # with a fresh cross-compiler works.
  4124. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4125. # <limits.h> exists even on freestanding compilers.
  4126. # On the NeXT, cc -E runs the code through the compiler's parser,
  4127. # not just through cpp. "Syntax error" is here to catch this case.
  4128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4129. /* end confdefs.h. */
  4130. #ifdef __STDC__
  4131. # include <limits.h>
  4132. #else
  4133. # include <assert.h>
  4134. #endif
  4135. Syntax error
  4136. _ACEOF
  4137. if ac_fn_c_try_cpp "$LINENO"; then :
  4138. else
  4139. # Broken: fails on valid input.
  4140. continue
  4141. fi
  4142. rm -f conftest.err conftest.i conftest.$ac_ext
  4143. # OK, works on sane cases. Now check whether nonexistent headers
  4144. # can be detected and how.
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. #include <ac_nonexistent.h>
  4148. _ACEOF
  4149. if ac_fn_c_try_cpp "$LINENO"; then :
  4150. # Broken: success on invalid input.
  4151. continue
  4152. else
  4153. # Passes both tests.
  4154. ac_preproc_ok=:
  4155. break
  4156. fi
  4157. rm -f conftest.err conftest.i conftest.$ac_ext
  4158. done
  4159. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4160. rm -f conftest.i conftest.err conftest.$ac_ext
  4161. if $ac_preproc_ok; then :
  4162. break
  4163. fi
  4164. done
  4165. ac_cv_prog_CPP=$CPP
  4166. fi
  4167. CPP=$ac_cv_prog_CPP
  4168. else
  4169. ac_cv_prog_CPP=$CPP
  4170. fi
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4172. $as_echo "$CPP" >&6; }
  4173. ac_preproc_ok=false
  4174. for ac_c_preproc_warn_flag in '' yes
  4175. do
  4176. # Use a header file that comes with gcc, so configuring glibc
  4177. # with a fresh cross-compiler works.
  4178. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4179. # <limits.h> exists even on freestanding compilers.
  4180. # On the NeXT, cc -E runs the code through the compiler's parser,
  4181. # not just through cpp. "Syntax error" is here to catch this case.
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. #ifdef __STDC__
  4185. # include <limits.h>
  4186. #else
  4187. # include <assert.h>
  4188. #endif
  4189. Syntax error
  4190. _ACEOF
  4191. if ac_fn_c_try_cpp "$LINENO"; then :
  4192. else
  4193. # Broken: fails on valid input.
  4194. continue
  4195. fi
  4196. rm -f conftest.err conftest.i conftest.$ac_ext
  4197. # OK, works on sane cases. Now check whether nonexistent headers
  4198. # can be detected and how.
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. #include <ac_nonexistent.h>
  4202. _ACEOF
  4203. if ac_fn_c_try_cpp "$LINENO"; then :
  4204. # Broken: success on invalid input.
  4205. continue
  4206. else
  4207. # Passes both tests.
  4208. ac_preproc_ok=:
  4209. break
  4210. fi
  4211. rm -f conftest.err conftest.i conftest.$ac_ext
  4212. done
  4213. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4214. rm -f conftest.i conftest.err conftest.$ac_ext
  4215. if $ac_preproc_ok; then :
  4216. else
  4217. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4219. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4220. See \`config.log' for more details" "$LINENO" 5; }
  4221. fi
  4222. ac_ext=c
  4223. ac_cpp='$CPP $CPPFLAGS'
  4224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4228. $as_echo_n "checking whether ln -s works... " >&6; }
  4229. LN_S=$as_ln_s
  4230. if test "$LN_S" = "ln -s"; then
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4232. $as_echo "yes" >&6; }
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4235. $as_echo "no, using $LN_S" >&6; }
  4236. fi
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4238. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4239. set x ${MAKE-make}
  4240. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4241. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4242. $as_echo_n "(cached) " >&6
  4243. else
  4244. cat >conftest.make <<\_ACEOF
  4245. SHELL = /bin/sh
  4246. all:
  4247. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4248. _ACEOF
  4249. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4250. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4251. *@@@%%%=?*=@@@%%%*)
  4252. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4253. *)
  4254. eval ac_cv_prog_make_${ac_make}_set=no;;
  4255. esac
  4256. rm -f conftest.make
  4257. fi
  4258. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4260. $as_echo "yes" >&6; }
  4261. SET_MAKE=
  4262. else
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4264. $as_echo "no" >&6; }
  4265. SET_MAKE="MAKE=${MAKE-make}"
  4266. fi
  4267. if test -n "$ac_tool_prefix"; then
  4268. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4269. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if ${ac_cv_prog_RANLIB+:} false; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$RANLIB"; then
  4276. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4285. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. RANLIB=$ac_cv_prog_RANLIB
  4295. if test -n "$RANLIB"; then
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4297. $as_echo "$RANLIB" >&6; }
  4298. else
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. fi
  4303. if test -z "$ac_cv_prog_RANLIB"; then
  4304. ac_ct_RANLIB=$RANLIB
  4305. # Extract the first word of "ranlib", so it can be a program name with args.
  4306. set dummy ranlib; ac_word=$2
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_RANLIB"; then
  4313. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4322. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4332. if test -n "$ac_ct_RANLIB"; then
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4334. $as_echo "$ac_ct_RANLIB" >&6; }
  4335. else
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. if test "x$ac_ct_RANLIB" = x; then
  4340. RANLIB=":"
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. RANLIB=$ac_ct_RANLIB
  4349. fi
  4350. else
  4351. RANLIB="$ac_cv_prog_RANLIB"
  4352. fi
  4353. # Checks for libraries.
  4354. # FIXME: Replace `main' with a function in `-ldl':
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4356. $as_echo_n "checking for main in -ldl... " >&6; }
  4357. if ${ac_cv_lib_dl_main+:} false; then :
  4358. $as_echo_n "(cached) " >&6
  4359. else
  4360. ac_check_lib_save_LIBS=$LIBS
  4361. LIBS="-ldl $LIBS"
  4362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4363. /* end confdefs.h. */
  4364. int
  4365. main ()
  4366. {
  4367. return main ();
  4368. ;
  4369. return 0;
  4370. }
  4371. _ACEOF
  4372. if ac_fn_c_try_link "$LINENO"; then :
  4373. ac_cv_lib_dl_main=yes
  4374. else
  4375. ac_cv_lib_dl_main=no
  4376. fi
  4377. rm -f core conftest.err conftest.$ac_objext \
  4378. conftest$ac_exeext conftest.$ac_ext
  4379. LIBS=$ac_check_lib_save_LIBS
  4380. fi
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4382. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4383. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4384. cat >>confdefs.h <<_ACEOF
  4385. #define HAVE_LIBDL 1
  4386. _ACEOF
  4387. LIBS="-ldl $LIBS"
  4388. fi
  4389. # FIXME: Replace `main' with a function in `-lrt':
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
  4391. $as_echo_n "checking for main in -lrt... " >&6; }
  4392. if ${ac_cv_lib_rt_main+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. ac_check_lib_save_LIBS=$LIBS
  4396. LIBS="-lrt $LIBS"
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. int
  4400. main ()
  4401. {
  4402. return main ();
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. if ac_fn_c_try_link "$LINENO"; then :
  4408. ac_cv_lib_rt_main=yes
  4409. else
  4410. ac_cv_lib_rt_main=no
  4411. fi
  4412. rm -f core conftest.err conftest.$ac_objext \
  4413. conftest$ac_exeext conftest.$ac_ext
  4414. LIBS=$ac_check_lib_save_LIBS
  4415. fi
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
  4417. $as_echo "$ac_cv_lib_rt_main" >&6; }
  4418. if test "x$ac_cv_lib_rt_main" = xyes; then :
  4419. cat >>confdefs.h <<_ACEOF
  4420. #define HAVE_LIBRT 1
  4421. _ACEOF
  4422. LIBS="-lrt $LIBS"
  4423. fi
  4424. # FIXME: Replace `main' with a function in `-lzlog':
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lzlog" >&5
  4426. $as_echo_n "checking for main in -lzlog... " >&6; }
  4427. if ${ac_cv_lib_zlog_main+:} false; then :
  4428. $as_echo_n "(cached) " >&6
  4429. else
  4430. ac_check_lib_save_LIBS=$LIBS
  4431. LIBS="-lzlog $LIBS"
  4432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4433. /* end confdefs.h. */
  4434. int
  4435. main ()
  4436. {
  4437. return main ();
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. if ac_fn_c_try_link "$LINENO"; then :
  4443. ac_cv_lib_zlog_main=yes
  4444. else
  4445. ac_cv_lib_zlog_main=no
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext \
  4448. conftest$ac_exeext conftest.$ac_ext
  4449. LIBS=$ac_check_lib_save_LIBS
  4450. fi
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zlog_main" >&5
  4452. $as_echo "$ac_cv_lib_zlog_main" >&6; }
  4453. if test "x$ac_cv_lib_zlog_main" = xyes; then :
  4454. cat >>confdefs.h <<_ACEOF
  4455. #define HAVE_LIBZLOG 1
  4456. _ACEOF
  4457. LIBS="-lzlog $LIBS"
  4458. fi
  4459. # Checks for header files.
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4461. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4462. if ${ac_cv_path_GREP+:} false; then :
  4463. $as_echo_n "(cached) " >&6
  4464. else
  4465. if test -z "$GREP"; then
  4466. ac_path_GREP_found=false
  4467. # Loop through the user's path and test for each of PROGNAME-LIST
  4468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4469. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4470. do
  4471. IFS=$as_save_IFS
  4472. test -z "$as_dir" && as_dir=.
  4473. for ac_prog in grep ggrep; do
  4474. for ac_exec_ext in '' $ac_executable_extensions; do
  4475. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4476. as_fn_executable_p "$ac_path_GREP" || continue
  4477. # Check for GNU ac_path_GREP and select it if it is found.
  4478. # Check for GNU $ac_path_GREP
  4479. case `"$ac_path_GREP" --version 2>&1` in
  4480. *GNU*)
  4481. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4482. *)
  4483. ac_count=0
  4484. $as_echo_n 0123456789 >"conftest.in"
  4485. while :
  4486. do
  4487. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4488. mv "conftest.tmp" "conftest.in"
  4489. cp "conftest.in" "conftest.nl"
  4490. $as_echo 'GREP' >> "conftest.nl"
  4491. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4492. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4493. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4494. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4495. # Best one so far, save it but keep looking for a better one
  4496. ac_cv_path_GREP="$ac_path_GREP"
  4497. ac_path_GREP_max=$ac_count
  4498. fi
  4499. # 10*(2^10) chars as input seems more than enough
  4500. test $ac_count -gt 10 && break
  4501. done
  4502. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4503. esac
  4504. $ac_path_GREP_found && break 3
  4505. done
  4506. done
  4507. done
  4508. IFS=$as_save_IFS
  4509. if test -z "$ac_cv_path_GREP"; then
  4510. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4511. fi
  4512. else
  4513. ac_cv_path_GREP=$GREP
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4517. $as_echo "$ac_cv_path_GREP" >&6; }
  4518. GREP="$ac_cv_path_GREP"
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4520. $as_echo_n "checking for egrep... " >&6; }
  4521. if ${ac_cv_path_EGREP+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4525. then ac_cv_path_EGREP="$GREP -E"
  4526. else
  4527. if test -z "$EGREP"; then
  4528. ac_path_EGREP_found=false
  4529. # Loop through the user's path and test for each of PROGNAME-LIST
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_prog in egrep; do
  4536. for ac_exec_ext in '' $ac_executable_extensions; do
  4537. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4538. as_fn_executable_p "$ac_path_EGREP" || continue
  4539. # Check for GNU ac_path_EGREP and select it if it is found.
  4540. # Check for GNU $ac_path_EGREP
  4541. case `"$ac_path_EGREP" --version 2>&1` in
  4542. *GNU*)
  4543. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4544. *)
  4545. ac_count=0
  4546. $as_echo_n 0123456789 >"conftest.in"
  4547. while :
  4548. do
  4549. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4550. mv "conftest.tmp" "conftest.in"
  4551. cp "conftest.in" "conftest.nl"
  4552. $as_echo 'EGREP' >> "conftest.nl"
  4553. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4554. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4555. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4556. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4557. # Best one so far, save it but keep looking for a better one
  4558. ac_cv_path_EGREP="$ac_path_EGREP"
  4559. ac_path_EGREP_max=$ac_count
  4560. fi
  4561. # 10*(2^10) chars as input seems more than enough
  4562. test $ac_count -gt 10 && break
  4563. done
  4564. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4565. esac
  4566. $ac_path_EGREP_found && break 3
  4567. done
  4568. done
  4569. done
  4570. IFS=$as_save_IFS
  4571. if test -z "$ac_cv_path_EGREP"; then
  4572. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4573. fi
  4574. else
  4575. ac_cv_path_EGREP=$EGREP
  4576. fi
  4577. fi
  4578. fi
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4580. $as_echo "$ac_cv_path_EGREP" >&6; }
  4581. EGREP="$ac_cv_path_EGREP"
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4583. $as_echo_n "checking for ANSI C header files... " >&6; }
  4584. if ${ac_cv_header_stdc+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4588. /* end confdefs.h. */
  4589. #include <stdlib.h>
  4590. #include <stdarg.h>
  4591. #include <string.h>
  4592. #include <float.h>
  4593. int
  4594. main ()
  4595. {
  4596. ;
  4597. return 0;
  4598. }
  4599. _ACEOF
  4600. if ac_fn_c_try_compile "$LINENO"; then :
  4601. ac_cv_header_stdc=yes
  4602. else
  4603. ac_cv_header_stdc=no
  4604. fi
  4605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4606. if test $ac_cv_header_stdc = yes; then
  4607. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. #include <string.h>
  4611. _ACEOF
  4612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4613. $EGREP "memchr" >/dev/null 2>&1; then :
  4614. else
  4615. ac_cv_header_stdc=no
  4616. fi
  4617. rm -f conftest*
  4618. fi
  4619. if test $ac_cv_header_stdc = yes; then
  4620. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4622. /* end confdefs.h. */
  4623. #include <stdlib.h>
  4624. _ACEOF
  4625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4626. $EGREP "free" >/dev/null 2>&1; then :
  4627. else
  4628. ac_cv_header_stdc=no
  4629. fi
  4630. rm -f conftest*
  4631. fi
  4632. if test $ac_cv_header_stdc = yes; then
  4633. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4634. if test "$cross_compiling" = yes; then :
  4635. :
  4636. else
  4637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4638. /* end confdefs.h. */
  4639. #include <ctype.h>
  4640. #include <stdlib.h>
  4641. #if ((' ' & 0x0FF) == 0x020)
  4642. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4643. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4644. #else
  4645. # define ISLOWER(c) \
  4646. (('a' <= (c) && (c) <= 'i') \
  4647. || ('j' <= (c) && (c) <= 'r') \
  4648. || ('s' <= (c) && (c) <= 'z'))
  4649. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4650. #endif
  4651. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4652. int
  4653. main ()
  4654. {
  4655. int i;
  4656. for (i = 0; i < 256; i++)
  4657. if (XOR (islower (i), ISLOWER (i))
  4658. || toupper (i) != TOUPPER (i))
  4659. return 2;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_run "$LINENO"; then :
  4664. else
  4665. ac_cv_header_stdc=no
  4666. fi
  4667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4669. fi
  4670. fi
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4673. $as_echo "$ac_cv_header_stdc" >&6; }
  4674. if test $ac_cv_header_stdc = yes; then
  4675. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4676. fi
  4677. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4678. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4679. inttypes.h stdint.h unistd.h
  4680. do :
  4681. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4682. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4683. "
  4684. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4685. cat >>confdefs.h <<_ACEOF
  4686. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4687. _ACEOF
  4688. fi
  4689. done
  4690. for ac_header in memory.h stdint.h stdlib.h string.h sys/time.h unistd.h
  4691. do :
  4692. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4693. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4694. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4695. cat >>confdefs.h <<_ACEOF
  4696. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4697. _ACEOF
  4698. fi
  4699. done
  4700. # Checks for typedefs, structures, and compiler characteristics.
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  4702. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  4703. if ${ac_cv_header_stdbool_h+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4707. /* end confdefs.h. */
  4708. #include <stdbool.h>
  4709. #ifndef bool
  4710. "error: bool is not defined"
  4711. #endif
  4712. #ifndef false
  4713. "error: false is not defined"
  4714. #endif
  4715. #if false
  4716. "error: false is not 0"
  4717. #endif
  4718. #ifndef true
  4719. "error: true is not defined"
  4720. #endif
  4721. #if true != 1
  4722. "error: true is not 1"
  4723. #endif
  4724. #ifndef __bool_true_false_are_defined
  4725. "error: __bool_true_false_are_defined is not defined"
  4726. #endif
  4727. struct s { _Bool s: 1; _Bool t; } s;
  4728. char a[true == 1 ? 1 : -1];
  4729. char b[false == 0 ? 1 : -1];
  4730. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4731. char d[(bool) 0.5 == true ? 1 : -1];
  4732. /* See body of main program for 'e'. */
  4733. char f[(_Bool) 0.0 == false ? 1 : -1];
  4734. char g[true];
  4735. char h[sizeof (_Bool)];
  4736. char i[sizeof s.t];
  4737. enum { j = false, k = true, l = false * true, m = true * 256 };
  4738. /* The following fails for
  4739. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  4740. _Bool n[m];
  4741. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  4742. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  4743. /* Catch a bug in an HP-UX C compiler. See
  4744. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  4745. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  4746. */
  4747. _Bool q = true;
  4748. _Bool *pq = &q;
  4749. int
  4750. main ()
  4751. {
  4752. bool e = &s;
  4753. *pq |= q;
  4754. *pq |= ! q;
  4755. /* Refer to every declared value, to avoid compiler optimizations. */
  4756. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  4757. + !m + !n + !o + !p + !q + !pq);
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. if ac_fn_c_try_compile "$LINENO"; then :
  4763. ac_cv_header_stdbool_h=yes
  4764. else
  4765. ac_cv_header_stdbool_h=no
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4768. fi
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  4770. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  4771. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  4772. if test "x$ac_cv_type__Bool" = xyes; then :
  4773. cat >>confdefs.h <<_ACEOF
  4774. #define HAVE__BOOL 1
  4775. _ACEOF
  4776. fi
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4778. $as_echo_n "checking for inline... " >&6; }
  4779. if ${ac_cv_c_inline+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. ac_cv_c_inline=no
  4783. for ac_kw in inline __inline__ __inline; do
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. #ifndef __cplusplus
  4787. typedef int foo_t;
  4788. static $ac_kw foo_t static_foo () {return 0; }
  4789. $ac_kw foo_t foo () {return 0; }
  4790. #endif
  4791. _ACEOF
  4792. if ac_fn_c_try_compile "$LINENO"; then :
  4793. ac_cv_c_inline=$ac_kw
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4796. test "$ac_cv_c_inline" != no && break
  4797. done
  4798. fi
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4800. $as_echo "$ac_cv_c_inline" >&6; }
  4801. case $ac_cv_c_inline in
  4802. inline | yes) ;;
  4803. *)
  4804. case $ac_cv_c_inline in
  4805. no) ac_val=;;
  4806. *) ac_val=$ac_cv_c_inline;;
  4807. esac
  4808. cat >>confdefs.h <<_ACEOF
  4809. #ifndef __cplusplus
  4810. #define inline $ac_val
  4811. #endif
  4812. _ACEOF
  4813. ;;
  4814. esac
  4815. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  4816. case $ac_cv_c_int32_t in #(
  4817. no|yes) ;; #(
  4818. *)
  4819. cat >>confdefs.h <<_ACEOF
  4820. #define int32_t $ac_cv_c_int32_t
  4821. _ACEOF
  4822. ;;
  4823. esac
  4824. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  4825. case $ac_cv_c_int64_t in #(
  4826. no|yes) ;; #(
  4827. *)
  4828. cat >>confdefs.h <<_ACEOF
  4829. #define int64_t $ac_cv_c_int64_t
  4830. _ACEOF
  4831. ;;
  4832. esac
  4833. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4834. if test "x$ac_cv_type_pid_t" = xyes; then :
  4835. else
  4836. cat >>confdefs.h <<_ACEOF
  4837. #define pid_t int
  4838. _ACEOF
  4839. fi
  4840. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4841. if test "x$ac_cv_type_size_t" = xyes; then :
  4842. else
  4843. cat >>confdefs.h <<_ACEOF
  4844. #define size_t unsigned int
  4845. _ACEOF
  4846. fi
  4847. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4848. case $ac_cv_c_uint32_t in #(
  4849. no|yes) ;; #(
  4850. *)
  4851. $as_echo "#define _UINT32_T 1" >>confdefs.h
  4852. cat >>confdefs.h <<_ACEOF
  4853. #define uint32_t $ac_cv_c_uint32_t
  4854. _ACEOF
  4855. ;;
  4856. esac
  4857. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  4858. case $ac_cv_c_uint64_t in #(
  4859. no|yes) ;; #(
  4860. *)
  4861. $as_echo "#define _UINT64_T 1" >>confdefs.h
  4862. cat >>confdefs.h <<_ACEOF
  4863. #define uint64_t $ac_cv_c_uint64_t
  4864. _ACEOF
  4865. ;;
  4866. esac
  4867. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4868. case $ac_cv_c_uint8_t in #(
  4869. no|yes) ;; #(
  4870. *)
  4871. $as_echo "#define _UINT8_T 1" >>confdefs.h
  4872. cat >>confdefs.h <<_ACEOF
  4873. #define uint8_t $ac_cv_c_uint8_t
  4874. _ACEOF
  4875. ;;
  4876. esac
  4877. case `pwd` in
  4878. *\ * | *\ *)
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4880. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4881. esac
  4882. macro_version='2.4.2'
  4883. macro_revision='1.3337'
  4884. ltmain="$ac_aux_dir/ltmain.sh"
  4885. # Make sure we can run config.sub.
  4886. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4887. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4889. $as_echo_n "checking build system type... " >&6; }
  4890. if ${ac_cv_build+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. ac_build_alias=$build_alias
  4894. test "x$ac_build_alias" = x &&
  4895. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4896. test "x$ac_build_alias" = x &&
  4897. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4898. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4899. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4902. $as_echo "$ac_cv_build" >&6; }
  4903. case $ac_cv_build in
  4904. *-*-*) ;;
  4905. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4906. esac
  4907. build=$ac_cv_build
  4908. ac_save_IFS=$IFS; IFS='-'
  4909. set x $ac_cv_build
  4910. shift
  4911. build_cpu=$1
  4912. build_vendor=$2
  4913. shift; shift
  4914. # Remember, the first character of IFS is used to create $*,
  4915. # except with old shells:
  4916. build_os=$*
  4917. IFS=$ac_save_IFS
  4918. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4920. $as_echo_n "checking host system type... " >&6; }
  4921. if ${ac_cv_host+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. if test "x$host_alias" = x; then
  4925. ac_cv_host=$ac_cv_build
  4926. else
  4927. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4928. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4929. fi
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4932. $as_echo "$ac_cv_host" >&6; }
  4933. case $ac_cv_host in
  4934. *-*-*) ;;
  4935. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4936. esac
  4937. host=$ac_cv_host
  4938. ac_save_IFS=$IFS; IFS='-'
  4939. set x $ac_cv_host
  4940. shift
  4941. host_cpu=$1
  4942. host_vendor=$2
  4943. shift; shift
  4944. # Remember, the first character of IFS is used to create $*,
  4945. # except with old shells:
  4946. host_os=$*
  4947. IFS=$ac_save_IFS
  4948. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4949. # Backslashify metacharacters that are still active within
  4950. # double-quoted strings.
  4951. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4952. # Same as above, but do not quote variable references.
  4953. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4954. # Sed substitution to delay expansion of an escaped shell variable in a
  4955. # double_quote_subst'ed string.
  4956. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4957. # Sed substitution to delay expansion of an escaped single quote.
  4958. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4959. # Sed substitution to avoid accidental globbing in evaled expressions
  4960. no_glob_subst='s/\*/\\\*/g'
  4961. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4962. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4963. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4965. $as_echo_n "checking how to print strings... " >&6; }
  4966. # Test print first, because it will be a builtin if present.
  4967. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4968. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4969. ECHO='print -r --'
  4970. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4971. ECHO='printf %s\n'
  4972. else
  4973. # Use this function as a fallback that always works.
  4974. func_fallback_echo ()
  4975. {
  4976. eval 'cat <<_LTECHO_EOF
  4977. $1
  4978. _LTECHO_EOF'
  4979. }
  4980. ECHO='func_fallback_echo'
  4981. fi
  4982. # func_echo_all arg...
  4983. # Invoke $ECHO with all args, space-separated.
  4984. func_echo_all ()
  4985. {
  4986. $ECHO ""
  4987. }
  4988. case "$ECHO" in
  4989. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4990. $as_echo "printf" >&6; } ;;
  4991. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4992. $as_echo "print -r" >&6; } ;;
  4993. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4994. $as_echo "cat" >&6; } ;;
  4995. esac
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4997. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4998. if ${ac_cv_path_SED+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5002. for ac_i in 1 2 3 4 5 6 7; do
  5003. ac_script="$ac_script$as_nl$ac_script"
  5004. done
  5005. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5006. { ac_script=; unset ac_script;}
  5007. if test -z "$SED"; then
  5008. ac_path_SED_found=false
  5009. # Loop through the user's path and test for each of PROGNAME-LIST
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_prog in sed gsed; do
  5016. for ac_exec_ext in '' $ac_executable_extensions; do
  5017. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5018. as_fn_executable_p "$ac_path_SED" || continue
  5019. # Check for GNU ac_path_SED and select it if it is found.
  5020. # Check for GNU $ac_path_SED
  5021. case `"$ac_path_SED" --version 2>&1` in
  5022. *GNU*)
  5023. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5024. *)
  5025. ac_count=0
  5026. $as_echo_n 0123456789 >"conftest.in"
  5027. while :
  5028. do
  5029. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5030. mv "conftest.tmp" "conftest.in"
  5031. cp "conftest.in" "conftest.nl"
  5032. $as_echo '' >> "conftest.nl"
  5033. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5034. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5035. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5036. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5037. # Best one so far, save it but keep looking for a better one
  5038. ac_cv_path_SED="$ac_path_SED"
  5039. ac_path_SED_max=$ac_count
  5040. fi
  5041. # 10*(2^10) chars as input seems more than enough
  5042. test $ac_count -gt 10 && break
  5043. done
  5044. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5045. esac
  5046. $ac_path_SED_found && break 3
  5047. done
  5048. done
  5049. done
  5050. IFS=$as_save_IFS
  5051. if test -z "$ac_cv_path_SED"; then
  5052. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5053. fi
  5054. else
  5055. ac_cv_path_SED=$SED
  5056. fi
  5057. fi
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5059. $as_echo "$ac_cv_path_SED" >&6; }
  5060. SED="$ac_cv_path_SED"
  5061. rm -f conftest.sed
  5062. test -z "$SED" && SED=sed
  5063. Xsed="$SED -e 1s/^X//"
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5065. $as_echo_n "checking for fgrep... " >&6; }
  5066. if ${ac_cv_path_FGREP+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5070. then ac_cv_path_FGREP="$GREP -F"
  5071. else
  5072. if test -z "$FGREP"; then
  5073. ac_path_FGREP_found=false
  5074. # Loop through the user's path and test for each of PROGNAME-LIST
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_prog in fgrep; do
  5081. for ac_exec_ext in '' $ac_executable_extensions; do
  5082. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5083. as_fn_executable_p "$ac_path_FGREP" || continue
  5084. # Check for GNU ac_path_FGREP and select it if it is found.
  5085. # Check for GNU $ac_path_FGREP
  5086. case `"$ac_path_FGREP" --version 2>&1` in
  5087. *GNU*)
  5088. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5089. *)
  5090. ac_count=0
  5091. $as_echo_n 0123456789 >"conftest.in"
  5092. while :
  5093. do
  5094. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5095. mv "conftest.tmp" "conftest.in"
  5096. cp "conftest.in" "conftest.nl"
  5097. $as_echo 'FGREP' >> "conftest.nl"
  5098. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5099. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5100. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5101. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5102. # Best one so far, save it but keep looking for a better one
  5103. ac_cv_path_FGREP="$ac_path_FGREP"
  5104. ac_path_FGREP_max=$ac_count
  5105. fi
  5106. # 10*(2^10) chars as input seems more than enough
  5107. test $ac_count -gt 10 && break
  5108. done
  5109. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5110. esac
  5111. $ac_path_FGREP_found && break 3
  5112. done
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. if test -z "$ac_cv_path_FGREP"; then
  5117. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5118. fi
  5119. else
  5120. ac_cv_path_FGREP=$FGREP
  5121. fi
  5122. fi
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5125. $as_echo "$ac_cv_path_FGREP" >&6; }
  5126. FGREP="$ac_cv_path_FGREP"
  5127. test -z "$GREP" && GREP=grep
  5128. # Check whether --with-gnu-ld was given.
  5129. if test "${with_gnu_ld+set}" = set; then :
  5130. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5131. else
  5132. with_gnu_ld=no
  5133. fi
  5134. ac_prog=ld
  5135. if test "$GCC" = yes; then
  5136. # Check if gcc -print-prog-name=ld gives a path.
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5138. $as_echo_n "checking for ld used by $CC... " >&6; }
  5139. case $host in
  5140. *-*-mingw*)
  5141. # gcc leaves a trailing carriage return which upsets mingw
  5142. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5143. *)
  5144. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5145. esac
  5146. case $ac_prog in
  5147. # Accept absolute paths.
  5148. [\\/]* | ?:[\\/]*)
  5149. re_direlt='/[^/][^/]*/\.\./'
  5150. # Canonicalize the pathname of ld
  5151. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5152. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5153. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5154. done
  5155. test -z "$LD" && LD="$ac_prog"
  5156. ;;
  5157. "")
  5158. # If it fails, then pretend we aren't using GCC.
  5159. ac_prog=ld
  5160. ;;
  5161. *)
  5162. # If it is relative, then search for the first ld in PATH.
  5163. with_gnu_ld=unknown
  5164. ;;
  5165. esac
  5166. elif test "$with_gnu_ld" = yes; then
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5168. $as_echo_n "checking for GNU ld... " >&6; }
  5169. else
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5171. $as_echo_n "checking for non-GNU ld... " >&6; }
  5172. fi
  5173. if ${lt_cv_path_LD+:} false; then :
  5174. $as_echo_n "(cached) " >&6
  5175. else
  5176. if test -z "$LD"; then
  5177. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5178. for ac_dir in $PATH; do
  5179. IFS="$lt_save_ifs"
  5180. test -z "$ac_dir" && ac_dir=.
  5181. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5182. lt_cv_path_LD="$ac_dir/$ac_prog"
  5183. # Check to see if the program is GNU ld. I'd rather use --version,
  5184. # but apparently some variants of GNU ld only accept -v.
  5185. # Break only if it was the GNU/non-GNU ld that we prefer.
  5186. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5187. *GNU* | *'with BFD'*)
  5188. test "$with_gnu_ld" != no && break
  5189. ;;
  5190. *)
  5191. test "$with_gnu_ld" != yes && break
  5192. ;;
  5193. esac
  5194. fi
  5195. done
  5196. IFS="$lt_save_ifs"
  5197. else
  5198. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5199. fi
  5200. fi
  5201. LD="$lt_cv_path_LD"
  5202. if test -n "$LD"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5204. $as_echo "$LD" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5211. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5212. if ${lt_cv_prog_gnu_ld+:} false; then :
  5213. $as_echo_n "(cached) " >&6
  5214. else
  5215. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5216. case `$LD -v 2>&1 </dev/null` in
  5217. *GNU* | *'with BFD'*)
  5218. lt_cv_prog_gnu_ld=yes
  5219. ;;
  5220. *)
  5221. lt_cv_prog_gnu_ld=no
  5222. ;;
  5223. esac
  5224. fi
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5226. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5227. with_gnu_ld=$lt_cv_prog_gnu_ld
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5229. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5230. if ${lt_cv_path_NM+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. if test -n "$NM"; then
  5234. # Let the user override the test.
  5235. lt_cv_path_NM="$NM"
  5236. else
  5237. lt_nm_to_check="${ac_tool_prefix}nm"
  5238. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5239. lt_nm_to_check="$lt_nm_to_check nm"
  5240. fi
  5241. for lt_tmp_nm in $lt_nm_to_check; do
  5242. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5243. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5244. IFS="$lt_save_ifs"
  5245. test -z "$ac_dir" && ac_dir=.
  5246. tmp_nm="$ac_dir/$lt_tmp_nm"
  5247. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5248. # Check to see if the nm accepts a BSD-compat flag.
  5249. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5250. # nm: unknown option "B" ignored
  5251. # Tru64's nm complains that /dev/null is an invalid object file
  5252. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5253. */dev/null* | *'Invalid file or object type'*)
  5254. lt_cv_path_NM="$tmp_nm -B"
  5255. break
  5256. ;;
  5257. *)
  5258. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5259. */dev/null*)
  5260. lt_cv_path_NM="$tmp_nm -p"
  5261. break
  5262. ;;
  5263. *)
  5264. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5265. continue # so that we can try to find one that supports BSD flags
  5266. ;;
  5267. esac
  5268. ;;
  5269. esac
  5270. fi
  5271. done
  5272. IFS="$lt_save_ifs"
  5273. done
  5274. : ${lt_cv_path_NM=no}
  5275. fi
  5276. fi
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5278. $as_echo "$lt_cv_path_NM" >&6; }
  5279. if test "$lt_cv_path_NM" != "no"; then
  5280. NM="$lt_cv_path_NM"
  5281. else
  5282. # Didn't find any BSD compatible name lister, look for dumpbin.
  5283. if test -n "$DUMPBIN"; then :
  5284. # Let the user override the test.
  5285. else
  5286. if test -n "$ac_tool_prefix"; then
  5287. for ac_prog in dumpbin "link -dump"
  5288. do
  5289. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5290. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5292. $as_echo_n "checking for $ac_word... " >&6; }
  5293. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. if test -n "$DUMPBIN"; then
  5297. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5298. else
  5299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5300. for as_dir in $PATH
  5301. do
  5302. IFS=$as_save_IFS
  5303. test -z "$as_dir" && as_dir=.
  5304. for ac_exec_ext in '' $ac_executable_extensions; do
  5305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5306. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5308. break 2
  5309. fi
  5310. done
  5311. done
  5312. IFS=$as_save_IFS
  5313. fi
  5314. fi
  5315. DUMPBIN=$ac_cv_prog_DUMPBIN
  5316. if test -n "$DUMPBIN"; then
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5318. $as_echo "$DUMPBIN" >&6; }
  5319. else
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5321. $as_echo "no" >&6; }
  5322. fi
  5323. test -n "$DUMPBIN" && break
  5324. done
  5325. fi
  5326. if test -z "$DUMPBIN"; then
  5327. ac_ct_DUMPBIN=$DUMPBIN
  5328. for ac_prog in dumpbin "link -dump"
  5329. do
  5330. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5331. set dummy $ac_prog; ac_word=$2
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5333. $as_echo_n "checking for $ac_word... " >&6; }
  5334. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. if test -n "$ac_ct_DUMPBIN"; then
  5338. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5339. else
  5340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5341. for as_dir in $PATH
  5342. do
  5343. IFS=$as_save_IFS
  5344. test -z "$as_dir" && as_dir=.
  5345. for ac_exec_ext in '' $ac_executable_extensions; do
  5346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5347. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5349. break 2
  5350. fi
  5351. done
  5352. done
  5353. IFS=$as_save_IFS
  5354. fi
  5355. fi
  5356. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5357. if test -n "$ac_ct_DUMPBIN"; then
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5359. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5360. else
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5362. $as_echo "no" >&6; }
  5363. fi
  5364. test -n "$ac_ct_DUMPBIN" && break
  5365. done
  5366. if test "x$ac_ct_DUMPBIN" = x; then
  5367. DUMPBIN=":"
  5368. else
  5369. case $cross_compiling:$ac_tool_warned in
  5370. yes:)
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5373. ac_tool_warned=yes ;;
  5374. esac
  5375. DUMPBIN=$ac_ct_DUMPBIN
  5376. fi
  5377. fi
  5378. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5379. *COFF*)
  5380. DUMPBIN="$DUMPBIN -symbols"
  5381. ;;
  5382. *)
  5383. DUMPBIN=:
  5384. ;;
  5385. esac
  5386. fi
  5387. if test "$DUMPBIN" != ":"; then
  5388. NM="$DUMPBIN"
  5389. fi
  5390. fi
  5391. test -z "$NM" && NM=nm
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5393. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5394. if ${lt_cv_nm_interface+:} false; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. lt_cv_nm_interface="BSD nm"
  5398. echo "int some_variable = 0;" > conftest.$ac_ext
  5399. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5400. (eval "$ac_compile" 2>conftest.err)
  5401. cat conftest.err >&5
  5402. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5403. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5404. cat conftest.err >&5
  5405. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5406. cat conftest.out >&5
  5407. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5408. lt_cv_nm_interface="MS dumpbin"
  5409. fi
  5410. rm -f conftest*
  5411. fi
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5413. $as_echo "$lt_cv_nm_interface" >&6; }
  5414. # find the maximum length of command line arguments
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5416. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5417. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5418. $as_echo_n "(cached) " >&6
  5419. else
  5420. i=0
  5421. teststring="ABCD"
  5422. case $build_os in
  5423. msdosdjgpp*)
  5424. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5425. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5426. # during glob expansion). Even if it were fixed, the result of this
  5427. # check would be larger than it should be.
  5428. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5429. ;;
  5430. gnu*)
  5431. # Under GNU Hurd, this test is not required because there is
  5432. # no limit to the length of command line arguments.
  5433. # Libtool will interpret -1 as no limit whatsoever
  5434. lt_cv_sys_max_cmd_len=-1;
  5435. ;;
  5436. cygwin* | mingw* | cegcc*)
  5437. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5438. # about 5 minutes as the teststring grows exponentially.
  5439. # Worse, since 9x/ME are not pre-emptively multitasking,
  5440. # you end up with a "frozen" computer, even though with patience
  5441. # the test eventually succeeds (with a max line length of 256k).
  5442. # Instead, let's just punt: use the minimum linelength reported by
  5443. # all of the supported platforms: 8192 (on NT/2K/XP).
  5444. lt_cv_sys_max_cmd_len=8192;
  5445. ;;
  5446. mint*)
  5447. # On MiNT this can take a long time and run out of memory.
  5448. lt_cv_sys_max_cmd_len=8192;
  5449. ;;
  5450. amigaos*)
  5451. # On AmigaOS with pdksh, this test takes hours, literally.
  5452. # So we just punt and use a minimum line length of 8192.
  5453. lt_cv_sys_max_cmd_len=8192;
  5454. ;;
  5455. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5456. # This has been around since 386BSD, at least. Likely further.
  5457. if test -x /sbin/sysctl; then
  5458. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5459. elif test -x /usr/sbin/sysctl; then
  5460. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5461. else
  5462. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5463. fi
  5464. # And add a safety zone
  5465. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5466. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5467. ;;
  5468. interix*)
  5469. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5470. lt_cv_sys_max_cmd_len=196608
  5471. ;;
  5472. os2*)
  5473. # The test takes a long time on OS/2.
  5474. lt_cv_sys_max_cmd_len=8192
  5475. ;;
  5476. osf*)
  5477. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5478. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5479. # nice to cause kernel panics so lets avoid the loop below.
  5480. # First set a reasonable default.
  5481. lt_cv_sys_max_cmd_len=16384
  5482. #
  5483. if test -x /sbin/sysconfig; then
  5484. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5485. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5486. esac
  5487. fi
  5488. ;;
  5489. sco3.2v5*)
  5490. lt_cv_sys_max_cmd_len=102400
  5491. ;;
  5492. sysv5* | sco5v6* | sysv4.2uw2*)
  5493. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5494. if test -n "$kargmax"; then
  5495. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5496. else
  5497. lt_cv_sys_max_cmd_len=32768
  5498. fi
  5499. ;;
  5500. *)
  5501. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5502. if test -n "$lt_cv_sys_max_cmd_len"; then
  5503. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5504. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5505. else
  5506. # Make teststring a little bigger before we do anything with it.
  5507. # a 1K string should be a reasonable start.
  5508. for i in 1 2 3 4 5 6 7 8 ; do
  5509. teststring=$teststring$teststring
  5510. done
  5511. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5512. # If test is not a shell built-in, we'll probably end up computing a
  5513. # maximum length that is only half of the actual maximum length, but
  5514. # we can't tell.
  5515. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5516. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5517. test $i != 17 # 1/2 MB should be enough
  5518. do
  5519. i=`expr $i + 1`
  5520. teststring=$teststring$teststring
  5521. done
  5522. # Only check the string length outside the loop.
  5523. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5524. teststring=
  5525. # Add a significant safety factor because C++ compilers can tack on
  5526. # massive amounts of additional arguments before passing them to the
  5527. # linker. It appears as though 1/2 is a usable value.
  5528. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5529. fi
  5530. ;;
  5531. esac
  5532. fi
  5533. if test -n $lt_cv_sys_max_cmd_len ; then
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5535. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5536. else
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5538. $as_echo "none" >&6; }
  5539. fi
  5540. max_cmd_len=$lt_cv_sys_max_cmd_len
  5541. : ${CP="cp -f"}
  5542. : ${MV="mv -f"}
  5543. : ${RM="rm -f"}
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5545. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5546. # Try some XSI features
  5547. xsi_shell=no
  5548. ( _lt_dummy="a/b/c"
  5549. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5550. = c,a/b,b/c, \
  5551. && eval 'test $(( 1 + 1 )) -eq 2 \
  5552. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5553. && xsi_shell=yes
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5555. $as_echo "$xsi_shell" >&6; }
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5557. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5558. lt_shell_append=no
  5559. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5560. >/dev/null 2>&1 \
  5561. && lt_shell_append=yes
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5563. $as_echo "$lt_shell_append" >&6; }
  5564. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5565. lt_unset=unset
  5566. else
  5567. lt_unset=false
  5568. fi
  5569. # test EBCDIC or ASCII
  5570. case `echo X|tr X '\101'` in
  5571. A) # ASCII based system
  5572. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5573. lt_SP2NL='tr \040 \012'
  5574. lt_NL2SP='tr \015\012 \040\040'
  5575. ;;
  5576. *) # EBCDIC based system
  5577. lt_SP2NL='tr \100 \n'
  5578. lt_NL2SP='tr \r\n \100\100'
  5579. ;;
  5580. esac
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5582. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5583. if ${lt_cv_to_host_file_cmd+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. case $host in
  5587. *-*-mingw* )
  5588. case $build in
  5589. *-*-mingw* ) # actually msys
  5590. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5591. ;;
  5592. *-*-cygwin* )
  5593. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5594. ;;
  5595. * ) # otherwise, assume *nix
  5596. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5597. ;;
  5598. esac
  5599. ;;
  5600. *-*-cygwin* )
  5601. case $build in
  5602. *-*-mingw* ) # actually msys
  5603. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5604. ;;
  5605. *-*-cygwin* )
  5606. lt_cv_to_host_file_cmd=func_convert_file_noop
  5607. ;;
  5608. * ) # otherwise, assume *nix
  5609. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5610. ;;
  5611. esac
  5612. ;;
  5613. * ) # unhandled hosts (and "normal" native builds)
  5614. lt_cv_to_host_file_cmd=func_convert_file_noop
  5615. ;;
  5616. esac
  5617. fi
  5618. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5620. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5622. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5623. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. #assume ordinary cross tools, or native build.
  5627. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5628. case $host in
  5629. *-*-mingw* )
  5630. case $build in
  5631. *-*-mingw* ) # actually msys
  5632. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5633. ;;
  5634. esac
  5635. ;;
  5636. esac
  5637. fi
  5638. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5640. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5642. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5643. if ${lt_cv_ld_reload_flag+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. lt_cv_ld_reload_flag='-r'
  5647. fi
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5649. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5650. reload_flag=$lt_cv_ld_reload_flag
  5651. case $reload_flag in
  5652. "" | " "*) ;;
  5653. *) reload_flag=" $reload_flag" ;;
  5654. esac
  5655. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5656. case $host_os in
  5657. cygwin* | mingw* | pw32* | cegcc*)
  5658. if test "$GCC" != yes; then
  5659. reload_cmds=false
  5660. fi
  5661. ;;
  5662. darwin*)
  5663. if test "$GCC" = yes; then
  5664. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5665. else
  5666. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5667. fi
  5668. ;;
  5669. esac
  5670. if test -n "$ac_tool_prefix"; then
  5671. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5672. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$OBJDUMP"; then
  5679. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5688. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. OBJDUMP=$ac_cv_prog_OBJDUMP
  5698. if test -n "$OBJDUMP"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5700. $as_echo "$OBJDUMP" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. fi
  5706. if test -z "$ac_cv_prog_OBJDUMP"; then
  5707. ac_ct_OBJDUMP=$OBJDUMP
  5708. # Extract the first word of "objdump", so it can be a program name with args.
  5709. set dummy objdump; ac_word=$2
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$ac_ct_OBJDUMP"; then
  5716. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5725. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5735. if test -n "$ac_ct_OBJDUMP"; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5737. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5738. else
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. if test "x$ac_ct_OBJDUMP" = x; then
  5743. OBJDUMP="false"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. OBJDUMP=$ac_ct_OBJDUMP
  5752. fi
  5753. else
  5754. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5755. fi
  5756. test -z "$OBJDUMP" && OBJDUMP=objdump
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5758. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5759. if ${lt_cv_deplibs_check_method+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5763. lt_cv_file_magic_test_file=
  5764. lt_cv_deplibs_check_method='unknown'
  5765. # Need to set the preceding variable on all platforms that support
  5766. # interlibrary dependencies.
  5767. # 'none' -- dependencies not supported.
  5768. # `unknown' -- same as none, but documents that we really don't know.
  5769. # 'pass_all' -- all dependencies passed with no checks.
  5770. # 'test_compile' -- check by making test program.
  5771. # 'file_magic [[regex]]' -- check by looking for files in library path
  5772. # which responds to the $file_magic_cmd with a given extended regex.
  5773. # If you have `file' or equivalent on your system and you're not sure
  5774. # whether `pass_all' will *always* work, you probably want this one.
  5775. case $host_os in
  5776. aix[4-9]*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. beos*)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. bsdi[45]*)
  5783. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5784. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5785. lt_cv_file_magic_test_file=/shlib/libc.so
  5786. ;;
  5787. cygwin*)
  5788. # func_win32_libid is a shell function defined in ltmain.sh
  5789. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5790. lt_cv_file_magic_cmd='func_win32_libid'
  5791. ;;
  5792. mingw* | pw32*)
  5793. # Base MSYS/MinGW do not provide the 'file' command needed by
  5794. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5795. # unless we find 'file', for example because we are cross-compiling.
  5796. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5797. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5798. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5799. lt_cv_file_magic_cmd='func_win32_libid'
  5800. else
  5801. # Keep this pattern in sync with the one in func_win32_libid.
  5802. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5803. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5804. fi
  5805. ;;
  5806. cegcc*)
  5807. # use the weaker test based on 'objdump'. See mingw*.
  5808. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5809. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5810. ;;
  5811. darwin* | rhapsody*)
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. freebsd* | dragonfly*)
  5815. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5816. case $host_cpu in
  5817. i*86 )
  5818. # Not sure whether the presence of OpenBSD here was a mistake.
  5819. # Let's accept both of them until this is cleared up.
  5820. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5821. lt_cv_file_magic_cmd=/usr/bin/file
  5822. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5823. ;;
  5824. esac
  5825. else
  5826. lt_cv_deplibs_check_method=pass_all
  5827. fi
  5828. ;;
  5829. gnu*)
  5830. lt_cv_deplibs_check_method=pass_all
  5831. ;;
  5832. haiku*)
  5833. lt_cv_deplibs_check_method=pass_all
  5834. ;;
  5835. hpux10.20* | hpux11*)
  5836. lt_cv_file_magic_cmd=/usr/bin/file
  5837. case $host_cpu in
  5838. ia64*)
  5839. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5840. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5841. ;;
  5842. hppa*64*)
  5843. 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]'
  5844. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5845. ;;
  5846. *)
  5847. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5848. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5849. ;;
  5850. esac
  5851. ;;
  5852. interix[3-9]*)
  5853. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5854. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5855. ;;
  5856. irix5* | irix6* | nonstopux*)
  5857. case $LD in
  5858. *-32|*"-32 ") libmagic=32-bit;;
  5859. *-n32|*"-n32 ") libmagic=N32;;
  5860. *-64|*"-64 ") libmagic=64-bit;;
  5861. *) libmagic=never-match;;
  5862. esac
  5863. lt_cv_deplibs_check_method=pass_all
  5864. ;;
  5865. # This must be glibc/ELF.
  5866. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5867. lt_cv_deplibs_check_method=pass_all
  5868. ;;
  5869. netbsd*)
  5870. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5871. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5872. else
  5873. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5874. fi
  5875. ;;
  5876. newos6*)
  5877. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5878. lt_cv_file_magic_cmd=/usr/bin/file
  5879. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5880. ;;
  5881. *nto* | *qnx*)
  5882. lt_cv_deplibs_check_method=pass_all
  5883. ;;
  5884. openbsd*)
  5885. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5886. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5887. else
  5888. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5889. fi
  5890. ;;
  5891. osf3* | osf4* | osf5*)
  5892. lt_cv_deplibs_check_method=pass_all
  5893. ;;
  5894. rdos*)
  5895. lt_cv_deplibs_check_method=pass_all
  5896. ;;
  5897. solaris*)
  5898. lt_cv_deplibs_check_method=pass_all
  5899. ;;
  5900. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5901. lt_cv_deplibs_check_method=pass_all
  5902. ;;
  5903. sysv4 | sysv4.3*)
  5904. case $host_vendor in
  5905. motorola)
  5906. 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]'
  5907. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5908. ;;
  5909. ncr)
  5910. lt_cv_deplibs_check_method=pass_all
  5911. ;;
  5912. sequent)
  5913. lt_cv_file_magic_cmd='/bin/file'
  5914. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5915. ;;
  5916. sni)
  5917. lt_cv_file_magic_cmd='/bin/file'
  5918. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5919. lt_cv_file_magic_test_file=/lib/libc.so
  5920. ;;
  5921. siemens)
  5922. lt_cv_deplibs_check_method=pass_all
  5923. ;;
  5924. pc)
  5925. lt_cv_deplibs_check_method=pass_all
  5926. ;;
  5927. esac
  5928. ;;
  5929. tpf*)
  5930. lt_cv_deplibs_check_method=pass_all
  5931. ;;
  5932. esac
  5933. fi
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5935. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5936. file_magic_glob=
  5937. want_nocaseglob=no
  5938. if test "$build" = "$host"; then
  5939. case $host_os in
  5940. mingw* | pw32*)
  5941. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5942. want_nocaseglob=yes
  5943. else
  5944. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5945. fi
  5946. ;;
  5947. esac
  5948. fi
  5949. file_magic_cmd=$lt_cv_file_magic_cmd
  5950. deplibs_check_method=$lt_cv_deplibs_check_method
  5951. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$DLLTOOL"; then
  5961. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. DLLTOOL=$ac_cv_prog_DLLTOOL
  5980. if test -n "$DLLTOOL"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5982. $as_echo "$DLLTOOL" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. fi
  5988. if test -z "$ac_cv_prog_DLLTOOL"; then
  5989. ac_ct_DLLTOOL=$DLLTOOL
  5990. # Extract the first word of "dlltool", so it can be a program name with args.
  5991. set dummy dlltool; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_DLLTOOL"; then
  5998. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6007. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6017. if test -n "$ac_ct_DLLTOOL"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6019. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. if test "x$ac_ct_DLLTOOL" = x; then
  6025. DLLTOOL="false"
  6026. else
  6027. case $cross_compiling:$ac_tool_warned in
  6028. yes:)
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6031. ac_tool_warned=yes ;;
  6032. esac
  6033. DLLTOOL=$ac_ct_DLLTOOL
  6034. fi
  6035. else
  6036. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6037. fi
  6038. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6040. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6041. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6042. $as_echo_n "(cached) " >&6
  6043. else
  6044. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6045. case $host_os in
  6046. cygwin* | mingw* | pw32* | cegcc*)
  6047. # two different shell functions defined in ltmain.sh
  6048. # decide which to use based on capabilities of $DLLTOOL
  6049. case `$DLLTOOL --help 2>&1` in
  6050. *--identify-strict*)
  6051. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6052. ;;
  6053. *)
  6054. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6055. ;;
  6056. esac
  6057. ;;
  6058. *)
  6059. # fallback: assume linklib IS sharedlib
  6060. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6061. ;;
  6062. esac
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6065. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6066. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6067. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6068. if test -n "$ac_tool_prefix"; then
  6069. for ac_prog in ar
  6070. do
  6071. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6072. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6074. $as_echo_n "checking for $ac_word... " >&6; }
  6075. if ${ac_cv_prog_AR+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. if test -n "$AR"; then
  6079. ac_cv_prog_AR="$AR" # Let the user override the test.
  6080. else
  6081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6082. for as_dir in $PATH
  6083. do
  6084. IFS=$as_save_IFS
  6085. test -z "$as_dir" && as_dir=.
  6086. for ac_exec_ext in '' $ac_executable_extensions; do
  6087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6088. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6090. break 2
  6091. fi
  6092. done
  6093. done
  6094. IFS=$as_save_IFS
  6095. fi
  6096. fi
  6097. AR=$ac_cv_prog_AR
  6098. if test -n "$AR"; then
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6100. $as_echo "$AR" >&6; }
  6101. else
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6103. $as_echo "no" >&6; }
  6104. fi
  6105. test -n "$AR" && break
  6106. done
  6107. fi
  6108. if test -z "$AR"; then
  6109. ac_ct_AR=$AR
  6110. for ac_prog in ar
  6111. do
  6112. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6113. set dummy $ac_prog; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. if test -n "$ac_ct_AR"; then
  6120. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6121. else
  6122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123. for as_dir in $PATH
  6124. do
  6125. IFS=$as_save_IFS
  6126. test -z "$as_dir" && as_dir=.
  6127. for ac_exec_ext in '' $ac_executable_extensions; do
  6128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6129. ac_cv_prog_ac_ct_AR="$ac_prog"
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131. break 2
  6132. fi
  6133. done
  6134. done
  6135. IFS=$as_save_IFS
  6136. fi
  6137. fi
  6138. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6139. if test -n "$ac_ct_AR"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6141. $as_echo "$ac_ct_AR" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. test -n "$ac_ct_AR" && break
  6147. done
  6148. if test "x$ac_ct_AR" = x; then
  6149. AR="false"
  6150. else
  6151. case $cross_compiling:$ac_tool_warned in
  6152. yes:)
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6154. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6155. ac_tool_warned=yes ;;
  6156. esac
  6157. AR=$ac_ct_AR
  6158. fi
  6159. fi
  6160. : ${AR=ar}
  6161. : ${AR_FLAGS=cru}
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6163. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6164. if ${lt_cv_ar_at_file+:} false; then :
  6165. $as_echo_n "(cached) " >&6
  6166. else
  6167. lt_cv_ar_at_file=no
  6168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6169. /* end confdefs.h. */
  6170. int
  6171. main ()
  6172. {
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. if ac_fn_c_try_compile "$LINENO"; then :
  6178. echo conftest.$ac_objext > conftest.lst
  6179. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6180. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6181. (eval $lt_ar_try) 2>&5
  6182. ac_status=$?
  6183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6184. test $ac_status = 0; }
  6185. if test "$ac_status" -eq 0; then
  6186. # Ensure the archiver fails upon bogus file names.
  6187. rm -f conftest.$ac_objext libconftest.a
  6188. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6189. (eval $lt_ar_try) 2>&5
  6190. ac_status=$?
  6191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6192. test $ac_status = 0; }
  6193. if test "$ac_status" -ne 0; then
  6194. lt_cv_ar_at_file=@
  6195. fi
  6196. fi
  6197. rm -f conftest.* libconftest.a
  6198. fi
  6199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6200. fi
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6202. $as_echo "$lt_cv_ar_at_file" >&6; }
  6203. if test "x$lt_cv_ar_at_file" = xno; then
  6204. archiver_list_spec=
  6205. else
  6206. archiver_list_spec=$lt_cv_ar_at_file
  6207. fi
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if ${ac_cv_prog_STRIP+:} false; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$STRIP"; then
  6217. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6226. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. STRIP=$ac_cv_prog_STRIP
  6236. if test -n "$STRIP"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6238. $as_echo "$STRIP" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_STRIP"; then
  6245. ac_ct_STRIP=$STRIP
  6246. # Extract the first word of "strip", so it can be a program name with args.
  6247. set dummy strip; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$ac_ct_STRIP"; then
  6254. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6263. ac_cv_prog_ac_ct_STRIP="strip"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6273. if test -n "$ac_ct_STRIP"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6275. $as_echo "$ac_ct_STRIP" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_STRIP" = x; then
  6281. STRIP=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6287. ac_tool_warned=yes ;;
  6288. esac
  6289. STRIP=$ac_ct_STRIP
  6290. fi
  6291. else
  6292. STRIP="$ac_cv_prog_STRIP"
  6293. fi
  6294. test -z "$STRIP" && STRIP=:
  6295. if test -n "$ac_tool_prefix"; then
  6296. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6297. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6299. $as_echo_n "checking for $ac_word... " >&6; }
  6300. if ${ac_cv_prog_RANLIB+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. if test -n "$RANLIB"; then
  6304. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6305. else
  6306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6307. for as_dir in $PATH
  6308. do
  6309. IFS=$as_save_IFS
  6310. test -z "$as_dir" && as_dir=.
  6311. for ac_exec_ext in '' $ac_executable_extensions; do
  6312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6313. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6315. break 2
  6316. fi
  6317. done
  6318. done
  6319. IFS=$as_save_IFS
  6320. fi
  6321. fi
  6322. RANLIB=$ac_cv_prog_RANLIB
  6323. if test -n "$RANLIB"; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6325. $as_echo "$RANLIB" >&6; }
  6326. else
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6328. $as_echo "no" >&6; }
  6329. fi
  6330. fi
  6331. if test -z "$ac_cv_prog_RANLIB"; then
  6332. ac_ct_RANLIB=$RANLIB
  6333. # Extract the first word of "ranlib", so it can be a program name with args.
  6334. set dummy ranlib; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$ac_ct_RANLIB"; then
  6341. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6350. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6360. if test -n "$ac_ct_RANLIB"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6362. $as_echo "$ac_ct_RANLIB" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. if test "x$ac_ct_RANLIB" = x; then
  6368. RANLIB=":"
  6369. else
  6370. case $cross_compiling:$ac_tool_warned in
  6371. yes:)
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6374. ac_tool_warned=yes ;;
  6375. esac
  6376. RANLIB=$ac_ct_RANLIB
  6377. fi
  6378. else
  6379. RANLIB="$ac_cv_prog_RANLIB"
  6380. fi
  6381. test -z "$RANLIB" && RANLIB=:
  6382. # Determine commands to create old-style static archives.
  6383. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6384. old_postinstall_cmds='chmod 644 $oldlib'
  6385. old_postuninstall_cmds=
  6386. if test -n "$RANLIB"; then
  6387. case $host_os in
  6388. openbsd*)
  6389. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6390. ;;
  6391. *)
  6392. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6393. ;;
  6394. esac
  6395. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6396. fi
  6397. case $host_os in
  6398. darwin*)
  6399. lock_old_archive_extraction=yes ;;
  6400. *)
  6401. lock_old_archive_extraction=no ;;
  6402. esac
  6403. # If no C compiler was specified, use CC.
  6404. LTCC=${LTCC-"$CC"}
  6405. # If no C compiler flags were specified, use CFLAGS.
  6406. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6407. # Allow CC to be a program name with arguments.
  6408. compiler=$CC
  6409. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6411. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6412. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. # These are sane defaults that work on at least a few old systems.
  6416. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6417. # Character class describing NM global symbol codes.
  6418. symcode='[BCDEGRST]'
  6419. # Regexp to match symbols that can be accessed directly from C.
  6420. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6421. # Define system-specific variables.
  6422. case $host_os in
  6423. aix*)
  6424. symcode='[BCDT]'
  6425. ;;
  6426. cygwin* | mingw* | pw32* | cegcc*)
  6427. symcode='[ABCDGISTW]'
  6428. ;;
  6429. hpux*)
  6430. if test "$host_cpu" = ia64; then
  6431. symcode='[ABCDEGRST]'
  6432. fi
  6433. ;;
  6434. irix* | nonstopux*)
  6435. symcode='[BCDEGRST]'
  6436. ;;
  6437. osf*)
  6438. symcode='[BCDEGQRST]'
  6439. ;;
  6440. solaris*)
  6441. symcode='[BDRT]'
  6442. ;;
  6443. sco3.2v5*)
  6444. symcode='[DT]'
  6445. ;;
  6446. sysv4.2uw2*)
  6447. symcode='[DT]'
  6448. ;;
  6449. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6450. symcode='[ABDT]'
  6451. ;;
  6452. sysv4)
  6453. symcode='[DFNSTU]'
  6454. ;;
  6455. esac
  6456. # If we're using GNU nm, then use its standard symbol codes.
  6457. case `$NM -V 2>&1` in
  6458. *GNU* | *'with BFD'*)
  6459. symcode='[ABCDGIRSTW]' ;;
  6460. esac
  6461. # Transform an extracted symbol line into a proper C declaration.
  6462. # Some systems (esp. on ia64) link data and code symbols differently,
  6463. # so use this general approach.
  6464. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6465. # Transform an extracted symbol line into symbol name and symbol address
  6466. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6467. 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'"
  6468. # Handle CRLF in mingw tool chain
  6469. opt_cr=
  6470. case $build_os in
  6471. mingw*)
  6472. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6473. ;;
  6474. esac
  6475. # Try without a prefix underscore, then with it.
  6476. for ac_symprfx in "" "_"; do
  6477. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6478. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6479. # Write the raw and C identifiers.
  6480. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6481. # Fake it for dumpbin and say T for any non-static function
  6482. # and D for any global variable.
  6483. # Also find C++ and __fastcall symbols from MSVC++,
  6484. # which start with @ or ?.
  6485. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6486. " {last_section=section; section=\$ 3};"\
  6487. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6488. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6489. " \$ 0!~/External *\|/{next};"\
  6490. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6491. " {if(hide[section]) next};"\
  6492. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6493. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6494. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6495. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6496. " ' prfx=^$ac_symprfx"
  6497. else
  6498. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6499. fi
  6500. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6501. # Check to see that the pipe works correctly.
  6502. pipe_works=no
  6503. rm -f conftest*
  6504. cat > conftest.$ac_ext <<_LT_EOF
  6505. #ifdef __cplusplus
  6506. extern "C" {
  6507. #endif
  6508. char nm_test_var;
  6509. void nm_test_func(void);
  6510. void nm_test_func(void){}
  6511. #ifdef __cplusplus
  6512. }
  6513. #endif
  6514. int main(){nm_test_var='a';nm_test_func();return(0);}
  6515. _LT_EOF
  6516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6517. (eval $ac_compile) 2>&5
  6518. ac_status=$?
  6519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6520. test $ac_status = 0; }; then
  6521. # Now try to grab the symbols.
  6522. nlist=conftest.nm
  6523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6524. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6525. ac_status=$?
  6526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6527. test $ac_status = 0; } && test -s "$nlist"; then
  6528. # Try sorting and uniquifying the output.
  6529. if sort "$nlist" | uniq > "$nlist"T; then
  6530. mv -f "$nlist"T "$nlist"
  6531. else
  6532. rm -f "$nlist"T
  6533. fi
  6534. # Make sure that we snagged all the symbols we need.
  6535. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6536. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6537. cat <<_LT_EOF > conftest.$ac_ext
  6538. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6539. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6540. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6541. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6542. # define LT_DLSYM_CONST
  6543. #elif defined(__osf__)
  6544. /* This system does not cope well with relocations in const data. */
  6545. # define LT_DLSYM_CONST
  6546. #else
  6547. # define LT_DLSYM_CONST const
  6548. #endif
  6549. #ifdef __cplusplus
  6550. extern "C" {
  6551. #endif
  6552. _LT_EOF
  6553. # Now generate the symbol file.
  6554. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6555. cat <<_LT_EOF >> conftest.$ac_ext
  6556. /* The mapping between symbol names and symbols. */
  6557. LT_DLSYM_CONST struct {
  6558. const char *name;
  6559. void *address;
  6560. }
  6561. lt__PROGRAM__LTX_preloaded_symbols[] =
  6562. {
  6563. { "@PROGRAM@", (void *) 0 },
  6564. _LT_EOF
  6565. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6566. cat <<\_LT_EOF >> conftest.$ac_ext
  6567. {0, (void *) 0}
  6568. };
  6569. /* This works around a problem in FreeBSD linker */
  6570. #ifdef FREEBSD_WORKAROUND
  6571. static const void *lt_preloaded_setup() {
  6572. return lt__PROGRAM__LTX_preloaded_symbols;
  6573. }
  6574. #endif
  6575. #ifdef __cplusplus
  6576. }
  6577. #endif
  6578. _LT_EOF
  6579. # Now try linking the two files.
  6580. mv conftest.$ac_objext conftstm.$ac_objext
  6581. lt_globsym_save_LIBS=$LIBS
  6582. lt_globsym_save_CFLAGS=$CFLAGS
  6583. LIBS="conftstm.$ac_objext"
  6584. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6586. (eval $ac_link) 2>&5
  6587. ac_status=$?
  6588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6589. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6590. pipe_works=yes
  6591. fi
  6592. LIBS=$lt_globsym_save_LIBS
  6593. CFLAGS=$lt_globsym_save_CFLAGS
  6594. else
  6595. echo "cannot find nm_test_func in $nlist" >&5
  6596. fi
  6597. else
  6598. echo "cannot find nm_test_var in $nlist" >&5
  6599. fi
  6600. else
  6601. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6602. fi
  6603. else
  6604. echo "$progname: failed program was:" >&5
  6605. cat conftest.$ac_ext >&5
  6606. fi
  6607. rm -rf conftest* conftst*
  6608. # Do not use the global_symbol_pipe unless it works.
  6609. if test "$pipe_works" = yes; then
  6610. break
  6611. else
  6612. lt_cv_sys_global_symbol_pipe=
  6613. fi
  6614. done
  6615. fi
  6616. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6617. lt_cv_sys_global_symbol_to_cdecl=
  6618. fi
  6619. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6621. $as_echo "failed" >&6; }
  6622. else
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6624. $as_echo "ok" >&6; }
  6625. fi
  6626. # Response file support.
  6627. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6628. nm_file_list_spec='@'
  6629. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6630. nm_file_list_spec='@'
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6633. $as_echo_n "checking for sysroot... " >&6; }
  6634. # Check whether --with-sysroot was given.
  6635. if test "${with_sysroot+set}" = set; then :
  6636. withval=$with_sysroot;
  6637. else
  6638. with_sysroot=no
  6639. fi
  6640. lt_sysroot=
  6641. case ${with_sysroot} in #(
  6642. yes)
  6643. if test "$GCC" = yes; then
  6644. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6645. fi
  6646. ;; #(
  6647. /*)
  6648. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6649. ;; #(
  6650. no|'')
  6651. ;; #(
  6652. *)
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6654. $as_echo "${with_sysroot}" >&6; }
  6655. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6656. ;;
  6657. esac
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6659. $as_echo "${lt_sysroot:-no}" >&6; }
  6660. # Check whether --enable-libtool-lock was given.
  6661. if test "${enable_libtool_lock+set}" = set; then :
  6662. enableval=$enable_libtool_lock;
  6663. fi
  6664. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6665. # Some flags need to be propagated to the compiler or linker for good
  6666. # libtool support.
  6667. case $host in
  6668. ia64-*-hpux*)
  6669. # Find out which ABI we are using.
  6670. echo 'int i;' > conftest.$ac_ext
  6671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6672. (eval $ac_compile) 2>&5
  6673. ac_status=$?
  6674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6675. test $ac_status = 0; }; then
  6676. case `/usr/bin/file conftest.$ac_objext` in
  6677. *ELF-32*)
  6678. HPUX_IA64_MODE="32"
  6679. ;;
  6680. *ELF-64*)
  6681. HPUX_IA64_MODE="64"
  6682. ;;
  6683. esac
  6684. fi
  6685. rm -rf conftest*
  6686. ;;
  6687. *-*-irix6*)
  6688. # Find out which ABI we are using.
  6689. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6690. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6691. (eval $ac_compile) 2>&5
  6692. ac_status=$?
  6693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6694. test $ac_status = 0; }; then
  6695. if test "$lt_cv_prog_gnu_ld" = yes; then
  6696. case `/usr/bin/file conftest.$ac_objext` in
  6697. *32-bit*)
  6698. LD="${LD-ld} -melf32bsmip"
  6699. ;;
  6700. *N32*)
  6701. LD="${LD-ld} -melf32bmipn32"
  6702. ;;
  6703. *64-bit*)
  6704. LD="${LD-ld} -melf64bmip"
  6705. ;;
  6706. esac
  6707. else
  6708. case `/usr/bin/file conftest.$ac_objext` in
  6709. *32-bit*)
  6710. LD="${LD-ld} -32"
  6711. ;;
  6712. *N32*)
  6713. LD="${LD-ld} -n32"
  6714. ;;
  6715. *64-bit*)
  6716. LD="${LD-ld} -64"
  6717. ;;
  6718. esac
  6719. fi
  6720. fi
  6721. rm -rf conftest*
  6722. ;;
  6723. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6724. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6725. # Find out which ABI we are using.
  6726. echo 'int i;' > conftest.$ac_ext
  6727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6728. (eval $ac_compile) 2>&5
  6729. ac_status=$?
  6730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6731. test $ac_status = 0; }; then
  6732. case `/usr/bin/file conftest.o` in
  6733. *32-bit*)
  6734. case $host in
  6735. x86_64-*kfreebsd*-gnu)
  6736. LD="${LD-ld} -m elf_i386_fbsd"
  6737. ;;
  6738. x86_64-*linux*)
  6739. LD="${LD-ld} -m elf_i386"
  6740. ;;
  6741. ppc64-*linux*|powerpc64-*linux*)
  6742. LD="${LD-ld} -m elf32ppclinux"
  6743. ;;
  6744. s390x-*linux*)
  6745. LD="${LD-ld} -m elf_s390"
  6746. ;;
  6747. sparc64-*linux*)
  6748. LD="${LD-ld} -m elf32_sparc"
  6749. ;;
  6750. esac
  6751. ;;
  6752. *64-bit*)
  6753. case $host in
  6754. x86_64-*kfreebsd*-gnu)
  6755. LD="${LD-ld} -m elf_x86_64_fbsd"
  6756. ;;
  6757. x86_64-*linux*)
  6758. LD="${LD-ld} -m elf_x86_64"
  6759. ;;
  6760. ppc*-*linux*|powerpc*-*linux*)
  6761. LD="${LD-ld} -m elf64ppc"
  6762. ;;
  6763. s390*-*linux*|s390*-*tpf*)
  6764. LD="${LD-ld} -m elf64_s390"
  6765. ;;
  6766. sparc*-*linux*)
  6767. LD="${LD-ld} -m elf64_sparc"
  6768. ;;
  6769. esac
  6770. ;;
  6771. esac
  6772. fi
  6773. rm -rf conftest*
  6774. ;;
  6775. *-*-sco3.2v5*)
  6776. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6777. SAVE_CFLAGS="$CFLAGS"
  6778. CFLAGS="$CFLAGS -belf"
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6780. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6781. if ${lt_cv_cc_needs_belf+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. ac_ext=c
  6785. ac_cpp='$CPP $CPPFLAGS'
  6786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6790. /* end confdefs.h. */
  6791. int
  6792. main ()
  6793. {
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. if ac_fn_c_try_link "$LINENO"; then :
  6799. lt_cv_cc_needs_belf=yes
  6800. else
  6801. lt_cv_cc_needs_belf=no
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext \
  6804. conftest$ac_exeext conftest.$ac_ext
  6805. ac_ext=c
  6806. ac_cpp='$CPP $CPPFLAGS'
  6807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6810. fi
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6812. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6813. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6814. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6815. CFLAGS="$SAVE_CFLAGS"
  6816. fi
  6817. ;;
  6818. *-*solaris*)
  6819. # Find out which ABI we are using.
  6820. echo 'int i;' > conftest.$ac_ext
  6821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6822. (eval $ac_compile) 2>&5
  6823. ac_status=$?
  6824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6825. test $ac_status = 0; }; then
  6826. case `/usr/bin/file conftest.o` in
  6827. *64-bit*)
  6828. case $lt_cv_prog_gnu_ld in
  6829. yes*)
  6830. case $host in
  6831. i?86-*-solaris*)
  6832. LD="${LD-ld} -m elf_x86_64"
  6833. ;;
  6834. sparc*-*-solaris*)
  6835. LD="${LD-ld} -m elf64_sparc"
  6836. ;;
  6837. esac
  6838. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6839. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6840. LD="${LD-ld}_sol2"
  6841. fi
  6842. ;;
  6843. *)
  6844. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6845. LD="${LD-ld} -64"
  6846. fi
  6847. ;;
  6848. esac
  6849. ;;
  6850. esac
  6851. fi
  6852. rm -rf conftest*
  6853. ;;
  6854. esac
  6855. need_locks="$enable_libtool_lock"
  6856. if test -n "$ac_tool_prefix"; then
  6857. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6858. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6860. $as_echo_n "checking for $ac_word... " >&6; }
  6861. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. if test -n "$MANIFEST_TOOL"; then
  6865. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6866. else
  6867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6868. for as_dir in $PATH
  6869. do
  6870. IFS=$as_save_IFS
  6871. test -z "$as_dir" && as_dir=.
  6872. for ac_exec_ext in '' $ac_executable_extensions; do
  6873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6874. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6876. break 2
  6877. fi
  6878. done
  6879. done
  6880. IFS=$as_save_IFS
  6881. fi
  6882. fi
  6883. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6884. if test -n "$MANIFEST_TOOL"; then
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6886. $as_echo "$MANIFEST_TOOL" >&6; }
  6887. else
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6889. $as_echo "no" >&6; }
  6890. fi
  6891. fi
  6892. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6893. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6894. # Extract the first word of "mt", so it can be a program name with args.
  6895. set dummy mt; ac_word=$2
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6897. $as_echo_n "checking for $ac_word... " >&6; }
  6898. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6902. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6903. else
  6904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6905. for as_dir in $PATH
  6906. do
  6907. IFS=$as_save_IFS
  6908. test -z "$as_dir" && as_dir=.
  6909. for ac_exec_ext in '' $ac_executable_extensions; do
  6910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6911. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6913. break 2
  6914. fi
  6915. done
  6916. done
  6917. IFS=$as_save_IFS
  6918. fi
  6919. fi
  6920. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6921. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6923. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6924. else
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6926. $as_echo "no" >&6; }
  6927. fi
  6928. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6929. MANIFEST_TOOL=":"
  6930. else
  6931. case $cross_compiling:$ac_tool_warned in
  6932. yes:)
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6935. ac_tool_warned=yes ;;
  6936. esac
  6937. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6938. fi
  6939. else
  6940. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6941. fi
  6942. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6944. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6945. if ${lt_cv_path_mainfest_tool+:} false; then :
  6946. $as_echo_n "(cached) " >&6
  6947. else
  6948. lt_cv_path_mainfest_tool=no
  6949. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6950. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6951. cat conftest.err >&5
  6952. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6953. lt_cv_path_mainfest_tool=yes
  6954. fi
  6955. rm -f conftest*
  6956. fi
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6958. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6959. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6960. MANIFEST_TOOL=:
  6961. fi
  6962. case $host_os in
  6963. rhapsody* | darwin*)
  6964. if test -n "$ac_tool_prefix"; then
  6965. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6966. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6968. $as_echo_n "checking for $ac_word... " >&6; }
  6969. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6970. $as_echo_n "(cached) " >&6
  6971. else
  6972. if test -n "$DSYMUTIL"; then
  6973. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6974. else
  6975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6976. for as_dir in $PATH
  6977. do
  6978. IFS=$as_save_IFS
  6979. test -z "$as_dir" && as_dir=.
  6980. for ac_exec_ext in '' $ac_executable_extensions; do
  6981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6982. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6984. break 2
  6985. fi
  6986. done
  6987. done
  6988. IFS=$as_save_IFS
  6989. fi
  6990. fi
  6991. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6992. if test -n "$DSYMUTIL"; then
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6994. $as_echo "$DSYMUTIL" >&6; }
  6995. else
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6997. $as_echo "no" >&6; }
  6998. fi
  6999. fi
  7000. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7001. ac_ct_DSYMUTIL=$DSYMUTIL
  7002. # Extract the first word of "dsymutil", so it can be a program name with args.
  7003. set dummy dsymutil; ac_word=$2
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7005. $as_echo_n "checking for $ac_word... " >&6; }
  7006. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. if test -n "$ac_ct_DSYMUTIL"; then
  7010. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7011. else
  7012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7013. for as_dir in $PATH
  7014. do
  7015. IFS=$as_save_IFS
  7016. test -z "$as_dir" && as_dir=.
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7029. if test -n "$ac_ct_DSYMUTIL"; then
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7031. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7032. else
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. $as_echo "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_DSYMUTIL" = x; then
  7037. DSYMUTIL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. DSYMUTIL=$ac_ct_DSYMUTIL
  7046. fi
  7047. else
  7048. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. $as_echo_n "checking for $ac_word... " >&6; }
  7055. if ${ac_cv_prog_NMEDIT+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. if test -n "$NMEDIT"; then
  7059. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7060. else
  7061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7062. for as_dir in $PATH
  7063. do
  7064. IFS=$as_save_IFS
  7065. test -z "$as_dir" && as_dir=.
  7066. for ac_exec_ext in '' $ac_executable_extensions; do
  7067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7068. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7070. break 2
  7071. fi
  7072. done
  7073. done
  7074. IFS=$as_save_IFS
  7075. fi
  7076. fi
  7077. NMEDIT=$ac_cv_prog_NMEDIT
  7078. if test -n "$NMEDIT"; then
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7080. $as_echo "$NMEDIT" >&6; }
  7081. else
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7083. $as_echo "no" >&6; }
  7084. fi
  7085. fi
  7086. if test -z "$ac_cv_prog_NMEDIT"; then
  7087. ac_ct_NMEDIT=$NMEDIT
  7088. # Extract the first word of "nmedit", so it can be a program name with args.
  7089. set dummy nmedit; ac_word=$2
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7091. $as_echo_n "checking for $ac_word... " >&6; }
  7092. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7093. $as_echo_n "(cached) " >&6
  7094. else
  7095. if test -n "$ac_ct_NMEDIT"; then
  7096. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7097. else
  7098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7099. for as_dir in $PATH
  7100. do
  7101. IFS=$as_save_IFS
  7102. test -z "$as_dir" && as_dir=.
  7103. for ac_exec_ext in '' $ac_executable_extensions; do
  7104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7105. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7107. break 2
  7108. fi
  7109. done
  7110. done
  7111. IFS=$as_save_IFS
  7112. fi
  7113. fi
  7114. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7115. if test -n "$ac_ct_NMEDIT"; then
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7117. $as_echo "$ac_ct_NMEDIT" >&6; }
  7118. else
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7120. $as_echo "no" >&6; }
  7121. fi
  7122. if test "x$ac_ct_NMEDIT" = x; then
  7123. NMEDIT=":"
  7124. else
  7125. case $cross_compiling:$ac_tool_warned in
  7126. yes:)
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7129. ac_tool_warned=yes ;;
  7130. esac
  7131. NMEDIT=$ac_ct_NMEDIT
  7132. fi
  7133. else
  7134. NMEDIT="$ac_cv_prog_NMEDIT"
  7135. fi
  7136. if test -n "$ac_tool_prefix"; then
  7137. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7138. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7140. $as_echo_n "checking for $ac_word... " >&6; }
  7141. if ${ac_cv_prog_LIPO+:} false; then :
  7142. $as_echo_n "(cached) " >&6
  7143. else
  7144. if test -n "$LIPO"; then
  7145. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7146. else
  7147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7148. for as_dir in $PATH
  7149. do
  7150. IFS=$as_save_IFS
  7151. test -z "$as_dir" && as_dir=.
  7152. for ac_exec_ext in '' $ac_executable_extensions; do
  7153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7154. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7156. break 2
  7157. fi
  7158. done
  7159. done
  7160. IFS=$as_save_IFS
  7161. fi
  7162. fi
  7163. LIPO=$ac_cv_prog_LIPO
  7164. if test -n "$LIPO"; then
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7166. $as_echo "$LIPO" >&6; }
  7167. else
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7169. $as_echo "no" >&6; }
  7170. fi
  7171. fi
  7172. if test -z "$ac_cv_prog_LIPO"; then
  7173. ac_ct_LIPO=$LIPO
  7174. # Extract the first word of "lipo", so it can be a program name with args.
  7175. set dummy lipo; ac_word=$2
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7177. $as_echo_n "checking for $ac_word... " >&6; }
  7178. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. if test -n "$ac_ct_LIPO"; then
  7182. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7183. else
  7184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7185. for as_dir in $PATH
  7186. do
  7187. IFS=$as_save_IFS
  7188. test -z "$as_dir" && as_dir=.
  7189. for ac_exec_ext in '' $ac_executable_extensions; do
  7190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7191. ac_cv_prog_ac_ct_LIPO="lipo"
  7192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7193. break 2
  7194. fi
  7195. done
  7196. done
  7197. IFS=$as_save_IFS
  7198. fi
  7199. fi
  7200. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7201. if test -n "$ac_ct_LIPO"; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7203. $as_echo "$ac_ct_LIPO" >&6; }
  7204. else
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7206. $as_echo "no" >&6; }
  7207. fi
  7208. if test "x$ac_ct_LIPO" = x; then
  7209. LIPO=":"
  7210. else
  7211. case $cross_compiling:$ac_tool_warned in
  7212. yes:)
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7215. ac_tool_warned=yes ;;
  7216. esac
  7217. LIPO=$ac_ct_LIPO
  7218. fi
  7219. else
  7220. LIPO="$ac_cv_prog_LIPO"
  7221. fi
  7222. if test -n "$ac_tool_prefix"; then
  7223. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7224. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7226. $as_echo_n "checking for $ac_word... " >&6; }
  7227. if ${ac_cv_prog_OTOOL+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. if test -n "$OTOOL"; then
  7231. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7232. else
  7233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7234. for as_dir in $PATH
  7235. do
  7236. IFS=$as_save_IFS
  7237. test -z "$as_dir" && as_dir=.
  7238. for ac_exec_ext in '' $ac_executable_extensions; do
  7239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7240. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7242. break 2
  7243. fi
  7244. done
  7245. done
  7246. IFS=$as_save_IFS
  7247. fi
  7248. fi
  7249. OTOOL=$ac_cv_prog_OTOOL
  7250. if test -n "$OTOOL"; then
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7252. $as_echo "$OTOOL" >&6; }
  7253. else
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7255. $as_echo "no" >&6; }
  7256. fi
  7257. fi
  7258. if test -z "$ac_cv_prog_OTOOL"; then
  7259. ac_ct_OTOOL=$OTOOL
  7260. # Extract the first word of "otool", so it can be a program name with args.
  7261. set dummy otool; ac_word=$2
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7263. $as_echo_n "checking for $ac_word... " >&6; }
  7264. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7265. $as_echo_n "(cached) " >&6
  7266. else
  7267. if test -n "$ac_ct_OTOOL"; then
  7268. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7269. else
  7270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7271. for as_dir in $PATH
  7272. do
  7273. IFS=$as_save_IFS
  7274. test -z "$as_dir" && as_dir=.
  7275. for ac_exec_ext in '' $ac_executable_extensions; do
  7276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7277. ac_cv_prog_ac_ct_OTOOL="otool"
  7278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7279. break 2
  7280. fi
  7281. done
  7282. done
  7283. IFS=$as_save_IFS
  7284. fi
  7285. fi
  7286. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7287. if test -n "$ac_ct_OTOOL"; then
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7289. $as_echo "$ac_ct_OTOOL" >&6; }
  7290. else
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7292. $as_echo "no" >&6; }
  7293. fi
  7294. if test "x$ac_ct_OTOOL" = x; then
  7295. OTOOL=":"
  7296. else
  7297. case $cross_compiling:$ac_tool_warned in
  7298. yes:)
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7300. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7301. ac_tool_warned=yes ;;
  7302. esac
  7303. OTOOL=$ac_ct_OTOOL
  7304. fi
  7305. else
  7306. OTOOL="$ac_cv_prog_OTOOL"
  7307. fi
  7308. if test -n "$ac_tool_prefix"; then
  7309. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7310. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7312. $as_echo_n "checking for $ac_word... " >&6; }
  7313. if ${ac_cv_prog_OTOOL64+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. if test -n "$OTOOL64"; then
  7317. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7318. else
  7319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. for as_dir in $PATH
  7321. do
  7322. IFS=$as_save_IFS
  7323. test -z "$as_dir" && as_dir=.
  7324. for ac_exec_ext in '' $ac_executable_extensions; do
  7325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7326. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7328. break 2
  7329. fi
  7330. done
  7331. done
  7332. IFS=$as_save_IFS
  7333. fi
  7334. fi
  7335. OTOOL64=$ac_cv_prog_OTOOL64
  7336. if test -n "$OTOOL64"; then
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7338. $as_echo "$OTOOL64" >&6; }
  7339. else
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7341. $as_echo "no" >&6; }
  7342. fi
  7343. fi
  7344. if test -z "$ac_cv_prog_OTOOL64"; then
  7345. ac_ct_OTOOL64=$OTOOL64
  7346. # Extract the first word of "otool64", so it can be a program name with args.
  7347. set dummy otool64; ac_word=$2
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7349. $as_echo_n "checking for $ac_word... " >&6; }
  7350. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. if test -n "$ac_ct_OTOOL64"; then
  7354. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7355. else
  7356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7357. for as_dir in $PATH
  7358. do
  7359. IFS=$as_save_IFS
  7360. test -z "$as_dir" && as_dir=.
  7361. for ac_exec_ext in '' $ac_executable_extensions; do
  7362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7363. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7365. break 2
  7366. fi
  7367. done
  7368. done
  7369. IFS=$as_save_IFS
  7370. fi
  7371. fi
  7372. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7373. if test -n "$ac_ct_OTOOL64"; then
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7375. $as_echo "$ac_ct_OTOOL64" >&6; }
  7376. else
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7378. $as_echo "no" >&6; }
  7379. fi
  7380. if test "x$ac_ct_OTOOL64" = x; then
  7381. OTOOL64=":"
  7382. else
  7383. case $cross_compiling:$ac_tool_warned in
  7384. yes:)
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7387. ac_tool_warned=yes ;;
  7388. esac
  7389. OTOOL64=$ac_ct_OTOOL64
  7390. fi
  7391. else
  7392. OTOOL64="$ac_cv_prog_OTOOL64"
  7393. fi
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7395. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7396. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. lt_cv_apple_cc_single_mod=no
  7400. if test -z "${LT_MULTI_MODULE}"; then
  7401. # By default we will add the -single_module flag. You can override
  7402. # by either setting the environment variable LT_MULTI_MODULE
  7403. # non-empty at configure time, or by adding -multi_module to the
  7404. # link flags.
  7405. rm -rf libconftest.dylib*
  7406. echo "int foo(void){return 1;}" > conftest.c
  7407. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7408. -dynamiclib -Wl,-single_module conftest.c" >&5
  7409. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7410. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7411. _lt_result=$?
  7412. # If there is a non-empty error log, and "single_module"
  7413. # appears in it, assume the flag caused a linker warning
  7414. if test -s conftest.err && $GREP single_module conftest.err; then
  7415. cat conftest.err >&5
  7416. # Otherwise, if the output was created with a 0 exit code from
  7417. # the compiler, it worked.
  7418. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7419. lt_cv_apple_cc_single_mod=yes
  7420. else
  7421. cat conftest.err >&5
  7422. fi
  7423. rm -rf libconftest.dylib*
  7424. rm -f conftest.*
  7425. fi
  7426. fi
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7428. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7430. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7431. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7432. $as_echo_n "(cached) " >&6
  7433. else
  7434. lt_cv_ld_exported_symbols_list=no
  7435. save_LDFLAGS=$LDFLAGS
  7436. echo "_main" > conftest.sym
  7437. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7439. /* end confdefs.h. */
  7440. int
  7441. main ()
  7442. {
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. if ac_fn_c_try_link "$LINENO"; then :
  7448. lt_cv_ld_exported_symbols_list=yes
  7449. else
  7450. lt_cv_ld_exported_symbols_list=no
  7451. fi
  7452. rm -f core conftest.err conftest.$ac_objext \
  7453. conftest$ac_exeext conftest.$ac_ext
  7454. LDFLAGS="$save_LDFLAGS"
  7455. fi
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7457. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7459. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7460. if ${lt_cv_ld_force_load+:} false; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. lt_cv_ld_force_load=no
  7464. cat > conftest.c << _LT_EOF
  7465. int forced_loaded() { return 2;}
  7466. _LT_EOF
  7467. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7468. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7469. echo "$AR cru libconftest.a conftest.o" >&5
  7470. $AR cru libconftest.a conftest.o 2>&5
  7471. echo "$RANLIB libconftest.a" >&5
  7472. $RANLIB libconftest.a 2>&5
  7473. cat > conftest.c << _LT_EOF
  7474. int main() { return 0;}
  7475. _LT_EOF
  7476. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7477. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7478. _lt_result=$?
  7479. if test -s conftest.err && $GREP force_load conftest.err; then
  7480. cat conftest.err >&5
  7481. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7482. lt_cv_ld_force_load=yes
  7483. else
  7484. cat conftest.err >&5
  7485. fi
  7486. rm -f conftest.err libconftest.a conftest conftest.c
  7487. rm -rf conftest.dSYM
  7488. fi
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7490. $as_echo "$lt_cv_ld_force_load" >&6; }
  7491. case $host_os in
  7492. rhapsody* | darwin1.[012])
  7493. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7494. darwin1.*)
  7495. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7496. darwin*) # darwin 5.x on
  7497. # if running on 10.5 or later, the deployment target defaults
  7498. # to the OS version, if on x86, and 10.4, the deployment
  7499. # target defaults to 10.4. Don't you love it?
  7500. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7501. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7502. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7503. 10.[012]*)
  7504. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7505. 10.*)
  7506. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7507. esac
  7508. ;;
  7509. esac
  7510. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7511. _lt_dar_single_mod='$single_module'
  7512. fi
  7513. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7514. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7515. else
  7516. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7517. fi
  7518. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7519. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7520. else
  7521. _lt_dsymutil=
  7522. fi
  7523. ;;
  7524. esac
  7525. for ac_header in dlfcn.h
  7526. do :
  7527. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7528. "
  7529. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7530. cat >>confdefs.h <<_ACEOF
  7531. #define HAVE_DLFCN_H 1
  7532. _ACEOF
  7533. fi
  7534. done
  7535. func_stripname_cnf ()
  7536. {
  7537. case ${2} in
  7538. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7539. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7540. esac
  7541. } # func_stripname_cnf
  7542. # Set options
  7543. enable_dlopen=no
  7544. enable_win32_dll=no
  7545. # Check whether --enable-shared was given.
  7546. if test "${enable_shared+set}" = set; then :
  7547. enableval=$enable_shared; p=${PACKAGE-default}
  7548. case $enableval in
  7549. yes) enable_shared=yes ;;
  7550. no) enable_shared=no ;;
  7551. *)
  7552. enable_shared=no
  7553. # Look at the argument we got. We use all the common list separators.
  7554. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7555. for pkg in $enableval; do
  7556. IFS="$lt_save_ifs"
  7557. if test "X$pkg" = "X$p"; then
  7558. enable_shared=yes
  7559. fi
  7560. done
  7561. IFS="$lt_save_ifs"
  7562. ;;
  7563. esac
  7564. else
  7565. enable_shared=yes
  7566. fi
  7567. # Check whether --enable-static was given.
  7568. if test "${enable_static+set}" = set; then :
  7569. enableval=$enable_static; p=${PACKAGE-default}
  7570. case $enableval in
  7571. yes) enable_static=yes ;;
  7572. no) enable_static=no ;;
  7573. *)
  7574. enable_static=no
  7575. # Look at the argument we got. We use all the common list separators.
  7576. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7577. for pkg in $enableval; do
  7578. IFS="$lt_save_ifs"
  7579. if test "X$pkg" = "X$p"; then
  7580. enable_static=yes
  7581. fi
  7582. done
  7583. IFS="$lt_save_ifs"
  7584. ;;
  7585. esac
  7586. else
  7587. enable_static=yes
  7588. fi
  7589. # Check whether --with-pic was given.
  7590. if test "${with_pic+set}" = set; then :
  7591. withval=$with_pic; lt_p=${PACKAGE-default}
  7592. case $withval in
  7593. yes|no) pic_mode=$withval ;;
  7594. *)
  7595. pic_mode=default
  7596. # Look at the argument we got. We use all the common list separators.
  7597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7598. for lt_pkg in $withval; do
  7599. IFS="$lt_save_ifs"
  7600. if test "X$lt_pkg" = "X$lt_p"; then
  7601. pic_mode=yes
  7602. fi
  7603. done
  7604. IFS="$lt_save_ifs"
  7605. ;;
  7606. esac
  7607. else
  7608. pic_mode=default
  7609. fi
  7610. test -z "$pic_mode" && pic_mode=default
  7611. # Check whether --enable-fast-install was given.
  7612. if test "${enable_fast_install+set}" = set; then :
  7613. enableval=$enable_fast_install; p=${PACKAGE-default}
  7614. case $enableval in
  7615. yes) enable_fast_install=yes ;;
  7616. no) enable_fast_install=no ;;
  7617. *)
  7618. enable_fast_install=no
  7619. # Look at the argument we got. We use all the common list separators.
  7620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7621. for pkg in $enableval; do
  7622. IFS="$lt_save_ifs"
  7623. if test "X$pkg" = "X$p"; then
  7624. enable_fast_install=yes
  7625. fi
  7626. done
  7627. IFS="$lt_save_ifs"
  7628. ;;
  7629. esac
  7630. else
  7631. enable_fast_install=yes
  7632. fi
  7633. # This can be used to rebuild libtool when needed
  7634. LIBTOOL_DEPS="$ltmain"
  7635. # Always use our own libtool.
  7636. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7637. test -z "$LN_S" && LN_S="ln -s"
  7638. if test -n "${ZSH_VERSION+set}" ; then
  7639. setopt NO_GLOB_SUBST
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7642. $as_echo_n "checking for objdir... " >&6; }
  7643. if ${lt_cv_objdir+:} false; then :
  7644. $as_echo_n "(cached) " >&6
  7645. else
  7646. rm -f .libs 2>/dev/null
  7647. mkdir .libs 2>/dev/null
  7648. if test -d .libs; then
  7649. lt_cv_objdir=.libs
  7650. else
  7651. # MS-DOS does not allow filenames that begin with a dot.
  7652. lt_cv_objdir=_libs
  7653. fi
  7654. rmdir .libs 2>/dev/null
  7655. fi
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7657. $as_echo "$lt_cv_objdir" >&6; }
  7658. objdir=$lt_cv_objdir
  7659. cat >>confdefs.h <<_ACEOF
  7660. #define LT_OBJDIR "$lt_cv_objdir/"
  7661. _ACEOF
  7662. case $host_os in
  7663. aix3*)
  7664. # AIX sometimes has problems with the GCC collect2 program. For some
  7665. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7666. # vanish in a puff of smoke.
  7667. if test "X${COLLECT_NAMES+set}" != Xset; then
  7668. COLLECT_NAMES=
  7669. export COLLECT_NAMES
  7670. fi
  7671. ;;
  7672. esac
  7673. # Global variables:
  7674. ofile=libtool
  7675. can_build_shared=yes
  7676. # All known linkers require a `.a' archive for static linking (except MSVC,
  7677. # which needs '.lib').
  7678. libext=a
  7679. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7680. old_CC="$CC"
  7681. old_CFLAGS="$CFLAGS"
  7682. # Set sane defaults for various variables
  7683. test -z "$CC" && CC=cc
  7684. test -z "$LTCC" && LTCC=$CC
  7685. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7686. test -z "$LD" && LD=ld
  7687. test -z "$ac_objext" && ac_objext=o
  7688. for cc_temp in $compiler""; do
  7689. case $cc_temp in
  7690. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7691. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7692. \-*) ;;
  7693. *) break;;
  7694. esac
  7695. done
  7696. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7697. # Only perform the check for file, if the check method requires it
  7698. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7699. case $deplibs_check_method in
  7700. file_magic*)
  7701. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7703. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7704. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7705. $as_echo_n "(cached) " >&6
  7706. else
  7707. case $MAGIC_CMD in
  7708. [\\/*] | ?:[\\/]*)
  7709. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7710. ;;
  7711. *)
  7712. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7714. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7715. for ac_dir in $ac_dummy; do
  7716. IFS="$lt_save_ifs"
  7717. test -z "$ac_dir" && ac_dir=.
  7718. if test -f $ac_dir/${ac_tool_prefix}file; then
  7719. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7720. if test -n "$file_magic_test_file"; then
  7721. case $deplibs_check_method in
  7722. "file_magic "*)
  7723. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7724. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7725. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7726. $EGREP "$file_magic_regex" > /dev/null; then
  7727. :
  7728. else
  7729. cat <<_LT_EOF 1>&2
  7730. *** Warning: the command libtool uses to detect shared libraries,
  7731. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7732. *** The result is that libtool may fail to recognize shared libraries
  7733. *** as such. This will affect the creation of libtool libraries that
  7734. *** depend on shared libraries, but programs linked with such libtool
  7735. *** libraries will work regardless of this problem. Nevertheless, you
  7736. *** may want to report the problem to your system manager and/or to
  7737. *** bug-libtool@gnu.org
  7738. _LT_EOF
  7739. fi ;;
  7740. esac
  7741. fi
  7742. break
  7743. fi
  7744. done
  7745. IFS="$lt_save_ifs"
  7746. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7747. ;;
  7748. esac
  7749. fi
  7750. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7751. if test -n "$MAGIC_CMD"; then
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7753. $as_echo "$MAGIC_CMD" >&6; }
  7754. else
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7756. $as_echo "no" >&6; }
  7757. fi
  7758. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7759. if test -n "$ac_tool_prefix"; then
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7761. $as_echo_n "checking for file... " >&6; }
  7762. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. case $MAGIC_CMD in
  7766. [\\/*] | ?:[\\/]*)
  7767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7768. ;;
  7769. *)
  7770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7773. for ac_dir in $ac_dummy; do
  7774. IFS="$lt_save_ifs"
  7775. test -z "$ac_dir" && ac_dir=.
  7776. if test -f $ac_dir/file; then
  7777. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7778. if test -n "$file_magic_test_file"; then
  7779. case $deplibs_check_method in
  7780. "file_magic "*)
  7781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7784. $EGREP "$file_magic_regex" > /dev/null; then
  7785. :
  7786. else
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: the command libtool uses to detect shared libraries,
  7789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7790. *** The result is that libtool may fail to recognize shared libraries
  7791. *** as such. This will affect the creation of libtool libraries that
  7792. *** depend on shared libraries, but programs linked with such libtool
  7793. *** libraries will work regardless of this problem. Nevertheless, you
  7794. *** may want to report the problem to your system manager and/or to
  7795. *** bug-libtool@gnu.org
  7796. _LT_EOF
  7797. fi ;;
  7798. esac
  7799. fi
  7800. break
  7801. fi
  7802. done
  7803. IFS="$lt_save_ifs"
  7804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7805. ;;
  7806. esac
  7807. fi
  7808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7809. if test -n "$MAGIC_CMD"; then
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7811. $as_echo "$MAGIC_CMD" >&6; }
  7812. else
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. $as_echo "no" >&6; }
  7815. fi
  7816. else
  7817. MAGIC_CMD=:
  7818. fi
  7819. fi
  7820. fi
  7821. ;;
  7822. esac
  7823. # Use C for the default configuration in the libtool script
  7824. lt_save_CC="$CC"
  7825. ac_ext=c
  7826. ac_cpp='$CPP $CPPFLAGS'
  7827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7830. # Source file extension for C test sources.
  7831. ac_ext=c
  7832. # Object file extension for compiled C test sources.
  7833. objext=o
  7834. objext=$objext
  7835. # Code to be used in simple compile tests
  7836. lt_simple_compile_test_code="int some_variable = 0;"
  7837. # Code to be used in simple link tests
  7838. lt_simple_link_test_code='int main(){return(0);}'
  7839. # If no C compiler was specified, use CC.
  7840. LTCC=${LTCC-"$CC"}
  7841. # If no C compiler flags were specified, use CFLAGS.
  7842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7843. # Allow CC to be a program name with arguments.
  7844. compiler=$CC
  7845. # Save the default compiler, since it gets overwritten when the other
  7846. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7847. compiler_DEFAULT=$CC
  7848. # save warnings/boilerplate of simple test code
  7849. ac_outfile=conftest.$ac_objext
  7850. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7852. _lt_compiler_boilerplate=`cat conftest.err`
  7853. $RM conftest*
  7854. ac_outfile=conftest.$ac_objext
  7855. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7857. _lt_linker_boilerplate=`cat conftest.err`
  7858. $RM -r conftest*
  7859. if test -n "$compiler"; then
  7860. lt_prog_compiler_no_builtin_flag=
  7861. if test "$GCC" = yes; then
  7862. case $cc_basename in
  7863. nvcc*)
  7864. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7865. *)
  7866. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7867. esac
  7868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7869. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7870. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7871. $as_echo_n "(cached) " >&6
  7872. else
  7873. lt_cv_prog_compiler_rtti_exceptions=no
  7874. ac_outfile=conftest.$ac_objext
  7875. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7876. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7877. # Insert the option either (1) after the last *FLAGS variable, or
  7878. # (2) before a word containing "conftest.", or (3) at the end.
  7879. # Note that $ac_compile itself does not contain backslashes and begins
  7880. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7881. # The option is referenced via a variable to avoid confusing sed.
  7882. lt_compile=`echo "$ac_compile" | $SED \
  7883. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7884. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7885. -e 's:$: $lt_compiler_flag:'`
  7886. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7887. (eval "$lt_compile" 2>conftest.err)
  7888. ac_status=$?
  7889. cat conftest.err >&5
  7890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7891. if (exit $ac_status) && test -s "$ac_outfile"; then
  7892. # The compiler can only warn and ignore the option if not recognized
  7893. # So say no if there are warnings other than the usual output.
  7894. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7895. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7896. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7897. lt_cv_prog_compiler_rtti_exceptions=yes
  7898. fi
  7899. fi
  7900. $RM conftest*
  7901. fi
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7903. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7904. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7905. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7906. else
  7907. :
  7908. fi
  7909. fi
  7910. lt_prog_compiler_wl=
  7911. lt_prog_compiler_pic=
  7912. lt_prog_compiler_static=
  7913. if test "$GCC" = yes; then
  7914. lt_prog_compiler_wl='-Wl,'
  7915. lt_prog_compiler_static='-static'
  7916. case $host_os in
  7917. aix*)
  7918. # All AIX code is PIC.
  7919. if test "$host_cpu" = ia64; then
  7920. # AIX 5 now supports IA64 processor
  7921. lt_prog_compiler_static='-Bstatic'
  7922. fi
  7923. ;;
  7924. amigaos*)
  7925. case $host_cpu in
  7926. powerpc)
  7927. # see comment about AmigaOS4 .so support
  7928. lt_prog_compiler_pic='-fPIC'
  7929. ;;
  7930. m68k)
  7931. # FIXME: we need at least 68020 code to build shared libraries, but
  7932. # adding the `-m68020' flag to GCC prevents building anything better,
  7933. # like `-m68040'.
  7934. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7935. ;;
  7936. esac
  7937. ;;
  7938. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7939. # PIC is the default for these OSes.
  7940. ;;
  7941. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7942. # This hack is so that the source file can tell whether it is being
  7943. # built for inclusion in a dll (and should export symbols for example).
  7944. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7945. # (--disable-auto-import) libraries
  7946. lt_prog_compiler_pic='-DDLL_EXPORT'
  7947. ;;
  7948. darwin* | rhapsody*)
  7949. # PIC is the default on this platform
  7950. # Common symbols not allowed in MH_DYLIB files
  7951. lt_prog_compiler_pic='-fno-common'
  7952. ;;
  7953. haiku*)
  7954. # PIC is the default for Haiku.
  7955. # The "-static" flag exists, but is broken.
  7956. lt_prog_compiler_static=
  7957. ;;
  7958. hpux*)
  7959. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7960. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7961. # sets the default TLS model and affects inlining.
  7962. case $host_cpu in
  7963. hppa*64*)
  7964. # +Z the default
  7965. ;;
  7966. *)
  7967. lt_prog_compiler_pic='-fPIC'
  7968. ;;
  7969. esac
  7970. ;;
  7971. interix[3-9]*)
  7972. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7973. # Instead, we relocate shared libraries at runtime.
  7974. ;;
  7975. msdosdjgpp*)
  7976. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7977. # on systems that don't support them.
  7978. lt_prog_compiler_can_build_shared=no
  7979. enable_shared=no
  7980. ;;
  7981. *nto* | *qnx*)
  7982. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7983. # it will coredump.
  7984. lt_prog_compiler_pic='-fPIC -shared'
  7985. ;;
  7986. sysv4*MP*)
  7987. if test -d /usr/nec; then
  7988. lt_prog_compiler_pic=-Kconform_pic
  7989. fi
  7990. ;;
  7991. *)
  7992. lt_prog_compiler_pic='-fPIC'
  7993. ;;
  7994. esac
  7995. case $cc_basename in
  7996. nvcc*) # Cuda Compiler Driver 2.2
  7997. lt_prog_compiler_wl='-Xlinker '
  7998. if test -n "$lt_prog_compiler_pic"; then
  7999. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8000. fi
  8001. ;;
  8002. esac
  8003. else
  8004. # PORTME Check for flag to pass linker flags through the system compiler.
  8005. case $host_os in
  8006. aix*)
  8007. lt_prog_compiler_wl='-Wl,'
  8008. if test "$host_cpu" = ia64; then
  8009. # AIX 5 now supports IA64 processor
  8010. lt_prog_compiler_static='-Bstatic'
  8011. else
  8012. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8013. fi
  8014. ;;
  8015. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8016. # This hack is so that the source file can tell whether it is being
  8017. # built for inclusion in a dll (and should export symbols for example).
  8018. lt_prog_compiler_pic='-DDLL_EXPORT'
  8019. ;;
  8020. hpux9* | hpux10* | hpux11*)
  8021. lt_prog_compiler_wl='-Wl,'
  8022. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8023. # not for PA HP-UX.
  8024. case $host_cpu in
  8025. hppa*64*|ia64*)
  8026. # +Z the default
  8027. ;;
  8028. *)
  8029. lt_prog_compiler_pic='+Z'
  8030. ;;
  8031. esac
  8032. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8033. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8034. ;;
  8035. irix5* | irix6* | nonstopux*)
  8036. lt_prog_compiler_wl='-Wl,'
  8037. # PIC (with -KPIC) is the default.
  8038. lt_prog_compiler_static='-non_shared'
  8039. ;;
  8040. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8041. case $cc_basename in
  8042. # old Intel for x86_64 which still supported -KPIC.
  8043. ecc*)
  8044. lt_prog_compiler_wl='-Wl,'
  8045. lt_prog_compiler_pic='-KPIC'
  8046. lt_prog_compiler_static='-static'
  8047. ;;
  8048. # icc used to be incompatible with GCC.
  8049. # ICC 10 doesn't accept -KPIC any more.
  8050. icc* | ifort*)
  8051. lt_prog_compiler_wl='-Wl,'
  8052. lt_prog_compiler_pic='-fPIC'
  8053. lt_prog_compiler_static='-static'
  8054. ;;
  8055. # Lahey Fortran 8.1.
  8056. lf95*)
  8057. lt_prog_compiler_wl='-Wl,'
  8058. lt_prog_compiler_pic='--shared'
  8059. lt_prog_compiler_static='--static'
  8060. ;;
  8061. nagfor*)
  8062. # NAG Fortran compiler
  8063. lt_prog_compiler_wl='-Wl,-Wl,,'
  8064. lt_prog_compiler_pic='-PIC'
  8065. lt_prog_compiler_static='-Bstatic'
  8066. ;;
  8067. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8068. # Portland Group compilers (*not* the Pentium gcc compiler,
  8069. # which looks to be a dead project)
  8070. lt_prog_compiler_wl='-Wl,'
  8071. lt_prog_compiler_pic='-fpic'
  8072. lt_prog_compiler_static='-Bstatic'
  8073. ;;
  8074. ccc*)
  8075. lt_prog_compiler_wl='-Wl,'
  8076. # All Alpha code is PIC.
  8077. lt_prog_compiler_static='-non_shared'
  8078. ;;
  8079. xl* | bgxl* | bgf* | mpixl*)
  8080. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8081. lt_prog_compiler_wl='-Wl,'
  8082. lt_prog_compiler_pic='-qpic'
  8083. lt_prog_compiler_static='-qstaticlink'
  8084. ;;
  8085. *)
  8086. case `$CC -V 2>&1 | sed 5q` in
  8087. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8088. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8089. lt_prog_compiler_pic='-KPIC'
  8090. lt_prog_compiler_static='-Bstatic'
  8091. lt_prog_compiler_wl=''
  8092. ;;
  8093. *Sun\ F* | *Sun*Fortran*)
  8094. lt_prog_compiler_pic='-KPIC'
  8095. lt_prog_compiler_static='-Bstatic'
  8096. lt_prog_compiler_wl='-Qoption ld '
  8097. ;;
  8098. *Sun\ C*)
  8099. # Sun C 5.9
  8100. lt_prog_compiler_pic='-KPIC'
  8101. lt_prog_compiler_static='-Bstatic'
  8102. lt_prog_compiler_wl='-Wl,'
  8103. ;;
  8104. *Intel*\ [CF]*Compiler*)
  8105. lt_prog_compiler_wl='-Wl,'
  8106. lt_prog_compiler_pic='-fPIC'
  8107. lt_prog_compiler_static='-static'
  8108. ;;
  8109. *Portland\ Group*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. lt_prog_compiler_pic='-fpic'
  8112. lt_prog_compiler_static='-Bstatic'
  8113. ;;
  8114. esac
  8115. ;;
  8116. esac
  8117. ;;
  8118. newsos6)
  8119. lt_prog_compiler_pic='-KPIC'
  8120. lt_prog_compiler_static='-Bstatic'
  8121. ;;
  8122. *nto* | *qnx*)
  8123. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8124. # it will coredump.
  8125. lt_prog_compiler_pic='-fPIC -shared'
  8126. ;;
  8127. osf3* | osf4* | osf5*)
  8128. lt_prog_compiler_wl='-Wl,'
  8129. # All OSF/1 code is PIC.
  8130. lt_prog_compiler_static='-non_shared'
  8131. ;;
  8132. rdos*)
  8133. lt_prog_compiler_static='-non_shared'
  8134. ;;
  8135. solaris*)
  8136. lt_prog_compiler_pic='-KPIC'
  8137. lt_prog_compiler_static='-Bstatic'
  8138. case $cc_basename in
  8139. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8140. lt_prog_compiler_wl='-Qoption ld ';;
  8141. *)
  8142. lt_prog_compiler_wl='-Wl,';;
  8143. esac
  8144. ;;
  8145. sunos4*)
  8146. lt_prog_compiler_wl='-Qoption ld '
  8147. lt_prog_compiler_pic='-PIC'
  8148. lt_prog_compiler_static='-Bstatic'
  8149. ;;
  8150. sysv4 | sysv4.2uw2* | sysv4.3*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_pic='-KPIC'
  8153. lt_prog_compiler_static='-Bstatic'
  8154. ;;
  8155. sysv4*MP*)
  8156. if test -d /usr/nec ;then
  8157. lt_prog_compiler_pic='-Kconform_pic'
  8158. lt_prog_compiler_static='-Bstatic'
  8159. fi
  8160. ;;
  8161. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8162. lt_prog_compiler_wl='-Wl,'
  8163. lt_prog_compiler_pic='-KPIC'
  8164. lt_prog_compiler_static='-Bstatic'
  8165. ;;
  8166. unicos*)
  8167. lt_prog_compiler_wl='-Wl,'
  8168. lt_prog_compiler_can_build_shared=no
  8169. ;;
  8170. uts4*)
  8171. lt_prog_compiler_pic='-pic'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. ;;
  8174. *)
  8175. lt_prog_compiler_can_build_shared=no
  8176. ;;
  8177. esac
  8178. fi
  8179. case $host_os in
  8180. # For platforms which do not support PIC, -DPIC is meaningless:
  8181. *djgpp*)
  8182. lt_prog_compiler_pic=
  8183. ;;
  8184. *)
  8185. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8186. ;;
  8187. esac
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8189. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8190. if ${lt_cv_prog_compiler_pic+:} false; then :
  8191. $as_echo_n "(cached) " >&6
  8192. else
  8193. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8196. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8197. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8198. #
  8199. # Check to make sure the PIC flag actually works.
  8200. #
  8201. if test -n "$lt_prog_compiler_pic"; then
  8202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8203. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8204. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8205. $as_echo_n "(cached) " >&6
  8206. else
  8207. lt_cv_prog_compiler_pic_works=no
  8208. ac_outfile=conftest.$ac_objext
  8209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8210. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8211. # Insert the option either (1) after the last *FLAGS variable, or
  8212. # (2) before a word containing "conftest.", or (3) at the end.
  8213. # Note that $ac_compile itself does not contain backslashes and begins
  8214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8215. # The option is referenced via a variable to avoid confusing sed.
  8216. lt_compile=`echo "$ac_compile" | $SED \
  8217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8219. -e 's:$: $lt_compiler_flag:'`
  8220. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8221. (eval "$lt_compile" 2>conftest.err)
  8222. ac_status=$?
  8223. cat conftest.err >&5
  8224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8225. if (exit $ac_status) && test -s "$ac_outfile"; then
  8226. # The compiler can only warn and ignore the option if not recognized
  8227. # So say no if there are warnings other than the usual output.
  8228. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8231. lt_cv_prog_compiler_pic_works=yes
  8232. fi
  8233. fi
  8234. $RM conftest*
  8235. fi
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8237. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8238. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8239. case $lt_prog_compiler_pic in
  8240. "" | " "*) ;;
  8241. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8242. esac
  8243. else
  8244. lt_prog_compiler_pic=
  8245. lt_prog_compiler_can_build_shared=no
  8246. fi
  8247. fi
  8248. #
  8249. # Check to make sure the static flag actually works.
  8250. #
  8251. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8253. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8254. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8255. $as_echo_n "(cached) " >&6
  8256. else
  8257. lt_cv_prog_compiler_static_works=no
  8258. save_LDFLAGS="$LDFLAGS"
  8259. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8260. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8261. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8262. # The linker can only warn and ignore the option if not recognized
  8263. # So say no if there are warnings
  8264. if test -s conftest.err; then
  8265. # Append any errors to the config.log.
  8266. cat conftest.err 1>&5
  8267. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8268. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8269. if diff conftest.exp conftest.er2 >/dev/null; then
  8270. lt_cv_prog_compiler_static_works=yes
  8271. fi
  8272. else
  8273. lt_cv_prog_compiler_static_works=yes
  8274. fi
  8275. fi
  8276. $RM -r conftest*
  8277. LDFLAGS="$save_LDFLAGS"
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8280. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8281. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8282. :
  8283. else
  8284. lt_prog_compiler_static=
  8285. fi
  8286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8287. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8288. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8289. $as_echo_n "(cached) " >&6
  8290. else
  8291. lt_cv_prog_compiler_c_o=no
  8292. $RM -r conftest 2>/dev/null
  8293. mkdir conftest
  8294. cd conftest
  8295. mkdir out
  8296. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8297. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8298. # Insert the option either (1) after the last *FLAGS variable, or
  8299. # (2) before a word containing "conftest.", or (3) at the end.
  8300. # Note that $ac_compile itself does not contain backslashes and begins
  8301. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8302. lt_compile=`echo "$ac_compile" | $SED \
  8303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8305. -e 's:$: $lt_compiler_flag:'`
  8306. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8307. (eval "$lt_compile" 2>out/conftest.err)
  8308. ac_status=$?
  8309. cat out/conftest.err >&5
  8310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8311. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8312. then
  8313. # The compiler can only warn and ignore the option if not recognized
  8314. # So say no if there are warnings
  8315. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8316. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8317. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8318. lt_cv_prog_compiler_c_o=yes
  8319. fi
  8320. fi
  8321. chmod u+w . 2>&5
  8322. $RM conftest*
  8323. # SGI C++ compiler will create directory out/ii_files/ for
  8324. # template instantiation
  8325. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8326. $RM out/* && rmdir out
  8327. cd ..
  8328. $RM -r conftest
  8329. $RM conftest*
  8330. fi
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8332. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8334. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8335. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. lt_cv_prog_compiler_c_o=no
  8339. $RM -r conftest 2>/dev/null
  8340. mkdir conftest
  8341. cd conftest
  8342. mkdir out
  8343. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8344. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8345. # Insert the option either (1) after the last *FLAGS variable, or
  8346. # (2) before a word containing "conftest.", or (3) at the end.
  8347. # Note that $ac_compile itself does not contain backslashes and begins
  8348. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8349. lt_compile=`echo "$ac_compile" | $SED \
  8350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8352. -e 's:$: $lt_compiler_flag:'`
  8353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8354. (eval "$lt_compile" 2>out/conftest.err)
  8355. ac_status=$?
  8356. cat out/conftest.err >&5
  8357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8358. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8359. then
  8360. # The compiler can only warn and ignore the option if not recognized
  8361. # So say no if there are warnings
  8362. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8363. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8364. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8365. lt_cv_prog_compiler_c_o=yes
  8366. fi
  8367. fi
  8368. chmod u+w . 2>&5
  8369. $RM conftest*
  8370. # SGI C++ compiler will create directory out/ii_files/ for
  8371. # template instantiation
  8372. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8373. $RM out/* && rmdir out
  8374. cd ..
  8375. $RM -r conftest
  8376. $RM conftest*
  8377. fi
  8378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8379. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8380. hard_links="nottested"
  8381. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8382. # do not overwrite the value of need_locks provided by the user
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8384. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8385. hard_links=yes
  8386. $RM conftest*
  8387. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8388. touch conftest.a
  8389. ln conftest.a conftest.b 2>&5 || hard_links=no
  8390. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8392. $as_echo "$hard_links" >&6; }
  8393. if test "$hard_links" = no; then
  8394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8395. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8396. need_locks=warn
  8397. fi
  8398. else
  8399. need_locks=no
  8400. fi
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8402. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8403. runpath_var=
  8404. allow_undefined_flag=
  8405. always_export_symbols=no
  8406. archive_cmds=
  8407. archive_expsym_cmds=
  8408. compiler_needs_object=no
  8409. enable_shared_with_static_runtimes=no
  8410. export_dynamic_flag_spec=
  8411. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8412. hardcode_automatic=no
  8413. hardcode_direct=no
  8414. hardcode_direct_absolute=no
  8415. hardcode_libdir_flag_spec=
  8416. hardcode_libdir_separator=
  8417. hardcode_minus_L=no
  8418. hardcode_shlibpath_var=unsupported
  8419. inherit_rpath=no
  8420. link_all_deplibs=unknown
  8421. module_cmds=
  8422. module_expsym_cmds=
  8423. old_archive_from_new_cmds=
  8424. old_archive_from_expsyms_cmds=
  8425. thread_safe_flag_spec=
  8426. whole_archive_flag_spec=
  8427. # include_expsyms should be a list of space-separated symbols to be *always*
  8428. # included in the symbol list
  8429. include_expsyms=
  8430. # exclude_expsyms can be an extended regexp of symbols to exclude
  8431. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8432. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8433. # as well as any symbol that contains `d'.
  8434. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8435. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8436. # platforms (ab)use it in PIC code, but their linkers get confused if
  8437. # the symbol is explicitly referenced. Since portable code cannot
  8438. # rely on this symbol name, it's probably fine to never include it in
  8439. # preloaded symbol tables.
  8440. # Exclude shared library initialization/finalization symbols.
  8441. extract_expsyms_cmds=
  8442. case $host_os in
  8443. cygwin* | mingw* | pw32* | cegcc*)
  8444. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8445. # When not using gcc, we currently assume that we are using
  8446. # Microsoft Visual C++.
  8447. if test "$GCC" != yes; then
  8448. with_gnu_ld=no
  8449. fi
  8450. ;;
  8451. interix*)
  8452. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8453. with_gnu_ld=yes
  8454. ;;
  8455. openbsd*)
  8456. with_gnu_ld=no
  8457. ;;
  8458. esac
  8459. ld_shlibs=yes
  8460. # On some targets, GNU ld is compatible enough with the native linker
  8461. # that we're better off using the native interface for both.
  8462. lt_use_gnu_ld_interface=no
  8463. if test "$with_gnu_ld" = yes; then
  8464. case $host_os in
  8465. aix*)
  8466. # The AIX port of GNU ld has always aspired to compatibility
  8467. # with the native linker. However, as the warning in the GNU ld
  8468. # block says, versions before 2.19.5* couldn't really create working
  8469. # shared libraries, regardless of the interface used.
  8470. case `$LD -v 2>&1` in
  8471. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8472. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8473. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8474. *)
  8475. lt_use_gnu_ld_interface=yes
  8476. ;;
  8477. esac
  8478. ;;
  8479. *)
  8480. lt_use_gnu_ld_interface=yes
  8481. ;;
  8482. esac
  8483. fi
  8484. if test "$lt_use_gnu_ld_interface" = yes; then
  8485. # If archive_cmds runs LD, not CC, wlarc should be empty
  8486. wlarc='${wl}'
  8487. # Set some defaults for GNU ld with shared library support. These
  8488. # are reset later if shared libraries are not supported. Putting them
  8489. # here allows them to be overridden if necessary.
  8490. runpath_var=LD_RUN_PATH
  8491. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8492. export_dynamic_flag_spec='${wl}--export-dynamic'
  8493. # ancient GNU ld didn't support --whole-archive et. al.
  8494. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8495. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8496. else
  8497. whole_archive_flag_spec=
  8498. fi
  8499. supports_anon_versioning=no
  8500. case `$LD -v 2>&1` in
  8501. *GNU\ gold*) supports_anon_versioning=yes ;;
  8502. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8503. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8504. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8505. *\ 2.11.*) ;; # other 2.11 versions
  8506. *) supports_anon_versioning=yes ;;
  8507. esac
  8508. # See if GNU ld supports shared libraries.
  8509. case $host_os in
  8510. aix[3-9]*)
  8511. # On AIX/PPC, the GNU linker is very broken
  8512. if test "$host_cpu" != ia64; then
  8513. ld_shlibs=no
  8514. cat <<_LT_EOF 1>&2
  8515. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8516. *** to be unable to reliably create shared libraries on AIX.
  8517. *** Therefore, libtool is disabling shared libraries support. If you
  8518. *** really care for shared libraries, you may want to install binutils
  8519. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8520. *** You will then need to restart the configuration process.
  8521. _LT_EOF
  8522. fi
  8523. ;;
  8524. amigaos*)
  8525. case $host_cpu in
  8526. powerpc)
  8527. # see comment about AmigaOS4 .so support
  8528. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8529. archive_expsym_cmds=''
  8530. ;;
  8531. m68k)
  8532. 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)'
  8533. hardcode_libdir_flag_spec='-L$libdir'
  8534. hardcode_minus_L=yes
  8535. ;;
  8536. esac
  8537. ;;
  8538. beos*)
  8539. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8540. allow_undefined_flag=unsupported
  8541. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8542. # support --undefined. This deserves some investigation. FIXME
  8543. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8544. else
  8545. ld_shlibs=no
  8546. fi
  8547. ;;
  8548. cygwin* | mingw* | pw32* | cegcc*)
  8549. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8550. # as there is no search path for DLLs.
  8551. hardcode_libdir_flag_spec='-L$libdir'
  8552. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8553. allow_undefined_flag=unsupported
  8554. always_export_symbols=no
  8555. enable_shared_with_static_runtimes=yes
  8556. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8557. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8558. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8559. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8560. # If the export-symbols file already is a .def file (1st line
  8561. # is EXPORTS), use it as is; otherwise, prepend...
  8562. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8563. cp $export_symbols $output_objdir/$soname.def;
  8564. else
  8565. echo EXPORTS > $output_objdir/$soname.def;
  8566. cat $export_symbols >> $output_objdir/$soname.def;
  8567. fi~
  8568. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8569. else
  8570. ld_shlibs=no
  8571. fi
  8572. ;;
  8573. haiku*)
  8574. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8575. link_all_deplibs=yes
  8576. ;;
  8577. interix[3-9]*)
  8578. hardcode_direct=no
  8579. hardcode_shlibpath_var=no
  8580. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8581. export_dynamic_flag_spec='${wl}-E'
  8582. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8583. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8584. # default) and relocated if they conflict, which is a slow very memory
  8585. # consuming and fragmenting process. To avoid this, we pick a random,
  8586. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8587. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8588. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8589. 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'
  8590. ;;
  8591. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8592. tmp_diet=no
  8593. if test "$host_os" = linux-dietlibc; then
  8594. case $cc_basename in
  8595. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8596. esac
  8597. fi
  8598. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8599. && test "$tmp_diet" = no
  8600. then
  8601. tmp_addflag=' $pic_flag'
  8602. tmp_sharedflag='-shared'
  8603. case $cc_basename,$host_cpu in
  8604. pgcc*) # Portland Group C compiler
  8605. 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'
  8606. tmp_addflag=' $pic_flag'
  8607. ;;
  8608. pgf77* | pgf90* | pgf95* | pgfortran*)
  8609. # Portland Group f77 and f90 compilers
  8610. 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'
  8611. tmp_addflag=' $pic_flag -Mnomain' ;;
  8612. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8613. tmp_addflag=' -i_dynamic' ;;
  8614. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8615. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8616. ifc* | ifort*) # Intel Fortran compiler
  8617. tmp_addflag=' -nofor_main' ;;
  8618. lf95*) # Lahey Fortran 8.1
  8619. whole_archive_flag_spec=
  8620. tmp_sharedflag='--shared' ;;
  8621. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8622. tmp_sharedflag='-qmkshrobj'
  8623. tmp_addflag= ;;
  8624. nvcc*) # Cuda Compiler Driver 2.2
  8625. 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'
  8626. compiler_needs_object=yes
  8627. ;;
  8628. esac
  8629. case `$CC -V 2>&1 | sed 5q` in
  8630. *Sun\ C*) # Sun C 5.9
  8631. 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'
  8632. compiler_needs_object=yes
  8633. tmp_sharedflag='-G' ;;
  8634. *Sun\ F*) # Sun Fortran 8.3
  8635. tmp_sharedflag='-G' ;;
  8636. esac
  8637. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8638. if test "x$supports_anon_versioning" = xyes; then
  8639. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8640. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8641. echo "local: *; };" >> $output_objdir/$libname.ver~
  8642. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8643. fi
  8644. case $cc_basename in
  8645. xlf* | bgf* | bgxlf* | mpixlf*)
  8646. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8647. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8648. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8649. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8650. if test "x$supports_anon_versioning" = xyes; then
  8651. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8652. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8653. echo "local: *; };" >> $output_objdir/$libname.ver~
  8654. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8655. fi
  8656. ;;
  8657. esac
  8658. else
  8659. ld_shlibs=no
  8660. fi
  8661. ;;
  8662. netbsd*)
  8663. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8664. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8665. wlarc=
  8666. else
  8667. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8668. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8669. fi
  8670. ;;
  8671. solaris*)
  8672. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8673. ld_shlibs=no
  8674. cat <<_LT_EOF 1>&2
  8675. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8676. *** create shared libraries on Solaris systems. Therefore, libtool
  8677. *** is disabling shared libraries support. We urge you to upgrade GNU
  8678. *** binutils to release 2.9.1 or newer. Another option is to modify
  8679. *** your PATH or compiler configuration so that the native linker is
  8680. *** used, and then restart.
  8681. _LT_EOF
  8682. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8683. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8684. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8685. else
  8686. ld_shlibs=no
  8687. fi
  8688. ;;
  8689. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8690. case `$LD -v 2>&1` in
  8691. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8692. ld_shlibs=no
  8693. cat <<_LT_EOF 1>&2
  8694. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8695. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8696. *** is disabling shared libraries support. We urge you to upgrade GNU
  8697. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8698. *** your PATH or compiler configuration so that the native linker is
  8699. *** used, and then restart.
  8700. _LT_EOF
  8701. ;;
  8702. *)
  8703. # For security reasons, it is highly recommended that you always
  8704. # use absolute paths for naming shared libraries, and exclude the
  8705. # DT_RUNPATH tag from executables and libraries. But doing so
  8706. # requires that you compile everything twice, which is a pain.
  8707. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8708. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8709. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8710. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8711. else
  8712. ld_shlibs=no
  8713. fi
  8714. ;;
  8715. esac
  8716. ;;
  8717. sunos4*)
  8718. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8719. wlarc=
  8720. hardcode_direct=yes
  8721. hardcode_shlibpath_var=no
  8722. ;;
  8723. *)
  8724. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8725. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8726. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8727. else
  8728. ld_shlibs=no
  8729. fi
  8730. ;;
  8731. esac
  8732. if test "$ld_shlibs" = no; then
  8733. runpath_var=
  8734. hardcode_libdir_flag_spec=
  8735. export_dynamic_flag_spec=
  8736. whole_archive_flag_spec=
  8737. fi
  8738. else
  8739. # PORTME fill in a description of your system's linker (not GNU ld)
  8740. case $host_os in
  8741. aix3*)
  8742. allow_undefined_flag=unsupported
  8743. always_export_symbols=yes
  8744. 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'
  8745. # Note: this linker hardcodes the directories in LIBPATH if there
  8746. # are no directories specified by -L.
  8747. hardcode_minus_L=yes
  8748. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8749. # Neither direct hardcoding nor static linking is supported with a
  8750. # broken collect2.
  8751. hardcode_direct=unsupported
  8752. fi
  8753. ;;
  8754. aix[4-9]*)
  8755. if test "$host_cpu" = ia64; then
  8756. # On IA64, the linker does run time linking by default, so we don't
  8757. # have to do anything special.
  8758. aix_use_runtimelinking=no
  8759. exp_sym_flag='-Bexport'
  8760. no_entry_flag=""
  8761. else
  8762. # If we're using GNU nm, then we don't want the "-C" option.
  8763. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8764. # Also, AIX nm treats weak defined symbols like other global
  8765. # defined symbols, whereas GNU nm marks them as "W".
  8766. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8767. 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'
  8768. else
  8769. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8770. fi
  8771. aix_use_runtimelinking=no
  8772. # Test if we are trying to use run time linking or normal
  8773. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8774. # need to do runtime linking.
  8775. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8776. for ld_flag in $LDFLAGS; do
  8777. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8778. aix_use_runtimelinking=yes
  8779. break
  8780. fi
  8781. done
  8782. ;;
  8783. esac
  8784. exp_sym_flag='-bexport'
  8785. no_entry_flag='-bnoentry'
  8786. fi
  8787. # When large executables or shared objects are built, AIX ld can
  8788. # have problems creating the table of contents. If linking a library
  8789. # or program results in "error TOC overflow" add -mminimal-toc to
  8790. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8791. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8792. archive_cmds=''
  8793. hardcode_direct=yes
  8794. hardcode_direct_absolute=yes
  8795. hardcode_libdir_separator=':'
  8796. link_all_deplibs=yes
  8797. file_list_spec='${wl}-f,'
  8798. if test "$GCC" = yes; then
  8799. case $host_os in aix4.[012]|aix4.[012].*)
  8800. # We only want to do this on AIX 4.2 and lower, the check
  8801. # below for broken collect2 doesn't work under 4.3+
  8802. collect2name=`${CC} -print-prog-name=collect2`
  8803. if test -f "$collect2name" &&
  8804. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8805. then
  8806. # We have reworked collect2
  8807. :
  8808. else
  8809. # We have old collect2
  8810. hardcode_direct=unsupported
  8811. # It fails to find uninstalled libraries when the uninstalled
  8812. # path is not listed in the libpath. Setting hardcode_minus_L
  8813. # to unsupported forces relinking
  8814. hardcode_minus_L=yes
  8815. hardcode_libdir_flag_spec='-L$libdir'
  8816. hardcode_libdir_separator=
  8817. fi
  8818. ;;
  8819. esac
  8820. shared_flag='-shared'
  8821. if test "$aix_use_runtimelinking" = yes; then
  8822. shared_flag="$shared_flag "'${wl}-G'
  8823. fi
  8824. else
  8825. # not using gcc
  8826. if test "$host_cpu" = ia64; then
  8827. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8828. # chokes on -Wl,-G. The following line is correct:
  8829. shared_flag='-G'
  8830. else
  8831. if test "$aix_use_runtimelinking" = yes; then
  8832. shared_flag='${wl}-G'
  8833. else
  8834. shared_flag='${wl}-bM:SRE'
  8835. fi
  8836. fi
  8837. fi
  8838. export_dynamic_flag_spec='${wl}-bexpall'
  8839. # It seems that -bexpall does not export symbols beginning with
  8840. # underscore (_), so it is better to generate a list of symbols to export.
  8841. always_export_symbols=yes
  8842. if test "$aix_use_runtimelinking" = yes; then
  8843. # Warning - without using the other runtime loading flags (-brtl),
  8844. # -berok will link without error, but may produce a broken library.
  8845. allow_undefined_flag='-berok'
  8846. # Determine the default libpath from the value encoded in an
  8847. # empty executable.
  8848. if test "${lt_cv_aix_libpath+set}" = set; then
  8849. aix_libpath=$lt_cv_aix_libpath
  8850. else
  8851. if ${lt_cv_aix_libpath_+:} false; then :
  8852. $as_echo_n "(cached) " >&6
  8853. else
  8854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8855. /* end confdefs.h. */
  8856. int
  8857. main ()
  8858. {
  8859. ;
  8860. return 0;
  8861. }
  8862. _ACEOF
  8863. if ac_fn_c_try_link "$LINENO"; then :
  8864. lt_aix_libpath_sed='
  8865. /Import File Strings/,/^$/ {
  8866. /^0/ {
  8867. s/^0 *\([^ ]*\) *$/\1/
  8868. p
  8869. }
  8870. }'
  8871. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8872. # Check for a 64-bit object if we didn't find anything.
  8873. if test -z "$lt_cv_aix_libpath_"; then
  8874. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8875. fi
  8876. fi
  8877. rm -f core conftest.err conftest.$ac_objext \
  8878. conftest$ac_exeext conftest.$ac_ext
  8879. if test -z "$lt_cv_aix_libpath_"; then
  8880. lt_cv_aix_libpath_="/usr/lib:/lib"
  8881. fi
  8882. fi
  8883. aix_libpath=$lt_cv_aix_libpath_
  8884. fi
  8885. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8886. 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"
  8887. else
  8888. if test "$host_cpu" = ia64; then
  8889. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8890. allow_undefined_flag="-z nodefs"
  8891. 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"
  8892. else
  8893. # Determine the default libpath from the value encoded in an
  8894. # empty executable.
  8895. if test "${lt_cv_aix_libpath+set}" = set; then
  8896. aix_libpath=$lt_cv_aix_libpath
  8897. else
  8898. if ${lt_cv_aix_libpath_+:} false; then :
  8899. $as_echo_n "(cached) " >&6
  8900. else
  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. lt_cv_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 "$lt_cv_aix_libpath_"; then
  8921. lt_cv_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 "$lt_cv_aix_libpath_"; then
  8927. lt_cv_aix_libpath_="/usr/lib:/lib"
  8928. fi
  8929. fi
  8930. aix_libpath=$lt_cv_aix_libpath_
  8931. fi
  8932. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8933. # Warning - without using the other run time loading flags,
  8934. # -berok will link without error, but may produce a broken library.
  8935. no_undefined_flag=' ${wl}-bernotok'
  8936. allow_undefined_flag=' ${wl}-berok'
  8937. if test "$with_gnu_ld" = yes; then
  8938. # We only use this code for GNU lds that support --whole-archive.
  8939. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8940. else
  8941. # Exported symbols can be pulled into shared objects from archives
  8942. whole_archive_flag_spec='$convenience'
  8943. fi
  8944. archive_cmds_need_lc=yes
  8945. # This is similar to how AIX traditionally builds its shared libraries.
  8946. 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'
  8947. fi
  8948. fi
  8949. ;;
  8950. amigaos*)
  8951. case $host_cpu in
  8952. powerpc)
  8953. # see comment about AmigaOS4 .so support
  8954. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8955. archive_expsym_cmds=''
  8956. ;;
  8957. m68k)
  8958. 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)'
  8959. hardcode_libdir_flag_spec='-L$libdir'
  8960. hardcode_minus_L=yes
  8961. ;;
  8962. esac
  8963. ;;
  8964. bsdi[45]*)
  8965. export_dynamic_flag_spec=-rdynamic
  8966. ;;
  8967. cygwin* | mingw* | pw32* | cegcc*)
  8968. # When not using gcc, we currently assume that we are using
  8969. # Microsoft Visual C++.
  8970. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8971. # no search path for DLLs.
  8972. case $cc_basename in
  8973. cl*)
  8974. # Native MSVC
  8975. hardcode_libdir_flag_spec=' '
  8976. allow_undefined_flag=unsupported
  8977. always_export_symbols=yes
  8978. file_list_spec='@'
  8979. # Tell ltmain to make .lib files, not .a files.
  8980. libext=lib
  8981. # Tell ltmain to make .dll files, not .so files.
  8982. shrext_cmds=".dll"
  8983. # FIXME: Setting linknames here is a bad hack.
  8984. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8985. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8986. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8987. else
  8988. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8989. fi~
  8990. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8991. linknames='
  8992. # The linker will not automatically build a static lib if we build a DLL.
  8993. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8994. enable_shared_with_static_runtimes=yes
  8995. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8996. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8997. # Don't use ranlib
  8998. old_postinstall_cmds='chmod 644 $oldlib'
  8999. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9000. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9001. case $lt_outputfile in
  9002. *.exe|*.EXE) ;;
  9003. *)
  9004. lt_outputfile="$lt_outputfile.exe"
  9005. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9006. ;;
  9007. esac~
  9008. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9009. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9010. $RM "$lt_outputfile.manifest";
  9011. fi'
  9012. ;;
  9013. *)
  9014. # Assume MSVC wrapper
  9015. hardcode_libdir_flag_spec=' '
  9016. allow_undefined_flag=unsupported
  9017. # Tell ltmain to make .lib files, not .a files.
  9018. libext=lib
  9019. # Tell ltmain to make .dll files, not .so files.
  9020. shrext_cmds=".dll"
  9021. # FIXME: Setting linknames here is a bad hack.
  9022. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9023. # The linker will automatically build a .lib file if we build a DLL.
  9024. old_archive_from_new_cmds='true'
  9025. # FIXME: Should let the user specify the lib program.
  9026. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9027. enable_shared_with_static_runtimes=yes
  9028. ;;
  9029. esac
  9030. ;;
  9031. darwin* | rhapsody*)
  9032. archive_cmds_need_lc=no
  9033. hardcode_direct=no
  9034. hardcode_automatic=yes
  9035. hardcode_shlibpath_var=unsupported
  9036. if test "$lt_cv_ld_force_load" = "yes"; then
  9037. 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\"`'
  9038. else
  9039. whole_archive_flag_spec=''
  9040. fi
  9041. link_all_deplibs=yes
  9042. allow_undefined_flag="$_lt_dar_allow_undefined"
  9043. case $cc_basename in
  9044. ifort*) _lt_dar_can_shared=yes ;;
  9045. *) _lt_dar_can_shared=$GCC ;;
  9046. esac
  9047. if test "$_lt_dar_can_shared" = "yes"; then
  9048. output_verbose_link_cmd=func_echo_all
  9049. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9050. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9051. 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}"
  9052. 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}"
  9053. else
  9054. ld_shlibs=no
  9055. fi
  9056. ;;
  9057. dgux*)
  9058. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9059. hardcode_libdir_flag_spec='-L$libdir'
  9060. hardcode_shlibpath_var=no
  9061. ;;
  9062. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9063. # support. Future versions do this automatically, but an explicit c++rt0.o
  9064. # does not break anything, and helps significantly (at the cost of a little
  9065. # extra space).
  9066. freebsd2.2*)
  9067. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9068. hardcode_libdir_flag_spec='-R$libdir'
  9069. hardcode_direct=yes
  9070. hardcode_shlibpath_var=no
  9071. ;;
  9072. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9073. freebsd2.*)
  9074. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9075. hardcode_direct=yes
  9076. hardcode_minus_L=yes
  9077. hardcode_shlibpath_var=no
  9078. ;;
  9079. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9080. freebsd* | dragonfly*)
  9081. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9082. hardcode_libdir_flag_spec='-R$libdir'
  9083. hardcode_direct=yes
  9084. hardcode_shlibpath_var=no
  9085. ;;
  9086. hpux9*)
  9087. if test "$GCC" = yes; then
  9088. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9089. else
  9090. 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'
  9091. fi
  9092. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9093. hardcode_libdir_separator=:
  9094. hardcode_direct=yes
  9095. # hardcode_minus_L: Not really in the search PATH,
  9096. # but as the default location of the library.
  9097. hardcode_minus_L=yes
  9098. export_dynamic_flag_spec='${wl}-E'
  9099. ;;
  9100. hpux10*)
  9101. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9102. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9103. else
  9104. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9105. fi
  9106. if test "$with_gnu_ld" = no; then
  9107. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9108. hardcode_libdir_separator=:
  9109. hardcode_direct=yes
  9110. hardcode_direct_absolute=yes
  9111. export_dynamic_flag_spec='${wl}-E'
  9112. # hardcode_minus_L: Not really in the search PATH,
  9113. # but as the default location of the library.
  9114. hardcode_minus_L=yes
  9115. fi
  9116. ;;
  9117. hpux11*)
  9118. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9119. case $host_cpu in
  9120. hppa*64*)
  9121. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9122. ;;
  9123. ia64*)
  9124. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9125. ;;
  9126. *)
  9127. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9128. ;;
  9129. esac
  9130. else
  9131. case $host_cpu in
  9132. hppa*64*)
  9133. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9134. ;;
  9135. ia64*)
  9136. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9137. ;;
  9138. *)
  9139. # Older versions of the 11.00 compiler do not understand -b yet
  9140. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9142. $as_echo_n "checking if $CC understands -b... " >&6; }
  9143. if ${lt_cv_prog_compiler__b+:} false; then :
  9144. $as_echo_n "(cached) " >&6
  9145. else
  9146. lt_cv_prog_compiler__b=no
  9147. save_LDFLAGS="$LDFLAGS"
  9148. LDFLAGS="$LDFLAGS -b"
  9149. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9150. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9151. # The linker can only warn and ignore the option if not recognized
  9152. # So say no if there are warnings
  9153. if test -s conftest.err; then
  9154. # Append any errors to the config.log.
  9155. cat conftest.err 1>&5
  9156. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9157. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9158. if diff conftest.exp conftest.er2 >/dev/null; then
  9159. lt_cv_prog_compiler__b=yes
  9160. fi
  9161. else
  9162. lt_cv_prog_compiler__b=yes
  9163. fi
  9164. fi
  9165. $RM -r conftest*
  9166. LDFLAGS="$save_LDFLAGS"
  9167. fi
  9168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9169. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9170. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9171. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9172. else
  9173. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9174. fi
  9175. ;;
  9176. esac
  9177. fi
  9178. if test "$with_gnu_ld" = no; then
  9179. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9180. hardcode_libdir_separator=:
  9181. case $host_cpu in
  9182. hppa*64*|ia64*)
  9183. hardcode_direct=no
  9184. hardcode_shlibpath_var=no
  9185. ;;
  9186. *)
  9187. hardcode_direct=yes
  9188. hardcode_direct_absolute=yes
  9189. export_dynamic_flag_spec='${wl}-E'
  9190. # hardcode_minus_L: Not really in the search PATH,
  9191. # but as the default location of the library.
  9192. hardcode_minus_L=yes
  9193. ;;
  9194. esac
  9195. fi
  9196. ;;
  9197. irix5* | irix6* | nonstopux*)
  9198. if test "$GCC" = yes; then
  9199. archive_cmds='$CC -shared $pic_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'
  9200. # Try to use the -exported_symbol ld option, if it does not
  9201. # work, assume that -exports_file does not work either and
  9202. # implicitly export all symbols.
  9203. # This should be the same for all languages, so no per-tag cache variable.
  9204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9205. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9206. if ${lt_cv_irix_exported_symbol+:} false; then :
  9207. $as_echo_n "(cached) " >&6
  9208. else
  9209. save_LDFLAGS="$LDFLAGS"
  9210. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9212. /* end confdefs.h. */
  9213. int foo (void) { return 0; }
  9214. _ACEOF
  9215. if ac_fn_c_try_link "$LINENO"; then :
  9216. lt_cv_irix_exported_symbol=yes
  9217. else
  9218. lt_cv_irix_exported_symbol=no
  9219. fi
  9220. rm -f core conftest.err conftest.$ac_objext \
  9221. conftest$ac_exeext conftest.$ac_ext
  9222. LDFLAGS="$save_LDFLAGS"
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9225. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9226. if test "$lt_cv_irix_exported_symbol" = yes; then
  9227. archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9228. fi
  9229. else
  9230. 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'
  9231. 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'
  9232. fi
  9233. archive_cmds_need_lc='no'
  9234. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9235. hardcode_libdir_separator=:
  9236. inherit_rpath=yes
  9237. link_all_deplibs=yes
  9238. ;;
  9239. netbsd*)
  9240. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9241. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9242. else
  9243. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9244. fi
  9245. hardcode_libdir_flag_spec='-R$libdir'
  9246. hardcode_direct=yes
  9247. hardcode_shlibpath_var=no
  9248. ;;
  9249. newsos6)
  9250. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9251. hardcode_direct=yes
  9252. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9253. hardcode_libdir_separator=:
  9254. hardcode_shlibpath_var=no
  9255. ;;
  9256. *nto* | *qnx*)
  9257. ;;
  9258. openbsd*)
  9259. if test -f /usr/libexec/ld.so; then
  9260. hardcode_direct=yes
  9261. hardcode_shlibpath_var=no
  9262. hardcode_direct_absolute=yes
  9263. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9264. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9265. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9266. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9267. export_dynamic_flag_spec='${wl}-E'
  9268. else
  9269. case $host_os in
  9270. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9271. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9272. hardcode_libdir_flag_spec='-R$libdir'
  9273. ;;
  9274. *)
  9275. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9276. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9277. ;;
  9278. esac
  9279. fi
  9280. else
  9281. ld_shlibs=no
  9282. fi
  9283. ;;
  9284. os2*)
  9285. hardcode_libdir_flag_spec='-L$libdir'
  9286. hardcode_minus_L=yes
  9287. allow_undefined_flag=unsupported
  9288. 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'
  9289. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9290. ;;
  9291. osf3*)
  9292. if test "$GCC" = yes; then
  9293. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9294. 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'
  9295. else
  9296. allow_undefined_flag=' -expect_unresolved \*'
  9297. 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'
  9298. fi
  9299. archive_cmds_need_lc='no'
  9300. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9301. hardcode_libdir_separator=:
  9302. ;;
  9303. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9304. if test "$GCC" = yes; then
  9305. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9306. archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
  9307. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9308. else
  9309. allow_undefined_flag=' -expect_unresolved \*'
  9310. 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'
  9311. 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~
  9312. $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'
  9313. # Both c and cxx compiler support -rpath directly
  9314. hardcode_libdir_flag_spec='-rpath $libdir'
  9315. fi
  9316. archive_cmds_need_lc='no'
  9317. hardcode_libdir_separator=:
  9318. ;;
  9319. solaris*)
  9320. no_undefined_flag=' -z defs'
  9321. if test "$GCC" = yes; then
  9322. wlarc='${wl}'
  9323. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9324. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9325. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9326. else
  9327. case `$CC -V 2>&1` in
  9328. *"Compilers 5.0"*)
  9329. wlarc=''
  9330. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9331. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9332. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9333. ;;
  9334. *)
  9335. wlarc='${wl}'
  9336. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9337. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9338. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9339. ;;
  9340. esac
  9341. fi
  9342. hardcode_libdir_flag_spec='-R$libdir'
  9343. hardcode_shlibpath_var=no
  9344. case $host_os in
  9345. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9346. *)
  9347. # The compiler driver will combine and reorder linker options,
  9348. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9349. # but is careful enough not to reorder.
  9350. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9351. if test "$GCC" = yes; then
  9352. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9353. else
  9354. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9355. fi
  9356. ;;
  9357. esac
  9358. link_all_deplibs=yes
  9359. ;;
  9360. sunos4*)
  9361. if test "x$host_vendor" = xsequent; then
  9362. # Use $CC to link under sequent, because it throws in some extra .o
  9363. # files that make .init and .fini sections work.
  9364. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9365. else
  9366. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9367. fi
  9368. hardcode_libdir_flag_spec='-L$libdir'
  9369. hardcode_direct=yes
  9370. hardcode_minus_L=yes
  9371. hardcode_shlibpath_var=no
  9372. ;;
  9373. sysv4)
  9374. case $host_vendor in
  9375. sni)
  9376. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9377. hardcode_direct=yes # is this really true???
  9378. ;;
  9379. siemens)
  9380. ## LD is ld it makes a PLAMLIB
  9381. ## CC just makes a GrossModule.
  9382. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9383. reload_cmds='$CC -r -o $output$reload_objs'
  9384. hardcode_direct=no
  9385. ;;
  9386. motorola)
  9387. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9388. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9389. ;;
  9390. esac
  9391. runpath_var='LD_RUN_PATH'
  9392. hardcode_shlibpath_var=no
  9393. ;;
  9394. sysv4.3*)
  9395. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9396. hardcode_shlibpath_var=no
  9397. export_dynamic_flag_spec='-Bexport'
  9398. ;;
  9399. sysv4*MP*)
  9400. if test -d /usr/nec; then
  9401. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9402. hardcode_shlibpath_var=no
  9403. runpath_var=LD_RUN_PATH
  9404. hardcode_runpath_var=yes
  9405. ld_shlibs=yes
  9406. fi
  9407. ;;
  9408. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9409. no_undefined_flag='${wl}-z,text'
  9410. archive_cmds_need_lc=no
  9411. hardcode_shlibpath_var=no
  9412. runpath_var='LD_RUN_PATH'
  9413. if test "$GCC" = yes; then
  9414. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9415. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9416. else
  9417. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9418. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9419. fi
  9420. ;;
  9421. sysv5* | sco3.2v5* | sco5v6*)
  9422. # Note: We can NOT use -z defs as we might desire, because we do not
  9423. # link with -lc, and that would cause any symbols used from libc to
  9424. # always be unresolved, which means just about no library would
  9425. # ever link correctly. If we're not using GNU ld we use -z text
  9426. # though, which does catch some bad symbols but isn't as heavy-handed
  9427. # as -z defs.
  9428. no_undefined_flag='${wl}-z,text'
  9429. allow_undefined_flag='${wl}-z,nodefs'
  9430. archive_cmds_need_lc=no
  9431. hardcode_shlibpath_var=no
  9432. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9433. hardcode_libdir_separator=':'
  9434. link_all_deplibs=yes
  9435. export_dynamic_flag_spec='${wl}-Bexport'
  9436. runpath_var='LD_RUN_PATH'
  9437. if test "$GCC" = yes; then
  9438. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9439. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9440. else
  9441. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9442. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9443. fi
  9444. ;;
  9445. uts4*)
  9446. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9447. hardcode_libdir_flag_spec='-L$libdir'
  9448. hardcode_shlibpath_var=no
  9449. ;;
  9450. *)
  9451. ld_shlibs=no
  9452. ;;
  9453. esac
  9454. if test x$host_vendor = xsni; then
  9455. case $host in
  9456. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9457. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9458. ;;
  9459. esac
  9460. fi
  9461. fi
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9463. $as_echo "$ld_shlibs" >&6; }
  9464. test "$ld_shlibs" = no && can_build_shared=no
  9465. with_gnu_ld=$with_gnu_ld
  9466. #
  9467. # Do we need to explicitly link libc?
  9468. #
  9469. case "x$archive_cmds_need_lc" in
  9470. x|xyes)
  9471. # Assume -lc should be added
  9472. archive_cmds_need_lc=yes
  9473. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9474. case $archive_cmds in
  9475. *'~'*)
  9476. # FIXME: we may have to deal with multi-command sequences.
  9477. ;;
  9478. '$CC '*)
  9479. # Test whether the compiler implicitly links with -lc since on some
  9480. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9481. # to ld, don't add -lc before -lgcc.
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9483. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9484. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9485. $as_echo_n "(cached) " >&6
  9486. else
  9487. $RM conftest*
  9488. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9490. (eval $ac_compile) 2>&5
  9491. ac_status=$?
  9492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9493. test $ac_status = 0; } 2>conftest.err; then
  9494. soname=conftest
  9495. lib=conftest
  9496. libobjs=conftest.$ac_objext
  9497. deplibs=
  9498. wl=$lt_prog_compiler_wl
  9499. pic_flag=$lt_prog_compiler_pic
  9500. compiler_flags=-v
  9501. linker_flags=-v
  9502. verstring=
  9503. output_objdir=.
  9504. libname=conftest
  9505. lt_save_allow_undefined_flag=$allow_undefined_flag
  9506. allow_undefined_flag=
  9507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9508. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9509. ac_status=$?
  9510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9511. test $ac_status = 0; }
  9512. then
  9513. lt_cv_archive_cmds_need_lc=no
  9514. else
  9515. lt_cv_archive_cmds_need_lc=yes
  9516. fi
  9517. allow_undefined_flag=$lt_save_allow_undefined_flag
  9518. else
  9519. cat conftest.err 1>&5
  9520. fi
  9521. $RM conftest*
  9522. fi
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9524. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9525. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9526. ;;
  9527. esac
  9528. fi
  9529. ;;
  9530. esac
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9532. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9533. if test "$GCC" = yes; then
  9534. case $host_os in
  9535. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9536. *) lt_awk_arg="/^libraries:/" ;;
  9537. esac
  9538. case $host_os in
  9539. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9540. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9541. esac
  9542. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9543. case $lt_search_path_spec in
  9544. *\;*)
  9545. # if the path contains ";" then we assume it to be the separator
  9546. # otherwise default to the standard path separator (i.e. ":") - it is
  9547. # assumed that no part of a normal pathname contains ";" but that should
  9548. # okay in the real world where ";" in dirpaths is itself problematic.
  9549. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9550. ;;
  9551. *)
  9552. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9553. ;;
  9554. esac
  9555. # Ok, now we have the path, separated by spaces, we can step through it
  9556. # and add multilib dir if necessary.
  9557. lt_tmp_lt_search_path_spec=
  9558. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9559. for lt_sys_path in $lt_search_path_spec; do
  9560. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9561. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9562. else
  9563. test -d "$lt_sys_path" && \
  9564. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9565. fi
  9566. done
  9567. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9568. BEGIN {RS=" "; FS="/|\n";} {
  9569. lt_foo="";
  9570. lt_count=0;
  9571. for (lt_i = NF; lt_i > 0; lt_i--) {
  9572. if ($lt_i != "" && $lt_i != ".") {
  9573. if ($lt_i == "..") {
  9574. lt_count++;
  9575. } else {
  9576. if (lt_count == 0) {
  9577. lt_foo="/" $lt_i lt_foo;
  9578. } else {
  9579. lt_count--;
  9580. }
  9581. }
  9582. }
  9583. }
  9584. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9585. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9586. }'`
  9587. # AWK program above erroneously prepends '/' to C:/dos/paths
  9588. # for these hosts.
  9589. case $host_os in
  9590. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9591. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9592. esac
  9593. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9594. else
  9595. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9596. fi
  9597. library_names_spec=
  9598. libname_spec='lib$name'
  9599. soname_spec=
  9600. shrext_cmds=".so"
  9601. postinstall_cmds=
  9602. postuninstall_cmds=
  9603. finish_cmds=
  9604. finish_eval=
  9605. shlibpath_var=
  9606. shlibpath_overrides_runpath=unknown
  9607. version_type=none
  9608. dynamic_linker="$host_os ld.so"
  9609. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9610. need_lib_prefix=unknown
  9611. hardcode_into_libs=no
  9612. # when you set need_version to no, make sure it does not cause -set_version
  9613. # flags to be left without arguments
  9614. need_version=unknown
  9615. case $host_os in
  9616. aix3*)
  9617. version_type=linux # correct to gnu/linux during the next big refactor
  9618. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9619. shlibpath_var=LIBPATH
  9620. # AIX 3 has no versioning support, so we append a major version to the name.
  9621. soname_spec='${libname}${release}${shared_ext}$major'
  9622. ;;
  9623. aix[4-9]*)
  9624. version_type=linux # correct to gnu/linux during the next big refactor
  9625. need_lib_prefix=no
  9626. need_version=no
  9627. hardcode_into_libs=yes
  9628. if test "$host_cpu" = ia64; then
  9629. # AIX 5 supports IA64
  9630. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9631. shlibpath_var=LD_LIBRARY_PATH
  9632. else
  9633. # With GCC up to 2.95.x, collect2 would create an import file
  9634. # for dependence libraries. The import file would start with
  9635. # the line `#! .'. This would cause the generated library to
  9636. # depend on `.', always an invalid library. This was fixed in
  9637. # development snapshots of GCC prior to 3.0.
  9638. case $host_os in
  9639. aix4 | aix4.[01] | aix4.[01].*)
  9640. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9641. echo ' yes '
  9642. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9643. :
  9644. else
  9645. can_build_shared=no
  9646. fi
  9647. ;;
  9648. esac
  9649. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9650. # soname into executable. Probably we can add versioning support to
  9651. # collect2, so additional links can be useful in future.
  9652. if test "$aix_use_runtimelinking" = yes; then
  9653. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9654. # instead of lib<name>.a to let people know that these are not
  9655. # typical AIX shared libraries.
  9656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9657. else
  9658. # We preserve .a as extension for shared libraries through AIX4.2
  9659. # and later when we are not doing run time linking.
  9660. library_names_spec='${libname}${release}.a $libname.a'
  9661. soname_spec='${libname}${release}${shared_ext}$major'
  9662. fi
  9663. shlibpath_var=LIBPATH
  9664. fi
  9665. ;;
  9666. amigaos*)
  9667. case $host_cpu in
  9668. powerpc)
  9669. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9670. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9672. ;;
  9673. m68k)
  9674. library_names_spec='$libname.ixlibrary $libname.a'
  9675. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9676. 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'
  9677. ;;
  9678. esac
  9679. ;;
  9680. beos*)
  9681. library_names_spec='${libname}${shared_ext}'
  9682. dynamic_linker="$host_os ld.so"
  9683. shlibpath_var=LIBRARY_PATH
  9684. ;;
  9685. bsdi[45]*)
  9686. version_type=linux # correct to gnu/linux during the next big refactor
  9687. need_version=no
  9688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9689. soname_spec='${libname}${release}${shared_ext}$major'
  9690. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9691. shlibpath_var=LD_LIBRARY_PATH
  9692. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9693. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9694. # the default ld.so.conf also contains /usr/contrib/lib and
  9695. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9696. # libtool to hard-code these into programs
  9697. ;;
  9698. cygwin* | mingw* | pw32* | cegcc*)
  9699. version_type=windows
  9700. shrext_cmds=".dll"
  9701. need_version=no
  9702. need_lib_prefix=no
  9703. case $GCC,$cc_basename in
  9704. yes,*)
  9705. # gcc
  9706. library_names_spec='$libname.dll.a'
  9707. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9708. postinstall_cmds='base_file=`basename \${file}`~
  9709. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9710. dldir=$destdir/`dirname \$dlpath`~
  9711. test -d \$dldir || mkdir -p \$dldir~
  9712. $install_prog $dir/$dlname \$dldir/$dlname~
  9713. chmod a+x \$dldir/$dlname~
  9714. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9715. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9716. fi'
  9717. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9718. dlpath=$dir/\$dldll~
  9719. $RM \$dlpath'
  9720. shlibpath_overrides_runpath=yes
  9721. case $host_os in
  9722. cygwin*)
  9723. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9724. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9725. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9726. ;;
  9727. mingw* | cegcc*)
  9728. # MinGW DLLs use traditional 'lib' prefix
  9729. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9730. ;;
  9731. pw32*)
  9732. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9733. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9734. ;;
  9735. esac
  9736. dynamic_linker='Win32 ld.exe'
  9737. ;;
  9738. *,cl*)
  9739. # Native MSVC
  9740. libname_spec='$name'
  9741. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9742. library_names_spec='${libname}.dll.lib'
  9743. case $build_os in
  9744. mingw*)
  9745. sys_lib_search_path_spec=
  9746. lt_save_ifs=$IFS
  9747. IFS=';'
  9748. for lt_path in $LIB
  9749. do
  9750. IFS=$lt_save_ifs
  9751. # Let DOS variable expansion print the short 8.3 style file name.
  9752. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9753. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9754. done
  9755. IFS=$lt_save_ifs
  9756. # Convert to MSYS style.
  9757. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9758. ;;
  9759. cygwin*)
  9760. # Convert to unix form, then to dos form, then back to unix form
  9761. # but this time dos style (no spaces!) so that the unix form looks
  9762. # like /cygdrive/c/PROGRA~1:/cygdr...
  9763. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9764. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9765. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9766. ;;
  9767. *)
  9768. sys_lib_search_path_spec="$LIB"
  9769. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9770. # It is most probably a Windows format PATH.
  9771. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9772. else
  9773. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9774. fi
  9775. # FIXME: find the short name or the path components, as spaces are
  9776. # common. (e.g. "Program Files" -> "PROGRA~1")
  9777. ;;
  9778. esac
  9779. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9780. postinstall_cmds='base_file=`basename \${file}`~
  9781. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9782. dldir=$destdir/`dirname \$dlpath`~
  9783. test -d \$dldir || mkdir -p \$dldir~
  9784. $install_prog $dir/$dlname \$dldir/$dlname'
  9785. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9786. dlpath=$dir/\$dldll~
  9787. $RM \$dlpath'
  9788. shlibpath_overrides_runpath=yes
  9789. dynamic_linker='Win32 link.exe'
  9790. ;;
  9791. *)
  9792. # Assume MSVC wrapper
  9793. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9794. dynamic_linker='Win32 ld.exe'
  9795. ;;
  9796. esac
  9797. # FIXME: first we should search . and the directory the executable is in
  9798. shlibpath_var=PATH
  9799. ;;
  9800. darwin* | rhapsody*)
  9801. dynamic_linker="$host_os dyld"
  9802. version_type=darwin
  9803. need_lib_prefix=no
  9804. need_version=no
  9805. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9806. soname_spec='${libname}${release}${major}$shared_ext'
  9807. shlibpath_overrides_runpath=yes
  9808. shlibpath_var=DYLD_LIBRARY_PATH
  9809. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9810. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9811. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9812. ;;
  9813. dgux*)
  9814. version_type=linux # correct to gnu/linux during the next big refactor
  9815. need_lib_prefix=no
  9816. need_version=no
  9817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9818. soname_spec='${libname}${release}${shared_ext}$major'
  9819. shlibpath_var=LD_LIBRARY_PATH
  9820. ;;
  9821. freebsd* | dragonfly*)
  9822. # DragonFly does not have aout. When/if they implement a new
  9823. # versioning mechanism, adjust this.
  9824. if test -x /usr/bin/objformat; then
  9825. objformat=`/usr/bin/objformat`
  9826. else
  9827. case $host_os in
  9828. freebsd[23].*) objformat=aout ;;
  9829. *) objformat=elf ;;
  9830. esac
  9831. fi
  9832. version_type=freebsd-$objformat
  9833. case $version_type in
  9834. freebsd-elf*)
  9835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9836. need_version=no
  9837. need_lib_prefix=no
  9838. ;;
  9839. freebsd-*)
  9840. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9841. need_version=yes
  9842. ;;
  9843. esac
  9844. shlibpath_var=LD_LIBRARY_PATH
  9845. case $host_os in
  9846. freebsd2.*)
  9847. shlibpath_overrides_runpath=yes
  9848. ;;
  9849. freebsd3.[01]* | freebsdelf3.[01]*)
  9850. shlibpath_overrides_runpath=yes
  9851. hardcode_into_libs=yes
  9852. ;;
  9853. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9854. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9855. shlibpath_overrides_runpath=no
  9856. hardcode_into_libs=yes
  9857. ;;
  9858. *) # from 4.6 on, and DragonFly
  9859. shlibpath_overrides_runpath=yes
  9860. hardcode_into_libs=yes
  9861. ;;
  9862. esac
  9863. ;;
  9864. gnu*)
  9865. version_type=linux # correct to gnu/linux during the next big refactor
  9866. need_lib_prefix=no
  9867. need_version=no
  9868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9869. soname_spec='${libname}${release}${shared_ext}$major'
  9870. shlibpath_var=LD_LIBRARY_PATH
  9871. shlibpath_overrides_runpath=no
  9872. hardcode_into_libs=yes
  9873. ;;
  9874. haiku*)
  9875. version_type=linux # correct to gnu/linux during the next big refactor
  9876. need_lib_prefix=no
  9877. need_version=no
  9878. dynamic_linker="$host_os runtime_loader"
  9879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9880. soname_spec='${libname}${release}${shared_ext}$major'
  9881. shlibpath_var=LIBRARY_PATH
  9882. shlibpath_overrides_runpath=yes
  9883. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9884. hardcode_into_libs=yes
  9885. ;;
  9886. hpux9* | hpux10* | hpux11*)
  9887. # Give a soname corresponding to the major version so that dld.sl refuses to
  9888. # link against other versions.
  9889. version_type=sunos
  9890. need_lib_prefix=no
  9891. need_version=no
  9892. case $host_cpu in
  9893. ia64*)
  9894. shrext_cmds='.so'
  9895. hardcode_into_libs=yes
  9896. dynamic_linker="$host_os dld.so"
  9897. shlibpath_var=LD_LIBRARY_PATH
  9898. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9900. soname_spec='${libname}${release}${shared_ext}$major'
  9901. if test "X$HPUX_IA64_MODE" = X32; then
  9902. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9903. else
  9904. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9905. fi
  9906. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9907. ;;
  9908. hppa*64*)
  9909. shrext_cmds='.sl'
  9910. hardcode_into_libs=yes
  9911. dynamic_linker="$host_os dld.sl"
  9912. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9913. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9915. soname_spec='${libname}${release}${shared_ext}$major'
  9916. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9917. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9918. ;;
  9919. *)
  9920. shrext_cmds='.sl'
  9921. dynamic_linker="$host_os dld.sl"
  9922. shlibpath_var=SHLIB_PATH
  9923. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9925. soname_spec='${libname}${release}${shared_ext}$major'
  9926. ;;
  9927. esac
  9928. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9929. postinstall_cmds='chmod 555 $lib'
  9930. # or fails outright, so override atomically:
  9931. install_override_mode=555
  9932. ;;
  9933. interix[3-9]*)
  9934. version_type=linux # correct to gnu/linux during the next big refactor
  9935. need_lib_prefix=no
  9936. need_version=no
  9937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9938. soname_spec='${libname}${release}${shared_ext}$major'
  9939. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9940. shlibpath_var=LD_LIBRARY_PATH
  9941. shlibpath_overrides_runpath=no
  9942. hardcode_into_libs=yes
  9943. ;;
  9944. irix5* | irix6* | nonstopux*)
  9945. case $host_os in
  9946. nonstopux*) version_type=nonstopux ;;
  9947. *)
  9948. if test "$lt_cv_prog_gnu_ld" = yes; then
  9949. version_type=linux # correct to gnu/linux during the next big refactor
  9950. else
  9951. version_type=irix
  9952. fi ;;
  9953. esac
  9954. need_lib_prefix=no
  9955. need_version=no
  9956. soname_spec='${libname}${release}${shared_ext}$major'
  9957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9958. case $host_os in
  9959. irix5* | nonstopux*)
  9960. libsuff= shlibsuff=
  9961. ;;
  9962. *)
  9963. case $LD in # libtool.m4 will add one of these switches to LD
  9964. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9965. libsuff= shlibsuff= libmagic=32-bit;;
  9966. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9967. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9968. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9969. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9970. *) libsuff= shlibsuff= libmagic=never-match;;
  9971. esac
  9972. ;;
  9973. esac
  9974. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9975. shlibpath_overrides_runpath=no
  9976. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9977. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9978. hardcode_into_libs=yes
  9979. ;;
  9980. # No shared lib support for Linux oldld, aout, or coff.
  9981. linux*oldld* | linux*aout* | linux*coff*)
  9982. dynamic_linker=no
  9983. ;;
  9984. # This must be glibc/ELF.
  9985. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9986. version_type=linux # correct to gnu/linux during the next big refactor
  9987. need_lib_prefix=no
  9988. need_version=no
  9989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9990. soname_spec='${libname}${release}${shared_ext}$major'
  9991. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9992. shlibpath_var=LD_LIBRARY_PATH
  9993. shlibpath_overrides_runpath=no
  9994. # Some binutils ld are patched to set DT_RUNPATH
  9995. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9996. $as_echo_n "(cached) " >&6
  9997. else
  9998. lt_cv_shlibpath_overrides_runpath=no
  9999. save_LDFLAGS=$LDFLAGS
  10000. save_libdir=$libdir
  10001. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10002. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10004. /* end confdefs.h. */
  10005. int
  10006. main ()
  10007. {
  10008. ;
  10009. return 0;
  10010. }
  10011. _ACEOF
  10012. if ac_fn_c_try_link "$LINENO"; then :
  10013. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10014. lt_cv_shlibpath_overrides_runpath=yes
  10015. fi
  10016. fi
  10017. rm -f core conftest.err conftest.$ac_objext \
  10018. conftest$ac_exeext conftest.$ac_ext
  10019. LDFLAGS=$save_LDFLAGS
  10020. libdir=$save_libdir
  10021. fi
  10022. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10023. # This implies no fast_install, which is unacceptable.
  10024. # Some rework will be needed to allow for fast_install
  10025. # before this can be enabled.
  10026. hardcode_into_libs=yes
  10027. # Add ABI-specific directories to the system library path.
  10028. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10029. # Append ld.so.conf contents to the search path
  10030. if test -f /etc/ld.so.conf; then
  10031. 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' ' '`
  10032. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10033. fi
  10034. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10035. # powerpc, because MkLinux only supported shared libraries with the
  10036. # GNU dynamic linker. Since this was broken with cross compilers,
  10037. # most powerpc-linux boxes support dynamic linking these days and
  10038. # people can always --disable-shared, the test was removed, and we
  10039. # assume the GNU/Linux dynamic linker is in use.
  10040. dynamic_linker='GNU/Linux ld.so'
  10041. ;;
  10042. netbsd*)
  10043. version_type=sunos
  10044. need_lib_prefix=no
  10045. need_version=no
  10046. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10048. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10049. dynamic_linker='NetBSD (a.out) ld.so'
  10050. else
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10052. soname_spec='${libname}${release}${shared_ext}$major'
  10053. dynamic_linker='NetBSD ld.elf_so'
  10054. fi
  10055. shlibpath_var=LD_LIBRARY_PATH
  10056. shlibpath_overrides_runpath=yes
  10057. hardcode_into_libs=yes
  10058. ;;
  10059. newsos6)
  10060. version_type=linux # correct to gnu/linux during the next big refactor
  10061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10062. shlibpath_var=LD_LIBRARY_PATH
  10063. shlibpath_overrides_runpath=yes
  10064. ;;
  10065. *nto* | *qnx*)
  10066. version_type=qnx
  10067. need_lib_prefix=no
  10068. need_version=no
  10069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10070. soname_spec='${libname}${release}${shared_ext}$major'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. shlibpath_overrides_runpath=no
  10073. hardcode_into_libs=yes
  10074. dynamic_linker='ldqnx.so'
  10075. ;;
  10076. openbsd*)
  10077. version_type=sunos
  10078. sys_lib_dlsearch_path_spec="/usr/lib"
  10079. need_lib_prefix=no
  10080. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10081. case $host_os in
  10082. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10083. *) need_version=no ;;
  10084. esac
  10085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10086. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10087. shlibpath_var=LD_LIBRARY_PATH
  10088. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10089. case $host_os in
  10090. openbsd2.[89] | openbsd2.[89].*)
  10091. shlibpath_overrides_runpath=no
  10092. ;;
  10093. *)
  10094. shlibpath_overrides_runpath=yes
  10095. ;;
  10096. esac
  10097. else
  10098. shlibpath_overrides_runpath=yes
  10099. fi
  10100. ;;
  10101. os2*)
  10102. libname_spec='$name'
  10103. shrext_cmds=".dll"
  10104. need_lib_prefix=no
  10105. library_names_spec='$libname${shared_ext} $libname.a'
  10106. dynamic_linker='OS/2 ld.exe'
  10107. shlibpath_var=LIBPATH
  10108. ;;
  10109. osf3* | osf4* | osf5*)
  10110. version_type=osf
  10111. need_lib_prefix=no
  10112. need_version=no
  10113. soname_spec='${libname}${release}${shared_ext}$major'
  10114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10117. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10118. ;;
  10119. rdos*)
  10120. dynamic_linker=no
  10121. ;;
  10122. solaris*)
  10123. version_type=linux # correct to gnu/linux during the next big refactor
  10124. need_lib_prefix=no
  10125. need_version=no
  10126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10127. soname_spec='${libname}${release}${shared_ext}$major'
  10128. shlibpath_var=LD_LIBRARY_PATH
  10129. shlibpath_overrides_runpath=yes
  10130. hardcode_into_libs=yes
  10131. # ldd complains unless libraries are executable
  10132. postinstall_cmds='chmod +x $lib'
  10133. ;;
  10134. sunos4*)
  10135. version_type=sunos
  10136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10137. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10138. shlibpath_var=LD_LIBRARY_PATH
  10139. shlibpath_overrides_runpath=yes
  10140. if test "$with_gnu_ld" = yes; then
  10141. need_lib_prefix=no
  10142. fi
  10143. need_version=yes
  10144. ;;
  10145. sysv4 | sysv4.3*)
  10146. version_type=linux # correct to gnu/linux during the next big refactor
  10147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10148. soname_spec='${libname}${release}${shared_ext}$major'
  10149. shlibpath_var=LD_LIBRARY_PATH
  10150. case $host_vendor in
  10151. sni)
  10152. shlibpath_overrides_runpath=no
  10153. need_lib_prefix=no
  10154. runpath_var=LD_RUN_PATH
  10155. ;;
  10156. siemens)
  10157. need_lib_prefix=no
  10158. ;;
  10159. motorola)
  10160. need_lib_prefix=no
  10161. need_version=no
  10162. shlibpath_overrides_runpath=no
  10163. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10164. ;;
  10165. esac
  10166. ;;
  10167. sysv4*MP*)
  10168. if test -d /usr/nec ;then
  10169. version_type=linux # correct to gnu/linux during the next big refactor
  10170. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10171. soname_spec='$libname${shared_ext}.$major'
  10172. shlibpath_var=LD_LIBRARY_PATH
  10173. fi
  10174. ;;
  10175. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10176. version_type=freebsd-elf
  10177. need_lib_prefix=no
  10178. need_version=no
  10179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10180. soname_spec='${libname}${release}${shared_ext}$major'
  10181. shlibpath_var=LD_LIBRARY_PATH
  10182. shlibpath_overrides_runpath=yes
  10183. hardcode_into_libs=yes
  10184. if test "$with_gnu_ld" = yes; then
  10185. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10186. else
  10187. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10188. case $host_os in
  10189. sco3.2v5*)
  10190. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10191. ;;
  10192. esac
  10193. fi
  10194. sys_lib_dlsearch_path_spec='/usr/lib'
  10195. ;;
  10196. tpf*)
  10197. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10198. version_type=linux # correct to gnu/linux during the next big refactor
  10199. need_lib_prefix=no
  10200. need_version=no
  10201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10202. shlibpath_var=LD_LIBRARY_PATH
  10203. shlibpath_overrides_runpath=no
  10204. hardcode_into_libs=yes
  10205. ;;
  10206. uts4*)
  10207. version_type=linux # correct to gnu/linux during the next big refactor
  10208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10209. soname_spec='${libname}${release}${shared_ext}$major'
  10210. shlibpath_var=LD_LIBRARY_PATH
  10211. ;;
  10212. *)
  10213. dynamic_linker=no
  10214. ;;
  10215. esac
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10217. $as_echo "$dynamic_linker" >&6; }
  10218. test "$dynamic_linker" = no && can_build_shared=no
  10219. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10220. if test "$GCC" = yes; then
  10221. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10222. fi
  10223. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10224. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10225. fi
  10226. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10227. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10230. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10231. hardcode_action=
  10232. if test -n "$hardcode_libdir_flag_spec" ||
  10233. test -n "$runpath_var" ||
  10234. test "X$hardcode_automatic" = "Xyes" ; then
  10235. # We can hardcode non-existent directories.
  10236. if test "$hardcode_direct" != no &&
  10237. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10238. # have to relink, otherwise we might link with an installed library
  10239. # when we should be linking with a yet-to-be-installed one
  10240. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10241. test "$hardcode_minus_L" != no; then
  10242. # Linking always hardcodes the temporary library directory.
  10243. hardcode_action=relink
  10244. else
  10245. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10246. hardcode_action=immediate
  10247. fi
  10248. else
  10249. # We cannot hardcode anything, or else we can only hardcode existing
  10250. # directories.
  10251. hardcode_action=unsupported
  10252. fi
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10254. $as_echo "$hardcode_action" >&6; }
  10255. if test "$hardcode_action" = relink ||
  10256. test "$inherit_rpath" = yes; then
  10257. # Fast installation is not supported
  10258. enable_fast_install=no
  10259. elif test "$shlibpath_overrides_runpath" = yes ||
  10260. test "$enable_shared" = no; then
  10261. # Fast installation is not necessary
  10262. enable_fast_install=needless
  10263. fi
  10264. if test "x$enable_dlopen" != xyes; then
  10265. enable_dlopen=unknown
  10266. enable_dlopen_self=unknown
  10267. enable_dlopen_self_static=unknown
  10268. else
  10269. lt_cv_dlopen=no
  10270. lt_cv_dlopen_libs=
  10271. case $host_os in
  10272. beos*)
  10273. lt_cv_dlopen="load_add_on"
  10274. lt_cv_dlopen_libs=
  10275. lt_cv_dlopen_self=yes
  10276. ;;
  10277. mingw* | pw32* | cegcc*)
  10278. lt_cv_dlopen="LoadLibrary"
  10279. lt_cv_dlopen_libs=
  10280. ;;
  10281. cygwin*)
  10282. lt_cv_dlopen="dlopen"
  10283. lt_cv_dlopen_libs=
  10284. ;;
  10285. darwin*)
  10286. # if libdl is installed we need to link against it
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10288. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10289. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10290. $as_echo_n "(cached) " >&6
  10291. else
  10292. ac_check_lib_save_LIBS=$LIBS
  10293. LIBS="-ldl $LIBS"
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. /* Override any GCC internal prototype to avoid an error.
  10297. Use char because int might match the return type of a GCC
  10298. builtin and then its argument prototype would still apply. */
  10299. #ifdef __cplusplus
  10300. extern "C"
  10301. #endif
  10302. char dlopen ();
  10303. int
  10304. main ()
  10305. {
  10306. return dlopen ();
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. if ac_fn_c_try_link "$LINENO"; then :
  10312. ac_cv_lib_dl_dlopen=yes
  10313. else
  10314. ac_cv_lib_dl_dlopen=no
  10315. fi
  10316. rm -f core conftest.err conftest.$ac_objext \
  10317. conftest$ac_exeext conftest.$ac_ext
  10318. LIBS=$ac_check_lib_save_LIBS
  10319. fi
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10321. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10322. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10323. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10324. else
  10325. lt_cv_dlopen="dyld"
  10326. lt_cv_dlopen_libs=
  10327. lt_cv_dlopen_self=yes
  10328. fi
  10329. ;;
  10330. *)
  10331. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10332. if test "x$ac_cv_func_shl_load" = xyes; then :
  10333. lt_cv_dlopen="shl_load"
  10334. else
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10336. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10337. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10338. $as_echo_n "(cached) " >&6
  10339. else
  10340. ac_check_lib_save_LIBS=$LIBS
  10341. LIBS="-ldld $LIBS"
  10342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10343. /* end confdefs.h. */
  10344. /* Override any GCC internal prototype to avoid an error.
  10345. Use char because int might match the return type of a GCC
  10346. builtin and then its argument prototype would still apply. */
  10347. #ifdef __cplusplus
  10348. extern "C"
  10349. #endif
  10350. char shl_load ();
  10351. int
  10352. main ()
  10353. {
  10354. return shl_load ();
  10355. ;
  10356. return 0;
  10357. }
  10358. _ACEOF
  10359. if ac_fn_c_try_link "$LINENO"; then :
  10360. ac_cv_lib_dld_shl_load=yes
  10361. else
  10362. ac_cv_lib_dld_shl_load=no
  10363. fi
  10364. rm -f core conftest.err conftest.$ac_objext \
  10365. conftest$ac_exeext conftest.$ac_ext
  10366. LIBS=$ac_check_lib_save_LIBS
  10367. fi
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10369. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10370. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10371. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10372. else
  10373. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10374. if test "x$ac_cv_func_dlopen" = xyes; then :
  10375. lt_cv_dlopen="dlopen"
  10376. else
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10378. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10379. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. ac_check_lib_save_LIBS=$LIBS
  10383. LIBS="-ldl $LIBS"
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. /* Override any GCC internal prototype to avoid an error.
  10387. Use char because int might match the return type of a GCC
  10388. builtin and then its argument prototype would still apply. */
  10389. #ifdef __cplusplus
  10390. extern "C"
  10391. #endif
  10392. char dlopen ();
  10393. int
  10394. main ()
  10395. {
  10396. return dlopen ();
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_c_try_link "$LINENO"; then :
  10402. ac_cv_lib_dl_dlopen=yes
  10403. else
  10404. ac_cv_lib_dl_dlopen=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. LIBS=$ac_check_lib_save_LIBS
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10411. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10412. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10413. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10414. else
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10416. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10417. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. ac_check_lib_save_LIBS=$LIBS
  10421. LIBS="-lsvld $LIBS"
  10422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10423. /* end confdefs.h. */
  10424. /* Override any GCC internal prototype to avoid an error.
  10425. Use char because int might match the return type of a GCC
  10426. builtin and then its argument prototype would still apply. */
  10427. #ifdef __cplusplus
  10428. extern "C"
  10429. #endif
  10430. char dlopen ();
  10431. int
  10432. main ()
  10433. {
  10434. return dlopen ();
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. if ac_fn_c_try_link "$LINENO"; then :
  10440. ac_cv_lib_svld_dlopen=yes
  10441. else
  10442. ac_cv_lib_svld_dlopen=no
  10443. fi
  10444. rm -f core conftest.err conftest.$ac_objext \
  10445. conftest$ac_exeext conftest.$ac_ext
  10446. LIBS=$ac_check_lib_save_LIBS
  10447. fi
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10449. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10450. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10451. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10452. else
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10454. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10455. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10456. $as_echo_n "(cached) " >&6
  10457. else
  10458. ac_check_lib_save_LIBS=$LIBS
  10459. LIBS="-ldld $LIBS"
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. /* Override any GCC internal prototype to avoid an error.
  10463. Use char because int might match the return type of a GCC
  10464. builtin and then its argument prototype would still apply. */
  10465. #ifdef __cplusplus
  10466. extern "C"
  10467. #endif
  10468. char dld_link ();
  10469. int
  10470. main ()
  10471. {
  10472. return dld_link ();
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. if ac_fn_c_try_link "$LINENO"; then :
  10478. ac_cv_lib_dld_dld_link=yes
  10479. else
  10480. ac_cv_lib_dld_dld_link=no
  10481. fi
  10482. rm -f core conftest.err conftest.$ac_objext \
  10483. conftest$ac_exeext conftest.$ac_ext
  10484. LIBS=$ac_check_lib_save_LIBS
  10485. fi
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10487. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10488. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10489. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10490. fi
  10491. fi
  10492. fi
  10493. fi
  10494. fi
  10495. fi
  10496. ;;
  10497. esac
  10498. if test "x$lt_cv_dlopen" != xno; then
  10499. enable_dlopen=yes
  10500. else
  10501. enable_dlopen=no
  10502. fi
  10503. case $lt_cv_dlopen in
  10504. dlopen)
  10505. save_CPPFLAGS="$CPPFLAGS"
  10506. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10507. save_LDFLAGS="$LDFLAGS"
  10508. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10509. save_LIBS="$LIBS"
  10510. LIBS="$lt_cv_dlopen_libs $LIBS"
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10512. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10513. if ${lt_cv_dlopen_self+:} false; then :
  10514. $as_echo_n "(cached) " >&6
  10515. else
  10516. if test "$cross_compiling" = yes; then :
  10517. lt_cv_dlopen_self=cross
  10518. else
  10519. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10520. lt_status=$lt_dlunknown
  10521. cat > conftest.$ac_ext <<_LT_EOF
  10522. #line $LINENO "configure"
  10523. #include "confdefs.h"
  10524. #if HAVE_DLFCN_H
  10525. #include <dlfcn.h>
  10526. #endif
  10527. #include <stdio.h>
  10528. #ifdef RTLD_GLOBAL
  10529. # define LT_DLGLOBAL RTLD_GLOBAL
  10530. #else
  10531. # ifdef DL_GLOBAL
  10532. # define LT_DLGLOBAL DL_GLOBAL
  10533. # else
  10534. # define LT_DLGLOBAL 0
  10535. # endif
  10536. #endif
  10537. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10538. find out it does not work in some platform. */
  10539. #ifndef LT_DLLAZY_OR_NOW
  10540. # ifdef RTLD_LAZY
  10541. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10542. # else
  10543. # ifdef DL_LAZY
  10544. # define LT_DLLAZY_OR_NOW DL_LAZY
  10545. # else
  10546. # ifdef RTLD_NOW
  10547. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10548. # else
  10549. # ifdef DL_NOW
  10550. # define LT_DLLAZY_OR_NOW DL_NOW
  10551. # else
  10552. # define LT_DLLAZY_OR_NOW 0
  10553. # endif
  10554. # endif
  10555. # endif
  10556. # endif
  10557. #endif
  10558. /* When -fvisbility=hidden is used, assume the code has been annotated
  10559. correspondingly for the symbols needed. */
  10560. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10561. int fnord () __attribute__((visibility("default")));
  10562. #endif
  10563. int fnord () { return 42; }
  10564. int main ()
  10565. {
  10566. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10567. int status = $lt_dlunknown;
  10568. if (self)
  10569. {
  10570. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10571. else
  10572. {
  10573. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10574. else puts (dlerror ());
  10575. }
  10576. /* dlclose (self); */
  10577. }
  10578. else
  10579. puts (dlerror ());
  10580. return status;
  10581. }
  10582. _LT_EOF
  10583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10584. (eval $ac_link) 2>&5
  10585. ac_status=$?
  10586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10587. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10588. (./conftest; exit; ) >&5 2>/dev/null
  10589. lt_status=$?
  10590. case x$lt_status in
  10591. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10592. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10593. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10594. esac
  10595. else :
  10596. # compilation failed
  10597. lt_cv_dlopen_self=no
  10598. fi
  10599. fi
  10600. rm -fr conftest*
  10601. fi
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10603. $as_echo "$lt_cv_dlopen_self" >&6; }
  10604. if test "x$lt_cv_dlopen_self" = xyes; then
  10605. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10607. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10608. if ${lt_cv_dlopen_self_static+:} false; then :
  10609. $as_echo_n "(cached) " >&6
  10610. else
  10611. if test "$cross_compiling" = yes; then :
  10612. lt_cv_dlopen_self_static=cross
  10613. else
  10614. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10615. lt_status=$lt_dlunknown
  10616. cat > conftest.$ac_ext <<_LT_EOF
  10617. #line $LINENO "configure"
  10618. #include "confdefs.h"
  10619. #if HAVE_DLFCN_H
  10620. #include <dlfcn.h>
  10621. #endif
  10622. #include <stdio.h>
  10623. #ifdef RTLD_GLOBAL
  10624. # define LT_DLGLOBAL RTLD_GLOBAL
  10625. #else
  10626. # ifdef DL_GLOBAL
  10627. # define LT_DLGLOBAL DL_GLOBAL
  10628. # else
  10629. # define LT_DLGLOBAL 0
  10630. # endif
  10631. #endif
  10632. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10633. find out it does not work in some platform. */
  10634. #ifndef LT_DLLAZY_OR_NOW
  10635. # ifdef RTLD_LAZY
  10636. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10637. # else
  10638. # ifdef DL_LAZY
  10639. # define LT_DLLAZY_OR_NOW DL_LAZY
  10640. # else
  10641. # ifdef RTLD_NOW
  10642. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10643. # else
  10644. # ifdef DL_NOW
  10645. # define LT_DLLAZY_OR_NOW DL_NOW
  10646. # else
  10647. # define LT_DLLAZY_OR_NOW 0
  10648. # endif
  10649. # endif
  10650. # endif
  10651. # endif
  10652. #endif
  10653. /* When -fvisbility=hidden is used, assume the code has been annotated
  10654. correspondingly for the symbols needed. */
  10655. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10656. int fnord () __attribute__((visibility("default")));
  10657. #endif
  10658. int fnord () { return 42; }
  10659. int main ()
  10660. {
  10661. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10662. int status = $lt_dlunknown;
  10663. if (self)
  10664. {
  10665. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10666. else
  10667. {
  10668. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10669. else puts (dlerror ());
  10670. }
  10671. /* dlclose (self); */
  10672. }
  10673. else
  10674. puts (dlerror ());
  10675. return status;
  10676. }
  10677. _LT_EOF
  10678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10679. (eval $ac_link) 2>&5
  10680. ac_status=$?
  10681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10682. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10683. (./conftest; exit; ) >&5 2>/dev/null
  10684. lt_status=$?
  10685. case x$lt_status in
  10686. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10687. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10688. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10689. esac
  10690. else :
  10691. # compilation failed
  10692. lt_cv_dlopen_self_static=no
  10693. fi
  10694. fi
  10695. rm -fr conftest*
  10696. fi
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10698. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10699. fi
  10700. CPPFLAGS="$save_CPPFLAGS"
  10701. LDFLAGS="$save_LDFLAGS"
  10702. LIBS="$save_LIBS"
  10703. ;;
  10704. esac
  10705. case $lt_cv_dlopen_self in
  10706. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10707. *) enable_dlopen_self=unknown ;;
  10708. esac
  10709. case $lt_cv_dlopen_self_static in
  10710. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10711. *) enable_dlopen_self_static=unknown ;;
  10712. esac
  10713. fi
  10714. striplib=
  10715. old_striplib=
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10717. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10718. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10719. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10720. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10722. $as_echo "yes" >&6; }
  10723. else
  10724. # FIXME - insert some real tests, host_os isn't really good enough
  10725. case $host_os in
  10726. darwin*)
  10727. if test -n "$STRIP" ; then
  10728. striplib="$STRIP -x"
  10729. old_striplib="$STRIP -S"
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10731. $as_echo "yes" >&6; }
  10732. else
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10734. $as_echo "no" >&6; }
  10735. fi
  10736. ;;
  10737. *)
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10739. $as_echo "no" >&6; }
  10740. ;;
  10741. esac
  10742. fi
  10743. # Report which library types will actually be built
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10745. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10747. $as_echo "$can_build_shared" >&6; }
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10749. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10750. test "$can_build_shared" = "no" && enable_shared=no
  10751. # On AIX, shared libraries and static libraries use the same namespace, and
  10752. # are all built from PIC.
  10753. case $host_os in
  10754. aix3*)
  10755. test "$enable_shared" = yes && enable_static=no
  10756. if test -n "$RANLIB"; then
  10757. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10758. postinstall_cmds='$RANLIB $lib'
  10759. fi
  10760. ;;
  10761. aix[4-9]*)
  10762. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10763. test "$enable_shared" = yes && enable_static=no
  10764. fi
  10765. ;;
  10766. esac
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10768. $as_echo "$enable_shared" >&6; }
  10769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10770. $as_echo_n "checking whether to build static libraries... " >&6; }
  10771. # Make sure either enable_shared or enable_static is yes.
  10772. test "$enable_shared" = yes || enable_static=yes
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10774. $as_echo "$enable_static" >&6; }
  10775. fi
  10776. ac_ext=c
  10777. ac_cpp='$CPP $CPPFLAGS'
  10778. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10779. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10780. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10781. CC="$lt_save_CC"
  10782. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10783. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10784. (test "X$CXX" != "Xg++"))) ; then
  10785. ac_ext=cpp
  10786. ac_cpp='$CXXCPP $CPPFLAGS'
  10787. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10788. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10789. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10791. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10792. if test -z "$CXXCPP"; then
  10793. if ${ac_cv_prog_CXXCPP+:} false; then :
  10794. $as_echo_n "(cached) " >&6
  10795. else
  10796. # Double quotes because CXXCPP needs to be expanded
  10797. for CXXCPP in "$CXX -E" "/lib/cpp"
  10798. do
  10799. ac_preproc_ok=false
  10800. for ac_cxx_preproc_warn_flag in '' yes
  10801. do
  10802. # Use a header file that comes with gcc, so configuring glibc
  10803. # with a fresh cross-compiler works.
  10804. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10805. # <limits.h> exists even on freestanding compilers.
  10806. # On the NeXT, cc -E runs the code through the compiler's parser,
  10807. # not just through cpp. "Syntax error" is here to catch this case.
  10808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10809. /* end confdefs.h. */
  10810. #ifdef __STDC__
  10811. # include <limits.h>
  10812. #else
  10813. # include <assert.h>
  10814. #endif
  10815. Syntax error
  10816. _ACEOF
  10817. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10818. else
  10819. # Broken: fails on valid input.
  10820. continue
  10821. fi
  10822. rm -f conftest.err conftest.i conftest.$ac_ext
  10823. # OK, works on sane cases. Now check whether nonexistent headers
  10824. # can be detected and how.
  10825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10826. /* end confdefs.h. */
  10827. #include <ac_nonexistent.h>
  10828. _ACEOF
  10829. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10830. # Broken: success on invalid input.
  10831. continue
  10832. else
  10833. # Passes both tests.
  10834. ac_preproc_ok=:
  10835. break
  10836. fi
  10837. rm -f conftest.err conftest.i conftest.$ac_ext
  10838. done
  10839. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10840. rm -f conftest.i conftest.err conftest.$ac_ext
  10841. if $ac_preproc_ok; then :
  10842. break
  10843. fi
  10844. done
  10845. ac_cv_prog_CXXCPP=$CXXCPP
  10846. fi
  10847. CXXCPP=$ac_cv_prog_CXXCPP
  10848. else
  10849. ac_cv_prog_CXXCPP=$CXXCPP
  10850. fi
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10852. $as_echo "$CXXCPP" >&6; }
  10853. ac_preproc_ok=false
  10854. for ac_cxx_preproc_warn_flag in '' yes
  10855. do
  10856. # Use a header file that comes with gcc, so configuring glibc
  10857. # with a fresh cross-compiler works.
  10858. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10859. # <limits.h> exists even on freestanding compilers.
  10860. # On the NeXT, cc -E runs the code through the compiler's parser,
  10861. # not just through cpp. "Syntax error" is here to catch this case.
  10862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10863. /* end confdefs.h. */
  10864. #ifdef __STDC__
  10865. # include <limits.h>
  10866. #else
  10867. # include <assert.h>
  10868. #endif
  10869. Syntax error
  10870. _ACEOF
  10871. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10872. else
  10873. # Broken: fails on valid input.
  10874. continue
  10875. fi
  10876. rm -f conftest.err conftest.i conftest.$ac_ext
  10877. # OK, works on sane cases. Now check whether nonexistent headers
  10878. # can be detected and how.
  10879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10880. /* end confdefs.h. */
  10881. #include <ac_nonexistent.h>
  10882. _ACEOF
  10883. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10884. # Broken: success on invalid input.
  10885. continue
  10886. else
  10887. # Passes both tests.
  10888. ac_preproc_ok=:
  10889. break
  10890. fi
  10891. rm -f conftest.err conftest.i conftest.$ac_ext
  10892. done
  10893. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10894. rm -f conftest.i conftest.err conftest.$ac_ext
  10895. if $ac_preproc_ok; then :
  10896. else
  10897. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10898. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10899. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10900. See \`config.log' for more details" "$LINENO" 5; }
  10901. fi
  10902. ac_ext=c
  10903. ac_cpp='$CPP $CPPFLAGS'
  10904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10907. else
  10908. _lt_caught_CXX_error=yes
  10909. fi
  10910. ac_ext=cpp
  10911. ac_cpp='$CXXCPP $CPPFLAGS'
  10912. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10913. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10914. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10915. archive_cmds_need_lc_CXX=no
  10916. allow_undefined_flag_CXX=
  10917. always_export_symbols_CXX=no
  10918. archive_expsym_cmds_CXX=
  10919. compiler_needs_object_CXX=no
  10920. export_dynamic_flag_spec_CXX=
  10921. hardcode_direct_CXX=no
  10922. hardcode_direct_absolute_CXX=no
  10923. hardcode_libdir_flag_spec_CXX=
  10924. hardcode_libdir_separator_CXX=
  10925. hardcode_minus_L_CXX=no
  10926. hardcode_shlibpath_var_CXX=unsupported
  10927. hardcode_automatic_CXX=no
  10928. inherit_rpath_CXX=no
  10929. module_cmds_CXX=
  10930. module_expsym_cmds_CXX=
  10931. link_all_deplibs_CXX=unknown
  10932. old_archive_cmds_CXX=$old_archive_cmds
  10933. reload_flag_CXX=$reload_flag
  10934. reload_cmds_CXX=$reload_cmds
  10935. no_undefined_flag_CXX=
  10936. whole_archive_flag_spec_CXX=
  10937. enable_shared_with_static_runtimes_CXX=no
  10938. # Source file extension for C++ test sources.
  10939. ac_ext=cpp
  10940. # Object file extension for compiled C++ test sources.
  10941. objext=o
  10942. objext_CXX=$objext
  10943. # No sense in running all these tests if we already determined that
  10944. # the CXX compiler isn't working. Some variables (like enable_shared)
  10945. # are currently assumed to apply to all compilers on this platform,
  10946. # and will be corrupted by setting them based on a non-working compiler.
  10947. if test "$_lt_caught_CXX_error" != yes; then
  10948. # Code to be used in simple compile tests
  10949. lt_simple_compile_test_code="int some_variable = 0;"
  10950. # Code to be used in simple link tests
  10951. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10952. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10953. # If no C compiler was specified, use CC.
  10954. LTCC=${LTCC-"$CC"}
  10955. # If no C compiler flags were specified, use CFLAGS.
  10956. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10957. # Allow CC to be a program name with arguments.
  10958. compiler=$CC
  10959. # save warnings/boilerplate of simple test code
  10960. ac_outfile=conftest.$ac_objext
  10961. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10962. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10963. _lt_compiler_boilerplate=`cat conftest.err`
  10964. $RM conftest*
  10965. ac_outfile=conftest.$ac_objext
  10966. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10967. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10968. _lt_linker_boilerplate=`cat conftest.err`
  10969. $RM -r conftest*
  10970. # Allow CC to be a program name with arguments.
  10971. lt_save_CC=$CC
  10972. lt_save_CFLAGS=$CFLAGS
  10973. lt_save_LD=$LD
  10974. lt_save_GCC=$GCC
  10975. GCC=$GXX
  10976. lt_save_with_gnu_ld=$with_gnu_ld
  10977. lt_save_path_LD=$lt_cv_path_LD
  10978. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10979. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10980. else
  10981. $as_unset lt_cv_prog_gnu_ld
  10982. fi
  10983. if test -n "${lt_cv_path_LDCXX+set}"; then
  10984. lt_cv_path_LD=$lt_cv_path_LDCXX
  10985. else
  10986. $as_unset lt_cv_path_LD
  10987. fi
  10988. test -z "${LDCXX+set}" || LD=$LDCXX
  10989. CC=${CXX-"c++"}
  10990. CFLAGS=$CXXFLAGS
  10991. compiler=$CC
  10992. compiler_CXX=$CC
  10993. for cc_temp in $compiler""; do
  10994. case $cc_temp in
  10995. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10996. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10997. \-*) ;;
  10998. *) break;;
  10999. esac
  11000. done
  11001. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11002. if test -n "$compiler"; then
  11003. # We don't want -fno-exception when compiling C++ code, so set the
  11004. # no_builtin_flag separately
  11005. if test "$GXX" = yes; then
  11006. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11007. else
  11008. lt_prog_compiler_no_builtin_flag_CXX=
  11009. fi
  11010. if test "$GXX" = yes; then
  11011. # Set up default GNU C++ configuration
  11012. # Check whether --with-gnu-ld was given.
  11013. if test "${with_gnu_ld+set}" = set; then :
  11014. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11015. else
  11016. with_gnu_ld=no
  11017. fi
  11018. ac_prog=ld
  11019. if test "$GCC" = yes; then
  11020. # Check if gcc -print-prog-name=ld gives a path.
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11022. $as_echo_n "checking for ld used by $CC... " >&6; }
  11023. case $host in
  11024. *-*-mingw*)
  11025. # gcc leaves a trailing carriage return which upsets mingw
  11026. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11027. *)
  11028. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11029. esac
  11030. case $ac_prog in
  11031. # Accept absolute paths.
  11032. [\\/]* | ?:[\\/]*)
  11033. re_direlt='/[^/][^/]*/\.\./'
  11034. # Canonicalize the pathname of ld
  11035. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11036. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11037. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11038. done
  11039. test -z "$LD" && LD="$ac_prog"
  11040. ;;
  11041. "")
  11042. # If it fails, then pretend we aren't using GCC.
  11043. ac_prog=ld
  11044. ;;
  11045. *)
  11046. # If it is relative, then search for the first ld in PATH.
  11047. with_gnu_ld=unknown
  11048. ;;
  11049. esac
  11050. elif test "$with_gnu_ld" = yes; then
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11052. $as_echo_n "checking for GNU ld... " >&6; }
  11053. else
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11055. $as_echo_n "checking for non-GNU ld... " >&6; }
  11056. fi
  11057. if ${lt_cv_path_LD+:} false; then :
  11058. $as_echo_n "(cached) " >&6
  11059. else
  11060. if test -z "$LD"; then
  11061. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11062. for ac_dir in $PATH; do
  11063. IFS="$lt_save_ifs"
  11064. test -z "$ac_dir" && ac_dir=.
  11065. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11066. lt_cv_path_LD="$ac_dir/$ac_prog"
  11067. # Check to see if the program is GNU ld. I'd rather use --version,
  11068. # but apparently some variants of GNU ld only accept -v.
  11069. # Break only if it was the GNU/non-GNU ld that we prefer.
  11070. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11071. *GNU* | *'with BFD'*)
  11072. test "$with_gnu_ld" != no && break
  11073. ;;
  11074. *)
  11075. test "$with_gnu_ld" != yes && break
  11076. ;;
  11077. esac
  11078. fi
  11079. done
  11080. IFS="$lt_save_ifs"
  11081. else
  11082. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11083. fi
  11084. fi
  11085. LD="$lt_cv_path_LD"
  11086. if test -n "$LD"; then
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11088. $as_echo "$LD" >&6; }
  11089. else
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11091. $as_echo "no" >&6; }
  11092. fi
  11093. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11095. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11096. if ${lt_cv_prog_gnu_ld+:} false; then :
  11097. $as_echo_n "(cached) " >&6
  11098. else
  11099. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11100. case `$LD -v 2>&1 </dev/null` in
  11101. *GNU* | *'with BFD'*)
  11102. lt_cv_prog_gnu_ld=yes
  11103. ;;
  11104. *)
  11105. lt_cv_prog_gnu_ld=no
  11106. ;;
  11107. esac
  11108. fi
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11110. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11111. with_gnu_ld=$lt_cv_prog_gnu_ld
  11112. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11113. # archiving commands below assume that GNU ld is being used.
  11114. if test "$with_gnu_ld" = yes; then
  11115. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11116. 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'
  11117. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11118. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11119. # If archive_cmds runs LD, not CC, wlarc should be empty
  11120. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11121. # investigate it a little bit more. (MM)
  11122. wlarc='${wl}'
  11123. # ancient GNU ld didn't support --whole-archive et. al.
  11124. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11125. $GREP 'no-whole-archive' > /dev/null; then
  11126. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11127. else
  11128. whole_archive_flag_spec_CXX=
  11129. fi
  11130. else
  11131. with_gnu_ld=no
  11132. wlarc=
  11133. # A generic and very simple default shared library creation
  11134. # command for GNU C++ for the case where it uses the native
  11135. # linker, instead of GNU ld. If possible, this setting should
  11136. # overridden to take advantage of the native linker features on
  11137. # the platform it is being used on.
  11138. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11139. fi
  11140. # Commands to make compiler produce verbose output that lists
  11141. # what "hidden" libraries, object files and flags are used when
  11142. # linking a shared library.
  11143. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11144. else
  11145. GXX=no
  11146. with_gnu_ld=no
  11147. wlarc=
  11148. fi
  11149. # PORTME: fill in a description of your system's C++ link characteristics
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11151. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11152. ld_shlibs_CXX=yes
  11153. case $host_os in
  11154. aix3*)
  11155. # FIXME: insert proper C++ library support
  11156. ld_shlibs_CXX=no
  11157. ;;
  11158. aix[4-9]*)
  11159. if test "$host_cpu" = ia64; then
  11160. # On IA64, the linker does run time linking by default, so we don't
  11161. # have to do anything special.
  11162. aix_use_runtimelinking=no
  11163. exp_sym_flag='-Bexport'
  11164. no_entry_flag=""
  11165. else
  11166. aix_use_runtimelinking=no
  11167. # Test if we are trying to use run time linking or normal
  11168. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11169. # need to do runtime linking.
  11170. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11171. for ld_flag in $LDFLAGS; do
  11172. case $ld_flag in
  11173. *-brtl*)
  11174. aix_use_runtimelinking=yes
  11175. break
  11176. ;;
  11177. esac
  11178. done
  11179. ;;
  11180. esac
  11181. exp_sym_flag='-bexport'
  11182. no_entry_flag='-bnoentry'
  11183. fi
  11184. # When large executables or shared objects are built, AIX ld can
  11185. # have problems creating the table of contents. If linking a library
  11186. # or program results in "error TOC overflow" add -mminimal-toc to
  11187. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11188. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11189. archive_cmds_CXX=''
  11190. hardcode_direct_CXX=yes
  11191. hardcode_direct_absolute_CXX=yes
  11192. hardcode_libdir_separator_CXX=':'
  11193. link_all_deplibs_CXX=yes
  11194. file_list_spec_CXX='${wl}-f,'
  11195. if test "$GXX" = yes; then
  11196. case $host_os in aix4.[012]|aix4.[012].*)
  11197. # We only want to do this on AIX 4.2 and lower, the check
  11198. # below for broken collect2 doesn't work under 4.3+
  11199. collect2name=`${CC} -print-prog-name=collect2`
  11200. if test -f "$collect2name" &&
  11201. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11202. then
  11203. # We have reworked collect2
  11204. :
  11205. else
  11206. # We have old collect2
  11207. hardcode_direct_CXX=unsupported
  11208. # It fails to find uninstalled libraries when the uninstalled
  11209. # path is not listed in the libpath. Setting hardcode_minus_L
  11210. # to unsupported forces relinking
  11211. hardcode_minus_L_CXX=yes
  11212. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11213. hardcode_libdir_separator_CXX=
  11214. fi
  11215. esac
  11216. shared_flag='-shared'
  11217. if test "$aix_use_runtimelinking" = yes; then
  11218. shared_flag="$shared_flag "'${wl}-G'
  11219. fi
  11220. else
  11221. # not using gcc
  11222. if test "$host_cpu" = ia64; then
  11223. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11224. # chokes on -Wl,-G. The following line is correct:
  11225. shared_flag='-G'
  11226. else
  11227. if test "$aix_use_runtimelinking" = yes; then
  11228. shared_flag='${wl}-G'
  11229. else
  11230. shared_flag='${wl}-bM:SRE'
  11231. fi
  11232. fi
  11233. fi
  11234. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11235. # It seems that -bexpall does not export symbols beginning with
  11236. # underscore (_), so it is better to generate a list of symbols to
  11237. # export.
  11238. always_export_symbols_CXX=yes
  11239. if test "$aix_use_runtimelinking" = yes; then
  11240. # Warning - without using the other runtime loading flags (-brtl),
  11241. # -berok will link without error, but may produce a broken library.
  11242. allow_undefined_flag_CXX='-berok'
  11243. # Determine the default libpath from the value encoded in an empty
  11244. # executable.
  11245. if test "${lt_cv_aix_libpath+set}" = set; then
  11246. aix_libpath=$lt_cv_aix_libpath
  11247. else
  11248. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11249. $as_echo_n "(cached) " >&6
  11250. else
  11251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11252. /* end confdefs.h. */
  11253. int
  11254. main ()
  11255. {
  11256. ;
  11257. return 0;
  11258. }
  11259. _ACEOF
  11260. if ac_fn_cxx_try_link "$LINENO"; then :
  11261. lt_aix_libpath_sed='
  11262. /Import File Strings/,/^$/ {
  11263. /^0/ {
  11264. s/^0 *\([^ ]*\) *$/\1/
  11265. p
  11266. }
  11267. }'
  11268. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11269. # Check for a 64-bit object if we didn't find anything.
  11270. if test -z "$lt_cv_aix_libpath__CXX"; then
  11271. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11272. fi
  11273. fi
  11274. rm -f core conftest.err conftest.$ac_objext \
  11275. conftest$ac_exeext conftest.$ac_ext
  11276. if test -z "$lt_cv_aix_libpath__CXX"; then
  11277. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11278. fi
  11279. fi
  11280. aix_libpath=$lt_cv_aix_libpath__CXX
  11281. fi
  11282. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11283. 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"
  11284. else
  11285. if test "$host_cpu" = ia64; then
  11286. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11287. allow_undefined_flag_CXX="-z nodefs"
  11288. 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"
  11289. else
  11290. # Determine the default libpath from the value encoded in an
  11291. # empty executable.
  11292. if test "${lt_cv_aix_libpath+set}" = set; then
  11293. aix_libpath=$lt_cv_aix_libpath
  11294. else
  11295. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11296. $as_echo_n "(cached) " >&6
  11297. else
  11298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11299. /* end confdefs.h. */
  11300. int
  11301. main ()
  11302. {
  11303. ;
  11304. return 0;
  11305. }
  11306. _ACEOF
  11307. if ac_fn_cxx_try_link "$LINENO"; then :
  11308. lt_aix_libpath_sed='
  11309. /Import File Strings/,/^$/ {
  11310. /^0/ {
  11311. s/^0 *\([^ ]*\) *$/\1/
  11312. p
  11313. }
  11314. }'
  11315. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11316. # Check for a 64-bit object if we didn't find anything.
  11317. if test -z "$lt_cv_aix_libpath__CXX"; then
  11318. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11319. fi
  11320. fi
  11321. rm -f core conftest.err conftest.$ac_objext \
  11322. conftest$ac_exeext conftest.$ac_ext
  11323. if test -z "$lt_cv_aix_libpath__CXX"; then
  11324. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11325. fi
  11326. fi
  11327. aix_libpath=$lt_cv_aix_libpath__CXX
  11328. fi
  11329. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11330. # Warning - without using the other run time loading flags,
  11331. # -berok will link without error, but may produce a broken library.
  11332. no_undefined_flag_CXX=' ${wl}-bernotok'
  11333. allow_undefined_flag_CXX=' ${wl}-berok'
  11334. if test "$with_gnu_ld" = yes; then
  11335. # We only use this code for GNU lds that support --whole-archive.
  11336. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11337. else
  11338. # Exported symbols can be pulled into shared objects from archives
  11339. whole_archive_flag_spec_CXX='$convenience'
  11340. fi
  11341. archive_cmds_need_lc_CXX=yes
  11342. # This is similar to how AIX traditionally builds its shared
  11343. # libraries.
  11344. 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'
  11345. fi
  11346. fi
  11347. ;;
  11348. beos*)
  11349. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11350. allow_undefined_flag_CXX=unsupported
  11351. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11352. # support --undefined. This deserves some investigation. FIXME
  11353. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11354. else
  11355. ld_shlibs_CXX=no
  11356. fi
  11357. ;;
  11358. chorus*)
  11359. case $cc_basename in
  11360. *)
  11361. # FIXME: insert proper C++ library support
  11362. ld_shlibs_CXX=no
  11363. ;;
  11364. esac
  11365. ;;
  11366. cygwin* | mingw* | pw32* | cegcc*)
  11367. case $GXX,$cc_basename in
  11368. ,cl* | no,cl*)
  11369. # Native MSVC
  11370. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11371. # no search path for DLLs.
  11372. hardcode_libdir_flag_spec_CXX=' '
  11373. allow_undefined_flag_CXX=unsupported
  11374. always_export_symbols_CXX=yes
  11375. file_list_spec_CXX='@'
  11376. # Tell ltmain to make .lib files, not .a files.
  11377. libext=lib
  11378. # Tell ltmain to make .dll files, not .so files.
  11379. shrext_cmds=".dll"
  11380. # FIXME: Setting linknames here is a bad hack.
  11381. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11382. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11383. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11384. else
  11385. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11386. fi~
  11387. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11388. linknames='
  11389. # The linker will not automatically build a static lib if we build a DLL.
  11390. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11391. enable_shared_with_static_runtimes_CXX=yes
  11392. # Don't use ranlib
  11393. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11394. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11395. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11396. case $lt_outputfile in
  11397. *.exe|*.EXE) ;;
  11398. *)
  11399. lt_outputfile="$lt_outputfile.exe"
  11400. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11401. ;;
  11402. esac~
  11403. func_to_tool_file "$lt_outputfile"~
  11404. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11405. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11406. $RM "$lt_outputfile.manifest";
  11407. fi'
  11408. ;;
  11409. *)
  11410. # g++
  11411. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11412. # as there is no search path for DLLs.
  11413. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11414. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11415. allow_undefined_flag_CXX=unsupported
  11416. always_export_symbols_CXX=no
  11417. enable_shared_with_static_runtimes_CXX=yes
  11418. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11419. 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'
  11420. # If the export-symbols file already is a .def file (1st line
  11421. # is EXPORTS), use it as is; otherwise, prepend...
  11422. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11423. cp $export_symbols $output_objdir/$soname.def;
  11424. else
  11425. echo EXPORTS > $output_objdir/$soname.def;
  11426. cat $export_symbols >> $output_objdir/$soname.def;
  11427. fi~
  11428. $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'
  11429. else
  11430. ld_shlibs_CXX=no
  11431. fi
  11432. ;;
  11433. esac
  11434. ;;
  11435. darwin* | rhapsody*)
  11436. archive_cmds_need_lc_CXX=no
  11437. hardcode_direct_CXX=no
  11438. hardcode_automatic_CXX=yes
  11439. hardcode_shlibpath_var_CXX=unsupported
  11440. if test "$lt_cv_ld_force_load" = "yes"; then
  11441. 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\"`'
  11442. else
  11443. whole_archive_flag_spec_CXX=''
  11444. fi
  11445. link_all_deplibs_CXX=yes
  11446. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11447. case $cc_basename in
  11448. ifort*) _lt_dar_can_shared=yes ;;
  11449. *) _lt_dar_can_shared=$GCC ;;
  11450. esac
  11451. if test "$_lt_dar_can_shared" = "yes"; then
  11452. output_verbose_link_cmd=func_echo_all
  11453. 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}"
  11454. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11455. 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}"
  11456. 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}"
  11457. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11458. 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}"
  11459. 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}"
  11460. fi
  11461. else
  11462. ld_shlibs_CXX=no
  11463. fi
  11464. ;;
  11465. dgux*)
  11466. case $cc_basename in
  11467. ec++*)
  11468. # FIXME: insert proper C++ library support
  11469. ld_shlibs_CXX=no
  11470. ;;
  11471. ghcx*)
  11472. # Green Hills C++ Compiler
  11473. # FIXME: insert proper C++ library support
  11474. ld_shlibs_CXX=no
  11475. ;;
  11476. *)
  11477. # FIXME: insert proper C++ library support
  11478. ld_shlibs_CXX=no
  11479. ;;
  11480. esac
  11481. ;;
  11482. freebsd2.*)
  11483. # C++ shared libraries reported to be fairly broken before
  11484. # switch to ELF
  11485. ld_shlibs_CXX=no
  11486. ;;
  11487. freebsd-elf*)
  11488. archive_cmds_need_lc_CXX=no
  11489. ;;
  11490. freebsd* | dragonfly*)
  11491. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11492. # conventions
  11493. ld_shlibs_CXX=yes
  11494. ;;
  11495. gnu*)
  11496. ;;
  11497. haiku*)
  11498. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11499. link_all_deplibs_CXX=yes
  11500. ;;
  11501. hpux9*)
  11502. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11503. hardcode_libdir_separator_CXX=:
  11504. export_dynamic_flag_spec_CXX='${wl}-E'
  11505. hardcode_direct_CXX=yes
  11506. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11507. # but as the default
  11508. # location of the library.
  11509. case $cc_basename in
  11510. CC*)
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. aCC*)
  11515. 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'
  11516. # Commands to make compiler produce verbose output that lists
  11517. # what "hidden" libraries, object files and flags are used when
  11518. # linking a shared library.
  11519. #
  11520. # There doesn't appear to be a way to prevent this compiler from
  11521. # explicitly linking system object files so we need to strip them
  11522. # from the output so that they don't get included in the library
  11523. # dependencies.
  11524. 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"'
  11525. ;;
  11526. *)
  11527. if test "$GXX" = yes; then
  11528. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  11529. else
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. fi
  11533. ;;
  11534. esac
  11535. ;;
  11536. hpux10*|hpux11*)
  11537. if test $with_gnu_ld = no; then
  11538. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11539. hardcode_libdir_separator_CXX=:
  11540. case $host_cpu in
  11541. hppa*64*|ia64*)
  11542. ;;
  11543. *)
  11544. export_dynamic_flag_spec_CXX='${wl}-E'
  11545. ;;
  11546. esac
  11547. fi
  11548. case $host_cpu in
  11549. hppa*64*|ia64*)
  11550. hardcode_direct_CXX=no
  11551. hardcode_shlibpath_var_CXX=no
  11552. ;;
  11553. *)
  11554. hardcode_direct_CXX=yes
  11555. hardcode_direct_absolute_CXX=yes
  11556. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11557. # but as the default
  11558. # location of the library.
  11559. ;;
  11560. esac
  11561. case $cc_basename in
  11562. CC*)
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. aCC*)
  11567. case $host_cpu in
  11568. hppa*64*)
  11569. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11570. ;;
  11571. ia64*)
  11572. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11573. ;;
  11574. *)
  11575. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11576. ;;
  11577. esac
  11578. # Commands to make compiler produce verbose output that lists
  11579. # what "hidden" libraries, object files and flags are used when
  11580. # linking a shared library.
  11581. #
  11582. # There doesn't appear to be a way to prevent this compiler from
  11583. # explicitly linking system object files so we need to strip them
  11584. # from the output so that they don't get included in the library
  11585. # dependencies.
  11586. 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"'
  11587. ;;
  11588. *)
  11589. if test "$GXX" = yes; then
  11590. if test $with_gnu_ld = no; then
  11591. case $host_cpu in
  11592. hppa*64*)
  11593. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11594. ;;
  11595. ia64*)
  11596. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11597. ;;
  11598. *)
  11599. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11600. ;;
  11601. esac
  11602. fi
  11603. else
  11604. # FIXME: insert proper C++ library support
  11605. ld_shlibs_CXX=no
  11606. fi
  11607. ;;
  11608. esac
  11609. ;;
  11610. interix[3-9]*)
  11611. hardcode_direct_CXX=no
  11612. hardcode_shlibpath_var_CXX=no
  11613. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11614. export_dynamic_flag_spec_CXX='${wl}-E'
  11615. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11616. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11617. # default) and relocated if they conflict, which is a slow very memory
  11618. # consuming and fragmenting process. To avoid this, we pick a random,
  11619. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11620. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11621. 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'
  11622. 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'
  11623. ;;
  11624. irix5* | irix6*)
  11625. case $cc_basename in
  11626. CC*)
  11627. # SGI C++
  11628. 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'
  11629. # Archives containing C++ object files must be created using
  11630. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11631. # necessary to make sure instantiated templates are included
  11632. # in the archive.
  11633. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11634. ;;
  11635. *)
  11636. if test "$GXX" = yes; then
  11637. if test "$with_gnu_ld" = no; then
  11638. archive_cmds_CXX='$CC -shared $pic_flag -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'
  11639. else
  11640. archive_cmds_CXX='$CC -shared $pic_flag -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'
  11641. fi
  11642. fi
  11643. link_all_deplibs_CXX=yes
  11644. ;;
  11645. esac
  11646. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11647. hardcode_libdir_separator_CXX=:
  11648. inherit_rpath_CXX=yes
  11649. ;;
  11650. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11651. case $cc_basename in
  11652. KCC*)
  11653. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11654. # KCC will only create a shared library if the output file
  11655. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11656. # to its proper name (with version) after linking.
  11657. 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'
  11658. 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'
  11659. # Commands to make compiler produce verbose output that lists
  11660. # what "hidden" libraries, object files and flags are used when
  11661. # linking a shared library.
  11662. #
  11663. # There doesn't appear to be a way to prevent this compiler from
  11664. # explicitly linking system object files so we need to strip them
  11665. # from the output so that they don't get included in the library
  11666. # dependencies.
  11667. 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"'
  11668. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11669. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11670. # Archives containing C++ object files must be created using
  11671. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11672. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11673. ;;
  11674. icpc* | ecpc* )
  11675. # Intel C++
  11676. with_gnu_ld=yes
  11677. # version 8.0 and above of icpc choke on multiply defined symbols
  11678. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11679. # earlier do not add the objects themselves.
  11680. case `$CC -V 2>&1` in
  11681. *"Version 7."*)
  11682. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11683. 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'
  11684. ;;
  11685. *) # Version 8.0 or newer
  11686. tmp_idyn=
  11687. case $host_cpu in
  11688. ia64*) tmp_idyn=' -i_dynamic';;
  11689. esac
  11690. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11691. 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'
  11692. ;;
  11693. esac
  11694. archive_cmds_need_lc_CXX=no
  11695. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11696. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11697. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11698. ;;
  11699. pgCC* | pgcpp*)
  11700. # Portland Group C++ compiler
  11701. case `$CC -V` in
  11702. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11703. prelink_cmds_CXX='tpldir=Template.dir~
  11704. rm -rf $tpldir~
  11705. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11706. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11707. old_archive_cmds_CXX='tpldir=Template.dir~
  11708. rm -rf $tpldir~
  11709. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11710. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11711. $RANLIB $oldlib'
  11712. archive_cmds_CXX='tpldir=Template.dir~
  11713. rm -rf $tpldir~
  11714. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11715. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11716. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11717. rm -rf $tpldir~
  11718. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11719. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11720. ;;
  11721. *) # Version 6 and above use weak symbols
  11722. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11723. 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'
  11724. ;;
  11725. esac
  11726. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11727. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11728. 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'
  11729. ;;
  11730. cxx*)
  11731. # Compaq C++
  11732. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11733. 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'
  11734. runpath_var=LD_RUN_PATH
  11735. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11736. hardcode_libdir_separator_CXX=:
  11737. # Commands to make compiler produce verbose output that lists
  11738. # what "hidden" libraries, object files and flags are used when
  11739. # linking a shared library.
  11740. #
  11741. # There doesn't appear to be a way to prevent this compiler from
  11742. # explicitly linking system object files so we need to strip them
  11743. # from the output so that they don't get included in the library
  11744. # dependencies.
  11745. 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'
  11746. ;;
  11747. xl* | mpixl* | bgxl*)
  11748. # IBM XL 8.0 on PPC, with GNU ld
  11749. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11750. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11751. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11752. if test "x$supports_anon_versioning" = xyes; then
  11753. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11754. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11755. echo "local: *; };" >> $output_objdir/$libname.ver~
  11756. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11757. fi
  11758. ;;
  11759. *)
  11760. case `$CC -V 2>&1 | sed 5q` in
  11761. *Sun\ C*)
  11762. # Sun C++ 5.9
  11763. no_undefined_flag_CXX=' -zdefs'
  11764. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11765. 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'
  11766. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11767. 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'
  11768. compiler_needs_object_CXX=yes
  11769. # Not sure whether something based on
  11770. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11771. # would be better.
  11772. output_verbose_link_cmd='func_echo_all'
  11773. # Archives containing C++ object files must be created using
  11774. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11775. # necessary to make sure instantiated templates are included
  11776. # in the archive.
  11777. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11778. ;;
  11779. esac
  11780. ;;
  11781. esac
  11782. ;;
  11783. lynxos*)
  11784. # FIXME: insert proper C++ library support
  11785. ld_shlibs_CXX=no
  11786. ;;
  11787. m88k*)
  11788. # FIXME: insert proper C++ library support
  11789. ld_shlibs_CXX=no
  11790. ;;
  11791. mvs*)
  11792. case $cc_basename in
  11793. cxx*)
  11794. # FIXME: insert proper C++ library support
  11795. ld_shlibs_CXX=no
  11796. ;;
  11797. *)
  11798. # FIXME: insert proper C++ library support
  11799. ld_shlibs_CXX=no
  11800. ;;
  11801. esac
  11802. ;;
  11803. netbsd*)
  11804. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11805. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11806. wlarc=
  11807. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11808. hardcode_direct_CXX=yes
  11809. hardcode_shlibpath_var_CXX=no
  11810. fi
  11811. # Workaround some broken pre-1.5 toolchains
  11812. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11813. ;;
  11814. *nto* | *qnx*)
  11815. ld_shlibs_CXX=yes
  11816. ;;
  11817. openbsd2*)
  11818. # C++ shared libraries are fairly broken
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. openbsd*)
  11822. if test -f /usr/libexec/ld.so; then
  11823. hardcode_direct_CXX=yes
  11824. hardcode_shlibpath_var_CXX=no
  11825. hardcode_direct_absolute_CXX=yes
  11826. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11827. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11828. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11829. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11830. export_dynamic_flag_spec_CXX='${wl}-E'
  11831. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11832. fi
  11833. output_verbose_link_cmd=func_echo_all
  11834. else
  11835. ld_shlibs_CXX=no
  11836. fi
  11837. ;;
  11838. osf3* | osf4* | osf5*)
  11839. case $cc_basename in
  11840. KCC*)
  11841. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11842. # KCC will only create a shared library if the output file
  11843. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11844. # to its proper name (with version) after linking.
  11845. 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'
  11846. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11847. hardcode_libdir_separator_CXX=:
  11848. # Archives containing C++ object files must be created using
  11849. # the KAI C++ compiler.
  11850. case $host in
  11851. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11852. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11853. esac
  11854. ;;
  11855. RCC*)
  11856. # Rational C++ 2.4.1
  11857. # FIXME: insert proper C++ library support
  11858. ld_shlibs_CXX=no
  11859. ;;
  11860. cxx*)
  11861. case $host in
  11862. osf3*)
  11863. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11864. 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'
  11865. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11866. ;;
  11867. *)
  11868. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11869. 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'
  11870. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11871. echo "-hidden">> $lib.exp~
  11872. $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~
  11873. $RM $lib.exp'
  11874. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11875. ;;
  11876. esac
  11877. hardcode_libdir_separator_CXX=:
  11878. # Commands to make compiler produce verbose output that lists
  11879. # what "hidden" libraries, object files and flags are used when
  11880. # linking a shared library.
  11881. #
  11882. # There doesn't appear to be a way to prevent this compiler from
  11883. # explicitly linking system object files so we need to strip them
  11884. # from the output so that they don't get included in the library
  11885. # dependencies.
  11886. 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"'
  11887. ;;
  11888. *)
  11889. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11890. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11891. case $host in
  11892. osf3*)
  11893. 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'
  11894. ;;
  11895. *)
  11896. archive_cmds_CXX='$CC -shared $pic_flag -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'
  11897. ;;
  11898. esac
  11899. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11900. hardcode_libdir_separator_CXX=:
  11901. # Commands to make compiler produce verbose output that lists
  11902. # what "hidden" libraries, object files and flags are used when
  11903. # linking a shared library.
  11904. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11905. else
  11906. # FIXME: insert proper C++ library support
  11907. ld_shlibs_CXX=no
  11908. fi
  11909. ;;
  11910. esac
  11911. ;;
  11912. psos*)
  11913. # FIXME: insert proper C++ library support
  11914. ld_shlibs_CXX=no
  11915. ;;
  11916. sunos4*)
  11917. case $cc_basename in
  11918. CC*)
  11919. # Sun C++ 4.x
  11920. # FIXME: insert proper C++ library support
  11921. ld_shlibs_CXX=no
  11922. ;;
  11923. lcc*)
  11924. # Lucid
  11925. # FIXME: insert proper C++ library support
  11926. ld_shlibs_CXX=no
  11927. ;;
  11928. *)
  11929. # FIXME: insert proper C++ library support
  11930. ld_shlibs_CXX=no
  11931. ;;
  11932. esac
  11933. ;;
  11934. solaris*)
  11935. case $cc_basename in
  11936. CC* | sunCC*)
  11937. # Sun C++ 4.2, 5.x and Centerline C++
  11938. archive_cmds_need_lc_CXX=yes
  11939. no_undefined_flag_CXX=' -zdefs'
  11940. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11941. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11942. $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'
  11943. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11944. hardcode_shlibpath_var_CXX=no
  11945. case $host_os in
  11946. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11947. *)
  11948. # The compiler driver will combine and reorder linker options,
  11949. # but understands `-z linker_flag'.
  11950. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11951. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11952. ;;
  11953. esac
  11954. link_all_deplibs_CXX=yes
  11955. output_verbose_link_cmd='func_echo_all'
  11956. # Archives containing C++ object files must be created using
  11957. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11958. # necessary to make sure instantiated templates are included
  11959. # in the archive.
  11960. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11961. ;;
  11962. gcx*)
  11963. # Green Hills C++ Compiler
  11964. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11965. # The C++ compiler must be used to create the archive.
  11966. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11967. ;;
  11968. *)
  11969. # GNU C++ compiler with Solaris linker
  11970. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11971. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11972. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11973. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11974. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11975. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11976. # Commands to make compiler produce verbose output that lists
  11977. # what "hidden" libraries, object files and flags are used when
  11978. # linking a shared library.
  11979. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11980. else
  11981. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11982. # platform.
  11983. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11984. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11985. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11986. # Commands to make compiler produce verbose output that lists
  11987. # what "hidden" libraries, object files and flags are used when
  11988. # linking a shared library.
  11989. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11990. fi
  11991. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11992. case $host_os in
  11993. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11994. *)
  11995. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11996. ;;
  11997. esac
  11998. fi
  11999. ;;
  12000. esac
  12001. ;;
  12002. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12003. no_undefined_flag_CXX='${wl}-z,text'
  12004. archive_cmds_need_lc_CXX=no
  12005. hardcode_shlibpath_var_CXX=no
  12006. runpath_var='LD_RUN_PATH'
  12007. case $cc_basename in
  12008. CC*)
  12009. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12010. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12011. ;;
  12012. *)
  12013. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12014. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12015. ;;
  12016. esac
  12017. ;;
  12018. sysv5* | sco3.2v5* | sco5v6*)
  12019. # Note: We can NOT use -z defs as we might desire, because we do not
  12020. # link with -lc, and that would cause any symbols used from libc to
  12021. # always be unresolved, which means just about no library would
  12022. # ever link correctly. If we're not using GNU ld we use -z text
  12023. # though, which does catch some bad symbols but isn't as heavy-handed
  12024. # as -z defs.
  12025. no_undefined_flag_CXX='${wl}-z,text'
  12026. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12027. archive_cmds_need_lc_CXX=no
  12028. hardcode_shlibpath_var_CXX=no
  12029. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12030. hardcode_libdir_separator_CXX=':'
  12031. link_all_deplibs_CXX=yes
  12032. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12033. runpath_var='LD_RUN_PATH'
  12034. case $cc_basename in
  12035. CC*)
  12036. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12037. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12038. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12039. '"$old_archive_cmds_CXX"
  12040. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12041. '"$reload_cmds_CXX"
  12042. ;;
  12043. *)
  12044. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12045. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12046. ;;
  12047. esac
  12048. ;;
  12049. tandem*)
  12050. case $cc_basename in
  12051. NCC*)
  12052. # NonStop-UX NCC 3.20
  12053. # FIXME: insert proper C++ library support
  12054. ld_shlibs_CXX=no
  12055. ;;
  12056. *)
  12057. # FIXME: insert proper C++ library support
  12058. ld_shlibs_CXX=no
  12059. ;;
  12060. esac
  12061. ;;
  12062. vxworks*)
  12063. # FIXME: insert proper C++ library support
  12064. ld_shlibs_CXX=no
  12065. ;;
  12066. *)
  12067. # FIXME: insert proper C++ library support
  12068. ld_shlibs_CXX=no
  12069. ;;
  12070. esac
  12071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12072. $as_echo "$ld_shlibs_CXX" >&6; }
  12073. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12074. GCC_CXX="$GXX"
  12075. LD_CXX="$LD"
  12076. ## CAVEAT EMPTOR:
  12077. ## There is no encapsulation within the following macros, do not change
  12078. ## the running order or otherwise move them around unless you know exactly
  12079. ## what you are doing...
  12080. # Dependencies to place before and after the object being linked:
  12081. predep_objects_CXX=
  12082. postdep_objects_CXX=
  12083. predeps_CXX=
  12084. postdeps_CXX=
  12085. compiler_lib_search_path_CXX=
  12086. cat > conftest.$ac_ext <<_LT_EOF
  12087. class Foo
  12088. {
  12089. public:
  12090. Foo (void) { a = 0; }
  12091. private:
  12092. int a;
  12093. };
  12094. _LT_EOF
  12095. _lt_libdeps_save_CFLAGS=$CFLAGS
  12096. case "$CC $CFLAGS " in #(
  12097. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12098. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12099. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12100. esac
  12101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12102. (eval $ac_compile) 2>&5
  12103. ac_status=$?
  12104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12105. test $ac_status = 0; }; then
  12106. # Parse the compiler output and extract the necessary
  12107. # objects, libraries and library flags.
  12108. # Sentinel used to keep track of whether or not we are before
  12109. # the conftest object file.
  12110. pre_test_object_deps_done=no
  12111. for p in `eval "$output_verbose_link_cmd"`; do
  12112. case ${prev}${p} in
  12113. -L* | -R* | -l*)
  12114. # Some compilers place space between "-{L,R}" and the path.
  12115. # Remove the space.
  12116. if test $p = "-L" ||
  12117. test $p = "-R"; then
  12118. prev=$p
  12119. continue
  12120. fi
  12121. # Expand the sysroot to ease extracting the directories later.
  12122. if test -z "$prev"; then
  12123. case $p in
  12124. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12125. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12126. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12127. esac
  12128. fi
  12129. case $p in
  12130. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12131. esac
  12132. if test "$pre_test_object_deps_done" = no; then
  12133. case ${prev} in
  12134. -L | -R)
  12135. # Internal compiler library paths should come after those
  12136. # provided the user. The postdeps already come after the
  12137. # user supplied libs so there is no need to process them.
  12138. if test -z "$compiler_lib_search_path_CXX"; then
  12139. compiler_lib_search_path_CXX="${prev}${p}"
  12140. else
  12141. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12142. fi
  12143. ;;
  12144. # The "-l" case would never come before the object being
  12145. # linked, so don't bother handling this case.
  12146. esac
  12147. else
  12148. if test -z "$postdeps_CXX"; then
  12149. postdeps_CXX="${prev}${p}"
  12150. else
  12151. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12152. fi
  12153. fi
  12154. prev=
  12155. ;;
  12156. *.lto.$objext) ;; # Ignore GCC LTO objects
  12157. *.$objext)
  12158. # This assumes that the test object file only shows up
  12159. # once in the compiler output.
  12160. if test "$p" = "conftest.$objext"; then
  12161. pre_test_object_deps_done=yes
  12162. continue
  12163. fi
  12164. if test "$pre_test_object_deps_done" = no; then
  12165. if test -z "$predep_objects_CXX"; then
  12166. predep_objects_CXX="$p"
  12167. else
  12168. predep_objects_CXX="$predep_objects_CXX $p"
  12169. fi
  12170. else
  12171. if test -z "$postdep_objects_CXX"; then
  12172. postdep_objects_CXX="$p"
  12173. else
  12174. postdep_objects_CXX="$postdep_objects_CXX $p"
  12175. fi
  12176. fi
  12177. ;;
  12178. *) ;; # Ignore the rest.
  12179. esac
  12180. done
  12181. # Clean up.
  12182. rm -f a.out a.exe
  12183. else
  12184. echo "libtool.m4: error: problem compiling CXX test program"
  12185. fi
  12186. $RM -f confest.$objext
  12187. CFLAGS=$_lt_libdeps_save_CFLAGS
  12188. # PORTME: override above test on systems where it is broken
  12189. case $host_os in
  12190. interix[3-9]*)
  12191. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12192. # hack all around it, let's just trust "g++" to DTRT.
  12193. predep_objects_CXX=
  12194. postdep_objects_CXX=
  12195. postdeps_CXX=
  12196. ;;
  12197. linux*)
  12198. case `$CC -V 2>&1 | sed 5q` in
  12199. *Sun\ C*)
  12200. # Sun C++ 5.9
  12201. # The more standards-conforming stlport4 library is
  12202. # incompatible with the Cstd library. Avoid specifying
  12203. # it if it's in CXXFLAGS. Ignore libCrun as
  12204. # -library=stlport4 depends on it.
  12205. case " $CXX $CXXFLAGS " in
  12206. *" -library=stlport4 "*)
  12207. solaris_use_stlport4=yes
  12208. ;;
  12209. esac
  12210. if test "$solaris_use_stlport4" != yes; then
  12211. postdeps_CXX='-library=Cstd -library=Crun'
  12212. fi
  12213. ;;
  12214. esac
  12215. ;;
  12216. solaris*)
  12217. case $cc_basename in
  12218. CC* | sunCC*)
  12219. # The more standards-conforming stlport4 library is
  12220. # incompatible with the Cstd library. Avoid specifying
  12221. # it if it's in CXXFLAGS. Ignore libCrun as
  12222. # -library=stlport4 depends on it.
  12223. case " $CXX $CXXFLAGS " in
  12224. *" -library=stlport4 "*)
  12225. solaris_use_stlport4=yes
  12226. ;;
  12227. esac
  12228. # Adding this requires a known-good setup of shared libraries for
  12229. # Sun compiler versions before 5.6, else PIC objects from an old
  12230. # archive will be linked into the output, leading to subtle bugs.
  12231. if test "$solaris_use_stlport4" != yes; then
  12232. postdeps_CXX='-library=Cstd -library=Crun'
  12233. fi
  12234. ;;
  12235. esac
  12236. ;;
  12237. esac
  12238. case " $postdeps_CXX " in
  12239. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12240. esac
  12241. compiler_lib_search_dirs_CXX=
  12242. if test -n "${compiler_lib_search_path_CXX}"; then
  12243. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12244. fi
  12245. lt_prog_compiler_wl_CXX=
  12246. lt_prog_compiler_pic_CXX=
  12247. lt_prog_compiler_static_CXX=
  12248. # C++ specific cases for pic, static, wl, etc.
  12249. if test "$GXX" = yes; then
  12250. lt_prog_compiler_wl_CXX='-Wl,'
  12251. lt_prog_compiler_static_CXX='-static'
  12252. case $host_os in
  12253. aix*)
  12254. # All AIX code is PIC.
  12255. if test "$host_cpu" = ia64; then
  12256. # AIX 5 now supports IA64 processor
  12257. lt_prog_compiler_static_CXX='-Bstatic'
  12258. fi
  12259. ;;
  12260. amigaos*)
  12261. case $host_cpu in
  12262. powerpc)
  12263. # see comment about AmigaOS4 .so support
  12264. lt_prog_compiler_pic_CXX='-fPIC'
  12265. ;;
  12266. m68k)
  12267. # FIXME: we need at least 68020 code to build shared libraries, but
  12268. # adding the `-m68020' flag to GCC prevents building anything better,
  12269. # like `-m68040'.
  12270. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12271. ;;
  12272. esac
  12273. ;;
  12274. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12275. # PIC is the default for these OSes.
  12276. ;;
  12277. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12278. # This hack is so that the source file can tell whether it is being
  12279. # built for inclusion in a dll (and should export symbols for example).
  12280. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12281. # (--disable-auto-import) libraries
  12282. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12283. ;;
  12284. darwin* | rhapsody*)
  12285. # PIC is the default on this platform
  12286. # Common symbols not allowed in MH_DYLIB files
  12287. lt_prog_compiler_pic_CXX='-fno-common'
  12288. ;;
  12289. *djgpp*)
  12290. # DJGPP does not support shared libraries at all
  12291. lt_prog_compiler_pic_CXX=
  12292. ;;
  12293. haiku*)
  12294. # PIC is the default for Haiku.
  12295. # The "-static" flag exists, but is broken.
  12296. lt_prog_compiler_static_CXX=
  12297. ;;
  12298. interix[3-9]*)
  12299. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12300. # Instead, we relocate shared libraries at runtime.
  12301. ;;
  12302. sysv4*MP*)
  12303. if test -d /usr/nec; then
  12304. lt_prog_compiler_pic_CXX=-Kconform_pic
  12305. fi
  12306. ;;
  12307. hpux*)
  12308. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12309. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12310. # sets the default TLS model and affects inlining.
  12311. case $host_cpu in
  12312. hppa*64*)
  12313. ;;
  12314. *)
  12315. lt_prog_compiler_pic_CXX='-fPIC'
  12316. ;;
  12317. esac
  12318. ;;
  12319. *qnx* | *nto*)
  12320. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12321. # it will coredump.
  12322. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12323. ;;
  12324. *)
  12325. lt_prog_compiler_pic_CXX='-fPIC'
  12326. ;;
  12327. esac
  12328. else
  12329. case $host_os in
  12330. aix[4-9]*)
  12331. # All AIX code is PIC.
  12332. if test "$host_cpu" = ia64; then
  12333. # AIX 5 now supports IA64 processor
  12334. lt_prog_compiler_static_CXX='-Bstatic'
  12335. else
  12336. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12337. fi
  12338. ;;
  12339. chorus*)
  12340. case $cc_basename in
  12341. cxch68*)
  12342. # Green Hills C++ Compiler
  12343. # _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"
  12344. ;;
  12345. esac
  12346. ;;
  12347. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12348. # This hack is so that the source file can tell whether it is being
  12349. # built for inclusion in a dll (and should export symbols for example).
  12350. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12351. ;;
  12352. dgux*)
  12353. case $cc_basename in
  12354. ec++*)
  12355. lt_prog_compiler_pic_CXX='-KPIC'
  12356. ;;
  12357. ghcx*)
  12358. # Green Hills C++ Compiler
  12359. lt_prog_compiler_pic_CXX='-pic'
  12360. ;;
  12361. *)
  12362. ;;
  12363. esac
  12364. ;;
  12365. freebsd* | dragonfly*)
  12366. # FreeBSD uses GNU C++
  12367. ;;
  12368. hpux9* | hpux10* | hpux11*)
  12369. case $cc_basename in
  12370. CC*)
  12371. lt_prog_compiler_wl_CXX='-Wl,'
  12372. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12373. if test "$host_cpu" != ia64; then
  12374. lt_prog_compiler_pic_CXX='+Z'
  12375. fi
  12376. ;;
  12377. aCC*)
  12378. lt_prog_compiler_wl_CXX='-Wl,'
  12379. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12380. case $host_cpu in
  12381. hppa*64*|ia64*)
  12382. # +Z the default
  12383. ;;
  12384. *)
  12385. lt_prog_compiler_pic_CXX='+Z'
  12386. ;;
  12387. esac
  12388. ;;
  12389. *)
  12390. ;;
  12391. esac
  12392. ;;
  12393. interix*)
  12394. # This is c89, which is MS Visual C++ (no shared libs)
  12395. # Anyone wants to do a port?
  12396. ;;
  12397. irix5* | irix6* | nonstopux*)
  12398. case $cc_basename in
  12399. CC*)
  12400. lt_prog_compiler_wl_CXX='-Wl,'
  12401. lt_prog_compiler_static_CXX='-non_shared'
  12402. # CC pic flag -KPIC is the default.
  12403. ;;
  12404. *)
  12405. ;;
  12406. esac
  12407. ;;
  12408. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12409. case $cc_basename in
  12410. KCC*)
  12411. # KAI C++ Compiler
  12412. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12413. lt_prog_compiler_pic_CXX='-fPIC'
  12414. ;;
  12415. ecpc* )
  12416. # old Intel C++ for x86_64 which still supported -KPIC.
  12417. lt_prog_compiler_wl_CXX='-Wl,'
  12418. lt_prog_compiler_pic_CXX='-KPIC'
  12419. lt_prog_compiler_static_CXX='-static'
  12420. ;;
  12421. icpc* )
  12422. # Intel C++, used to be incompatible with GCC.
  12423. # ICC 10 doesn't accept -KPIC any more.
  12424. lt_prog_compiler_wl_CXX='-Wl,'
  12425. lt_prog_compiler_pic_CXX='-fPIC'
  12426. lt_prog_compiler_static_CXX='-static'
  12427. ;;
  12428. pgCC* | pgcpp*)
  12429. # Portland Group C++ compiler
  12430. lt_prog_compiler_wl_CXX='-Wl,'
  12431. lt_prog_compiler_pic_CXX='-fpic'
  12432. lt_prog_compiler_static_CXX='-Bstatic'
  12433. ;;
  12434. cxx*)
  12435. # Compaq C++
  12436. # Make sure the PIC flag is empty. It appears that all Alpha
  12437. # Linux and Compaq Tru64 Unix objects are PIC.
  12438. lt_prog_compiler_pic_CXX=
  12439. lt_prog_compiler_static_CXX='-non_shared'
  12440. ;;
  12441. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12442. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12443. lt_prog_compiler_wl_CXX='-Wl,'
  12444. lt_prog_compiler_pic_CXX='-qpic'
  12445. lt_prog_compiler_static_CXX='-qstaticlink'
  12446. ;;
  12447. *)
  12448. case `$CC -V 2>&1 | sed 5q` in
  12449. *Sun\ C*)
  12450. # Sun C++ 5.9
  12451. lt_prog_compiler_pic_CXX='-KPIC'
  12452. lt_prog_compiler_static_CXX='-Bstatic'
  12453. lt_prog_compiler_wl_CXX='-Qoption ld '
  12454. ;;
  12455. esac
  12456. ;;
  12457. esac
  12458. ;;
  12459. lynxos*)
  12460. ;;
  12461. m88k*)
  12462. ;;
  12463. mvs*)
  12464. case $cc_basename in
  12465. cxx*)
  12466. lt_prog_compiler_pic_CXX='-W c,exportall'
  12467. ;;
  12468. *)
  12469. ;;
  12470. esac
  12471. ;;
  12472. netbsd*)
  12473. ;;
  12474. *qnx* | *nto*)
  12475. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12476. # it will coredump.
  12477. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12478. ;;
  12479. osf3* | osf4* | osf5*)
  12480. case $cc_basename in
  12481. KCC*)
  12482. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12483. ;;
  12484. RCC*)
  12485. # Rational C++ 2.4.1
  12486. lt_prog_compiler_pic_CXX='-pic'
  12487. ;;
  12488. cxx*)
  12489. # Digital/Compaq C++
  12490. lt_prog_compiler_wl_CXX='-Wl,'
  12491. # Make sure the PIC flag is empty. It appears that all Alpha
  12492. # Linux and Compaq Tru64 Unix objects are PIC.
  12493. lt_prog_compiler_pic_CXX=
  12494. lt_prog_compiler_static_CXX='-non_shared'
  12495. ;;
  12496. *)
  12497. ;;
  12498. esac
  12499. ;;
  12500. psos*)
  12501. ;;
  12502. solaris*)
  12503. case $cc_basename in
  12504. CC* | sunCC*)
  12505. # Sun C++ 4.2, 5.x and Centerline C++
  12506. lt_prog_compiler_pic_CXX='-KPIC'
  12507. lt_prog_compiler_static_CXX='-Bstatic'
  12508. lt_prog_compiler_wl_CXX='-Qoption ld '
  12509. ;;
  12510. gcx*)
  12511. # Green Hills C++ Compiler
  12512. lt_prog_compiler_pic_CXX='-PIC'
  12513. ;;
  12514. *)
  12515. ;;
  12516. esac
  12517. ;;
  12518. sunos4*)
  12519. case $cc_basename in
  12520. CC*)
  12521. # Sun C++ 4.x
  12522. lt_prog_compiler_pic_CXX='-pic'
  12523. lt_prog_compiler_static_CXX='-Bstatic'
  12524. ;;
  12525. lcc*)
  12526. # Lucid
  12527. lt_prog_compiler_pic_CXX='-pic'
  12528. ;;
  12529. *)
  12530. ;;
  12531. esac
  12532. ;;
  12533. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12534. case $cc_basename in
  12535. CC*)
  12536. lt_prog_compiler_wl_CXX='-Wl,'
  12537. lt_prog_compiler_pic_CXX='-KPIC'
  12538. lt_prog_compiler_static_CXX='-Bstatic'
  12539. ;;
  12540. esac
  12541. ;;
  12542. tandem*)
  12543. case $cc_basename in
  12544. NCC*)
  12545. # NonStop-UX NCC 3.20
  12546. lt_prog_compiler_pic_CXX='-KPIC'
  12547. ;;
  12548. *)
  12549. ;;
  12550. esac
  12551. ;;
  12552. vxworks*)
  12553. ;;
  12554. *)
  12555. lt_prog_compiler_can_build_shared_CXX=no
  12556. ;;
  12557. esac
  12558. fi
  12559. case $host_os in
  12560. # For platforms which do not support PIC, -DPIC is meaningless:
  12561. *djgpp*)
  12562. lt_prog_compiler_pic_CXX=
  12563. ;;
  12564. *)
  12565. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12566. ;;
  12567. esac
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12569. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12570. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12571. $as_echo_n "(cached) " >&6
  12572. else
  12573. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12574. fi
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12576. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12577. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12578. #
  12579. # Check to make sure the PIC flag actually works.
  12580. #
  12581. if test -n "$lt_prog_compiler_pic_CXX"; then
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12583. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12584. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12585. $as_echo_n "(cached) " >&6
  12586. else
  12587. lt_cv_prog_compiler_pic_works_CXX=no
  12588. ac_outfile=conftest.$ac_objext
  12589. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12590. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12591. # Insert the option either (1) after the last *FLAGS variable, or
  12592. # (2) before a word containing "conftest.", or (3) at the end.
  12593. # Note that $ac_compile itself does not contain backslashes and begins
  12594. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12595. # The option is referenced via a variable to avoid confusing sed.
  12596. lt_compile=`echo "$ac_compile" | $SED \
  12597. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12598. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12599. -e 's:$: $lt_compiler_flag:'`
  12600. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12601. (eval "$lt_compile" 2>conftest.err)
  12602. ac_status=$?
  12603. cat conftest.err >&5
  12604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12605. if (exit $ac_status) && test -s "$ac_outfile"; then
  12606. # The compiler can only warn and ignore the option if not recognized
  12607. # So say no if there are warnings other than the usual output.
  12608. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12609. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12610. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12611. lt_cv_prog_compiler_pic_works_CXX=yes
  12612. fi
  12613. fi
  12614. $RM conftest*
  12615. fi
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12617. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12618. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12619. case $lt_prog_compiler_pic_CXX in
  12620. "" | " "*) ;;
  12621. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12622. esac
  12623. else
  12624. lt_prog_compiler_pic_CXX=
  12625. lt_prog_compiler_can_build_shared_CXX=no
  12626. fi
  12627. fi
  12628. #
  12629. # Check to make sure the static flag actually works.
  12630. #
  12631. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12633. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12634. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12635. $as_echo_n "(cached) " >&6
  12636. else
  12637. lt_cv_prog_compiler_static_works_CXX=no
  12638. save_LDFLAGS="$LDFLAGS"
  12639. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12640. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12641. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12642. # The linker can only warn and ignore the option if not recognized
  12643. # So say no if there are warnings
  12644. if test -s conftest.err; then
  12645. # Append any errors to the config.log.
  12646. cat conftest.err 1>&5
  12647. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12648. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12649. if diff conftest.exp conftest.er2 >/dev/null; then
  12650. lt_cv_prog_compiler_static_works_CXX=yes
  12651. fi
  12652. else
  12653. lt_cv_prog_compiler_static_works_CXX=yes
  12654. fi
  12655. fi
  12656. $RM -r conftest*
  12657. LDFLAGS="$save_LDFLAGS"
  12658. fi
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12660. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12661. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12662. :
  12663. else
  12664. lt_prog_compiler_static_CXX=
  12665. fi
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12667. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12668. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12669. $as_echo_n "(cached) " >&6
  12670. else
  12671. lt_cv_prog_compiler_c_o_CXX=no
  12672. $RM -r conftest 2>/dev/null
  12673. mkdir conftest
  12674. cd conftest
  12675. mkdir out
  12676. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12677. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12678. # Insert the option either (1) after the last *FLAGS variable, or
  12679. # (2) before a word containing "conftest.", or (3) at the end.
  12680. # Note that $ac_compile itself does not contain backslashes and begins
  12681. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12682. lt_compile=`echo "$ac_compile" | $SED \
  12683. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12684. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12685. -e 's:$: $lt_compiler_flag:'`
  12686. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12687. (eval "$lt_compile" 2>out/conftest.err)
  12688. ac_status=$?
  12689. cat out/conftest.err >&5
  12690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12691. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12692. then
  12693. # The compiler can only warn and ignore the option if not recognized
  12694. # So say no if there are warnings
  12695. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12696. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12697. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12698. lt_cv_prog_compiler_c_o_CXX=yes
  12699. fi
  12700. fi
  12701. chmod u+w . 2>&5
  12702. $RM conftest*
  12703. # SGI C++ compiler will create directory out/ii_files/ for
  12704. # template instantiation
  12705. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12706. $RM out/* && rmdir out
  12707. cd ..
  12708. $RM -r conftest
  12709. $RM conftest*
  12710. fi
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12712. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12714. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12715. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12716. $as_echo_n "(cached) " >&6
  12717. else
  12718. lt_cv_prog_compiler_c_o_CXX=no
  12719. $RM -r conftest 2>/dev/null
  12720. mkdir conftest
  12721. cd conftest
  12722. mkdir out
  12723. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12724. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12725. # Insert the option either (1) after the last *FLAGS variable, or
  12726. # (2) before a word containing "conftest.", or (3) at the end.
  12727. # Note that $ac_compile itself does not contain backslashes and begins
  12728. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12729. lt_compile=`echo "$ac_compile" | $SED \
  12730. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12731. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12732. -e 's:$: $lt_compiler_flag:'`
  12733. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12734. (eval "$lt_compile" 2>out/conftest.err)
  12735. ac_status=$?
  12736. cat out/conftest.err >&5
  12737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12738. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12739. then
  12740. # The compiler can only warn and ignore the option if not recognized
  12741. # So say no if there are warnings
  12742. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12743. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12744. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12745. lt_cv_prog_compiler_c_o_CXX=yes
  12746. fi
  12747. fi
  12748. chmod u+w . 2>&5
  12749. $RM conftest*
  12750. # SGI C++ compiler will create directory out/ii_files/ for
  12751. # template instantiation
  12752. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12753. $RM out/* && rmdir out
  12754. cd ..
  12755. $RM -r conftest
  12756. $RM conftest*
  12757. fi
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12759. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12760. hard_links="nottested"
  12761. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12762. # do not overwrite the value of need_locks provided by the user
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12764. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12765. hard_links=yes
  12766. $RM conftest*
  12767. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12768. touch conftest.a
  12769. ln conftest.a conftest.b 2>&5 || hard_links=no
  12770. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12772. $as_echo "$hard_links" >&6; }
  12773. if test "$hard_links" = no; then
  12774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12775. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12776. need_locks=warn
  12777. fi
  12778. else
  12779. need_locks=no
  12780. fi
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12782. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12783. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12784. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12785. case $host_os in
  12786. aix[4-9]*)
  12787. # If we're using GNU nm, then we don't want the "-C" option.
  12788. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12789. # Also, AIX nm treats weak defined symbols like other global defined
  12790. # symbols, whereas GNU nm marks them as "W".
  12791. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12792. 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'
  12793. else
  12794. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12795. fi
  12796. ;;
  12797. pw32*)
  12798. export_symbols_cmds_CXX="$ltdll_cmds"
  12799. ;;
  12800. cygwin* | mingw* | cegcc*)
  12801. case $cc_basename in
  12802. cl*)
  12803. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12804. ;;
  12805. *)
  12806. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12807. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12808. ;;
  12809. esac
  12810. ;;
  12811. *)
  12812. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12813. ;;
  12814. esac
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12816. $as_echo "$ld_shlibs_CXX" >&6; }
  12817. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12818. with_gnu_ld_CXX=$with_gnu_ld
  12819. #
  12820. # Do we need to explicitly link libc?
  12821. #
  12822. case "x$archive_cmds_need_lc_CXX" in
  12823. x|xyes)
  12824. # Assume -lc should be added
  12825. archive_cmds_need_lc_CXX=yes
  12826. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12827. case $archive_cmds_CXX in
  12828. *'~'*)
  12829. # FIXME: we may have to deal with multi-command sequences.
  12830. ;;
  12831. '$CC '*)
  12832. # Test whether the compiler implicitly links with -lc since on some
  12833. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12834. # to ld, don't add -lc before -lgcc.
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12836. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12837. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12838. $as_echo_n "(cached) " >&6
  12839. else
  12840. $RM conftest*
  12841. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12843. (eval $ac_compile) 2>&5
  12844. ac_status=$?
  12845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12846. test $ac_status = 0; } 2>conftest.err; then
  12847. soname=conftest
  12848. lib=conftest
  12849. libobjs=conftest.$ac_objext
  12850. deplibs=
  12851. wl=$lt_prog_compiler_wl_CXX
  12852. pic_flag=$lt_prog_compiler_pic_CXX
  12853. compiler_flags=-v
  12854. linker_flags=-v
  12855. verstring=
  12856. output_objdir=.
  12857. libname=conftest
  12858. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12859. allow_undefined_flag_CXX=
  12860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12861. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12862. ac_status=$?
  12863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12864. test $ac_status = 0; }
  12865. then
  12866. lt_cv_archive_cmds_need_lc_CXX=no
  12867. else
  12868. lt_cv_archive_cmds_need_lc_CXX=yes
  12869. fi
  12870. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12871. else
  12872. cat conftest.err 1>&5
  12873. fi
  12874. $RM conftest*
  12875. fi
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12877. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12878. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12879. ;;
  12880. esac
  12881. fi
  12882. ;;
  12883. esac
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12885. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12886. library_names_spec=
  12887. libname_spec='lib$name'
  12888. soname_spec=
  12889. shrext_cmds=".so"
  12890. postinstall_cmds=
  12891. postuninstall_cmds=
  12892. finish_cmds=
  12893. finish_eval=
  12894. shlibpath_var=
  12895. shlibpath_overrides_runpath=unknown
  12896. version_type=none
  12897. dynamic_linker="$host_os ld.so"
  12898. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12899. need_lib_prefix=unknown
  12900. hardcode_into_libs=no
  12901. # when you set need_version to no, make sure it does not cause -set_version
  12902. # flags to be left without arguments
  12903. need_version=unknown
  12904. case $host_os in
  12905. aix3*)
  12906. version_type=linux # correct to gnu/linux during the next big refactor
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12908. shlibpath_var=LIBPATH
  12909. # AIX 3 has no versioning support, so we append a major version to the name.
  12910. soname_spec='${libname}${release}${shared_ext}$major'
  12911. ;;
  12912. aix[4-9]*)
  12913. version_type=linux # correct to gnu/linux during the next big refactor
  12914. need_lib_prefix=no
  12915. need_version=no
  12916. hardcode_into_libs=yes
  12917. if test "$host_cpu" = ia64; then
  12918. # AIX 5 supports IA64
  12919. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. else
  12922. # With GCC up to 2.95.x, collect2 would create an import file
  12923. # for dependence libraries. The import file would start with
  12924. # the line `#! .'. This would cause the generated library to
  12925. # depend on `.', always an invalid library. This was fixed in
  12926. # development snapshots of GCC prior to 3.0.
  12927. case $host_os in
  12928. aix4 | aix4.[01] | aix4.[01].*)
  12929. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12930. echo ' yes '
  12931. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12932. :
  12933. else
  12934. can_build_shared=no
  12935. fi
  12936. ;;
  12937. esac
  12938. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12939. # soname into executable. Probably we can add versioning support to
  12940. # collect2, so additional links can be useful in future.
  12941. if test "$aix_use_runtimelinking" = yes; then
  12942. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12943. # instead of lib<name>.a to let people know that these are not
  12944. # typical AIX shared libraries.
  12945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12946. else
  12947. # We preserve .a as extension for shared libraries through AIX4.2
  12948. # and later when we are not doing run time linking.
  12949. library_names_spec='${libname}${release}.a $libname.a'
  12950. soname_spec='${libname}${release}${shared_ext}$major'
  12951. fi
  12952. shlibpath_var=LIBPATH
  12953. fi
  12954. ;;
  12955. amigaos*)
  12956. case $host_cpu in
  12957. powerpc)
  12958. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12959. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12961. ;;
  12962. m68k)
  12963. library_names_spec='$libname.ixlibrary $libname.a'
  12964. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12965. 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'
  12966. ;;
  12967. esac
  12968. ;;
  12969. beos*)
  12970. library_names_spec='${libname}${shared_ext}'
  12971. dynamic_linker="$host_os ld.so"
  12972. shlibpath_var=LIBRARY_PATH
  12973. ;;
  12974. bsdi[45]*)
  12975. version_type=linux # correct to gnu/linux during the next big refactor
  12976. need_version=no
  12977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12978. soname_spec='${libname}${release}${shared_ext}$major'
  12979. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12980. shlibpath_var=LD_LIBRARY_PATH
  12981. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12982. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12983. # the default ld.so.conf also contains /usr/contrib/lib and
  12984. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12985. # libtool to hard-code these into programs
  12986. ;;
  12987. cygwin* | mingw* | pw32* | cegcc*)
  12988. version_type=windows
  12989. shrext_cmds=".dll"
  12990. need_version=no
  12991. need_lib_prefix=no
  12992. case $GCC,$cc_basename in
  12993. yes,*)
  12994. # gcc
  12995. library_names_spec='$libname.dll.a'
  12996. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12997. postinstall_cmds='base_file=`basename \${file}`~
  12998. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12999. dldir=$destdir/`dirname \$dlpath`~
  13000. test -d \$dldir || mkdir -p \$dldir~
  13001. $install_prog $dir/$dlname \$dldir/$dlname~
  13002. chmod a+x \$dldir/$dlname~
  13003. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13004. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13005. fi'
  13006. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13007. dlpath=$dir/\$dldll~
  13008. $RM \$dlpath'
  13009. shlibpath_overrides_runpath=yes
  13010. case $host_os in
  13011. cygwin*)
  13012. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13013. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13014. ;;
  13015. mingw* | cegcc*)
  13016. # MinGW DLLs use traditional 'lib' prefix
  13017. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13018. ;;
  13019. pw32*)
  13020. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13021. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13022. ;;
  13023. esac
  13024. dynamic_linker='Win32 ld.exe'
  13025. ;;
  13026. *,cl*)
  13027. # Native MSVC
  13028. libname_spec='$name'
  13029. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13030. library_names_spec='${libname}.dll.lib'
  13031. case $build_os in
  13032. mingw*)
  13033. sys_lib_search_path_spec=
  13034. lt_save_ifs=$IFS
  13035. IFS=';'
  13036. for lt_path in $LIB
  13037. do
  13038. IFS=$lt_save_ifs
  13039. # Let DOS variable expansion print the short 8.3 style file name.
  13040. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13041. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13042. done
  13043. IFS=$lt_save_ifs
  13044. # Convert to MSYS style.
  13045. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13046. ;;
  13047. cygwin*)
  13048. # Convert to unix form, then to dos form, then back to unix form
  13049. # but this time dos style (no spaces!) so that the unix form looks
  13050. # like /cygdrive/c/PROGRA~1:/cygdr...
  13051. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13052. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13053. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13054. ;;
  13055. *)
  13056. sys_lib_search_path_spec="$LIB"
  13057. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13058. # It is most probably a Windows format PATH.
  13059. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13060. else
  13061. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13062. fi
  13063. # FIXME: find the short name or the path components, as spaces are
  13064. # common. (e.g. "Program Files" -> "PROGRA~1")
  13065. ;;
  13066. esac
  13067. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13068. postinstall_cmds='base_file=`basename \${file}`~
  13069. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13070. dldir=$destdir/`dirname \$dlpath`~
  13071. test -d \$dldir || mkdir -p \$dldir~
  13072. $install_prog $dir/$dlname \$dldir/$dlname'
  13073. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13074. dlpath=$dir/\$dldll~
  13075. $RM \$dlpath'
  13076. shlibpath_overrides_runpath=yes
  13077. dynamic_linker='Win32 link.exe'
  13078. ;;
  13079. *)
  13080. # Assume MSVC wrapper
  13081. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13082. dynamic_linker='Win32 ld.exe'
  13083. ;;
  13084. esac
  13085. # FIXME: first we should search . and the directory the executable is in
  13086. shlibpath_var=PATH
  13087. ;;
  13088. darwin* | rhapsody*)
  13089. dynamic_linker="$host_os dyld"
  13090. version_type=darwin
  13091. need_lib_prefix=no
  13092. need_version=no
  13093. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13094. soname_spec='${libname}${release}${major}$shared_ext'
  13095. shlibpath_overrides_runpath=yes
  13096. shlibpath_var=DYLD_LIBRARY_PATH
  13097. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13098. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13099. ;;
  13100. dgux*)
  13101. version_type=linux # correct to gnu/linux during the next big refactor
  13102. need_lib_prefix=no
  13103. need_version=no
  13104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13105. soname_spec='${libname}${release}${shared_ext}$major'
  13106. shlibpath_var=LD_LIBRARY_PATH
  13107. ;;
  13108. freebsd* | dragonfly*)
  13109. # DragonFly does not have aout. When/if they implement a new
  13110. # versioning mechanism, adjust this.
  13111. if test -x /usr/bin/objformat; then
  13112. objformat=`/usr/bin/objformat`
  13113. else
  13114. case $host_os in
  13115. freebsd[23].*) objformat=aout ;;
  13116. *) objformat=elf ;;
  13117. esac
  13118. fi
  13119. version_type=freebsd-$objformat
  13120. case $version_type in
  13121. freebsd-elf*)
  13122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13123. need_version=no
  13124. need_lib_prefix=no
  13125. ;;
  13126. freebsd-*)
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13128. need_version=yes
  13129. ;;
  13130. esac
  13131. shlibpath_var=LD_LIBRARY_PATH
  13132. case $host_os in
  13133. freebsd2.*)
  13134. shlibpath_overrides_runpath=yes
  13135. ;;
  13136. freebsd3.[01]* | freebsdelf3.[01]*)
  13137. shlibpath_overrides_runpath=yes
  13138. hardcode_into_libs=yes
  13139. ;;
  13140. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13141. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13142. shlibpath_overrides_runpath=no
  13143. hardcode_into_libs=yes
  13144. ;;
  13145. *) # from 4.6 on, and DragonFly
  13146. shlibpath_overrides_runpath=yes
  13147. hardcode_into_libs=yes
  13148. ;;
  13149. esac
  13150. ;;
  13151. gnu*)
  13152. version_type=linux # correct to gnu/linux during the next big refactor
  13153. need_lib_prefix=no
  13154. need_version=no
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13156. soname_spec='${libname}${release}${shared_ext}$major'
  13157. shlibpath_var=LD_LIBRARY_PATH
  13158. shlibpath_overrides_runpath=no
  13159. hardcode_into_libs=yes
  13160. ;;
  13161. haiku*)
  13162. version_type=linux # correct to gnu/linux during the next big refactor
  13163. need_lib_prefix=no
  13164. need_version=no
  13165. dynamic_linker="$host_os runtime_loader"
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13167. soname_spec='${libname}${release}${shared_ext}$major'
  13168. shlibpath_var=LIBRARY_PATH
  13169. shlibpath_overrides_runpath=yes
  13170. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13171. hardcode_into_libs=yes
  13172. ;;
  13173. hpux9* | hpux10* | hpux11*)
  13174. # Give a soname corresponding to the major version so that dld.sl refuses to
  13175. # link against other versions.
  13176. version_type=sunos
  13177. need_lib_prefix=no
  13178. need_version=no
  13179. case $host_cpu in
  13180. ia64*)
  13181. shrext_cmds='.so'
  13182. hardcode_into_libs=yes
  13183. dynamic_linker="$host_os dld.so"
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13187. soname_spec='${libname}${release}${shared_ext}$major'
  13188. if test "X$HPUX_IA64_MODE" = X32; then
  13189. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13190. else
  13191. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13192. fi
  13193. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13194. ;;
  13195. hppa*64*)
  13196. shrext_cmds='.sl'
  13197. hardcode_into_libs=yes
  13198. dynamic_linker="$host_os dld.sl"
  13199. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13200. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13202. soname_spec='${libname}${release}${shared_ext}$major'
  13203. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13204. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13205. ;;
  13206. *)
  13207. shrext_cmds='.sl'
  13208. dynamic_linker="$host_os dld.sl"
  13209. shlibpath_var=SHLIB_PATH
  13210. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13212. soname_spec='${libname}${release}${shared_ext}$major'
  13213. ;;
  13214. esac
  13215. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13216. postinstall_cmds='chmod 555 $lib'
  13217. # or fails outright, so override atomically:
  13218. install_override_mode=555
  13219. ;;
  13220. interix[3-9]*)
  13221. version_type=linux # correct to gnu/linux during the next big refactor
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13225. soname_spec='${libname}${release}${shared_ext}$major'
  13226. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13227. shlibpath_var=LD_LIBRARY_PATH
  13228. shlibpath_overrides_runpath=no
  13229. hardcode_into_libs=yes
  13230. ;;
  13231. irix5* | irix6* | nonstopux*)
  13232. case $host_os in
  13233. nonstopux*) version_type=nonstopux ;;
  13234. *)
  13235. if test "$lt_cv_prog_gnu_ld" = yes; then
  13236. version_type=linux # correct to gnu/linux during the next big refactor
  13237. else
  13238. version_type=irix
  13239. fi ;;
  13240. esac
  13241. need_lib_prefix=no
  13242. need_version=no
  13243. soname_spec='${libname}${release}${shared_ext}$major'
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13245. case $host_os in
  13246. irix5* | nonstopux*)
  13247. libsuff= shlibsuff=
  13248. ;;
  13249. *)
  13250. case $LD in # libtool.m4 will add one of these switches to LD
  13251. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13252. libsuff= shlibsuff= libmagic=32-bit;;
  13253. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13254. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13255. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13256. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13257. *) libsuff= shlibsuff= libmagic=never-match;;
  13258. esac
  13259. ;;
  13260. esac
  13261. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13262. shlibpath_overrides_runpath=no
  13263. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13264. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13265. hardcode_into_libs=yes
  13266. ;;
  13267. # No shared lib support for Linux oldld, aout, or coff.
  13268. linux*oldld* | linux*aout* | linux*coff*)
  13269. dynamic_linker=no
  13270. ;;
  13271. # This must be glibc/ELF.
  13272. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13273. version_type=linux # correct to gnu/linux during the next big refactor
  13274. need_lib_prefix=no
  13275. need_version=no
  13276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13277. soname_spec='${libname}${release}${shared_ext}$major'
  13278. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13279. shlibpath_var=LD_LIBRARY_PATH
  13280. shlibpath_overrides_runpath=no
  13281. # Some binutils ld are patched to set DT_RUNPATH
  13282. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13283. $as_echo_n "(cached) " >&6
  13284. else
  13285. lt_cv_shlibpath_overrides_runpath=no
  13286. save_LDFLAGS=$LDFLAGS
  13287. save_libdir=$libdir
  13288. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13289. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13291. /* end confdefs.h. */
  13292. int
  13293. main ()
  13294. {
  13295. ;
  13296. return 0;
  13297. }
  13298. _ACEOF
  13299. if ac_fn_cxx_try_link "$LINENO"; then :
  13300. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13301. lt_cv_shlibpath_overrides_runpath=yes
  13302. fi
  13303. fi
  13304. rm -f core conftest.err conftest.$ac_objext \
  13305. conftest$ac_exeext conftest.$ac_ext
  13306. LDFLAGS=$save_LDFLAGS
  13307. libdir=$save_libdir
  13308. fi
  13309. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13310. # This implies no fast_install, which is unacceptable.
  13311. # Some rework will be needed to allow for fast_install
  13312. # before this can be enabled.
  13313. hardcode_into_libs=yes
  13314. # Add ABI-specific directories to the system library path.
  13315. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13316. # Append ld.so.conf contents to the search path
  13317. if test -f /etc/ld.so.conf; then
  13318. 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' ' '`
  13319. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13320. fi
  13321. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13322. # powerpc, because MkLinux only supported shared libraries with the
  13323. # GNU dynamic linker. Since this was broken with cross compilers,
  13324. # most powerpc-linux boxes support dynamic linking these days and
  13325. # people can always --disable-shared, the test was removed, and we
  13326. # assume the GNU/Linux dynamic linker is in use.
  13327. dynamic_linker='GNU/Linux ld.so'
  13328. ;;
  13329. netbsd*)
  13330. version_type=sunos
  13331. need_lib_prefix=no
  13332. need_version=no
  13333. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13336. dynamic_linker='NetBSD (a.out) ld.so'
  13337. else
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13339. soname_spec='${libname}${release}${shared_ext}$major'
  13340. dynamic_linker='NetBSD ld.elf_so'
  13341. fi
  13342. shlibpath_var=LD_LIBRARY_PATH
  13343. shlibpath_overrides_runpath=yes
  13344. hardcode_into_libs=yes
  13345. ;;
  13346. newsos6)
  13347. version_type=linux # correct to gnu/linux during the next big refactor
  13348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. shlibpath_overrides_runpath=yes
  13351. ;;
  13352. *nto* | *qnx*)
  13353. version_type=qnx
  13354. need_lib_prefix=no
  13355. need_version=no
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13357. soname_spec='${libname}${release}${shared_ext}$major'
  13358. shlibpath_var=LD_LIBRARY_PATH
  13359. shlibpath_overrides_runpath=no
  13360. hardcode_into_libs=yes
  13361. dynamic_linker='ldqnx.so'
  13362. ;;
  13363. openbsd*)
  13364. version_type=sunos
  13365. sys_lib_dlsearch_path_spec="/usr/lib"
  13366. need_lib_prefix=no
  13367. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13368. case $host_os in
  13369. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13370. *) need_version=no ;;
  13371. esac
  13372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13374. shlibpath_var=LD_LIBRARY_PATH
  13375. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13376. case $host_os in
  13377. openbsd2.[89] | openbsd2.[89].*)
  13378. shlibpath_overrides_runpath=no
  13379. ;;
  13380. *)
  13381. shlibpath_overrides_runpath=yes
  13382. ;;
  13383. esac
  13384. else
  13385. shlibpath_overrides_runpath=yes
  13386. fi
  13387. ;;
  13388. os2*)
  13389. libname_spec='$name'
  13390. shrext_cmds=".dll"
  13391. need_lib_prefix=no
  13392. library_names_spec='$libname${shared_ext} $libname.a'
  13393. dynamic_linker='OS/2 ld.exe'
  13394. shlibpath_var=LIBPATH
  13395. ;;
  13396. osf3* | osf4* | osf5*)
  13397. version_type=osf
  13398. need_lib_prefix=no
  13399. need_version=no
  13400. soname_spec='${libname}${release}${shared_ext}$major'
  13401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13402. shlibpath_var=LD_LIBRARY_PATH
  13403. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13404. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13405. ;;
  13406. rdos*)
  13407. dynamic_linker=no
  13408. ;;
  13409. solaris*)
  13410. version_type=linux # correct to gnu/linux during the next big refactor
  13411. need_lib_prefix=no
  13412. need_version=no
  13413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13414. soname_spec='${libname}${release}${shared_ext}$major'
  13415. shlibpath_var=LD_LIBRARY_PATH
  13416. shlibpath_overrides_runpath=yes
  13417. hardcode_into_libs=yes
  13418. # ldd complains unless libraries are executable
  13419. postinstall_cmds='chmod +x $lib'
  13420. ;;
  13421. sunos4*)
  13422. version_type=sunos
  13423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13424. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13425. shlibpath_var=LD_LIBRARY_PATH
  13426. shlibpath_overrides_runpath=yes
  13427. if test "$with_gnu_ld" = yes; then
  13428. need_lib_prefix=no
  13429. fi
  13430. need_version=yes
  13431. ;;
  13432. sysv4 | sysv4.3*)
  13433. version_type=linux # correct to gnu/linux during the next big refactor
  13434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13435. soname_spec='${libname}${release}${shared_ext}$major'
  13436. shlibpath_var=LD_LIBRARY_PATH
  13437. case $host_vendor in
  13438. sni)
  13439. shlibpath_overrides_runpath=no
  13440. need_lib_prefix=no
  13441. runpath_var=LD_RUN_PATH
  13442. ;;
  13443. siemens)
  13444. need_lib_prefix=no
  13445. ;;
  13446. motorola)
  13447. need_lib_prefix=no
  13448. need_version=no
  13449. shlibpath_overrides_runpath=no
  13450. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13451. ;;
  13452. esac
  13453. ;;
  13454. sysv4*MP*)
  13455. if test -d /usr/nec ;then
  13456. version_type=linux # correct to gnu/linux during the next big refactor
  13457. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13458. soname_spec='$libname${shared_ext}.$major'
  13459. shlibpath_var=LD_LIBRARY_PATH
  13460. fi
  13461. ;;
  13462. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13463. version_type=freebsd-elf
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13467. soname_spec='${libname}${release}${shared_ext}$major'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. shlibpath_overrides_runpath=yes
  13470. hardcode_into_libs=yes
  13471. if test "$with_gnu_ld" = yes; then
  13472. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13473. else
  13474. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13475. case $host_os in
  13476. sco3.2v5*)
  13477. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13478. ;;
  13479. esac
  13480. fi
  13481. sys_lib_dlsearch_path_spec='/usr/lib'
  13482. ;;
  13483. tpf*)
  13484. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13485. version_type=linux # correct to gnu/linux during the next big refactor
  13486. need_lib_prefix=no
  13487. need_version=no
  13488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13489. shlibpath_var=LD_LIBRARY_PATH
  13490. shlibpath_overrides_runpath=no
  13491. hardcode_into_libs=yes
  13492. ;;
  13493. uts4*)
  13494. version_type=linux # correct to gnu/linux during the next big refactor
  13495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13496. soname_spec='${libname}${release}${shared_ext}$major'
  13497. shlibpath_var=LD_LIBRARY_PATH
  13498. ;;
  13499. *)
  13500. dynamic_linker=no
  13501. ;;
  13502. esac
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13504. $as_echo "$dynamic_linker" >&6; }
  13505. test "$dynamic_linker" = no && can_build_shared=no
  13506. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13507. if test "$GCC" = yes; then
  13508. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13509. fi
  13510. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13511. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13512. fi
  13513. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13514. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13515. fi
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13517. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13518. hardcode_action_CXX=
  13519. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13520. test -n "$runpath_var_CXX" ||
  13521. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13522. # We can hardcode non-existent directories.
  13523. if test "$hardcode_direct_CXX" != no &&
  13524. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13525. # have to relink, otherwise we might link with an installed library
  13526. # when we should be linking with a yet-to-be-installed one
  13527. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13528. test "$hardcode_minus_L_CXX" != no; then
  13529. # Linking always hardcodes the temporary library directory.
  13530. hardcode_action_CXX=relink
  13531. else
  13532. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13533. hardcode_action_CXX=immediate
  13534. fi
  13535. else
  13536. # We cannot hardcode anything, or else we can only hardcode existing
  13537. # directories.
  13538. hardcode_action_CXX=unsupported
  13539. fi
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13541. $as_echo "$hardcode_action_CXX" >&6; }
  13542. if test "$hardcode_action_CXX" = relink ||
  13543. test "$inherit_rpath_CXX" = yes; then
  13544. # Fast installation is not supported
  13545. enable_fast_install=no
  13546. elif test "$shlibpath_overrides_runpath" = yes ||
  13547. test "$enable_shared" = no; then
  13548. # Fast installation is not necessary
  13549. enable_fast_install=needless
  13550. fi
  13551. fi # test -n "$compiler"
  13552. CC=$lt_save_CC
  13553. CFLAGS=$lt_save_CFLAGS
  13554. LDCXX=$LD
  13555. LD=$lt_save_LD
  13556. GCC=$lt_save_GCC
  13557. with_gnu_ld=$lt_save_with_gnu_ld
  13558. lt_cv_path_LDCXX=$lt_cv_path_LD
  13559. lt_cv_path_LD=$lt_save_path_LD
  13560. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13561. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13562. fi # test "$_lt_caught_CXX_error" != yes
  13563. ac_ext=c
  13564. ac_cpp='$CPP $CPPFLAGS'
  13565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13568. ac_config_commands="$ac_config_commands libtool"
  13569. # Only expand once:
  13570. # Checks for library functions.
  13571. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13572. # for constant arguments. Useless!
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13574. $as_echo_n "checking for working alloca.h... " >&6; }
  13575. if ${ac_cv_working_alloca_h+:} false; then :
  13576. $as_echo_n "(cached) " >&6
  13577. else
  13578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13579. /* end confdefs.h. */
  13580. #include <alloca.h>
  13581. int
  13582. main ()
  13583. {
  13584. char *p = (char *) alloca (2 * sizeof (int));
  13585. if (p) return 0;
  13586. ;
  13587. return 0;
  13588. }
  13589. _ACEOF
  13590. if ac_fn_c_try_link "$LINENO"; then :
  13591. ac_cv_working_alloca_h=yes
  13592. else
  13593. ac_cv_working_alloca_h=no
  13594. fi
  13595. rm -f core conftest.err conftest.$ac_objext \
  13596. conftest$ac_exeext conftest.$ac_ext
  13597. fi
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13599. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13600. if test $ac_cv_working_alloca_h = yes; then
  13601. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13602. fi
  13603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13604. $as_echo_n "checking for alloca... " >&6; }
  13605. if ${ac_cv_func_alloca_works+:} false; then :
  13606. $as_echo_n "(cached) " >&6
  13607. else
  13608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13609. /* end confdefs.h. */
  13610. #ifdef __GNUC__
  13611. # define alloca __builtin_alloca
  13612. #else
  13613. # ifdef _MSC_VER
  13614. # include <malloc.h>
  13615. # define alloca _alloca
  13616. # else
  13617. # ifdef HAVE_ALLOCA_H
  13618. # include <alloca.h>
  13619. # else
  13620. # ifdef _AIX
  13621. #pragma alloca
  13622. # else
  13623. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13624. void *alloca (size_t);
  13625. # endif
  13626. # endif
  13627. # endif
  13628. # endif
  13629. #endif
  13630. int
  13631. main ()
  13632. {
  13633. char *p = (char *) alloca (1);
  13634. if (p) return 0;
  13635. ;
  13636. return 0;
  13637. }
  13638. _ACEOF
  13639. if ac_fn_c_try_link "$LINENO"; then :
  13640. ac_cv_func_alloca_works=yes
  13641. else
  13642. ac_cv_func_alloca_works=no
  13643. fi
  13644. rm -f core conftest.err conftest.$ac_objext \
  13645. conftest$ac_exeext conftest.$ac_ext
  13646. fi
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13648. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13649. if test $ac_cv_func_alloca_works = yes; then
  13650. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  13651. else
  13652. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13653. # that cause trouble. Some versions do not even contain alloca or
  13654. # contain a buggy version. If you still want to use their alloca,
  13655. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13656. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13657. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  13658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13659. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13660. if ${ac_cv_os_cray+:} false; then :
  13661. $as_echo_n "(cached) " >&6
  13662. else
  13663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13664. /* end confdefs.h. */
  13665. #if defined CRAY && ! defined CRAY2
  13666. webecray
  13667. #else
  13668. wenotbecray
  13669. #endif
  13670. _ACEOF
  13671. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13672. $EGREP "webecray" >/dev/null 2>&1; then :
  13673. ac_cv_os_cray=yes
  13674. else
  13675. ac_cv_os_cray=no
  13676. fi
  13677. rm -f conftest*
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13680. $as_echo "$ac_cv_os_cray" >&6; }
  13681. if test $ac_cv_os_cray = yes; then
  13682. for ac_func in _getb67 GETB67 getb67; do
  13683. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13684. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13685. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13686. cat >>confdefs.h <<_ACEOF
  13687. #define CRAY_STACKSEG_END $ac_func
  13688. _ACEOF
  13689. break
  13690. fi
  13691. done
  13692. fi
  13693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13694. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13695. if ${ac_cv_c_stack_direction+:} false; then :
  13696. $as_echo_n "(cached) " >&6
  13697. else
  13698. if test "$cross_compiling" = yes; then :
  13699. ac_cv_c_stack_direction=0
  13700. else
  13701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13702. /* end confdefs.h. */
  13703. $ac_includes_default
  13704. int
  13705. find_stack_direction (int *addr, int depth)
  13706. {
  13707. int dir, dummy = 0;
  13708. if (! addr)
  13709. addr = &dummy;
  13710. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  13711. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  13712. return dir + dummy;
  13713. }
  13714. int
  13715. main (int argc, char **argv)
  13716. {
  13717. return find_stack_direction (0, argc + !argv + 20) < 0;
  13718. }
  13719. _ACEOF
  13720. if ac_fn_c_try_run "$LINENO"; then :
  13721. ac_cv_c_stack_direction=1
  13722. else
  13723. ac_cv_c_stack_direction=-1
  13724. fi
  13725. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13726. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13727. fi
  13728. fi
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13730. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13731. cat >>confdefs.h <<_ACEOF
  13732. #define STACK_DIRECTION $ac_cv_c_stack_direction
  13733. _ACEOF
  13734. fi
  13735. for ac_header in stdlib.h
  13736. do :
  13737. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13738. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  13739. cat >>confdefs.h <<_ACEOF
  13740. #define HAVE_STDLIB_H 1
  13741. _ACEOF
  13742. fi
  13743. done
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  13745. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  13746. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  13747. $as_echo_n "(cached) " >&6
  13748. else
  13749. if test "$cross_compiling" = yes; then :
  13750. ac_cv_func_malloc_0_nonnull=no
  13751. else
  13752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13753. /* end confdefs.h. */
  13754. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13755. # include <stdlib.h>
  13756. #else
  13757. char *malloc ();
  13758. #endif
  13759. int
  13760. main ()
  13761. {
  13762. return ! malloc (0);
  13763. ;
  13764. return 0;
  13765. }
  13766. _ACEOF
  13767. if ac_fn_c_try_run "$LINENO"; then :
  13768. ac_cv_func_malloc_0_nonnull=yes
  13769. else
  13770. ac_cv_func_malloc_0_nonnull=no
  13771. fi
  13772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13773. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13774. fi
  13775. fi
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  13777. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  13778. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  13779. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  13780. else
  13781. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  13782. case " $LIBOBJS " in
  13783. *" malloc.$ac_objext "* ) ;;
  13784. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  13785. ;;
  13786. esac
  13787. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  13788. fi
  13789. for ac_func in clock_gettime gettimeofday localtime_r memmove realpath strchr strerror strstr
  13790. do :
  13791. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13792. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13793. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13794. cat >>confdefs.h <<_ACEOF
  13795. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13796. _ACEOF
  13797. fi
  13798. done
  13799. ac_config_files="$ac_config_files Makefile"
  13800. cat >confcache <<\_ACEOF
  13801. # This file is a shell script that caches the results of configure
  13802. # tests run on this system so they can be shared between configure
  13803. # scripts and configure runs, see configure's option --config-cache.
  13804. # It is not useful on other systems. If it contains results you don't
  13805. # want to keep, you may remove or edit it.
  13806. #
  13807. # config.status only pays attention to the cache file if you give it
  13808. # the --recheck option to rerun configure.
  13809. #
  13810. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13811. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13812. # following values.
  13813. _ACEOF
  13814. # The following way of writing the cache mishandles newlines in values,
  13815. # but we know of no workaround that is simple, portable, and efficient.
  13816. # So, we kill variables containing newlines.
  13817. # Ultrix sh set writes to stderr and can't be redirected directly,
  13818. # and sets the high bit in the cache file unless we assign to the vars.
  13819. (
  13820. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13821. eval ac_val=\$$ac_var
  13822. case $ac_val in #(
  13823. *${as_nl}*)
  13824. case $ac_var in #(
  13825. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13826. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13827. esac
  13828. case $ac_var in #(
  13829. _ | IFS | as_nl) ;; #(
  13830. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13831. *) { eval $ac_var=; unset $ac_var;} ;;
  13832. esac ;;
  13833. esac
  13834. done
  13835. (set) 2>&1 |
  13836. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13837. *${as_nl}ac_space=\ *)
  13838. # `set' does not quote correctly, so add quotes: double-quote
  13839. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13840. sed -n \
  13841. "s/'/'\\\\''/g;
  13842. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13843. ;; #(
  13844. *)
  13845. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13846. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13847. ;;
  13848. esac |
  13849. sort
  13850. ) |
  13851. sed '
  13852. /^ac_cv_env_/b end
  13853. t clear
  13854. :clear
  13855. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13856. t end
  13857. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13858. :end' >>confcache
  13859. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13860. if test -w "$cache_file"; then
  13861. if test "x$cache_file" != "x/dev/null"; then
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13863. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13864. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13865. cat confcache >"$cache_file"
  13866. else
  13867. case $cache_file in #(
  13868. */* | ?:*)
  13869. mv -f confcache "$cache_file"$$ &&
  13870. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13871. *)
  13872. mv -f confcache "$cache_file" ;;
  13873. esac
  13874. fi
  13875. fi
  13876. else
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13878. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13879. fi
  13880. fi
  13881. rm -f confcache
  13882. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13883. # Let make expand exec_prefix.
  13884. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13885. DEFS=-DHAVE_CONFIG_H
  13886. ac_libobjs=
  13887. ac_ltlibobjs=
  13888. U=
  13889. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13890. # 1. Remove the extension, and $U if already installed.
  13891. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13892. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13893. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13894. # will be set to the directory where LIBOBJS objects are built.
  13895. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13896. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13897. done
  13898. LIBOBJS=$ac_libobjs
  13899. LTLIBOBJS=$ac_ltlibobjs
  13900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13901. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13902. if test -n "$am_sleep_pid"; then
  13903. # Hide warnings about reused PIDs.
  13904. wait $am_sleep_pid 2>/dev/null
  13905. fi
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13907. $as_echo "done" >&6; }
  13908. if test -n "$EXEEXT"; then
  13909. am__EXEEXT_TRUE=
  13910. am__EXEEXT_FALSE='#'
  13911. else
  13912. am__EXEEXT_TRUE='#'
  13913. am__EXEEXT_FALSE=
  13914. fi
  13915. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13916. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13918. fi
  13919. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13920. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13922. fi
  13923. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13924. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13925. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13926. fi
  13927. : "${CONFIG_STATUS=./config.status}"
  13928. ac_write_fail=0
  13929. ac_clean_files_save=$ac_clean_files
  13930. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13932. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13933. as_write_fail=0
  13934. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13935. #! $SHELL
  13936. # Generated by $as_me.
  13937. # Run this file to recreate the current configuration.
  13938. # Compiler output produced by configure, useful for debugging
  13939. # configure, is in config.log if it exists.
  13940. debug=false
  13941. ac_cs_recheck=false
  13942. ac_cs_silent=false
  13943. SHELL=\${CONFIG_SHELL-$SHELL}
  13944. export SHELL
  13945. _ASEOF
  13946. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13947. ## -------------------- ##
  13948. ## M4sh Initialization. ##
  13949. ## -------------------- ##
  13950. # Be more Bourne compatible
  13951. DUALCASE=1; export DUALCASE # for MKS sh
  13952. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13953. emulate sh
  13954. NULLCMD=:
  13955. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13956. # is contrary to our usage. Disable this feature.
  13957. alias -g '${1+"$@"}'='"$@"'
  13958. setopt NO_GLOB_SUBST
  13959. else
  13960. case `(set -o) 2>/dev/null` in #(
  13961. *posix*) :
  13962. set -o posix ;; #(
  13963. *) :
  13964. ;;
  13965. esac
  13966. fi
  13967. as_nl='
  13968. '
  13969. export as_nl
  13970. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13971. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13972. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13973. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13974. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13975. # but without wasting forks for bash or zsh.
  13976. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13977. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13978. as_echo='print -r --'
  13979. as_echo_n='print -rn --'
  13980. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13981. as_echo='printf %s\n'
  13982. as_echo_n='printf %s'
  13983. else
  13984. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13985. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13986. as_echo_n='/usr/ucb/echo -n'
  13987. else
  13988. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13989. as_echo_n_body='eval
  13990. arg=$1;
  13991. case $arg in #(
  13992. *"$as_nl"*)
  13993. expr "X$arg" : "X\\(.*\\)$as_nl";
  13994. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13995. esac;
  13996. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13997. '
  13998. export as_echo_n_body
  13999. as_echo_n='sh -c $as_echo_n_body as_echo'
  14000. fi
  14001. export as_echo_body
  14002. as_echo='sh -c $as_echo_body as_echo'
  14003. fi
  14004. # The user is always right.
  14005. if test "${PATH_SEPARATOR+set}" != set; then
  14006. PATH_SEPARATOR=:
  14007. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14008. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14009. PATH_SEPARATOR=';'
  14010. }
  14011. fi
  14012. # IFS
  14013. # We need space, tab and new line, in precisely that order. Quoting is
  14014. # there to prevent editors from complaining about space-tab.
  14015. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14016. # splitting by setting IFS to empty value.)
  14017. IFS=" "" $as_nl"
  14018. # Find who we are. Look in the path if we contain no directory separator.
  14019. as_myself=
  14020. case $0 in #((
  14021. *[\\/]* ) as_myself=$0 ;;
  14022. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14023. for as_dir in $PATH
  14024. do
  14025. IFS=$as_save_IFS
  14026. test -z "$as_dir" && as_dir=.
  14027. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14028. done
  14029. IFS=$as_save_IFS
  14030. ;;
  14031. esac
  14032. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14033. # in which case we are not to be found in the path.
  14034. if test "x$as_myself" = x; then
  14035. as_myself=$0
  14036. fi
  14037. if test ! -f "$as_myself"; then
  14038. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14039. exit 1
  14040. fi
  14041. # Unset variables that we do not need and which cause bugs (e.g. in
  14042. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14043. # suppresses any "Segmentation fault" message there. '((' could
  14044. # trigger a bug in pdksh 5.2.14.
  14045. for as_var in BASH_ENV ENV MAIL MAILPATH
  14046. do eval test x\${$as_var+set} = xset \
  14047. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14048. done
  14049. PS1='$ '
  14050. PS2='> '
  14051. PS4='+ '
  14052. # NLS nuisances.
  14053. LC_ALL=C
  14054. export LC_ALL
  14055. LANGUAGE=C
  14056. export LANGUAGE
  14057. # CDPATH.
  14058. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14059. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14060. # ----------------------------------------
  14061. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14062. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14063. # script with STATUS, using 1 if that was 0.
  14064. as_fn_error ()
  14065. {
  14066. as_status=$1; test $as_status -eq 0 && as_status=1
  14067. if test "$4"; then
  14068. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14069. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14070. fi
  14071. $as_echo "$as_me: error: $2" >&2
  14072. as_fn_exit $as_status
  14073. } # as_fn_error
  14074. # as_fn_set_status STATUS
  14075. # -----------------------
  14076. # Set $? to STATUS, without forking.
  14077. as_fn_set_status ()
  14078. {
  14079. return $1
  14080. } # as_fn_set_status
  14081. # as_fn_exit STATUS
  14082. # -----------------
  14083. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14084. as_fn_exit ()
  14085. {
  14086. set +e
  14087. as_fn_set_status $1
  14088. exit $1
  14089. } # as_fn_exit
  14090. # as_fn_unset VAR
  14091. # ---------------
  14092. # Portably unset VAR.
  14093. as_fn_unset ()
  14094. {
  14095. { eval $1=; unset $1;}
  14096. }
  14097. as_unset=as_fn_unset
  14098. # as_fn_append VAR VALUE
  14099. # ----------------------
  14100. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14101. # advantage of any shell optimizations that allow amortized linear growth over
  14102. # repeated appends, instead of the typical quadratic growth present in naive
  14103. # implementations.
  14104. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14105. eval 'as_fn_append ()
  14106. {
  14107. eval $1+=\$2
  14108. }'
  14109. else
  14110. as_fn_append ()
  14111. {
  14112. eval $1=\$$1\$2
  14113. }
  14114. fi # as_fn_append
  14115. # as_fn_arith ARG...
  14116. # ------------------
  14117. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14118. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14119. # must be portable across $(()) and expr.
  14120. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14121. eval 'as_fn_arith ()
  14122. {
  14123. as_val=$(( $* ))
  14124. }'
  14125. else
  14126. as_fn_arith ()
  14127. {
  14128. as_val=`expr "$@" || test $? -eq 1`
  14129. }
  14130. fi # as_fn_arith
  14131. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14132. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14133. as_expr=expr
  14134. else
  14135. as_expr=false
  14136. fi
  14137. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14138. as_basename=basename
  14139. else
  14140. as_basename=false
  14141. fi
  14142. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14143. as_dirname=dirname
  14144. else
  14145. as_dirname=false
  14146. fi
  14147. as_me=`$as_basename -- "$0" ||
  14148. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14149. X"$0" : 'X\(//\)$' \| \
  14150. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14151. $as_echo X/"$0" |
  14152. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14153. s//\1/
  14154. q
  14155. }
  14156. /^X\/\(\/\/\)$/{
  14157. s//\1/
  14158. q
  14159. }
  14160. /^X\/\(\/\).*/{
  14161. s//\1/
  14162. q
  14163. }
  14164. s/.*/./; q'`
  14165. # Avoid depending upon Character Ranges.
  14166. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14167. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14168. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14169. as_cr_digits='0123456789'
  14170. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14171. ECHO_C= ECHO_N= ECHO_T=
  14172. case `echo -n x` in #(((((
  14173. -n*)
  14174. case `echo 'xy\c'` in
  14175. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14176. xy) ECHO_C='\c';;
  14177. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14178. ECHO_T=' ';;
  14179. esac;;
  14180. *)
  14181. ECHO_N='-n';;
  14182. esac
  14183. rm -f conf$$ conf$$.exe conf$$.file
  14184. if test -d conf$$.dir; then
  14185. rm -f conf$$.dir/conf$$.file
  14186. else
  14187. rm -f conf$$.dir
  14188. mkdir conf$$.dir 2>/dev/null
  14189. fi
  14190. if (echo >conf$$.file) 2>/dev/null; then
  14191. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14192. as_ln_s='ln -s'
  14193. # ... but there are two gotchas:
  14194. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14195. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14196. # In both cases, we have to default to `cp -pR'.
  14197. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14198. as_ln_s='cp -pR'
  14199. elif ln conf$$.file conf$$ 2>/dev/null; then
  14200. as_ln_s=ln
  14201. else
  14202. as_ln_s='cp -pR'
  14203. fi
  14204. else
  14205. as_ln_s='cp -pR'
  14206. fi
  14207. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14208. rmdir conf$$.dir 2>/dev/null
  14209. # as_fn_mkdir_p
  14210. # -------------
  14211. # Create "$as_dir" as a directory, including parents if necessary.
  14212. as_fn_mkdir_p ()
  14213. {
  14214. case $as_dir in #(
  14215. -*) as_dir=./$as_dir;;
  14216. esac
  14217. test -d "$as_dir" || eval $as_mkdir_p || {
  14218. as_dirs=
  14219. while :; do
  14220. case $as_dir in #(
  14221. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14222. *) as_qdir=$as_dir;;
  14223. esac
  14224. as_dirs="'$as_qdir' $as_dirs"
  14225. as_dir=`$as_dirname -- "$as_dir" ||
  14226. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14227. X"$as_dir" : 'X\(//\)[^/]' \| \
  14228. X"$as_dir" : 'X\(//\)$' \| \
  14229. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14230. $as_echo X"$as_dir" |
  14231. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14232. s//\1/
  14233. q
  14234. }
  14235. /^X\(\/\/\)[^/].*/{
  14236. s//\1/
  14237. q
  14238. }
  14239. /^X\(\/\/\)$/{
  14240. s//\1/
  14241. q
  14242. }
  14243. /^X\(\/\).*/{
  14244. s//\1/
  14245. q
  14246. }
  14247. s/.*/./; q'`
  14248. test -d "$as_dir" && break
  14249. done
  14250. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14251. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14252. } # as_fn_mkdir_p
  14253. if mkdir -p . 2>/dev/null; then
  14254. as_mkdir_p='mkdir -p "$as_dir"'
  14255. else
  14256. test -d ./-p && rmdir ./-p
  14257. as_mkdir_p=false
  14258. fi
  14259. # as_fn_executable_p FILE
  14260. # -----------------------
  14261. # Test if FILE is an executable regular file.
  14262. as_fn_executable_p ()
  14263. {
  14264. test -f "$1" && test -x "$1"
  14265. } # as_fn_executable_p
  14266. as_test_x='test -x'
  14267. as_executable_p=as_fn_executable_p
  14268. # Sed expression to map a string onto a valid CPP name.
  14269. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14270. # Sed expression to map a string onto a valid variable name.
  14271. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14272. exec 6>&1
  14273. ## ----------------------------------- ##
  14274. ## Main body of $CONFIG_STATUS script. ##
  14275. ## ----------------------------------- ##
  14276. _ASEOF
  14277. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14278. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14279. # Save the log message, to keep $0 and so on meaningful, and to
  14280. # report actual input values of CONFIG_FILES etc. instead of their
  14281. # values after options handling.
  14282. ac_log="
  14283. This file was extended by zlog $as_me 1.0, which was
  14284. generated by GNU Autoconf 2.69. Invocation command line was
  14285. CONFIG_FILES = $CONFIG_FILES
  14286. CONFIG_HEADERS = $CONFIG_HEADERS
  14287. CONFIG_LINKS = $CONFIG_LINKS
  14288. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14289. $ $0 $@
  14290. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14291. "
  14292. _ACEOF
  14293. case $ac_config_files in *"
  14294. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14295. esac
  14296. case $ac_config_headers in *"
  14297. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14298. esac
  14299. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14300. # Files that config.status was made for.
  14301. config_files="$ac_config_files"
  14302. config_headers="$ac_config_headers"
  14303. config_commands="$ac_config_commands"
  14304. _ACEOF
  14305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14306. ac_cs_usage="\
  14307. \`$as_me' instantiates files and other configuration actions
  14308. from templates according to the current configuration. Unless the files
  14309. and actions are specified as TAGs, all are instantiated by default.
  14310. Usage: $0 [OPTION]... [TAG]...
  14311. -h, --help print this help, then exit
  14312. -V, --version print version number and configuration settings, then exit
  14313. --config print configuration, then exit
  14314. -q, --quiet, --silent
  14315. do not print progress messages
  14316. -d, --debug don't remove temporary files
  14317. --recheck update $as_me by reconfiguring in the same conditions
  14318. --file=FILE[:TEMPLATE]
  14319. instantiate the configuration file FILE
  14320. --header=FILE[:TEMPLATE]
  14321. instantiate the configuration header FILE
  14322. Configuration files:
  14323. $config_files
  14324. Configuration headers:
  14325. $config_headers
  14326. Configuration commands:
  14327. $config_commands
  14328. Report bugs to <BUG-REPORT-ADDRESS>."
  14329. _ACEOF
  14330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14331. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14332. ac_cs_version="\\
  14333. zlog config.status 1.0
  14334. configured by $0, generated by GNU Autoconf 2.69,
  14335. with options \\"\$ac_cs_config\\"
  14336. Copyright (C) 2012 Free Software Foundation, Inc.
  14337. This config.status script is free software; the Free Software Foundation
  14338. gives unlimited permission to copy, distribute and modify it."
  14339. ac_pwd='$ac_pwd'
  14340. srcdir='$srcdir'
  14341. INSTALL='$INSTALL'
  14342. MKDIR_P='$MKDIR_P'
  14343. AWK='$AWK'
  14344. test -n "\$AWK" || AWK=awk
  14345. _ACEOF
  14346. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14347. # The default lists apply if the user does not specify any file.
  14348. ac_need_defaults=:
  14349. while test $# != 0
  14350. do
  14351. case $1 in
  14352. --*=?*)
  14353. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14354. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14355. ac_shift=:
  14356. ;;
  14357. --*=)
  14358. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14359. ac_optarg=
  14360. ac_shift=:
  14361. ;;
  14362. *)
  14363. ac_option=$1
  14364. ac_optarg=$2
  14365. ac_shift=shift
  14366. ;;
  14367. esac
  14368. case $ac_option in
  14369. # Handling of the options.
  14370. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14371. ac_cs_recheck=: ;;
  14372. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14373. $as_echo "$ac_cs_version"; exit ;;
  14374. --config | --confi | --conf | --con | --co | --c )
  14375. $as_echo "$ac_cs_config"; exit ;;
  14376. --debug | --debu | --deb | --de | --d | -d )
  14377. debug=: ;;
  14378. --file | --fil | --fi | --f )
  14379. $ac_shift
  14380. case $ac_optarg in
  14381. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14382. '') as_fn_error $? "missing file argument" ;;
  14383. esac
  14384. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14385. ac_need_defaults=false;;
  14386. --header | --heade | --head | --hea )
  14387. $ac_shift
  14388. case $ac_optarg in
  14389. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14390. esac
  14391. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14392. ac_need_defaults=false;;
  14393. --he | --h)
  14394. # Conflict between --help and --header
  14395. as_fn_error $? "ambiguous option: \`$1'
  14396. Try \`$0 --help' for more information.";;
  14397. --help | --hel | -h )
  14398. $as_echo "$ac_cs_usage"; exit ;;
  14399. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14400. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14401. ac_cs_silent=: ;;
  14402. # This is an error.
  14403. -*) as_fn_error $? "unrecognized option: \`$1'
  14404. Try \`$0 --help' for more information." ;;
  14405. *) as_fn_append ac_config_targets " $1"
  14406. ac_need_defaults=false ;;
  14407. esac
  14408. shift
  14409. done
  14410. ac_configure_extra_args=
  14411. if $ac_cs_silent; then
  14412. exec 6>/dev/null
  14413. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14414. fi
  14415. _ACEOF
  14416. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14417. if \$ac_cs_recheck; then
  14418. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14419. shift
  14420. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14421. CONFIG_SHELL='$SHELL'
  14422. export CONFIG_SHELL
  14423. exec "\$@"
  14424. fi
  14425. _ACEOF
  14426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14427. exec 5>>config.log
  14428. {
  14429. echo
  14430. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14431. ## Running $as_me. ##
  14432. _ASBOX
  14433. $as_echo "$ac_log"
  14434. } >&5
  14435. _ACEOF
  14436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14437. #
  14438. # INIT-COMMANDS
  14439. #
  14440. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14441. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14442. # if CDPATH is set.
  14443. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14444. sed_quote_subst='$sed_quote_subst'
  14445. double_quote_subst='$double_quote_subst'
  14446. delay_variable_subst='$delay_variable_subst'
  14447. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14448. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14449. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14450. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14451. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14452. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14453. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14454. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14455. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14456. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14457. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14458. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14459. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14460. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14461. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14462. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14463. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14464. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14465. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14466. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14467. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14468. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14469. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14470. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14471. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14472. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14473. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14474. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14475. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14476. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14477. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14478. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14479. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14480. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14481. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14482. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14483. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14484. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14485. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14486. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14487. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14488. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14489. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14490. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14491. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14492. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14493. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14494. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14495. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14496. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14497. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14498. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14499. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14500. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14501. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14502. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14503. 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"`'
  14504. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14505. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14506. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14507. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14508. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14509. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14510. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14511. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14512. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14513. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14514. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14515. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14516. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14517. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14518. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14519. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14520. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14521. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14522. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14523. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14524. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14525. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14526. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14527. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14528. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14529. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14530. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14531. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14532. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14533. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14534. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14535. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14536. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14537. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14538. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14539. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14540. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14541. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14542. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14543. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14544. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14545. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14546. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14547. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14548. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14549. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14550. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14551. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14552. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14553. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14554. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14555. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14556. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14557. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14558. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14559. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14560. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14561. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14562. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14563. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14564. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14565. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14566. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14567. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14568. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14569. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14570. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14571. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14572. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14573. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14574. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14575. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14576. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14577. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14578. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14579. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14580. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14581. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14582. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14583. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14584. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14585. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14586. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14587. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14588. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14589. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14590. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14591. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14592. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14593. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14594. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14595. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14596. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14597. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14598. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14599. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14600. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14601. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14602. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14603. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14604. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14605. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14606. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14607. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14608. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14609. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14610. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14611. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14612. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14613. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14614. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14615. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14616. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14617. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14618. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14619. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14620. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14621. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14622. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14623. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14624. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14625. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14626. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14627. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14628. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14629. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14630. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14631. LTCC='$LTCC'
  14632. LTCFLAGS='$LTCFLAGS'
  14633. compiler='$compiler_DEFAULT'
  14634. # A function that is used when there is no print builtin or printf.
  14635. func_fallback_echo ()
  14636. {
  14637. eval 'cat <<_LTECHO_EOF
  14638. \$1
  14639. _LTECHO_EOF'
  14640. }
  14641. # Quote evaled strings.
  14642. for var in SHELL \
  14643. ECHO \
  14644. PATH_SEPARATOR \
  14645. SED \
  14646. GREP \
  14647. EGREP \
  14648. FGREP \
  14649. LD \
  14650. NM \
  14651. LN_S \
  14652. lt_SP2NL \
  14653. lt_NL2SP \
  14654. reload_flag \
  14655. OBJDUMP \
  14656. deplibs_check_method \
  14657. file_magic_cmd \
  14658. file_magic_glob \
  14659. want_nocaseglob \
  14660. DLLTOOL \
  14661. sharedlib_from_linklib_cmd \
  14662. AR \
  14663. AR_FLAGS \
  14664. archiver_list_spec \
  14665. STRIP \
  14666. RANLIB \
  14667. CC \
  14668. CFLAGS \
  14669. compiler \
  14670. lt_cv_sys_global_symbol_pipe \
  14671. lt_cv_sys_global_symbol_to_cdecl \
  14672. lt_cv_sys_global_symbol_to_c_name_address \
  14673. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14674. nm_file_list_spec \
  14675. lt_prog_compiler_no_builtin_flag \
  14676. lt_prog_compiler_pic \
  14677. lt_prog_compiler_wl \
  14678. lt_prog_compiler_static \
  14679. lt_cv_prog_compiler_c_o \
  14680. need_locks \
  14681. MANIFEST_TOOL \
  14682. DSYMUTIL \
  14683. NMEDIT \
  14684. LIPO \
  14685. OTOOL \
  14686. OTOOL64 \
  14687. shrext_cmds \
  14688. export_dynamic_flag_spec \
  14689. whole_archive_flag_spec \
  14690. compiler_needs_object \
  14691. with_gnu_ld \
  14692. allow_undefined_flag \
  14693. no_undefined_flag \
  14694. hardcode_libdir_flag_spec \
  14695. hardcode_libdir_separator \
  14696. exclude_expsyms \
  14697. include_expsyms \
  14698. file_list_spec \
  14699. variables_saved_for_relink \
  14700. libname_spec \
  14701. library_names_spec \
  14702. soname_spec \
  14703. install_override_mode \
  14704. finish_eval \
  14705. old_striplib \
  14706. striplib \
  14707. compiler_lib_search_dirs \
  14708. predep_objects \
  14709. postdep_objects \
  14710. predeps \
  14711. postdeps \
  14712. compiler_lib_search_path \
  14713. LD_CXX \
  14714. reload_flag_CXX \
  14715. compiler_CXX \
  14716. lt_prog_compiler_no_builtin_flag_CXX \
  14717. lt_prog_compiler_pic_CXX \
  14718. lt_prog_compiler_wl_CXX \
  14719. lt_prog_compiler_static_CXX \
  14720. lt_cv_prog_compiler_c_o_CXX \
  14721. export_dynamic_flag_spec_CXX \
  14722. whole_archive_flag_spec_CXX \
  14723. compiler_needs_object_CXX \
  14724. with_gnu_ld_CXX \
  14725. allow_undefined_flag_CXX \
  14726. no_undefined_flag_CXX \
  14727. hardcode_libdir_flag_spec_CXX \
  14728. hardcode_libdir_separator_CXX \
  14729. exclude_expsyms_CXX \
  14730. include_expsyms_CXX \
  14731. file_list_spec_CXX \
  14732. compiler_lib_search_dirs_CXX \
  14733. predep_objects_CXX \
  14734. postdep_objects_CXX \
  14735. predeps_CXX \
  14736. postdeps_CXX \
  14737. compiler_lib_search_path_CXX; do
  14738. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14739. *[\\\\\\\`\\"\\\$]*)
  14740. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14741. ;;
  14742. *)
  14743. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14744. ;;
  14745. esac
  14746. done
  14747. # Double-quote double-evaled strings.
  14748. for var in reload_cmds \
  14749. old_postinstall_cmds \
  14750. old_postuninstall_cmds \
  14751. old_archive_cmds \
  14752. extract_expsyms_cmds \
  14753. old_archive_from_new_cmds \
  14754. old_archive_from_expsyms_cmds \
  14755. archive_cmds \
  14756. archive_expsym_cmds \
  14757. module_cmds \
  14758. module_expsym_cmds \
  14759. export_symbols_cmds \
  14760. prelink_cmds \
  14761. postlink_cmds \
  14762. postinstall_cmds \
  14763. postuninstall_cmds \
  14764. finish_cmds \
  14765. sys_lib_search_path_spec \
  14766. sys_lib_dlsearch_path_spec \
  14767. reload_cmds_CXX \
  14768. old_archive_cmds_CXX \
  14769. old_archive_from_new_cmds_CXX \
  14770. old_archive_from_expsyms_cmds_CXX \
  14771. archive_cmds_CXX \
  14772. archive_expsym_cmds_CXX \
  14773. module_cmds_CXX \
  14774. module_expsym_cmds_CXX \
  14775. export_symbols_cmds_CXX \
  14776. prelink_cmds_CXX \
  14777. postlink_cmds_CXX; do
  14778. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14779. *[\\\\\\\`\\"\\\$]*)
  14780. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14781. ;;
  14782. *)
  14783. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14784. ;;
  14785. esac
  14786. done
  14787. ac_aux_dir='$ac_aux_dir'
  14788. xsi_shell='$xsi_shell'
  14789. lt_shell_append='$lt_shell_append'
  14790. # See if we are running on zsh, and set the options which allow our
  14791. # commands through without removal of \ escapes INIT.
  14792. if test -n "\${ZSH_VERSION+set}" ; then
  14793. setopt NO_GLOB_SUBST
  14794. fi
  14795. PACKAGE='$PACKAGE'
  14796. VERSION='$VERSION'
  14797. TIMESTAMP='$TIMESTAMP'
  14798. RM='$RM'
  14799. ofile='$ofile'
  14800. _ACEOF
  14801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14802. # Handling of arguments.
  14803. for ac_config_target in $ac_config_targets
  14804. do
  14805. case $ac_config_target in
  14806. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14807. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14808. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14809. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14810. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14811. esac
  14812. done
  14813. # If the user did not use the arguments to specify the items to instantiate,
  14814. # then the envvar interface is used. Set only those that are not.
  14815. # We use the long form for the default assignment because of an extremely
  14816. # bizarre bug on SunOS 4.1.3.
  14817. if $ac_need_defaults; then
  14818. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14819. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14820. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14821. fi
  14822. # Have a temporary directory for convenience. Make it in the build tree
  14823. # simply because there is no reason against having it here, and in addition,
  14824. # creating and moving files from /tmp can sometimes cause problems.
  14825. # Hook for its removal unless debugging.
  14826. # Note that there is a small window in which the directory will not be cleaned:
  14827. # after its creation but before its name has been assigned to `$tmp'.
  14828. $debug ||
  14829. {
  14830. tmp= ac_tmp=
  14831. trap 'exit_status=$?
  14832. : "${ac_tmp:=$tmp}"
  14833. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14834. ' 0
  14835. trap 'as_fn_exit 1' 1 2 13 15
  14836. }
  14837. # Create a (secure) tmp directory for tmp files.
  14838. {
  14839. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14840. test -d "$tmp"
  14841. } ||
  14842. {
  14843. tmp=./conf$$-$RANDOM
  14844. (umask 077 && mkdir "$tmp")
  14845. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14846. ac_tmp=$tmp
  14847. # Set up the scripts for CONFIG_FILES section.
  14848. # No need to generate them if there are no CONFIG_FILES.
  14849. # This happens for instance with `./config.status config.h'.
  14850. if test -n "$CONFIG_FILES"; then
  14851. ac_cr=`echo X | tr X '\015'`
  14852. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14853. # But we know of no other shell where ac_cr would be empty at this
  14854. # point, so we can use a bashism as a fallback.
  14855. if test "x$ac_cr" = x; then
  14856. eval ac_cr=\$\'\\r\'
  14857. fi
  14858. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14859. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14860. ac_cs_awk_cr='\\r'
  14861. else
  14862. ac_cs_awk_cr=$ac_cr
  14863. fi
  14864. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14865. _ACEOF
  14866. {
  14867. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14868. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14869. echo "_ACEOF"
  14870. } >conf$$subs.sh ||
  14871. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14872. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14873. ac_delim='%!_!# '
  14874. for ac_last_try in false false false false false :; do
  14875. . ./conf$$subs.sh ||
  14876. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14877. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14878. if test $ac_delim_n = $ac_delim_num; then
  14879. break
  14880. elif $ac_last_try; then
  14881. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14882. else
  14883. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14884. fi
  14885. done
  14886. rm -f conf$$subs.sh
  14887. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14888. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14889. _ACEOF
  14890. sed -n '
  14891. h
  14892. s/^/S["/; s/!.*/"]=/
  14893. p
  14894. g
  14895. s/^[^!]*!//
  14896. :repl
  14897. t repl
  14898. s/'"$ac_delim"'$//
  14899. t delim
  14900. :nl
  14901. h
  14902. s/\(.\{148\}\)..*/\1/
  14903. t more1
  14904. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14905. p
  14906. n
  14907. b repl
  14908. :more1
  14909. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14910. p
  14911. g
  14912. s/.\{148\}//
  14913. t nl
  14914. :delim
  14915. h
  14916. s/\(.\{148\}\)..*/\1/
  14917. t more2
  14918. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14919. p
  14920. b
  14921. :more2
  14922. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14923. p
  14924. g
  14925. s/.\{148\}//
  14926. t delim
  14927. ' <conf$$subs.awk | sed '
  14928. /^[^""]/{
  14929. N
  14930. s/\n//
  14931. }
  14932. ' >>$CONFIG_STATUS || ac_write_fail=1
  14933. rm -f conf$$subs.awk
  14934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14935. _ACAWK
  14936. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14937. for (key in S) S_is_set[key] = 1
  14938. FS = ""
  14939. }
  14940. {
  14941. line = $ 0
  14942. nfields = split(line, field, "@")
  14943. substed = 0
  14944. len = length(field[1])
  14945. for (i = 2; i < nfields; i++) {
  14946. key = field[i]
  14947. keylen = length(key)
  14948. if (S_is_set[key]) {
  14949. value = S[key]
  14950. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14951. len += length(value) + length(field[++i])
  14952. substed = 1
  14953. } else
  14954. len += 1 + keylen
  14955. }
  14956. print line
  14957. }
  14958. _ACAWK
  14959. _ACEOF
  14960. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14961. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14962. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14963. else
  14964. cat
  14965. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14966. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14967. _ACEOF
  14968. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14969. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14970. # trailing colons and then remove the whole line if VPATH becomes empty
  14971. # (actually we leave an empty line to preserve line numbers).
  14972. if test "x$srcdir" = x.; then
  14973. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14974. h
  14975. s///
  14976. s/^/:/
  14977. s/[ ]*$/:/
  14978. s/:\$(srcdir):/:/g
  14979. s/:\${srcdir}:/:/g
  14980. s/:@srcdir@:/:/g
  14981. s/^:*//
  14982. s/:*$//
  14983. x
  14984. s/\(=[ ]*\).*/\1/
  14985. G
  14986. s/\n//
  14987. s/^[^=]*=[ ]*$//
  14988. }'
  14989. fi
  14990. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14991. fi # test -n "$CONFIG_FILES"
  14992. # Set up the scripts for CONFIG_HEADERS section.
  14993. # No need to generate them if there are no CONFIG_HEADERS.
  14994. # This happens for instance with `./config.status Makefile'.
  14995. if test -n "$CONFIG_HEADERS"; then
  14996. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14997. BEGIN {
  14998. _ACEOF
  14999. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15000. # here-document in config.status, that substitutes the proper values into
  15001. # config.h.in to produce config.h.
  15002. # Create a delimiter string that does not exist in confdefs.h, to ease
  15003. # handling of long lines.
  15004. ac_delim='%!_!# '
  15005. for ac_last_try in false false :; do
  15006. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15007. if test -z "$ac_tt"; then
  15008. break
  15009. elif $ac_last_try; then
  15010. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15011. else
  15012. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15013. fi
  15014. done
  15015. # For the awk script, D is an array of macro values keyed by name,
  15016. # likewise P contains macro parameters if any. Preserve backslash
  15017. # newline sequences.
  15018. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15019. sed -n '
  15020. s/.\{148\}/&'"$ac_delim"'/g
  15021. t rset
  15022. :rset
  15023. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15024. t def
  15025. d
  15026. :def
  15027. s/\\$//
  15028. t bsnl
  15029. s/["\\]/\\&/g
  15030. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15031. D["\1"]=" \3"/p
  15032. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15033. d
  15034. :bsnl
  15035. s/["\\]/\\&/g
  15036. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15037. D["\1"]=" \3\\\\\\n"\\/p
  15038. t cont
  15039. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15040. t cont
  15041. d
  15042. :cont
  15043. n
  15044. s/.\{148\}/&'"$ac_delim"'/g
  15045. t clear
  15046. :clear
  15047. s/\\$//
  15048. t bsnlc
  15049. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15050. d
  15051. :bsnlc
  15052. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15053. b cont
  15054. ' <confdefs.h | sed '
  15055. s/'"$ac_delim"'/"\\\
  15056. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15058. for (key in D) D_is_set[key] = 1
  15059. FS = ""
  15060. }
  15061. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15062. line = \$ 0
  15063. split(line, arg, " ")
  15064. if (arg[1] == "#") {
  15065. defundef = arg[2]
  15066. mac1 = arg[3]
  15067. } else {
  15068. defundef = substr(arg[1], 2)
  15069. mac1 = arg[2]
  15070. }
  15071. split(mac1, mac2, "(") #)
  15072. macro = mac2[1]
  15073. prefix = substr(line, 1, index(line, defundef) - 1)
  15074. if (D_is_set[macro]) {
  15075. # Preserve the white space surrounding the "#".
  15076. print prefix "define", macro P[macro] D[macro]
  15077. next
  15078. } else {
  15079. # Replace #undef with comments. This is necessary, for example,
  15080. # in the case of _POSIX_SOURCE, which is predefined and required
  15081. # on some systems where configure will not decide to define it.
  15082. if (defundef == "undef") {
  15083. print "/*", prefix defundef, macro, "*/"
  15084. next
  15085. }
  15086. }
  15087. }
  15088. { print }
  15089. _ACAWK
  15090. _ACEOF
  15091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15092. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15093. fi # test -n "$CONFIG_HEADERS"
  15094. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15095. shift
  15096. for ac_tag
  15097. do
  15098. case $ac_tag in
  15099. :[FHLC]) ac_mode=$ac_tag; continue;;
  15100. esac
  15101. case $ac_mode$ac_tag in
  15102. :[FHL]*:*);;
  15103. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15104. :[FH]-) ac_tag=-:-;;
  15105. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15106. esac
  15107. ac_save_IFS=$IFS
  15108. IFS=:
  15109. set x $ac_tag
  15110. IFS=$ac_save_IFS
  15111. shift
  15112. ac_file=$1
  15113. shift
  15114. case $ac_mode in
  15115. :L) ac_source=$1;;
  15116. :[FH])
  15117. ac_file_inputs=
  15118. for ac_f
  15119. do
  15120. case $ac_f in
  15121. -) ac_f="$ac_tmp/stdin";;
  15122. *) # Look for the file first in the build tree, then in the source tree
  15123. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15124. # because $ac_f cannot contain `:'.
  15125. test -f "$ac_f" ||
  15126. case $ac_f in
  15127. [\\/$]*) false;;
  15128. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15129. esac ||
  15130. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15131. esac
  15132. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15133. as_fn_append ac_file_inputs " '$ac_f'"
  15134. done
  15135. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15136. # use $as_me), people would be surprised to read:
  15137. # /* config.h. Generated by config.status. */
  15138. configure_input='Generated from '`
  15139. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15140. `' by configure.'
  15141. if test x"$ac_file" != x-; then
  15142. configure_input="$ac_file. $configure_input"
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15144. $as_echo "$as_me: creating $ac_file" >&6;}
  15145. fi
  15146. # Neutralize special characters interpreted by sed in replacement strings.
  15147. case $configure_input in #(
  15148. *\&* | *\|* | *\\* )
  15149. ac_sed_conf_input=`$as_echo "$configure_input" |
  15150. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15151. *) ac_sed_conf_input=$configure_input;;
  15152. esac
  15153. case $ac_tag in
  15154. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15155. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15156. esac
  15157. ;;
  15158. esac
  15159. ac_dir=`$as_dirname -- "$ac_file" ||
  15160. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15161. X"$ac_file" : 'X\(//\)[^/]' \| \
  15162. X"$ac_file" : 'X\(//\)$' \| \
  15163. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15164. $as_echo X"$ac_file" |
  15165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15166. s//\1/
  15167. q
  15168. }
  15169. /^X\(\/\/\)[^/].*/{
  15170. s//\1/
  15171. q
  15172. }
  15173. /^X\(\/\/\)$/{
  15174. s//\1/
  15175. q
  15176. }
  15177. /^X\(\/\).*/{
  15178. s//\1/
  15179. q
  15180. }
  15181. s/.*/./; q'`
  15182. as_dir="$ac_dir"; as_fn_mkdir_p
  15183. ac_builddir=.
  15184. case "$ac_dir" in
  15185. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15186. *)
  15187. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15188. # A ".." for each directory in $ac_dir_suffix.
  15189. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15190. case $ac_top_builddir_sub in
  15191. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15192. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15193. esac ;;
  15194. esac
  15195. ac_abs_top_builddir=$ac_pwd
  15196. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15197. # for backward compatibility:
  15198. ac_top_builddir=$ac_top_build_prefix
  15199. case $srcdir in
  15200. .) # We are building in place.
  15201. ac_srcdir=.
  15202. ac_top_srcdir=$ac_top_builddir_sub
  15203. ac_abs_top_srcdir=$ac_pwd ;;
  15204. [\\/]* | ?:[\\/]* ) # Absolute name.
  15205. ac_srcdir=$srcdir$ac_dir_suffix;
  15206. ac_top_srcdir=$srcdir
  15207. ac_abs_top_srcdir=$srcdir ;;
  15208. *) # Relative name.
  15209. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15210. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15211. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15212. esac
  15213. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15214. case $ac_mode in
  15215. :F)
  15216. #
  15217. # CONFIG_FILE
  15218. #
  15219. case $INSTALL in
  15220. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15221. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15222. esac
  15223. ac_MKDIR_P=$MKDIR_P
  15224. case $MKDIR_P in
  15225. [\\/$]* | ?:[\\/]* ) ;;
  15226. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15227. esac
  15228. _ACEOF
  15229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15230. # If the template does not know about datarootdir, expand it.
  15231. # FIXME: This hack should be removed a few years after 2.60.
  15232. ac_datarootdir_hack=; ac_datarootdir_seen=
  15233. ac_sed_dataroot='
  15234. /datarootdir/ {
  15235. p
  15236. q
  15237. }
  15238. /@datadir@/p
  15239. /@docdir@/p
  15240. /@infodir@/p
  15241. /@localedir@/p
  15242. /@mandir@/p'
  15243. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15244. *datarootdir*) ac_datarootdir_seen=yes;;
  15245. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15247. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15248. _ACEOF
  15249. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15250. ac_datarootdir_hack='
  15251. s&@datadir@&$datadir&g
  15252. s&@docdir@&$docdir&g
  15253. s&@infodir@&$infodir&g
  15254. s&@localedir@&$localedir&g
  15255. s&@mandir@&$mandir&g
  15256. s&\\\${datarootdir}&$datarootdir&g' ;;
  15257. esac
  15258. _ACEOF
  15259. # Neutralize VPATH when `$srcdir' = `.'.
  15260. # Shell code in configure.ac might set extrasub.
  15261. # FIXME: do we really want to maintain this feature?
  15262. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15263. ac_sed_extra="$ac_vpsub
  15264. $extrasub
  15265. _ACEOF
  15266. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15267. :t
  15268. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15269. s|@configure_input@|$ac_sed_conf_input|;t t
  15270. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15271. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15272. s&@srcdir@&$ac_srcdir&;t t
  15273. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15274. s&@top_srcdir@&$ac_top_srcdir&;t t
  15275. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15276. s&@builddir@&$ac_builddir&;t t
  15277. s&@abs_builddir@&$ac_abs_builddir&;t t
  15278. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15279. s&@INSTALL@&$ac_INSTALL&;t t
  15280. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15281. $ac_datarootdir_hack
  15282. "
  15283. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15284. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15285. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15286. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15287. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15288. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15290. which seems to be undefined. Please make sure it is defined" >&5
  15291. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15292. which seems to be undefined. Please make sure it is defined" >&2;}
  15293. rm -f "$ac_tmp/stdin"
  15294. case $ac_file in
  15295. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15296. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15297. esac \
  15298. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15299. ;;
  15300. :H)
  15301. #
  15302. # CONFIG_HEADER
  15303. #
  15304. if test x"$ac_file" != x-; then
  15305. {
  15306. $as_echo "/* $configure_input */" \
  15307. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15308. } >"$ac_tmp/config.h" \
  15309. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15310. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15312. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15313. else
  15314. rm -f "$ac_file"
  15315. mv "$ac_tmp/config.h" "$ac_file" \
  15316. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15317. fi
  15318. else
  15319. $as_echo "/* $configure_input */" \
  15320. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15321. || as_fn_error $? "could not create -" "$LINENO" 5
  15322. fi
  15323. # Compute "$ac_file"'s index in $config_headers.
  15324. _am_arg="$ac_file"
  15325. _am_stamp_count=1
  15326. for _am_header in $config_headers :; do
  15327. case $_am_header in
  15328. $_am_arg | $_am_arg:* )
  15329. break ;;
  15330. * )
  15331. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15332. esac
  15333. done
  15334. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15335. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15336. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15337. X"$_am_arg" : 'X\(//\)$' \| \
  15338. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15339. $as_echo X"$_am_arg" |
  15340. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15341. s//\1/
  15342. q
  15343. }
  15344. /^X\(\/\/\)[^/].*/{
  15345. s//\1/
  15346. q
  15347. }
  15348. /^X\(\/\/\)$/{
  15349. s//\1/
  15350. q
  15351. }
  15352. /^X\(\/\).*/{
  15353. s//\1/
  15354. q
  15355. }
  15356. s/.*/./; q'`/stamp-h$_am_stamp_count
  15357. ;;
  15358. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15359. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15360. ;;
  15361. esac
  15362. case $ac_file$ac_mode in
  15363. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15364. # Older Autoconf quotes --file arguments for eval, but not when files
  15365. # are listed without --file. Let's play safe and only enable the eval
  15366. # if we detect the quoting.
  15367. case $CONFIG_FILES in
  15368. *\'*) eval set x "$CONFIG_FILES" ;;
  15369. *) set x $CONFIG_FILES ;;
  15370. esac
  15371. shift
  15372. for mf
  15373. do
  15374. # Strip MF so we end up with the name of the file.
  15375. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15376. # Check whether this is an Automake generated Makefile or not.
  15377. # We used to match only the files named 'Makefile.in', but
  15378. # some people rename them; so instead we look at the file content.
  15379. # Grep'ing the first line is not enough: some people post-process
  15380. # each Makefile.in and add a new line on top of each file to say so.
  15381. # Grep'ing the whole file is not good either: AIX grep has a line
  15382. # limit of 2048, but all sed's we know have understand at least 4000.
  15383. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15384. dirpart=`$as_dirname -- "$mf" ||
  15385. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15386. X"$mf" : 'X\(//\)[^/]' \| \
  15387. X"$mf" : 'X\(//\)$' \| \
  15388. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15389. $as_echo X"$mf" |
  15390. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15391. s//\1/
  15392. q
  15393. }
  15394. /^X\(\/\/\)[^/].*/{
  15395. s//\1/
  15396. q
  15397. }
  15398. /^X\(\/\/\)$/{
  15399. s//\1/
  15400. q
  15401. }
  15402. /^X\(\/\).*/{
  15403. s//\1/
  15404. q
  15405. }
  15406. s/.*/./; q'`
  15407. else
  15408. continue
  15409. fi
  15410. # Extract the definition of DEPDIR, am__include, and am__quote
  15411. # from the Makefile without running 'make'.
  15412. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15413. test -z "$DEPDIR" && continue
  15414. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15415. test -z "$am__include" && continue
  15416. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15417. # Find all dependency output files, they are included files with
  15418. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15419. # simplest approach to changing $(DEPDIR) to its actual value in the
  15420. # expansion.
  15421. for file in `sed -n "
  15422. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15423. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15424. # Make sure the directory exists.
  15425. test -f "$dirpart/$file" && continue
  15426. fdir=`$as_dirname -- "$file" ||
  15427. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15428. X"$file" : 'X\(//\)[^/]' \| \
  15429. X"$file" : 'X\(//\)$' \| \
  15430. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15431. $as_echo X"$file" |
  15432. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15433. s//\1/
  15434. q
  15435. }
  15436. /^X\(\/\/\)[^/].*/{
  15437. s//\1/
  15438. q
  15439. }
  15440. /^X\(\/\/\)$/{
  15441. s//\1/
  15442. q
  15443. }
  15444. /^X\(\/\).*/{
  15445. s//\1/
  15446. q
  15447. }
  15448. s/.*/./; q'`
  15449. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15450. # echo "creating $dirpart/$file"
  15451. echo '# dummy' > "$dirpart/$file"
  15452. done
  15453. done
  15454. }
  15455. ;;
  15456. "libtool":C)
  15457. # See if we are running on zsh, and set the options which allow our
  15458. # commands through without removal of \ escapes.
  15459. if test -n "${ZSH_VERSION+set}" ; then
  15460. setopt NO_GLOB_SUBST
  15461. fi
  15462. cfgfile="${ofile}T"
  15463. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15464. $RM "$cfgfile"
  15465. cat <<_LT_EOF >> "$cfgfile"
  15466. #! $SHELL
  15467. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15468. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15469. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15470. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15471. #
  15472. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15473. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15474. # Foundation, Inc.
  15475. # Written by Gordon Matzigkeit, 1996
  15476. #
  15477. # This file is part of GNU Libtool.
  15478. #
  15479. # GNU Libtool is free software; you can redistribute it and/or
  15480. # modify it under the terms of the GNU General Public License as
  15481. # published by the Free Software Foundation; either version 2 of
  15482. # the License, or (at your option) any later version.
  15483. #
  15484. # As a special exception to the GNU General Public License,
  15485. # if you distribute this file as part of a program or library that
  15486. # is built using GNU Libtool, you may include this file under the
  15487. # same distribution terms that you use for the rest of that program.
  15488. #
  15489. # GNU Libtool is distributed in the hope that it will be useful,
  15490. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15491. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15492. # GNU General Public License for more details.
  15493. #
  15494. # You should have received a copy of the GNU General Public License
  15495. # along with GNU Libtool; see the file COPYING. If not, a copy
  15496. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15497. # obtained by writing to the Free Software Foundation, Inc.,
  15498. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15499. # The names of the tagged configurations supported by this script.
  15500. available_tags="CXX "
  15501. # ### BEGIN LIBTOOL CONFIG
  15502. # Which release of libtool.m4 was used?
  15503. macro_version=$macro_version
  15504. macro_revision=$macro_revision
  15505. # Whether or not to build shared libraries.
  15506. build_libtool_libs=$enable_shared
  15507. # Whether or not to build static libraries.
  15508. build_old_libs=$enable_static
  15509. # What type of objects to build.
  15510. pic_mode=$pic_mode
  15511. # Whether or not to optimize for fast installation.
  15512. fast_install=$enable_fast_install
  15513. # Shell to use when invoking shell scripts.
  15514. SHELL=$lt_SHELL
  15515. # An echo program that protects backslashes.
  15516. ECHO=$lt_ECHO
  15517. # The PATH separator for the build system.
  15518. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15519. # The host system.
  15520. host_alias=$host_alias
  15521. host=$host
  15522. host_os=$host_os
  15523. # The build system.
  15524. build_alias=$build_alias
  15525. build=$build
  15526. build_os=$build_os
  15527. # A sed program that does not truncate output.
  15528. SED=$lt_SED
  15529. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15530. Xsed="\$SED -e 1s/^X//"
  15531. # A grep program that handles long lines.
  15532. GREP=$lt_GREP
  15533. # An ERE matcher.
  15534. EGREP=$lt_EGREP
  15535. # A literal string matcher.
  15536. FGREP=$lt_FGREP
  15537. # A BSD- or MS-compatible name lister.
  15538. NM=$lt_NM
  15539. # Whether we need soft or hard links.
  15540. LN_S=$lt_LN_S
  15541. # What is the maximum length of a command?
  15542. max_cmd_len=$max_cmd_len
  15543. # Object file suffix (normally "o").
  15544. objext=$ac_objext
  15545. # Executable file suffix (normally "").
  15546. exeext=$exeext
  15547. # whether the shell understands "unset".
  15548. lt_unset=$lt_unset
  15549. # turn spaces into newlines.
  15550. SP2NL=$lt_lt_SP2NL
  15551. # turn newlines into spaces.
  15552. NL2SP=$lt_lt_NL2SP
  15553. # convert \$build file names to \$host format.
  15554. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15555. # convert \$build files to toolchain format.
  15556. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15557. # An object symbol dumper.
  15558. OBJDUMP=$lt_OBJDUMP
  15559. # Method to check whether dependent libraries are shared objects.
  15560. deplibs_check_method=$lt_deplibs_check_method
  15561. # Command to use when deplibs_check_method = "file_magic".
  15562. file_magic_cmd=$lt_file_magic_cmd
  15563. # How to find potential files when deplibs_check_method = "file_magic".
  15564. file_magic_glob=$lt_file_magic_glob
  15565. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15566. want_nocaseglob=$lt_want_nocaseglob
  15567. # DLL creation program.
  15568. DLLTOOL=$lt_DLLTOOL
  15569. # Command to associate shared and link libraries.
  15570. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15571. # The archiver.
  15572. AR=$lt_AR
  15573. # Flags to create an archive.
  15574. AR_FLAGS=$lt_AR_FLAGS
  15575. # How to feed a file listing to the archiver.
  15576. archiver_list_spec=$lt_archiver_list_spec
  15577. # A symbol stripping program.
  15578. STRIP=$lt_STRIP
  15579. # Commands used to install an old-style archive.
  15580. RANLIB=$lt_RANLIB
  15581. old_postinstall_cmds=$lt_old_postinstall_cmds
  15582. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15583. # Whether to use a lock for old archive extraction.
  15584. lock_old_archive_extraction=$lock_old_archive_extraction
  15585. # A C compiler.
  15586. LTCC=$lt_CC
  15587. # LTCC compiler flags.
  15588. LTCFLAGS=$lt_CFLAGS
  15589. # Take the output of nm and produce a listing of raw symbols and C names.
  15590. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15591. # Transform the output of nm in a proper C declaration.
  15592. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15593. # Transform the output of nm in a C name address pair.
  15594. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15595. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15596. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15597. # Specify filename containing input files for \$NM.
  15598. nm_file_list_spec=$lt_nm_file_list_spec
  15599. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15600. lt_sysroot=$lt_sysroot
  15601. # The name of the directory that contains temporary libtool files.
  15602. objdir=$objdir
  15603. # Used to examine libraries when file_magic_cmd begins with "file".
  15604. MAGIC_CMD=$MAGIC_CMD
  15605. # Must we lock files when doing compilation?
  15606. need_locks=$lt_need_locks
  15607. # Manifest tool.
  15608. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15609. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15610. DSYMUTIL=$lt_DSYMUTIL
  15611. # Tool to change global to local symbols on Mac OS X.
  15612. NMEDIT=$lt_NMEDIT
  15613. # Tool to manipulate fat objects and archives on Mac OS X.
  15614. LIPO=$lt_LIPO
  15615. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15616. OTOOL=$lt_OTOOL
  15617. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15618. OTOOL64=$lt_OTOOL64
  15619. # Old archive suffix (normally "a").
  15620. libext=$libext
  15621. # Shared library suffix (normally ".so").
  15622. shrext_cmds=$lt_shrext_cmds
  15623. # The commands to extract the exported symbol list from a shared archive.
  15624. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15625. # Variables whose values should be saved in libtool wrapper scripts and
  15626. # restored at link time.
  15627. variables_saved_for_relink=$lt_variables_saved_for_relink
  15628. # Do we need the "lib" prefix for modules?
  15629. need_lib_prefix=$need_lib_prefix
  15630. # Do we need a version for libraries?
  15631. need_version=$need_version
  15632. # Library versioning type.
  15633. version_type=$version_type
  15634. # Shared library runtime path variable.
  15635. runpath_var=$runpath_var
  15636. # Shared library path variable.
  15637. shlibpath_var=$shlibpath_var
  15638. # Is shlibpath searched before the hard-coded library search path?
  15639. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15640. # Format of library name prefix.
  15641. libname_spec=$lt_libname_spec
  15642. # List of archive names. First name is the real one, the rest are links.
  15643. # The last name is the one that the linker finds with -lNAME
  15644. library_names_spec=$lt_library_names_spec
  15645. # The coded name of the library, if different from the real name.
  15646. soname_spec=$lt_soname_spec
  15647. # Permission mode override for installation of shared libraries.
  15648. install_override_mode=$lt_install_override_mode
  15649. # Command to use after installation of a shared archive.
  15650. postinstall_cmds=$lt_postinstall_cmds
  15651. # Command to use after uninstallation of a shared archive.
  15652. postuninstall_cmds=$lt_postuninstall_cmds
  15653. # Commands used to finish a libtool library installation in a directory.
  15654. finish_cmds=$lt_finish_cmds
  15655. # As "finish_cmds", except a single script fragment to be evaled but
  15656. # not shown.
  15657. finish_eval=$lt_finish_eval
  15658. # Whether we should hardcode library paths into libraries.
  15659. hardcode_into_libs=$hardcode_into_libs
  15660. # Compile-time system search path for libraries.
  15661. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15662. # Run-time system search path for libraries.
  15663. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15664. # Whether dlopen is supported.
  15665. dlopen_support=$enable_dlopen
  15666. # Whether dlopen of programs is supported.
  15667. dlopen_self=$enable_dlopen_self
  15668. # Whether dlopen of statically linked programs is supported.
  15669. dlopen_self_static=$enable_dlopen_self_static
  15670. # Commands to strip libraries.
  15671. old_striplib=$lt_old_striplib
  15672. striplib=$lt_striplib
  15673. # The linker used to build libraries.
  15674. LD=$lt_LD
  15675. # How to create reloadable object files.
  15676. reload_flag=$lt_reload_flag
  15677. reload_cmds=$lt_reload_cmds
  15678. # Commands used to build an old-style archive.
  15679. old_archive_cmds=$lt_old_archive_cmds
  15680. # A language specific compiler.
  15681. CC=$lt_compiler
  15682. # Is the compiler the GNU compiler?
  15683. with_gcc=$GCC
  15684. # Compiler flag to turn off builtin functions.
  15685. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15686. # Additional compiler flags for building library objects.
  15687. pic_flag=$lt_lt_prog_compiler_pic
  15688. # How to pass a linker flag through the compiler.
  15689. wl=$lt_lt_prog_compiler_wl
  15690. # Compiler flag to prevent dynamic linking.
  15691. link_static_flag=$lt_lt_prog_compiler_static
  15692. # Does compiler simultaneously support -c and -o options?
  15693. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15694. # Whether or not to add -lc for building shared libraries.
  15695. build_libtool_need_lc=$archive_cmds_need_lc
  15696. # Whether or not to disallow shared libs when runtime libs are static.
  15697. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15698. # Compiler flag to allow reflexive dlopens.
  15699. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15700. # Compiler flag to generate shared objects directly from archives.
  15701. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15702. # Whether the compiler copes with passing no objects directly.
  15703. compiler_needs_object=$lt_compiler_needs_object
  15704. # Create an old-style archive from a shared archive.
  15705. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15706. # Create a temporary old-style archive to link instead of a shared archive.
  15707. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15708. # Commands used to build a shared archive.
  15709. archive_cmds=$lt_archive_cmds
  15710. archive_expsym_cmds=$lt_archive_expsym_cmds
  15711. # Commands used to build a loadable module if different from building
  15712. # a shared archive.
  15713. module_cmds=$lt_module_cmds
  15714. module_expsym_cmds=$lt_module_expsym_cmds
  15715. # Whether we are building with GNU ld or not.
  15716. with_gnu_ld=$lt_with_gnu_ld
  15717. # Flag that allows shared libraries with undefined symbols to be built.
  15718. allow_undefined_flag=$lt_allow_undefined_flag
  15719. # Flag that enforces no undefined symbols.
  15720. no_undefined_flag=$lt_no_undefined_flag
  15721. # Flag to hardcode \$libdir into a binary during linking.
  15722. # This must work even if \$libdir does not exist
  15723. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15724. # Whether we need a single "-rpath" flag with a separated argument.
  15725. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15726. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15727. # DIR into the resulting binary.
  15728. hardcode_direct=$hardcode_direct
  15729. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15730. # DIR into the resulting binary and the resulting library dependency is
  15731. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15732. # library is relocated.
  15733. hardcode_direct_absolute=$hardcode_direct_absolute
  15734. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15735. # into the resulting binary.
  15736. hardcode_minus_L=$hardcode_minus_L
  15737. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15738. # into the resulting binary.
  15739. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15740. # Set to "yes" if building a shared library automatically hardcodes DIR
  15741. # into the library and all subsequent libraries and executables linked
  15742. # against it.
  15743. hardcode_automatic=$hardcode_automatic
  15744. # Set to yes if linker adds runtime paths of dependent libraries
  15745. # to runtime path list.
  15746. inherit_rpath=$inherit_rpath
  15747. # Whether libtool must link a program against all its dependency libraries.
  15748. link_all_deplibs=$link_all_deplibs
  15749. # Set to "yes" if exported symbols are required.
  15750. always_export_symbols=$always_export_symbols
  15751. # The commands to list exported symbols.
  15752. export_symbols_cmds=$lt_export_symbols_cmds
  15753. # Symbols that should not be listed in the preloaded symbols.
  15754. exclude_expsyms=$lt_exclude_expsyms
  15755. # Symbols that must always be exported.
  15756. include_expsyms=$lt_include_expsyms
  15757. # Commands necessary for linking programs (against libraries) with templates.
  15758. prelink_cmds=$lt_prelink_cmds
  15759. # Commands necessary for finishing linking programs.
  15760. postlink_cmds=$lt_postlink_cmds
  15761. # Specify filename containing input files.
  15762. file_list_spec=$lt_file_list_spec
  15763. # How to hardcode a shared library path into an executable.
  15764. hardcode_action=$hardcode_action
  15765. # The directories searched by this compiler when creating a shared library.
  15766. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15767. # Dependencies to place before and after the objects being linked to
  15768. # create a shared library.
  15769. predep_objects=$lt_predep_objects
  15770. postdep_objects=$lt_postdep_objects
  15771. predeps=$lt_predeps
  15772. postdeps=$lt_postdeps
  15773. # The library search path used internally by the compiler when linking
  15774. # a shared library.
  15775. compiler_lib_search_path=$lt_compiler_lib_search_path
  15776. # ### END LIBTOOL CONFIG
  15777. _LT_EOF
  15778. case $host_os in
  15779. aix3*)
  15780. cat <<\_LT_EOF >> "$cfgfile"
  15781. # AIX sometimes has problems with the GCC collect2 program. For some
  15782. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15783. # vanish in a puff of smoke.
  15784. if test "X${COLLECT_NAMES+set}" != Xset; then
  15785. COLLECT_NAMES=
  15786. export COLLECT_NAMES
  15787. fi
  15788. _LT_EOF
  15789. ;;
  15790. esac
  15791. ltmain="$ac_aux_dir/ltmain.sh"
  15792. # We use sed instead of cat because bash on DJGPP gets confused if
  15793. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15794. # text mode, it properly converts lines to CR/LF. This bash problem
  15795. # is reportedly fixed, but why not run on old versions too?
  15796. sed '$q' "$ltmain" >> "$cfgfile" \
  15797. || (rm -f "$cfgfile"; exit 1)
  15798. if test x"$xsi_shell" = xyes; then
  15799. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15800. func_dirname ()\
  15801. {\
  15802. \ case ${1} in\
  15803. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15804. \ * ) func_dirname_result="${3}" ;;\
  15805. \ esac\
  15806. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15807. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15808. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15809. test 0 -eq $? || _lt_function_replace_fail=:
  15810. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15811. func_basename ()\
  15812. {\
  15813. \ func_basename_result="${1##*/}"\
  15814. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15815. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15816. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15817. test 0 -eq $? || _lt_function_replace_fail=:
  15818. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15819. func_dirname_and_basename ()\
  15820. {\
  15821. \ case ${1} in\
  15822. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15823. \ * ) func_dirname_result="${3}" ;;\
  15824. \ esac\
  15825. \ func_basename_result="${1##*/}"\
  15826. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15827. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15828. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15829. test 0 -eq $? || _lt_function_replace_fail=:
  15830. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15831. func_stripname ()\
  15832. {\
  15833. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15834. \ # positional parameters, so assign one to ordinary parameter first.\
  15835. \ func_stripname_result=${3}\
  15836. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15837. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15838. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15839. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15840. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15841. test 0 -eq $? || _lt_function_replace_fail=:
  15842. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15843. func_split_long_opt ()\
  15844. {\
  15845. \ func_split_long_opt_name=${1%%=*}\
  15846. \ func_split_long_opt_arg=${1#*=}\
  15847. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15848. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15849. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15850. test 0 -eq $? || _lt_function_replace_fail=:
  15851. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15852. func_split_short_opt ()\
  15853. {\
  15854. \ func_split_short_opt_arg=${1#??}\
  15855. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15856. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15857. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15858. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15859. test 0 -eq $? || _lt_function_replace_fail=:
  15860. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15861. func_lo2o ()\
  15862. {\
  15863. \ case ${1} in\
  15864. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15865. \ *) func_lo2o_result=${1} ;;\
  15866. \ esac\
  15867. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15868. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15869. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15870. test 0 -eq $? || _lt_function_replace_fail=:
  15871. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15872. func_xform ()\
  15873. {\
  15874. func_xform_result=${1%.*}.lo\
  15875. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15876. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15877. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15878. test 0 -eq $? || _lt_function_replace_fail=:
  15879. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15880. func_arith ()\
  15881. {\
  15882. func_arith_result=$(( $* ))\
  15883. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15884. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15885. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15886. test 0 -eq $? || _lt_function_replace_fail=:
  15887. sed -e '/^func_len ()$/,/^} # func_len /c\
  15888. func_len ()\
  15889. {\
  15890. func_len_result=${#1}\
  15891. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15892. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15893. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15894. test 0 -eq $? || _lt_function_replace_fail=:
  15895. fi
  15896. if test x"$lt_shell_append" = xyes; then
  15897. sed -e '/^func_append ()$/,/^} # func_append /c\
  15898. func_append ()\
  15899. {\
  15900. eval "${1}+=\\${2}"\
  15901. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15902. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15903. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15904. test 0 -eq $? || _lt_function_replace_fail=:
  15905. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15906. func_append_quoted ()\
  15907. {\
  15908. \ func_quote_for_eval "${2}"\
  15909. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15910. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15911. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15912. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15913. test 0 -eq $? || _lt_function_replace_fail=:
  15914. # Save a `func_append' function call where possible by direct use of '+='
  15915. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15916. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15917. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15918. test 0 -eq $? || _lt_function_replace_fail=:
  15919. else
  15920. # Save a `func_append' function call even when '+=' is not available
  15921. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15922. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15923. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15924. test 0 -eq $? || _lt_function_replace_fail=:
  15925. fi
  15926. if test x"$_lt_function_replace_fail" = x":"; then
  15927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15928. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15929. fi
  15930. mv -f "$cfgfile" "$ofile" ||
  15931. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15932. chmod +x "$ofile"
  15933. cat <<_LT_EOF >> "$ofile"
  15934. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15935. # The linker used to build libraries.
  15936. LD=$lt_LD_CXX
  15937. # How to create reloadable object files.
  15938. reload_flag=$lt_reload_flag_CXX
  15939. reload_cmds=$lt_reload_cmds_CXX
  15940. # Commands used to build an old-style archive.
  15941. old_archive_cmds=$lt_old_archive_cmds_CXX
  15942. # A language specific compiler.
  15943. CC=$lt_compiler_CXX
  15944. # Is the compiler the GNU compiler?
  15945. with_gcc=$GCC_CXX
  15946. # Compiler flag to turn off builtin functions.
  15947. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15948. # Additional compiler flags for building library objects.
  15949. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15950. # How to pass a linker flag through the compiler.
  15951. wl=$lt_lt_prog_compiler_wl_CXX
  15952. # Compiler flag to prevent dynamic linking.
  15953. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15954. # Does compiler simultaneously support -c and -o options?
  15955. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15956. # Whether or not to add -lc for building shared libraries.
  15957. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15958. # Whether or not to disallow shared libs when runtime libs are static.
  15959. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15960. # Compiler flag to allow reflexive dlopens.
  15961. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15962. # Compiler flag to generate shared objects directly from archives.
  15963. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15964. # Whether the compiler copes with passing no objects directly.
  15965. compiler_needs_object=$lt_compiler_needs_object_CXX
  15966. # Create an old-style archive from a shared archive.
  15967. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15968. # Create a temporary old-style archive to link instead of a shared archive.
  15969. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15970. # Commands used to build a shared archive.
  15971. archive_cmds=$lt_archive_cmds_CXX
  15972. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15973. # Commands used to build a loadable module if different from building
  15974. # a shared archive.
  15975. module_cmds=$lt_module_cmds_CXX
  15976. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15977. # Whether we are building with GNU ld or not.
  15978. with_gnu_ld=$lt_with_gnu_ld_CXX
  15979. # Flag that allows shared libraries with undefined symbols to be built.
  15980. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15981. # Flag that enforces no undefined symbols.
  15982. no_undefined_flag=$lt_no_undefined_flag_CXX
  15983. # Flag to hardcode \$libdir into a binary during linking.
  15984. # This must work even if \$libdir does not exist
  15985. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15986. # Whether we need a single "-rpath" flag with a separated argument.
  15987. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15988. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15989. # DIR into the resulting binary.
  15990. hardcode_direct=$hardcode_direct_CXX
  15991. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15992. # DIR into the resulting binary and the resulting library dependency is
  15993. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15994. # library is relocated.
  15995. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15996. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15997. # into the resulting binary.
  15998. hardcode_minus_L=$hardcode_minus_L_CXX
  15999. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16000. # into the resulting binary.
  16001. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16002. # Set to "yes" if building a shared library automatically hardcodes DIR
  16003. # into the library and all subsequent libraries and executables linked
  16004. # against it.
  16005. hardcode_automatic=$hardcode_automatic_CXX
  16006. # Set to yes if linker adds runtime paths of dependent libraries
  16007. # to runtime path list.
  16008. inherit_rpath=$inherit_rpath_CXX
  16009. # Whether libtool must link a program against all its dependency libraries.
  16010. link_all_deplibs=$link_all_deplibs_CXX
  16011. # Set to "yes" if exported symbols are required.
  16012. always_export_symbols=$always_export_symbols_CXX
  16013. # The commands to list exported symbols.
  16014. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16015. # Symbols that should not be listed in the preloaded symbols.
  16016. exclude_expsyms=$lt_exclude_expsyms_CXX
  16017. # Symbols that must always be exported.
  16018. include_expsyms=$lt_include_expsyms_CXX
  16019. # Commands necessary for linking programs (against libraries) with templates.
  16020. prelink_cmds=$lt_prelink_cmds_CXX
  16021. # Commands necessary for finishing linking programs.
  16022. postlink_cmds=$lt_postlink_cmds_CXX
  16023. # Specify filename containing input files.
  16024. file_list_spec=$lt_file_list_spec_CXX
  16025. # How to hardcode a shared library path into an executable.
  16026. hardcode_action=$hardcode_action_CXX
  16027. # The directories searched by this compiler when creating a shared library.
  16028. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16029. # Dependencies to place before and after the objects being linked to
  16030. # create a shared library.
  16031. predep_objects=$lt_predep_objects_CXX
  16032. postdep_objects=$lt_postdep_objects_CXX
  16033. predeps=$lt_predeps_CXX
  16034. postdeps=$lt_postdeps_CXX
  16035. # The library search path used internally by the compiler when linking
  16036. # a shared library.
  16037. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16038. # ### END LIBTOOL TAG CONFIG: CXX
  16039. _LT_EOF
  16040. ;;
  16041. esac
  16042. done # for ac_tag
  16043. as_fn_exit 0
  16044. _ACEOF
  16045. ac_clean_files=$ac_clean_files_save
  16046. test $ac_write_fail = 0 ||
  16047. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16048. # configure is writing to config.log, and then calls config.status.
  16049. # config.status does its own redirection, appending to config.log.
  16050. # Unfortunately, on DOS this fails, as config.log is still kept open
  16051. # by configure, so config.status won't be able to write to it; its
  16052. # output is simply discarded. So we exec the FD to /dev/null,
  16053. # effectively closing config.log, so it can be properly (re)opened and
  16054. # appended to by config.status. When coming back to configure, we
  16055. # need to make the FD available again.
  16056. if test "$no_create" != yes; then
  16057. ac_cs_success=:
  16058. ac_config_status_args=
  16059. test "$silent" = yes &&
  16060. ac_config_status_args="$ac_config_status_args --quiet"
  16061. exec 5>/dev/null
  16062. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16063. exec 5>>config.log
  16064. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16065. # would make configure fail if this is the last instruction.
  16066. $ac_cs_success || as_fn_exit 1
  16067. fi
  16068. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16070. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16071. fi